bfd/
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/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.
39for 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
43do
44 if (set +x; test -z "`(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
88 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
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42ecbf5e
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ar.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
692ed3e7 461ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
42ecbf5e 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
42ecbf5e
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
42ecbf5e 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
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=*)
42ecbf5e 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
42ecbf5e 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
252b5132
RH
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
42ecbf5e
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
42ecbf5e
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
42ecbf5e
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132
RH
806fi
807
42ecbf5e
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
42ecbf5e
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
e5a52504 848
42ecbf5e
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
42ecbf5e
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
42ecbf5e
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
252b5132 923
42ecbf5e
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
42ecbf5e
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
252b5132 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
42ecbf5e
DJ
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
5ba684e2 1019 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1030
42ecbf5e
DJ
1031Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
e5a52504 1039
42ecbf5e
DJ
1040Use these variables to override the choices made by `configure' or to help
1041it to find libraries and programs with nonstandard names/locations.
1042
1043_ACEOF
252b5132
RH
1044fi
1045
42ecbf5e
DJ
1046if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1052
1053if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057else
1058 ac_dir_suffix= ac_top_builddir=
1059fi
252b5132 1060
42ecbf5e
DJ
1061case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1068 fi ;;
42ecbf5e
DJ
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1075esac
1076
42ecbf5e
DJ
1077# Do not use `cd foo && pwd` to compute absolute paths, because
1078# the directories may not exist.
1079case `pwd` in
1080.) ac_abs_builddir="$ac_dir";;
1081*)
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
252b5132 1087esac
42ecbf5e
DJ
1088case $ac_abs_builddir in
1089.) ac_abs_top_builddir=${ac_top_builddir}.;;
1090*)
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_srcdir=$ac_srcdir;;
1099*)
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_top_srcdir=$ac_top_srcdir;;
1108*)
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
d15b04bd 1114esac
5d64ca4e 1115
42ecbf5e
DJ
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
1b315056 1131 cd "$ac_popdir"
42ecbf5e
DJ
1132 done
1133fi
5d64ca4e 1134
42ecbf5e
DJ
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
5d64ca4e 1138
42ecbf5e
DJ
1139Copyright (C) 2003 Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
429cc0ae 1149
42ecbf5e
DJ
1150It was created by $as_me, which was
1151generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1152
42ecbf5e 1153 $ $0 $@
e5a52504 1154
42ecbf5e
DJ
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
e5a52504 1188
42ecbf5e 1189} >&5
ceae3e33 1190
42ecbf5e 1191cat >&5 <<_ACEOF
e5a52504 1192
42ecbf5e
DJ
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454done
1455if $ac_cache_corrupted; then
7a283e07
RW
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463fi
1464
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
7a283e07
RW
1487
1488
1489
42ecbf5e
DJ
1490
1491
1492
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600ac_ext=c
1601ac_cpp='$CPP $CPPFLAGS'
1602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641fi
1642if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645set dummy gcc; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
1666done
1667
1668fi
1669fi
1670ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673echo "${ECHO_T}$ac_ct_CC" >&6
1674else
1675 echo "$as_me:$LINENO: result: no" >&5
1676echo "${ECHO_T}no" >&6
1677fi
1678
1679 CC=$ac_ct_CC
1680else
1681 CC="$ac_cv_prog_CC"
1682fi
1683
1684if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687set dummy ${ac_tool_prefix}cc; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707done
1708done
1709
1710fi
1711fi
1712CC=$ac_cv_prog_CC
1713if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715echo "${ECHO_T}$CC" >&6
1716else
1717 echo "$as_me:$LINENO: result: no" >&5
1718echo "${ECHO_T}no" >&6
1719fi
1720
1721fi
1722if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725set dummy cc; ac_word=$2
1726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733else
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1744 fi
1745done
1746done
1747
1748fi
1749fi
1750ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753echo "${ECHO_T}$ac_ct_CC" >&6
1754else
1755 echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1759 CC=$ac_ct_CC
1760else
1761 CC="$ac_cv_prog_CC"
1762fi
1763
1764fi
1765if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767set dummy cc; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775else
1776 ac_prog_rejected=no
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1787 fi
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792done
1793done
1794
1795if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1805 fi
1806fi
1807fi
1808fi
1809CC=$ac_cv_prog_CC
1810if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812echo "${ECHO_T}$CC" >&6
1813else
1814 echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816fi
1817
1818fi
1819if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1822 do
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825echo "$as_me:$LINENO: checking for $ac_word" >&5
1826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832else
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844done
1845done
1846
1847fi
1848fi
1849CC=$ac_cv_prog_CC
1850if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852echo "${ECHO_T}$CC" >&6
1853else
1854 echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6
1856fi
1857
1858 test -n "$CC" && break
1859 done
1860fi
1861if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1864do
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866set dummy $ac_prog; 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_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886done
1887done
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6
1895else
1896 echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900 test -n "$ac_ct_CC" && break
1901done
1902
1903 CC=$ac_ct_CC
1904fi
1905
1906fi
1907
1908
7a283e07
RW
1909test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: no acceptable C compiler found in \$PATH
1914See \`config.log' for more details." >&2;}
7a283e07 1915 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1916
1917# Provide some information about the compiler.
1918echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920ac_compiler=`set X $ac_compile; echo $2`
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937cat >conftest.$ac_ext <<_ACEOF
1938/* confdefs.h. */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h. */
1943
1944int
1945main ()
1946{
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952ac_clean_files_save=$ac_clean_files
1953ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954# Try to create an executable without -o first, disregard a.out.
1955# It will help us diagnose broken compilers, and finding out an intuition
1956# of exeext.
1957echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967# resort.
1968
1969# Be careful to initialize this variable, since it used to be cached.
1970# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971ac_cv_exeext=
1972# b.out is created by i960 compilers.
1973for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996done
1997else
1998 echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
7a283e07
RW
2001{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2003{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004See \`config.log' for more details." >&5
2005echo "$as_me: error: C compiler cannot create executables
2006See \`config.log' for more details." >&2;}
7a283e07 2007 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2008fi
2009
2010ac_exeext=$ac_cv_exeext
2011echo "$as_me:$LINENO: result: $ac_file" >&5
2012echo "${ECHO_T}$ac_file" >&6
2013
2014# Check the compiler produces executables we can run. If not, either
2015# the compiler is broken, or we cross compile.
2016echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019# If not cross compiling, check that we can run a simple program.
2020if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
7a283e07
RW
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2035If you meant to cross compile, use \`--host'.
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: cannot run C compiled programs.
2038If you meant to cross compile, use \`--host'.
2039See \`config.log' for more details." >&2;}
7a283e07 2040 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2041 fi
2042 fi
2043fi
2044echo "$as_me:$LINENO: result: yes" >&5
2045echo "${ECHO_T}yes" >&6
2046
2047rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048ac_clean_files=$ac_clean_files_save
2049# Check the compiler produces executables we can run. If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054echo "${ECHO_T}$cross_compiling" >&6
2055
2056echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065# work properly (i.e., refer to `conftest.exe'), while it won't with
2066# `rm'.
2067for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076done
2077else
7a283e07
RW
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083See \`config.log' for more details." >&2;}
7a283e07 2084 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2085fi
2086
2087rm -f conftest$ac_cv_exeext
2088echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089echo "${ECHO_T}$ac_cv_exeext" >&6
2090
2091rm -f conftest.$ac_ext
2092EXEEXT=$ac_cv_exeext
2093ac_exeext=$EXEEXT
2094echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 cat >conftest.$ac_ext <<_ACEOF
2100/* confdefs.h. */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
2104/* end confdefs.h. */
2105
2106int
2107main ()
2108{
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114rm -f conftest.o conftest.obj
2115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126done
2127else
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
7a283e07
RW
2131{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2133{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136See \`config.log' for more details." >&2;}
7a283e07 2137 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2138fi
2139
2140rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141fi
2142echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143echo "${ECHO_T}$ac_cv_objext" >&6
2144OBJEXT=$ac_cv_objext
2145ac_objext=$OBJEXT
2146echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 cat >conftest.$ac_ext <<_ACEOF
2152/* confdefs.h. */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h. */
2157
2158int
2159main ()
2160{
2161#ifndef __GNUC__
2162 choke me
2163#endif
2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
1b315056 2178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195ac_compiler_gnu=no
2196fi
2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200fi
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
2218
2219int
2220main ()
2221{
2222
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
1b315056 2236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249else
2250 echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253ac_cv_prog_cc_g=no
2254fi
2255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256fi
2257echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2266 fi
2267else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2272 fi
2273fi
2274echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 ac_cv_prog_cc_stdc=no
2280ac_save_CC=$CC
2281cat >conftest.$ac_ext <<_ACEOF
2282/* confdefs.h. */
2283_ACEOF
2284cat confdefs.h >>conftest.$ac_ext
2285cat >>conftest.$ac_ext <<_ACEOF
2286/* end confdefs.h. */
2287#include <stdarg.h>
2288#include <stdio.h>
2289#include <sys/types.h>
2290#include <sys/stat.h>
2291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292struct buf { int x; };
2293FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294static char *e (p, i)
2295 char **p;
2296 int i;
2297{
2298 return p[i];
2299}
2300static char *f (char * (*g) (char **, int), char **p, ...)
2301{
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2308}
2309
2310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
2319int test (int i, double x);
2320struct s1 {int (*f) (int a);};
2321struct s2 {int (*f) (double a);};
2322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323int argc;
2324char **argv;
2325int
2326main ()
2327{
2328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333# Don't try gcc -ansi; that turns off useful extensions and
2334# breaks some systems' header files.
2335# AIX -qlanglvl=ansi
2336# Ultrix and OSF/1 -std1
2337# HP-UX 10.20 and later -Ae
2338# HP-UX older versions -Aa -D_HPUX_SOURCE
2339# SVR4 -Xc -D__EXTENSIONS__
2340for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341do
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
1b315056 2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365break
2366else
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370fi
2371rm -f conftest.err conftest.$ac_objext
2372done
2373rm -f conftest.$ac_ext conftest.$ac_objext
2374CC=$ac_save_CC
2375
2376fi
2377
2378case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381echo "${ECHO_T}none needed" >&6 ;;
2382 *)
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386esac
2387
2388# Some people use a C++ compiler to compile C. Since we use `exit',
2389# in C++ we need to declare it. In case someone uses the same compiler
2390# for both compiling C and C++ we need to have the C++ compiler decide
2391# the declaration of exit, since it's the most demanding environment.
2392cat >conftest.$ac_ext <<_ACEOF
2393#ifndef __cplusplus
2394 choke me
2395#endif
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
1b315056 2406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2425do
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432$ac_declaration
2433#include <stdlib.h>
2434int
2435main ()
2436{
2437exit (42);
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
1b315056 2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 :
2464else
2465 echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
2468continue
2469fi
2470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472/* confdefs.h. */
2473_ACEOF
2474cat confdefs.h >>conftest.$ac_ext
2475cat >>conftest.$ac_ext <<_ACEOF
2476/* end confdefs.h. */
2477$ac_declaration
2478int
2479main ()
2480{
2481exit (42);
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486rm -f conftest.$ac_objext
2487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
1b315056 2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 break
2508else
2509 echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512fi
2513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514done
2515rm -f conftest*
2516if test -n "$ac_declaration"; then
2517 echo '#ifdef __cplusplus' >>confdefs.h
2518 echo $ac_declaration >>confdefs.h
2519 echo '#endif' >>confdefs.h
2520fi
2521
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528ac_ext=c
2529ac_cpp='$CPP $CPPFLAGS'
2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535echo "$as_me:$LINENO: checking for library containing strerror" >&5
2536echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2537if test "${ac_cv_search_strerror+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 ac_func_search_save_LIBS=$LIBS
2541ac_cv_search_strerror=no
2542cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h. */
2548
2549/* Override any gcc2 internal prototype to avoid an error. */
2550#ifdef __cplusplus
2551extern "C"
2552#endif
2553/* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555char strerror ();
2556int
2557main ()
2558{
2559strerror ();
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext conftest$ac_exeext
2565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
1b315056 2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest$ac_exeext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_search_strerror="none required"
2586else
2587 echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590fi
2591rm -f conftest.err conftest.$ac_objext \
2592 conftest$ac_exeext conftest.$ac_ext
2593if test "$ac_cv_search_strerror" = no; then
2594 for ac_lib in cposix; do
2595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2596 cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602
2603/* Override any gcc2 internal prototype to avoid an error. */
2604#ifdef __cplusplus
2605extern "C"
2606#endif
2607/* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2609char strerror ();
2610int
2611main ()
2612{
2613strerror ();
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618rm -f conftest.$ac_objext conftest$ac_exeext
2619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
1b315056 2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="-l$ac_lib"
2640break
2641else
2642 echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645fi
2646rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2648 done
2649fi
2650LIBS=$ac_func_search_save_LIBS
2651fi
2652echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654if test "$ac_cv_search_strerror" != no; then
2655 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2656
2657fi
2658
2659
2660BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2661am__api_version="1.9"
2662# Find a good install program. We prefer a C program (faster),
2663# so one script is as good as another. But avoid the broken or
2664# incompatible versions:
2665# SysV /etc/install, /usr/sbin/install
2666# SunOS /usr/etc/install
2667# IRIX /sbin/install
2668# AIX /bin/install
2669# AmigaOS /C/install, which installs bootblocks on floppy discs
2670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673# OS/2's system install, which has a completely different semantic
2674# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2675# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2676echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2677echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2678if test -z "$INSTALL"; then
2679if test "${ac_cv_path_install+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688case $as_dir/ in
2689 ./ | .// | /cC/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2702 # AIX install. It has an incompatible calling convention.
2703 :
42ecbf5e
DJ
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
252b5132 2708 else
58c85be7
RW
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
252b5132
RH
2721 fi
2722 fi
d15b04bd 2723 done
42ecbf5e
DJ
2724 done
2725 ;;
2726esac
2727done
2728
58c85be7 2729rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2730
2731fi
2732 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2733 INSTALL=$ac_cv_path_install
252b5132 2734 else
58c85be7
RW
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
252b5132 2737 # break other packages using the cache if that directory is
58c85be7 2738 # removed, or if the value is a relative name.
42ecbf5e 2739 INSTALL=$ac_install_sh
252b5132
RH
2740 fi
2741fi
42ecbf5e
DJ
2742echo "$as_me:$LINENO: result: $INSTALL" >&5
2743echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2744
2745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746# It thinks the first close brace ends the variable substitution.
2747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748
42ecbf5e 2749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2750
2751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752
42ecbf5e
DJ
2753echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2754echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2755# Just in case
2756sleep 1
42ecbf5e 2757echo timestamp > conftest.file
252b5132
RH
2758# Do `set' in a subshell so we don't clobber the current shell's
2759# arguments. Must try -L first in case configure is actually a
2760# symlink; some systems play weird games with the mod time of symlinks
2761# (eg FreeBSD returns the mod time of the symlink's containing
2762# directory).
2763if (
42ecbf5e 2764 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2765 if test "$*" = "X"; then
2766 # -L didn't work.
42ecbf5e 2767 set X `ls -t $srcdir/configure conftest.file`
252b5132 2768 fi
42ecbf5e
DJ
2769 rm -f conftest.file
2770 if test "$*" != "X $srcdir/configure conftest.file" \
2771 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2772
2773 # If neither matched, then we have a broken ls. This can happen
2774 # if, for instance, CONFIG_SHELL is bash and it inherits a
2775 # broken ls alias from the environment. This has actually
2776 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2777 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2778alias in your environment" >&5
2779echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2780alias in your environment" >&2;}
2781 { (exit 1); exit 1; }; }
252b5132
RH
2782 fi
2783
42ecbf5e 2784 test "$2" = conftest.file
252b5132
RH
2785 )
2786then
2787 # Ok.
2788 :
2789else
42ecbf5e
DJ
2790 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2791Check your system clock" >&5
2792echo "$as_me: error: newly created file is older than distributed files!
2793Check your system clock" >&2;}
2794 { (exit 1); exit 1; }; }
2795fi
2796echo "$as_me:$LINENO: result: yes" >&5
2797echo "${ECHO_T}yes" >&6
2798test "$program_prefix" != NONE &&
2799 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2800# Use a double $ so make ignores it.
2801test "$program_suffix" != NONE &&
2802 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2803# Double any \ or $. echo might interpret backslashes.
2804# By default was `s,x,x', remove it if useless.
2805cat <<\_ACEOF >conftest.sed
2806s/[\\$]/&&/g;s/;s,x,x,$//
2807_ACEOF
2808program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2809rm conftest.sed
2810
2811# expand $ac_aux_dir to an absolute path
2812am_aux_dir=`cd $ac_aux_dir && pwd`
2813
2814test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2815# Use eval to expand $SHELL
2816if eval "$MISSING --run true"; then
2817 am_missing_run="$MISSING --run "
2818else
2819 am_missing_run=
2820 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2821echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2822fi
2823
2824if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2825 # We used to keeping the `.' as first argument, in order to
2826 # allow $(mkdir_p) to be used without argument. As in
2827 # $(mkdir_p) $(somedir)
2828 # where $(somedir) is conditionally defined. However this is wrong
2829 # for two reasons:
2830 # 1. if the package is installed by a user who cannot write `.'
2831 # make install will fail,
2832 # 2. the above comment should most certainly read
2833 # $(mkdir_p) $(DESTDIR)$(somedir)
2834 # so it does not work when $(somedir) is undefined and
2835 # $(DESTDIR) is not.
2836 # To support the latter case, we have to write
2837 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2838 # so the `.' trick is pointless.
2839 mkdir_p='mkdir -p --'
2840else
2841 # On NextStep and OpenStep, the `mkdir' command does not
2842 # recognize any option. It will interpret all options as
2843 # directories to create, and then abort because `.' already
2844 # exists.
2845 for d in ./-p ./--version;
2846 do
2847 test -d $d && rmdir $d
2848 done
2849 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2850 if test -f "$ac_aux_dir/mkinstalldirs"; then
2851 mkdir_p='$(mkinstalldirs)'
2852 else
2853 mkdir_p='$(install_sh) -d'
2854 fi
2855fi
2856
2857for ac_prog in gawk mawk nawk awk
2858do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860set dummy $ac_prog; ac_word=$2
2861echo "$as_me:$LINENO: checking for $ac_word" >&5
2862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863if test "${ac_cv_prog_AWK+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865else
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880done
2881done
2882
2883fi
2884fi
2885AWK=$ac_cv_prog_AWK
2886if test -n "$AWK"; then
2887 echo "$as_me:$LINENO: result: $AWK" >&5
2888echo "${ECHO_T}$AWK" >&6
2889else
2890 echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6
2892fi
2893
2894 test -n "$AWK" && break
2895done
2896
2897echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2899set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2900if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 cat >conftest.make <<\_ACEOF
2904all:
2905 @echo 'ac_maketemp="$(MAKE)"'
2906_ACEOF
2907# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2908eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2909if test -n "$ac_maketemp"; then
2910 eval ac_cv_prog_make_${ac_make}_set=yes
2911else
2912 eval ac_cv_prog_make_${ac_make}_set=no
2913fi
2914rm -f conftest.make
2915fi
2916if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
2919 SET_MAKE=
2920else
2921 echo "$as_me:$LINENO: result: no" >&5
2922echo "${ECHO_T}no" >&6
2923 SET_MAKE="MAKE=${MAKE-make}"
2924fi
2925
2926rm -rf .tst 2>/dev/null
2927mkdir .tst 2>/dev/null
2928if test -d .tst; then
2929 am__leading_dot=.
2930else
2931 am__leading_dot=_
2932fi
2933rmdir .tst 2>/dev/null
2934
2935DEPDIR="${am__leading_dot}deps"
2936
2937 ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940am_make=${MAKE-make}
2941cat > confinc << 'END'
2942am__doit:
2943 @echo done
2944.PHONY: am__doit
2945END
2946# If we don't find an include directive, just comment out the code.
2947echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949am__include="#"
2950am__quote=
2951_am_result=none
2952# First try GNU make style include.
2953echo "include confinc" > confmf
2954# We grep out `Entering directory' and `Leaving directory'
2955# messages which can occur if `w' ends up in MAKEFLAGS.
2956# In particular we don't look at `^make:' because GNU make might
2957# be invoked under some other name (usually "gmake"), in which
2958# case it prints its new name instead of `make'.
2959if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960 am__include=include
2961 am__quote=
2962 _am_result=GNU
2963fi
2964# Now try BSD make style include.
2965if test "$am__include" = "#"; then
2966 echo '.include "confinc"' > confmf
2967 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968 am__include=.include
2969 am__quote="\""
2970 _am_result=BSD
2971 fi
2972fi
2973
2974
2975echo "$as_me:$LINENO: result: $_am_result" >&5
2976echo "${ECHO_T}$_am_result" >&6
2977rm -f confinc confmf
2978
2979# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980if test "${enable_dependency_tracking+set}" = set; then
2981 enableval="$enable_dependency_tracking"
2982
2983fi;
2984if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2987fi
2988
2989
2990if test "x$enable_dependency_tracking" != xno; then
2991 AMDEP_TRUE=
2992 AMDEP_FALSE='#'
2993else
2994 AMDEP_TRUE='#'
2995 AMDEP_FALSE=
2996fi
2997
2998
2999
3000# test to see if srcdir already configured
3001if test "`cd $srcdir && pwd`" != "`pwd`" &&
3002 test -f $srcdir/config.status; then
3003 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3004echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3005 { (exit 1); exit 1; }; }
3006fi
3007
3008# test whether we have cygpath
3009if test -z "$CYGPATH_W"; then
3010 if (cygpath --version) >/dev/null 2>/dev/null; then
3011 CYGPATH_W='cygpath -w'
3012 else
3013 CYGPATH_W=echo
3014 fi
3015fi
3016
3017
3018# Define the identity of the package.
3019 PACKAGE=binutils
3020 VERSION=${BFD_VERSION}
3021
3022
3023cat >>confdefs.h <<_ACEOF
3024#define PACKAGE "$PACKAGE"
3025_ACEOF
3026
3027
3028cat >>confdefs.h <<_ACEOF
3029#define VERSION "$VERSION"
3030_ACEOF
3031
3032# Some tools Automake needs.
3033
3034ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3035
3036
3037AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3038
3039
3040AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3041
3042
3043AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3044
3045
3046MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3047
3048install_sh=${install_sh-"$am_aux_dir/install-sh"}
3049
3050# Installed binaries are usually stripped using `strip' when the user
3051# run `make install-strip'. However `strip' might not be the right
3052# tool to use in cross-compilation environments, therefore Automake
3053# will honor the `STRIP' environment variable to overrule this program.
3054if test "$cross_compiling" != no; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}strip; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_prog_STRIP+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 if test -n "$STRIP"; then
3064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077done
3078done
3079
252b5132 3080fi
42ecbf5e
DJ
3081fi
3082STRIP=$ac_cv_prog_STRIP
3083if test -n "$STRIP"; then
3084 echo "$as_me:$LINENO: result: $STRIP" >&5
3085echo "${ECHO_T}$STRIP" >&6
d15b04bd 3086else
42ecbf5e
DJ
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
d15b04bd 3089fi
d15b04bd 3090
42ecbf5e
DJ
3091fi
3092if test -z "$ac_cv_prog_STRIP"; then
3093 ac_ct_STRIP=$STRIP
3094 # Extract the first word of "strip", so it can be a program name with args.
3095set dummy strip; ac_word=$2
3096echo "$as_me:$LINENO: checking for $ac_word" >&5
3097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3100else
42ecbf5e
DJ
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3103else
42ecbf5e
DJ
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115done
3116done
3117
3118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3119fi
252b5132 3120fi
42ecbf5e
DJ
3121ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122if test -n "$ac_ct_STRIP"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3124echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3125else
42ecbf5e
DJ
3126 echo "$as_me:$LINENO: result: no" >&5
3127echo "${ECHO_T}no" >&6
252b5132
RH
3128fi
3129
42ecbf5e
DJ
3130 STRIP=$ac_ct_STRIP
3131else
3132 STRIP="$ac_cv_prog_STRIP"
3133fi
252b5132 3134
42ecbf5e
DJ
3135fi
3136INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3137
42ecbf5e
DJ
3138# We need awk for the "check" target. The system "awk" is bad on
3139# some platforms.
3140# Always define AMTAR for backward compatibility.
252b5132 3141
42ecbf5e 3142AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3143
42ecbf5e 3144am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3145
3146
3147
252b5132 3148
42ecbf5e
DJ
3149depcc="$CC" am_compiler_list=
3150
3151echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3152echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3153if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3155else
42ecbf5e
DJ
3156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3157 # We make a subdir and do the tests there. Otherwise we can end up
3158 # making bogus files that we don't know about and never remove. For
3159 # instance it was reported that on HP-UX the gcc test will end up
3160 # making a dummy file named `D' -- because `-MD' means `put the output
3161 # in D'.
3162 mkdir conftest.dir
3163 # Copy depcomp to subdir because otherwise we won't find it if we're
3164 # using a relative directory.
3165 cp "$am_depcomp" conftest.dir
3166 cd conftest.dir
3167 # We will build objects and dependencies in a subdirectory because
3168 # it helps to detect inapplicable dependency modes. For instance
3169 # both Tru64's cc and ICC support -MD to output dependencies as a
3170 # side effect of compilation, but ICC will put the dependencies in
3171 # the current directory while Tru64 will put them in the object
3172 # directory.
3173 mkdir sub
252b5132 3174
42ecbf5e
DJ
3175 am_cv_CC_dependencies_compiler_type=none
3176 if test "$am_compiler_list" = ""; then
3177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3178 fi
3179 for depmode in $am_compiler_list; do
3180 # Setup a source with many dependencies, because some compilers
3181 # like to wrap large dependency lists on column 80 (with \), and
3182 # we should not choose a depcomp mode which is confused by this.
3183 #
3184 # We need to recreate these files for each test, as the compiler may
3185 # overwrite some of them when testing with obscure command lines.
3186 # This happens at least with the AIX C compiler.
3187 : > sub/conftest.c
3188 for i in 1 2 3 4 5 6; do
3189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3191 # Solaris 8's {/usr,}/bin/sh.
3192 touch sub/conftst$i.h
3193 done
3194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3195
3196 case $depmode in
3197 nosideeffect)
3198 # after this tag, mechanisms are not by side-effect, so they'll
3199 # only be used when explicitly requested
3200 if test "x$enable_dependency_tracking" = xyes; then
3201 continue
3202 else
3203 break
3204 fi
3205 ;;
3206 none) break ;;
3207 esac
3208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3209 # mode. It turns out that the SunPro C++ compiler does not properly
3210 # handle `-M -o', and we need to detect this.
3211 if depmode=$depmode \
3212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3215 >/dev/null 2>conftest.err &&
3216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3219 # icc doesn't choke on unknown options, it will just issue warnings
3220 # or remarks (even with -Werror). So we grep stderr for any message
3221 # that says an option was ignored or not supported.
3222 # When given -MP, icc 7.0 and 7.1 complain thusly:
3223 # icc: Command line warning: ignoring option '-M'; no argument required
3224 # The diagnosis changed in icc 8.0:
3225 # icc: Command line remark: option '-MP' not supported
3226 if (grep 'ignoring option' conftest.err ||
3227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3228 am_cv_CC_dependencies_compiler_type=$depmode
3229 break
3230 fi
3231 fi
3232 done
3233
3234 cd ..
3235 rm -rf conftest.dir
252b5132 3236else
42ecbf5e 3237 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3238fi
3239
252b5132 3240fi
42ecbf5e
DJ
3241echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3242echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3243CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3244
3245
252b5132 3246
42ecbf5e
DJ
3247if
3248 test "x$enable_dependency_tracking" != xno \
3249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3250 am__fastdepCC_TRUE=
3251 am__fastdepCC_FALSE='#'
252b5132 3252else
42ecbf5e
DJ
3253 am__fastdepCC_TRUE='#'
3254 am__fastdepCC_FALSE=
252b5132
RH
3255fi
3256
3257
3258
42ecbf5e 3259
d45dc31f
SE
3260ac_ext=c
3261ac_cpp='$CPP $CPPFLAGS'
3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268echo "$as_me:$LINENO: checking for $ac_word" >&5
3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270if test "${ac_cv_prog_CC+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3272else
d45dc31f
SE
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3275else
d45dc31f
SE
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287done
3288done
ceae3e33 3289
d45dc31f
SE
3290fi
3291fi
3292CC=$ac_cv_prog_CC
3293if test -n "$CC"; then
3294 echo "$as_me:$LINENO: result: $CC" >&5
3295echo "${ECHO_T}$CC" >&6
252b5132 3296else
d45dc31f
SE
3297 echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
252b5132 3299fi
d45dc31f
SE
3300
3301fi
3302if test -z "$ac_cv_prog_CC"; then
3303 ac_ct_CC=$CC
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305set dummy gcc; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3309 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3310else
d45dc31f
SE
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3313else
d45dc31f
SE
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="gcc"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325done
3326done
3327
252b5132
RH
3328fi
3329fi
d45dc31f
SE
3330ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331if test -n "$ac_ct_CC"; then
3332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3333echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3334else
42ecbf5e
DJ
3335 echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
252b5132 3337fi
d45dc31f
SE
3338
3339 CC=$ac_ct_CC
3340else
3341 CC="$ac_cv_prog_CC"
3342fi
3343
3344if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347set dummy ${ac_tool_prefix}cc; ac_word=$2
3348echo "$as_me:$LINENO: checking for $ac_word" >&5
3349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3351 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3352else
d45dc31f
SE
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3355else
d45dc31f
SE
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_CC="${ac_tool_prefix}cc"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367done
3368done
3369
252b5132
RH
3370fi
3371fi
d45dc31f
SE
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
3374 echo "$as_me:$LINENO: result: $CC" >&5
3375echo "${ECHO_T}$CC" >&6
ac48eca1 3376else
d45dc31f
SE
3377 echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
ac48eca1 3379fi
ac48eca1 3380
d45dc31f
SE
3381fi
3382if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "cc", so it can be a program name with args.
3385set dummy cc; ac_word=$2
3386echo "$as_me:$LINENO: checking for $ac_word" >&5
3387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3389 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3390else
d45dc31f
SE
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3393else
d45dc31f
SE
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="cc"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405done
3406done
3407
252b5132 3408fi
d45dc31f
SE
3409fi
3410ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411if test -n "$ac_ct_CC"; then
3412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3413echo "${ECHO_T}$ac_ct_CC" >&6
3414else
3415 echo "$as_me:$LINENO: result: no" >&5
3416echo "${ECHO_T}no" >&6
252b5132
RH
3417fi
3418
d45dc31f
SE
3419 CC=$ac_ct_CC
3420else
3421 CC="$ac_cv_prog_CC"
3422fi
252b5132 3423
d45dc31f
SE
3424fi
3425if test -z "$CC"; then
3426 # Extract the first word of "cc", so it can be a program name with args.
3427set dummy cc; ac_word=$2
3428echo "$as_me:$LINENO: checking for $ac_word" >&5
3429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430if test "${ac_cv_prog_CC+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3432else
d45dc31f
SE
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436 ac_prog_rejected=no
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3445 ac_prog_rejected=yes
3446 continue
3447 fi
3448 ac_cv_prog_CC="cc"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452done
3453done
3454
3455if test $ac_prog_rejected = yes; then
3456 # We found a bogon in the path, so make sure we never use it.
3457 set dummy $ac_cv_prog_CC
3458 shift
3459 if test $# != 0; then
3460 # We chose a different compiler from the bogus one.
3461 # However, it has the same basename, so the bogon will be chosen
3462 # first if we set CC to just the basename; use the full file name.
3463 shift
3464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3465 fi
3466fi
3467fi
3468fi
3469CC=$ac_cv_prog_CC
3470if test -n "$CC"; then
3471 echo "$as_me:$LINENO: result: $CC" >&5
3472echo "${ECHO_T}$CC" >&6
3473else
3474 echo "$as_me:$LINENO: result: no" >&5
3475echo "${ECHO_T}no" >&6
252b5132
RH
3476fi
3477
d45dc31f
SE
3478fi
3479if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 for ac_prog in cl
3482 do
3483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3485echo "$as_me:$LINENO: checking for $ac_word" >&5
3486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3488 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3489else
d45dc31f
SE
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504done
3505done
ac48eca1 3506
d45dc31f
SE
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511 echo "$as_me:$LINENO: result: $CC" >&5
3512echo "${ECHO_T}$CC" >&6
3513else
3514 echo "$as_me:$LINENO: result: no" >&5
3515echo "${ECHO_T}no" >&6
3516fi
ac48eca1 3517
d45dc31f
SE
3518 test -n "$CC" && break
3519 done
3520fi
3521if test -z "$CC"; then
3522 ac_ct_CC=$CC
3523 for ac_prog in cl
3524do
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526set dummy $ac_prog; ac_word=$2
3527echo "$as_me:$LINENO: checking for $ac_word" >&5
3528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532 if test -n "$ac_ct_CC"; then
3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534else
3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_CC="$ac_prog"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546done
3547done
ac48eca1 3548
d45dc31f
SE
3549fi
3550fi
3551ac_ct_CC=$ac_cv_prog_ac_ct_CC
3552if test -n "$ac_ct_CC"; then
3553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3554echo "${ECHO_T}$ac_ct_CC" >&6
3555else
3556 echo "$as_me:$LINENO: result: no" >&5
3557echo "${ECHO_T}no" >&6
3558fi
ac48eca1 3559
d45dc31f
SE
3560 test -n "$ac_ct_CC" && break
3561done
ac48eca1 3562
d45dc31f
SE
3563 CC=$ac_ct_CC
3564fi
ac48eca1
AO
3565
3566fi
ac48eca1 3567
ac48eca1 3568
7a283e07
RW
3569test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3570echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3572See \`config.log' for more details." >&5
3573echo "$as_me: error: no acceptable C compiler found in \$PATH
3574See \`config.log' for more details." >&2;}
7a283e07 3575 { (exit 1); exit 1; }; }; }
ac48eca1 3576
d45dc31f
SE
3577# Provide some information about the compiler.
3578echo "$as_me:$LINENO:" \
3579 "checking for C compiler version" >&5
3580ac_compiler=`set X $ac_compile; echo $2`
3581{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3582 (eval $ac_compiler --version </dev/null >&5) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }
3586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3587 (eval $ac_compiler -v </dev/null >&5) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3592 (eval $ac_compiler -V </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
ac48eca1 3596
d45dc31f
SE
3597echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3598echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3599if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
d45dc31f
SE
3602 cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h. */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h. */
bdcfeba5 3608
d45dc31f
SE
3609int
3610main ()
3611{
3612#ifndef __GNUC__
3613 choke me
3614#endif
bdcfeba5 3615
d45dc31f
SE
3616 ;
3617 return 0;
3618}
3619_ACEOF
3620rm -f conftest.$ac_objext
3621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
1b315056 3629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d45dc31f
SE
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_compiler_gnu=yes
3642else
3643 echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3645
d45dc31f 3646ac_compiler_gnu=no
bdcfeba5 3647fi
d45dc31f
SE
3648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3649ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3650
bdcfeba5 3651fi
d45dc31f
SE
3652echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3653echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3654GCC=`test $ac_compiler_gnu = yes && echo yes`
3655ac_test_CFLAGS=${CFLAGS+set}
3656ac_save_CFLAGS=$CFLAGS
3657CFLAGS="-g"
3658echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3659echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3660if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3661 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3662else
d45dc31f
SE
3663 cat >conftest.$ac_ext <<_ACEOF
3664/* confdefs.h. */
3665_ACEOF
3666cat confdefs.h >>conftest.$ac_ext
3667cat >>conftest.$ac_ext <<_ACEOF
3668/* end confdefs.h. */
ac48eca1 3669
d45dc31f
SE
3670int
3671main ()
3672{
ac48eca1 3673
d45dc31f
SE
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext
3679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
1b315056 3687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d45dc31f
SE
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; } &&
3693 { ac_try='test -s conftest.$ac_objext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 ac_cv_prog_cc_g=yes
ac48eca1 3700else
d45dc31f
SE
3701 echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3703
d45dc31f 3704ac_cv_prog_cc_g=no
ac48eca1 3705fi
d45dc31f 3706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3707fi
d45dc31f
SE
3708echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3709echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3710if test "$ac_test_CFLAGS" = set; then
3711 CFLAGS=$ac_save_CFLAGS
3712elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3714 CFLAGS="-g -O2"
ac48eca1 3715 else
d45dc31f 3716 CFLAGS="-g"
42ecbf5e 3717 fi
ac48eca1 3718else
d45dc31f
SE
3719 if test "$GCC" = yes; then
3720 CFLAGS="-O2"
3721 else
3722 CFLAGS=
42ecbf5e 3723 fi
ac48eca1 3724fi
d45dc31f
SE
3725echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3726echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3727if test "${ac_cv_prog_cc_stdc+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 ac_cv_prog_cc_stdc=no
3731ac_save_CC=$CC
3732cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3733/* confdefs.h. */
3734_ACEOF
3735cat confdefs.h >>conftest.$ac_ext
3736cat >>conftest.$ac_ext <<_ACEOF
3737/* end confdefs.h. */
d45dc31f
SE
3738#include <stdarg.h>
3739#include <stdio.h>
3740#include <sys/types.h>
3741#include <sys/stat.h>
3742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743struct buf { int x; };
3744FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745static char *e (p, i)
3746 char **p;
3747 int i;
3748{
3749 return p[i];
3750}
3751static char *f (char * (*g) (char **, int), char **p, ...)
3752{
3753 char *s;
3754 va_list v;
3755 va_start (v,p);
3756 s = g (p, va_arg (v,int));
3757 va_end (v);
3758 return s;
3759}
3760
3761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
3764 as 'x'. The following induces an error, until -std1 is added to get
3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
3767 that's true only with -std1. */
3768int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3769
d45dc31f
SE
3770int test (int i, double x);
3771struct s1 {int (*f) (int a);};
3772struct s2 {int (*f) (double a);};
3773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774int argc;
3775char **argv;
42ecbf5e
DJ
3776int
3777main ()
3778{
d45dc31f 3779return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3780 ;
3781 return 0;
3782}
3783_ACEOF
d45dc31f
SE
3784# Don't try gcc -ansi; that turns off useful extensions and
3785# breaks some systems' header files.
3786# AIX -qlanglvl=ansi
3787# Ultrix and OSF/1 -std1
3788# HP-UX 10.20 and later -Ae
3789# HP-UX older versions -Aa -D_HPUX_SOURCE
3790# SVR4 -Xc -D__EXTENSIONS__
3791for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792do
3793 CC="$ac_save_CC $ac_arg"
3794 rm -f conftest.$ac_objext
3795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
1b315056 3803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
d45dc31f 3809 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
d45dc31f
SE
3815 ac_cv_prog_cc_stdc=$ac_arg
3816break
252b5132 3817else
42ecbf5e
DJ
3818 echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
252b5132 3821fi
d45dc31f
SE
3822rm -f conftest.err conftest.$ac_objext
3823done
3824rm -f conftest.$ac_ext conftest.$ac_objext
3825CC=$ac_save_CC
ac48eca1 3826
252b5132 3827fi
252b5132 3828
d45dc31f
SE
3829case "x$ac_cv_prog_cc_stdc" in
3830 x|xno)
3831 echo "$as_me:$LINENO: result: none needed" >&5
3832echo "${ECHO_T}none needed" >&6 ;;
3833 *)
3834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3835echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3836 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3837esac
3838
d45dc31f
SE
3839# Some people use a C++ compiler to compile C. Since we use `exit',
3840# in C++ we need to declare it. In case someone uses the same compiler
3841# for both compiling C and C++ we need to have the C++ compiler decide
3842# the declaration of exit, since it's the most demanding environment.
3843cat >conftest.$ac_ext <<_ACEOF
3844#ifndef __cplusplus
3845 choke me
3846#endif
42ecbf5e 3847_ACEOF
d45dc31f
SE
3848rm -f conftest.$ac_objext
3849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
1b315056 3857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d45dc31f
SE
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 for ac_declaration in \
3870 '' \
3871 'extern "C" void std::exit (int) throw (); using std::exit;' \
3872 'extern "C" void std::exit (int); using std::exit;' \
3873 'extern "C" void exit (int) throw ();' \
3874 'extern "C" void exit (int);' \
3875 'void exit (int);'
3876do
3877 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h. */
3883$ac_declaration
3884#include <stdlib.h>
3885int
3886main ()
42ecbf5e 3887{
d45dc31f
SE
3888exit (42);
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893rm -f conftest.$ac_objext
3894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
1b315056 3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d45dc31f
SE
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 :
3915else
3916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3918
d45dc31f
SE
3919continue
3920fi
3921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h. */
3928$ac_declaration
3929int
3930main ()
3931{
3932exit (42);
3933 ;
3934 return 0;
3935}
3936_ACEOF
3937rm -f conftest.$ac_objext
3938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
1b315056 3946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d45dc31f
SE
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 break
3959else
3960 echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3962
d45dc31f
SE
3963fi
3964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965done
3966rm -f conftest*
3967if test -n "$ac_declaration"; then
3968 echo '#ifdef __cplusplus' >>confdefs.h
3969 echo $ac_declaration >>confdefs.h
3970 echo '#endif' >>confdefs.h
3971fi
ac48eca1 3972
d45dc31f
SE
3973else
3974 echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3976
d45dc31f
SE
3977fi
3978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979ac_ext=c
3980ac_cpp='$CPP $CPPFLAGS'
3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3984
3985
d45dc31f
SE
3986cat >>confdefs.h <<\_ACEOF
3987#define _GNU_SOURCE 1
3988_ACEOF
42ecbf5e 3989
ac48eca1 3990
d7040cdb
SE
3991
3992
3993macro_version='2.1a'
3994macro_revision='1.2435'
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007ltmain="$ac_aux_dir/ltmain.sh"
4008
4009# Set options
4010
4011enable_dlopen=no
4012
4013
4014enable_win32_dll=no
4015
4016
d45dc31f
SE
4017# Check whether --enable-shared or --disable-shared was given.
4018if test "${enable_shared+set}" = set; then
4019 enableval="$enable_shared"
4020 p=${PACKAGE-default}
d7040cdb
SE
4021 case $enableval in
4022 yes) enable_shared=yes ;;
4023 no) enable_shared=no ;;
4024 *)
4025 enable_shared=no
4026 # Look at the argument we got. We use all the common list separators.
4027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4028 for pkg in $enableval; do
4029 IFS="$lt_save_ifs"
4030 if test "X$pkg" = "X$p"; then
4031 enable_shared=yes
4032 fi
4033 done
4034 IFS="$lt_save_ifs"
4035 ;;
4036 esac
d45dc31f
SE
4037else
4038 enable_shared=yes
4039fi;
d7040cdb
SE
4040
4041
4042
4043
4044
4045
4046
4047
d45dc31f
SE
4048# Check whether --enable-static or --disable-static was given.
4049if test "${enable_static+set}" = set; then
4050 enableval="$enable_static"
4051 p=${PACKAGE-default}
d7040cdb
SE
4052 case $enableval in
4053 yes) enable_static=yes ;;
4054 no) enable_static=no ;;
4055 *)
4056 enable_static=no
4057 # Look at the argument we got. We use all the common list separators.
4058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4059 for pkg in $enableval; do
4060 IFS="$lt_save_ifs"
4061 if test "X$pkg" = "X$p"; then
4062 enable_static=yes
4063 fi
4064 done
4065 IFS="$lt_save_ifs"
4066 ;;
4067 esac
d45dc31f
SE
4068else
4069 enable_static=yes
4070fi;
d7040cdb
SE
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080# Check whether --with-pic or --without-pic was given.
4081if test "${with_pic+set}" = set; then
4082 withval="$with_pic"
4083 pic_mode="$withval"
4084else
4085 pic_mode=default
4086fi;
4087
4088test -z "$pic_mode" && pic_mode=default
4089
4090
4091
4092
4093
4094
4095
d45dc31f
SE
4096# Check whether --enable-fast-install or --disable-fast-install was given.
4097if test "${enable_fast_install+set}" = set; then
4098 enableval="$enable_fast_install"
4099 p=${PACKAGE-default}
d7040cdb
SE
4100 case $enableval in
4101 yes) enable_fast_install=yes ;;
4102 no) enable_fast_install=no ;;
4103 *)
4104 enable_fast_install=no
4105 # Look at the argument we got. We use all the common list separators.
4106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4107 for pkg in $enableval; do
4108 IFS="$lt_save_ifs"
4109 if test "X$pkg" = "X$p"; then
4110 enable_fast_install=yes
4111 fi
4112 done
4113 IFS="$lt_save_ifs"
4114 ;;
4115 esac
d45dc31f
SE
4116else
4117 enable_fast_install=yes
42ecbf5e 4118fi;
ad22bfe8 4119
d7040cdb
SE
4120
4121
4122
4123
4124
4125
4126
4127echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4128echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4129if test "${lt_cv_path_SED+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132 # Loop through the user's path and test for sed and gsed.
4133# Then use that list of sed's as ones to test for truncation.
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for lt_ac_prog in sed gsed; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4142 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4143 fi
4144 done
4145 done
4146done
4147IFS=$as_save_IFS
4148lt_ac_max=0
4149lt_ac_count=0
4150# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4151# along with /bin/sed that truncates output.
4152for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4153 test ! -f $lt_ac_sed && continue
4154 cat /dev/null > conftest.in
4155 lt_ac_count=0
4156 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4157 # Check for GNU sed and select it if it is found.
4158 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4159 lt_cv_path_SED=$lt_ac_sed
4160 break
4161 fi
4162 while true; do
4163 cat conftest.in conftest.in >conftest.tmp
4164 mv conftest.tmp conftest.in
4165 cp conftest.in conftest.nl
4166 echo >>conftest.nl
4167 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4168 cmp -s conftest.out conftest.nl || break
4169 # 10000 chars as input seems more than enough
4170 test $lt_ac_count -gt 10 && break
4171 lt_ac_count=`expr $lt_ac_count + 1`
4172 if test $lt_ac_count -gt $lt_ac_max; then
4173 lt_ac_max=$lt_ac_count
4174 lt_cv_path_SED=$lt_ac_sed
4175 fi
4176 done
4177done
4178
4179fi
4180
4181SED=$lt_cv_path_SED
4182
4183echo "$as_me:$LINENO: result: $SED" >&5
4184echo "${ECHO_T}$SED" >&6
4185
4186test -z "$SED" && SED=sed
4187Xsed="$SED -e 1s/^X//"
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199echo "$as_me:$LINENO: checking for egrep" >&5
4200echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4201if test "${ac_cv_prog_egrep+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4205 then ac_cv_prog_egrep='grep -E'
4206 else ac_cv_prog_egrep='egrep'
4207 fi
4208fi
4209echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4210echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4211 EGREP=$ac_cv_prog_egrep
4212
4213
4214echo "$as_me:$LINENO: checking for fgrep" >&5
4215echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4216if test "${ac_cv_prog_fgrep+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4220 then ac_cv_prog_fgrep='grep -F'
4221 else ac_cv_prog_fgrep='fgrep'
4222 fi
4223fi
4224echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4225echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4226 FGREP=$ac_cv_prog_fgrep
4227
4228
4229test -z "$GREP" && GREP=grep
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
d45dc31f
SE
4249# Check whether --with-gnu-ld or --without-gnu-ld was given.
4250if test "${with_gnu_ld+set}" = set; then
4251 withval="$with_gnu_ld"
4252 test "$withval" = no || with_gnu_ld=yes
4253else
4254 with_gnu_ld=no
42ecbf5e 4255fi;
d45dc31f
SE
4256ac_prog=ld
4257if test "$GCC" = yes; then
4258 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4259 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4260echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d45dc31f
SE
4261 case $host in
4262 *-*-mingw*)
4263 # gcc leaves a trailing carriage return which upsets mingw
4264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4265 *)
4266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4267 esac
4268 case $ac_prog in
4269 # Accept absolute paths.
d7040cdb 4270 [\\/]* | ?:[\\/]*)
d45dc31f 4271 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4272 # Canonicalize the pathname of ld
4273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
4276 done
4277 test -z "$LD" && LD="$ac_prog"
4278 ;;
4279 "")
4280 # If it fails, then pretend we aren't using GCC.
4281 ac_prog=ld
4282 ;;
4283 *)
4284 # If it is relative, then search for the first ld in PATH.
4285 with_gnu_ld=unknown
4286 ;;
4287 esac
4288elif test "$with_gnu_ld" = yes; then
4289 echo "$as_me:$LINENO: checking for GNU ld" >&5
4290echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4291else
4292 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4293echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4294fi
4295if test "${lt_cv_path_LD+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 if test -z "$LD"; then
d7040cdb 4299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 4300 for ac_dir in $PATH; do
d7040cdb 4301 IFS="$lt_save_ifs"
d45dc31f
SE
4302 test -z "$ac_dir" && ac_dir=.
4303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4304 lt_cv_path_LD="$ac_dir/$ac_prog"
4305 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4306 # but apparently some variants of GNU ld only accept -v.
d45dc31f 4307 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4309 *GNU* | *'with BFD'*)
d45dc31f 4310 test "$with_gnu_ld" != no && break
d7040cdb
SE
4311 ;;
4312 *)
d45dc31f 4313 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4314 ;;
4315 esac
d45dc31f
SE
4316 fi
4317 done
d7040cdb 4318 IFS="$lt_save_ifs"
d45dc31f
SE
4319else
4320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4321fi
4322fi
1ad12f97 4323
d45dc31f
SE
4324LD="$lt_cv_path_LD"
4325if test -n "$LD"; then
4326 echo "$as_me:$LINENO: result: $LD" >&5
4327echo "${ECHO_T}$LD" >&6
4328else
4329 echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6
4331fi
4332test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4333echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4334 { (exit 1); exit 1; }; }
4335echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4336echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4337if test "${lt_cv_prog_gnu_ld+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
d7040cdb
SE
4340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4341case `$LD -v 2>&1 </dev/null` in
4342*GNU* | *'with BFD'*)
d45dc31f 4343 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4344 ;;
4345*)
d45dc31f 4346 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4347 ;;
4348esac
d45dc31f
SE
4349fi
4350echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4351echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4352with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 4353
d45dc31f 4354
42ecbf5e 4355
d7040cdb
SE
4356
4357
4358
4359
4360
4361
4362
4363echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4364echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
4365if test "${lt_cv_path_NM+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 if test -n "$NM"; then
4369 # Let the user override the test.
4370 lt_cv_path_NM="$NM"
4371else
d7040cdb
SE
4372 lt_nm_to_check="${ac_tool_prefix}nm"
4373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4374 lt_nm_to_check="$lt_nm_to_check nm"
4375 fi
4376 for lt_tmp_nm in $lt_nm_to_check; do
4377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4379 IFS="$lt_save_ifs"
4380 test -z "$ac_dir" && ac_dir=.
4381 tmp_nm="$ac_dir/$lt_tmp_nm"
4382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4383 # Check to see if the nm accepts a BSD-compat flag.
4384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4385 # nm: unknown option "B" ignored
4386 # Tru64's nm complains that /dev/null is an invalid object file
4387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4388 */dev/null* | *'Invalid file or object type'*)
4389 lt_cv_path_NM="$tmp_nm -B"
4390 break
4391 ;;
4392 *)
4393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4394 */dev/null*)
4395 lt_cv_path_NM="$tmp_nm -p"
4396 break
4397 ;;
4398 *)
4399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4400 continue # so that we can try to find one that supports BSD flags
4401 ;;
4402 esac
4403 ;;
4404 esac
d45dc31f 4405 fi
d7040cdb
SE
4406 done
4407 IFS="$lt_save_ifs"
d45dc31f 4408 done
d7040cdb 4409 : ${lt_cv_path_NM=no}
d45dc31f 4410fi
a541e3ce 4411fi
d7040cdb
SE
4412echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4413echo "${ECHO_T}$lt_cv_path_NM" >&6
4414if test "$lt_cv_path_NM" != "no"; then
4415 NM="$lt_cv_path_NM"
d45dc31f 4416else
d7040cdb
SE
4417 # Didn't find any BSD compatible name lister, look for dumpbin.
4418 if test -n "$ac_tool_prefix"; then
4419 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4420 do
4421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
d7040cdb
SE
4428 if test -n "$DUMPBIN"; then
4429 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443done
398ee8f1 4444
d7040cdb
SE
4445fi
4446fi
4447DUMPBIN=$ac_cv_prog_DUMPBIN
4448if test -n "$DUMPBIN"; then
4449 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4450echo "${ECHO_T}$DUMPBIN" >&6
4451else
4452 echo "$as_me:$LINENO: result: no" >&5
4453echo "${ECHO_T}no" >&6
4454fi
d15b04bd 4455
d7040cdb
SE
4456 test -n "$DUMPBIN" && break
4457 done
4458fi
4459if test -z "$DUMPBIN"; then
4460 ac_ct_DUMPBIN=$DUMPBIN
4461 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4462do
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464set dummy $ac_prog; ac_word=$2
4465echo "$as_me:$LINENO: checking for $ac_word" >&5
4466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470 if test -n "$ac_ct_DUMPBIN"; then
4471 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
d45dc31f 4483 fi
d7040cdb
SE
4484done
4485done
d15b04bd 4486
d7040cdb
SE
4487fi
4488fi
4489ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4490if test -n "$ac_ct_DUMPBIN"; then
4491 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4492echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4493else
4494 echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6
4496fi
42ecbf5e 4497
d7040cdb
SE
4498 test -n "$ac_ct_DUMPBIN" && break
4499done
4500test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 4501
d7040cdb
SE
4502 DUMPBIN=$ac_ct_DUMPBIN
4503fi
d45dc31f 4504
d45dc31f 4505
d7040cdb
SE
4506 if test "$DUMPBIN" != ":"; then
4507 NM="$DUMPBIN"
42ecbf5e 4508 fi
d7040cdb
SE
4509fi
4510test -z "$NM" && NM=nm
d45dc31f 4511
42ecbf5e 4512
d15b04bd 4513
42ecbf5e 4514
d45dc31f 4515
42ecbf5e 4516
d7040cdb
SE
4517echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4518echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4519if test "${lt_cv_nm_interface+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 lt_cv_nm_interface="BSD nm"
4523 echo "int some_variable = 0;" > conftest.$ac_ext
1b315056 4524 (eval echo "\"\$as_me:4524: $ac_compile\"" >&5)
d7040cdb
SE
4525 (eval "$ac_compile" 2>conftest.err)
4526 cat conftest.err >&5
1b315056 4527 (eval echo "\"\$as_me:4527: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4528 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4529 cat conftest.err >&5
1b315056 4530 (eval echo "\"\$as_me:4530: output\"" >&5)
d7040cdb
SE
4531 cat conftest.out >&5
4532 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4533 lt_cv_nm_interface="MS dumpbin"
4534 fi
4535 rm -f conftest*
42ecbf5e 4536fi
d7040cdb
SE
4537echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4538echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 4539
d7040cdb
SE
4540echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4542LN_S=$as_ln_s
4543if test "$LN_S" = "ln -s"; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546else
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548echo "${ECHO_T}no, using $LN_S" >&6
4549fi
d45dc31f
SE
4550
4551# find the maximum length of command line arguments
4552echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4553echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4554if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
d45dc31f
SE
4557 i=0
4558 teststring="ABCD"
4559
4560 case $build_os in
4561 msdosdjgpp*)
4562 # On DJGPP, this test can blow up pretty badly due to problems in libc
4563 # (any single argument exceeding 2000 bytes causes a buffer overrun
4564 # during glob expansion). Even if it were fixed, the result of this
4565 # check would be larger than it should be.
4566 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4567 ;;
4568
d7040cdb
SE
4569 gnu*)
4570 # Under GNU Hurd, this test is not required because there is
4571 # no limit to the length of command line arguments.
4572 # Libtool will interpret -1 as no limit whatsoever
4573 lt_cv_sys_max_cmd_len=-1;
4574 ;;
4575
d45dc31f
SE
4576 cygwin* | mingw*)
4577 # On Win9x/ME, this test blows up -- it succeeds, but takes
4578 # about 5 minutes as the teststring grows exponentially.
4579 # Worse, since 9x/ME are not pre-emptively multitasking,
4580 # you end up with a "frozen" computer, even though with patience
4581 # the test eventually succeeds (with a max line length of 256k).
4582 # Instead, let's just punt: use the minimum linelength reported by
4583 # all of the supported platforms: 8192 (on NT/2K/XP).
4584 lt_cv_sys_max_cmd_len=8192;
4585 ;;
4586
4587 amigaos*)
4588 # On AmigaOS with pdksh, this test takes hours, literally.
4589 # So we just punt and use a minimum line length of 8192.
4590 lt_cv_sys_max_cmd_len=8192;
4591 ;;
4592
4593 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4594 # This has been around since 386BSD, at least. Likely further.
4595 if test -x /sbin/sysctl; then
4596 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4597 elif test -x /usr/sbin/sysctl; then
4598 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4599 else
d7040cdb 4600 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
4601 fi
4602 # And add a safety zone
4603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4605 ;;
d7040cdb
SE
4606
4607 interix*)
4608 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4609 lt_cv_sys_max_cmd_len=196608
4610 ;;
4611
4612 osf*)
4613 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4614 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4615 # nice to cause kernel panics so lets avoid the loop below.
4616 # First set a reasonable default.
4617 lt_cv_sys_max_cmd_len=16384
4618 #
4619 if test -x /sbin/sysconfig; then
4620 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4621 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4622 esac
4623 fi
4624 ;;
4625 sco3.2v5*)
4626 lt_cv_sys_max_cmd_len=102400
4627 ;;
4628 sysv5* | sco5v6* | sysv4.2uw2*)
4629 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4630 if test -n "$kargmax"; then
4631 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4632 else
4633 lt_cv_sys_max_cmd_len=32768
4634 fi
4635 ;;
4636 *)
5ba684e2
NC
4637 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4638 if test -n $lt_cv_sys_max_cmd_len; then
4639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4641 else
4642 # Make teststring a little bigger before we do anything with it.
4643 # a 1K string should be a reasonable start.
4644 for i in 1 2 3 4 5 6 7 8 ; do
4645 teststring=$teststring$teststring
4646 done
4647 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4648 # If test is not a shell built-in, we'll probably end up computing a
4649 # maximum length that is only half of the actual maximum length, but
4650 # we can't tell.
4651 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4652 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4653 test $i != 17 # 1/2 MB should be enough
4654 do
4655 i=`expr $i + 1`
4656 teststring=$teststring$teststring
4657 done
4658 # Only check the string length outside the loop.
4659 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4660 teststring=
4661 # Add a significant safety factor because C++ compilers can tack on
4662 # massive amounts of additional arguments before passing them to the
4663 # linker. It appears as though 1/2 is a usable value.
4664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4665 fi
d7040cdb 4666 ;;
d45dc31f 4667 esac
42ecbf5e 4668
42ecbf5e
DJ
4669fi
4670
d7040cdb 4671if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
4672 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4673echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 4674else
d45dc31f
SE
4675 echo "$as_me:$LINENO: result: none" >&5
4676echo "${ECHO_T}none" >&6
252b5132 4677fi
d7040cdb 4678max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 4679
d45dc31f 4680
42ecbf5e 4681
d45dc31f 4682
d45dc31f 4683
d7040cdb
SE
4684
4685
4686: ${CP="cp -f"}
4687: ${MV="mv -f"}
4688: ${RM="rm -f"}
4689
4690echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4691echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4692# Try some XSI features
4693xsi_shell=no
4694( _lt_dummy="a/b/c"
4695 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4696 = c,a/b,, ) >/dev/null 2>&1 \
4697 && xsi_shell=yes
4698echo "$as_me:$LINENO: result: $xsi_shell" >&5
4699echo "${ECHO_T}$xsi_shell" >&6
4700
4701
4702echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4703echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4704lt_shell_append=no
4705( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4706 >/dev/null 2>&1 \
4707 && lt_shell_append=yes
4708echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4709echo "${ECHO_T}$lt_shell_append" >&6
4710
4711
4712if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4713 lt_unset=unset
252b5132 4714else
d7040cdb 4715 lt_unset=false
252b5132
RH
4716fi
4717
d7040cdb
SE
4718
4719
4720
4721
4722# test EBCDIC or ASCII
4723case `echo X|tr X '\101'` in
4724 A) # ASCII based system
4725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4726 lt_SP2NL='tr \040 \012'
4727 lt_NL2SP='tr \015\012 \040\040'
4728 ;;
4729 *) # EBCDIC based system
4730 lt_SP2NL='tr \100 \n'
4731 lt_NL2SP='tr \r\n \100\100'
4732 ;;
4733esac
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4744echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4745if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 4746 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4747else
d7040cdb
SE
4748 lt_cv_ld_reload_flag='-r'
4749fi
4750echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4751echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4752reload_flag=$lt_cv_ld_reload_flag
4753case $reload_flag in
4754"" | " "*) ;;
4755*) reload_flag=" $reload_flag" ;;
4756esac
4757reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758case $host_os in
4759 darwin*)
4760 if test "$GCC" = yes; then
4761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762 else
4763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4764 fi
4765 ;;
4766esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4778echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4779if test "${lt_cv_deplibs_check_method+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782 lt_cv_file_magic_cmd='$MAGIC_CMD'
4783lt_cv_file_magic_test_file=
4784lt_cv_deplibs_check_method='unknown'
4785# Need to set the preceding variable on all platforms that support
4786# interlibrary dependencies.
4787# 'none' -- dependencies not supported.
4788# `unknown' -- same as none, but documents that we really don't know.
4789# 'pass_all' -- all dependencies passed with no checks.
4790# 'test_compile' -- check by making test program.
4791# 'file_magic [[regex]]' -- check by looking for files in library path
4792# which responds to the $file_magic_cmd with a given extended regex.
4793# If you have `file' or equivalent on your system and you're not sure
4794# whether `pass_all' will *always* work, you probably want this one.
4795
4796case $host_os in
50e7d84b 4797aix[4-9]*)
d7040cdb
SE
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801beos*)
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805bsdi[45]*)
4806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807 lt_cv_file_magic_cmd='/usr/bin/file -L'
4808 lt_cv_file_magic_test_file=/shlib/libc.so
4809 ;;
4810
4811cygwin*)
4812 # func_win32_libid is a shell function defined in ltmain.sh
4813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4814 lt_cv_file_magic_cmd='func_win32_libid'
4815 ;;
4816
4817mingw* | pw32*)
4818 # Base MSYS/MinGW do not provide the 'file' command needed by
4819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4820 # unless we find 'file', for example because we are cross-compiling.
4821 if ( file / ) >/dev/null 2>&1; then
4822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4823 lt_cv_file_magic_cmd='func_win32_libid'
4824 else
4825 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4826 lt_cv_file_magic_cmd='$OBJDUMP -f'
4827 fi
4828 ;;
4829
4830darwin* | rhapsody*)
4831 lt_cv_deplibs_check_method=pass_all
d45dc31f 4832 ;;
d7040cdb
SE
4833
4834freebsd* | dragonfly*)
4835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4836 case $host_cpu in
4837 i*86 )
4838 # Not sure whether the presence of OpenBSD here was a mistake.
4839 # Let's accept both of them until this is cleared up.
4840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4841 lt_cv_file_magic_cmd=/usr/bin/file
4842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843 ;;
4844 esac
4845 else
4846 lt_cv_deplibs_check_method=pass_all
4847 fi
4848 ;;
4849
4850gnu*)
4851 lt_cv_deplibs_check_method=pass_all
d45dc31f 4852 ;;
d7040cdb
SE
4853
4854hpux10.20* | hpux11*)
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 case $host_cpu in
4857 ia64*)
4858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4859 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4860 ;;
4861 hppa*64*)
4862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4863 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4864 ;;
d45dc31f 4865 *)
d7040cdb
SE
4866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4867 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4868 ;;
4869 esac
4870 ;;
42ecbf5e 4871
d7040cdb
SE
4872interix[3-9]*)
4873 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4875 ;;
42ecbf5e 4876
d7040cdb
SE
4877irix5* | irix6* | nonstopux*)
4878 case $LD in
4879 *-32|*"-32 ") libmagic=32-bit;;
4880 *-n32|*"-n32 ") libmagic=N32;;
4881 *-64|*"-64 ") libmagic=64-bit;;
4882 *) libmagic=never-match;;
4883 esac
4884 lt_cv_deplibs_check_method=pass_all
d45dc31f 4885 ;;
42ecbf5e 4886
d7040cdb
SE
4887# This must be Linux ELF.
4888linux* | k*bsd*-gnu)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
252b5132 4891
d7040cdb
SE
4892netbsd*)
4893 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 4895 else
d7040cdb 4896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 4897 fi
d7040cdb
SE
4898 ;;
4899
4900newos6*)
4901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4902 lt_cv_file_magic_cmd=/usr/bin/file
4903 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4904 ;;
4905
4906*nto* | *qnx*)
4907 lt_cv_deplibs_check_method=pass_all
4908 ;;
42ecbf5e 4909
d7040cdb
SE
4910openbsd*)
4911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4913 else
4914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
4915 fi
4916 ;;
d7040cdb
SE
4917
4918osf3* | osf4* | osf5*)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921
4922rdos*)
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925
4926solaris*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4931 lt_cv_deplibs_check_method=pass_all
4932 ;;
4933
4934sysv4 | sysv4.3*)
4935 case $host_vendor in
4936 motorola)
4937 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]'
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4939 ;;
4940 ncr)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943 sequent)
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4946 ;;
4947 sni)
4948 lt_cv_file_magic_cmd='/bin/file'
4949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950 lt_cv_file_magic_test_file=/lib/libc.so
4951 ;;
4952 siemens)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955 pc)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958 esac
4959 ;;
4960
4961tpf*)
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
d45dc31f 4964esac
42ecbf5e 4965
d7040cdb
SE
4966fi
4967echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4968echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4969file_magic_cmd=$lt_cv_file_magic_cmd
4970deplibs_check_method=$lt_cv_deplibs_check_method
4971test -z "$deplibs_check_method" && deplibs_check_method=unknown
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
d45dc31f 4984if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4985 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4986set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
4987echo "$as_me:$LINENO: checking for $ac_word" >&5
4988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4989if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 4990 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4991else
d7040cdb
SE
4992 if test -n "$AR"; then
4993 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5002 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007done
42ecbf5e 5008
42ecbf5e 5009fi
d45dc31f 5010fi
d7040cdb
SE
5011AR=$ac_cv_prog_AR
5012if test -n "$AR"; then
5013 echo "$as_me:$LINENO: result: $AR" >&5
5014echo "${ECHO_T}$AR" >&6
d45dc31f
SE
5015else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018fi
42ecbf5e
DJ
5019
5020fi
d7040cdb
SE
5021if test -z "$ac_cv_prog_AR"; then
5022 ac_ct_AR=$AR
5023 # Extract the first word of "ar", so it can be a program name with args.
5024set dummy ar; ac_word=$2
d45dc31f
SE
5025echo "$as_me:$LINENO: checking for $ac_word" >&5
5026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5027if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
d7040cdb
SE
5030 if test -n "$ac_ct_AR"; then
5031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5032else
d45dc31f
SE
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5040 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
42ecbf5e 5046
d7040cdb 5047 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 5048fi
42ecbf5e 5049fi
d7040cdb
SE
5050ac_ct_AR=$ac_cv_prog_ac_ct_AR
5051if test -n "$ac_ct_AR"; then
5052 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5053echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 5054else
d45dc31f
SE
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
252b5132 5057fi
252b5132 5058
d7040cdb 5059 AR=$ac_ct_AR
d45dc31f 5060else
d7040cdb 5061 AR="$ac_cv_prog_AR"
d45dc31f 5062fi
42ecbf5e 5063
d7040cdb
SE
5064test -z "$AR" && AR=ar
5065test -z "$AR_FLAGS" && AR_FLAGS=cru
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
d45dc31f
SE
5077if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5079set dummy ${ac_tool_prefix}strip; ac_word=$2
5080echo "$as_me:$LINENO: checking for $ac_word" >&5
5081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082if test "${ac_cv_prog_STRIP+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085 if test -n "$STRIP"; then
5086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5087else
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
42ecbf5e 5090do
d45dc31f
SE
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5098 fi
5099done
5100done
5101
5102fi
5103fi
5104STRIP=$ac_cv_prog_STRIP
5105if test -n "$STRIP"; then
5106 echo "$as_me:$LINENO: result: $STRIP" >&5
5107echo "${ECHO_T}$STRIP" >&6
252b5132 5108else
d45dc31f
SE
5109 echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111fi
42ecbf5e 5112
252b5132 5113fi
d45dc31f
SE
5114if test -z "$ac_cv_prog_STRIP"; then
5115 ac_ct_STRIP=$STRIP
5116 # Extract the first word of "strip", so it can be a program name with args.
5117set dummy strip; ac_word=$2
5118echo "$as_me:$LINENO: checking for $ac_word" >&5
5119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122else
5123 if test -n "$ac_ct_STRIP"; then
5124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_ac_ct_STRIP="strip"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137done
42ecbf5e 5138done
42ecbf5e 5139
d45dc31f
SE
5140 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5141fi
5142fi
5143ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5144if test -n "$ac_ct_STRIP"; then
5145 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5146echo "${ECHO_T}$ac_ct_STRIP" >&6
5147else
5148 echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
252b5132 5150fi
e5a52504 5151
d45dc31f
SE
5152 STRIP=$ac_ct_STRIP
5153else
5154 STRIP="$ac_cv_prog_STRIP"
5155fi
e5a52504 5156
d7040cdb 5157test -z "$STRIP" && STRIP=:
d45dc31f 5158
d45dc31f
SE
5159
5160
d45dc31f 5161
d45dc31f
SE
5162
5163
d7040cdb
SE
5164if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5166set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5167echo "$as_me:$LINENO: checking for $ac_word" >&5
5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169if test "${ac_cv_prog_RANLIB+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 5171else
d7040cdb
SE
5172 if test -n "$RANLIB"; then
5173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
d45dc31f 5185 fi
d7040cdb
SE
5186done
5187done
d45dc31f 5188
d7040cdb
SE
5189fi
5190fi
5191RANLIB=$ac_cv_prog_RANLIB
5192if test -n "$RANLIB"; then
5193 echo "$as_me:$LINENO: result: $RANLIB" >&5
5194echo "${ECHO_T}$RANLIB" >&6
5195else
5196 echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6
5198fi
d45dc31f 5199
d7040cdb
SE
5200fi
5201if test -z "$ac_cv_prog_RANLIB"; then
5202 ac_ct_RANLIB=$RANLIB
5203 # Extract the first word of "ranlib", so it can be a program name with args.
5204set dummy ranlib; ac_word=$2
5205echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210 if test -n "$ac_ct_RANLIB"; then
5211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_RANLIB="ranlib"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
d45dc31f 5223 fi
d7040cdb
SE
5224done
5225done
d45dc31f 5226
d7040cdb
SE
5227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5228fi
5229fi
5230ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5231if test -n "$ac_ct_RANLIB"; then
5232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5233echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 5234else
d7040cdb
SE
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237fi
252b5132 5238
d7040cdb
SE
5239 RANLIB=$ac_ct_RANLIB
5240else
5241 RANLIB="$ac_cv_prog_RANLIB"
5242fi
d45dc31f 5243
d7040cdb 5244test -z "$RANLIB" && RANLIB=:
d45dc31f 5245
d45dc31f 5246
d45dc31f 5247
42ecbf5e 5248
e5a52504 5249
d7040cdb
SE
5250
5251# Determine commands to create old-style static archives.
5252old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5253old_postinstall_cmds='chmod 644 $oldlib'
5254old_postuninstall_cmds=
5255
5256if test -n "$RANLIB"; then
5257 case $host_os in
5258 openbsd*)
5259 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5260 ;;
5261 *)
5262 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5263 ;;
5264 esac
5265 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 5266fi
d45dc31f
SE
5267
5268
d45dc31f
SE
5269
5270
d15b04bd 5271
3e321448 5272
d45dc31f 5273
d45dc31f 5274
d45dc31f
SE
5275
5276
d45dc31f 5277
d45dc31f 5278
d45dc31f
SE
5279
5280
5281
5282
5283
5284
5285
d45dc31f 5286
d45dc31f 5287
d45dc31f 5288
d45dc31f 5289
d45dc31f 5290
d45dc31f 5291
d45dc31f 5292
d45dc31f 5293
3e321448
L
5294
5295
d45dc31f
SE
5296
5297
d45dc31f
SE
5298
5299
d45dc31f 5300
d7040cdb
SE
5301# If no C compiler was specified, use CC.
5302LTCC=${LTCC-"$CC"}
42ecbf5e 5303
d7040cdb
SE
5304# If no C compiler flags were specified, use CFLAGS.
5305LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 5306
d7040cdb
SE
5307# Allow CC to be a program name with arguments.
5308compiler=$CC
d15b04bd 5309
d7040cdb
SE
5310
5311# Check for command to grab the raw symbol name followed by C symbol from nm.
5312echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5313echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5314if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 5315 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5316else
d7040cdb
SE
5317
5318# These are sane defaults that work on at least a few old systems.
5319# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5320
5321# Character class describing NM global symbol codes.
5322symcode='[BCDEGRST]'
5323
5324# Regexp to match symbols that can be accessed directly from C.
5325sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5326
5327# Define system-specific variables.
5328case $host_os in
5329aix*)
5330 symcode='[BCDT]'
5331 ;;
5332cygwin* | mingw* | pw32*)
5333 symcode='[ABCDGISTW]'
5334 ;;
5335hpux*)
5336 if test "$host_cpu" = ia64; then
5337 symcode='[ABCDEGRST]'
42ecbf5e 5338 fi
d7040cdb
SE
5339 ;;
5340irix* | nonstopux*)
5341 symcode='[BCDEGRST]'
5342 ;;
5343osf*)
5344 symcode='[BCDEGQRST]'
5345 ;;
5346solaris*)
5347 symcode='[BDRT]'
5348 ;;
5349sco3.2v5*)
5350 symcode='[DT]'
5351 ;;
5352sysv4.2uw2*)
5353 symcode='[DT]'
5354 ;;
5355sysv5* | sco5v6* | unixware* | OpenUNIX*)
5356 symcode='[ABDT]'
5357 ;;
5358sysv4)
5359 symcode='[DFNSTU]'
5360 ;;
5361esac
d15b04bd 5362
d7040cdb
SE
5363# If we're using GNU nm, then use its standard symbol codes.
5364case `$NM -V 2>&1` in
5365*GNU* | *'with BFD'*)
5366 symcode='[ABCDGIRSTW]' ;;
5367esac
e5a52504 5368
d7040cdb
SE
5369# Transform an extracted symbol line into a proper C declaration.
5370# Some systems (esp. on ia64) link data and code symbols differently,
5371# so use this general approach.
5372lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
42ecbf5e 5373
d7040cdb
SE
5374# Transform an extracted symbol line into symbol name and symbol address
5375lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
42ecbf5e 5376
d7040cdb
SE
5377# Handle CRLF in mingw tool chain
5378opt_cr=
5379case $build_os in
5380mingw*)
5381 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5382 ;;
5383esac
5384
5385# Try without a prefix underscore, then with it.
5386for ac_symprfx in "" "_"; do
5387
5388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5389 symxfrm="\\1 $ac_symprfx\\2 \\2"
5390
5391 # Write the raw and C identifiers.
5392 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5393 # Fake it for dumpbin and say T for any non-static function
5394 # and D for any global variable.
5395 # Also find C++ and __fastcall symbols from MSVC++,
5396 # which start with @ or ?.
5397 lt_cv_sys_global_symbol_pipe="$AWK '"\
5398" {last_section=section; section=\$ 3};"\
5399" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5400" \$ 0!~/External *\|/{next};"\
5401" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5402" {if(hide[section]) next};"\
5403" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5404" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5405" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5406" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5407" ' prfx=^$ac_symprfx"
5408 else
5409 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5410 fi
5411
5412 # Check to see that the pipe works correctly.
5413 pipe_works=no
5414
5415 rm -f conftest*
5416 cat > conftest.$ac_ext <<_LT_EOF
42ecbf5e 5417#ifdef __cplusplus
d7040cdb 5418extern "C" {
42ecbf5e 5419#endif
d7040cdb
SE
5420char nm_test_var;
5421void nm_test_func(void);
5422void nm_test_func(void){}
5423#ifdef __cplusplus
42ecbf5e 5424}
d7040cdb
SE
5425#endif
5426int main(){nm_test_var='a';nm_test_func();return(0);}
5427_LT_EOF
5428
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>&5
42ecbf5e
DJ
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5433 (exit $ac_status); }; then
5434 # Now try to grab the symbols.
5435 nlist=conftest.nm
5436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5440 (exit $ac_status); } && test -s "$nlist"; then
5441 # Try sorting and uniquifying the output.
5442 if sort "$nlist" | uniq > "$nlist"T; then
5443 mv -f "$nlist"T "$nlist"
5444 else
5445 rm -f "$nlist"T
5446 fi
5447
5448 # Make sure that we snagged all the symbols we need.
5449 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5450 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5451 cat <<_LT_EOF > conftest.$ac_ext
5452#ifdef __cplusplus
5453extern "C" {
5454#endif
5455
5456_LT_EOF
5457 # Now generate the symbol file.
5458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5459
5460 cat <<_LT_EOF >> conftest.$ac_ext
5461
5462/* The mapping between symbol names and symbols. */
5463const struct {
5464 const char *name;
5465 void *address;
5466}
5467lt__PROGRAM__LTX_preloaded_symbols[] =
5468{
5469 { "@PROGRAM@", (void *) 0 },
5470_LT_EOF
5471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5472 cat <<\_LT_EOF >> conftest.$ac_ext
5473 {0, (void *) 0}
5474};
5475
5476/* This works around a problem in FreeBSD linker */
5477#ifdef FREEBSD_WORKAROUND
5478static const void *lt_preloaded_setup() {
5479 return lt__PROGRAM__LTX_preloaded_symbols;
5480}
5481#endif
5482
5483#ifdef __cplusplus
5484}
5485#endif
5486_LT_EOF
5487 # Now try linking the two files.
5488 mv conftest.$ac_objext conftstm.$ac_objext
5489 lt_save_LIBS="$LIBS"
5490 lt_save_CFLAGS="$CFLAGS"
5491 LIBS="conftstm.$ac_objext"
5492 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494 (eval $ac_link) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5498 pipe_works=yes
5499 fi
5500 LIBS="$lt_save_LIBS"
5501 CFLAGS="$lt_save_CFLAGS"
5502 else
5503 echo "cannot find nm_test_func in $nlist" >&5
5504 fi
5505 else
5506 echo "cannot find nm_test_var in $nlist" >&5
5507 fi
5508 else
5509 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5510 fi
5511 else
5512 echo "$progname: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5514 fi
5515 rm -f conftest* conftst*
5516
5517 # Do not use the global_symbol_pipe unless it works.
5518 if test "$pipe_works" = yes; then
5519 break
5520 else
5521 lt_cv_sys_global_symbol_pipe=
5522 fi
5523done
42ecbf5e 5524
42ecbf5e 5525fi
d7040cdb
SE
5526
5527if test -z "$lt_cv_sys_global_symbol_pipe"; then
5528 lt_cv_sys_global_symbol_to_cdecl=
42ecbf5e 5529fi
d7040cdb
SE
5530if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5531 echo "$as_me:$LINENO: result: failed" >&5
5532echo "${ECHO_T}failed" >&6
42ecbf5e 5533else
d7040cdb
SE
5534 echo "$as_me:$LINENO: result: ok" >&5
5535echo "${ECHO_T}ok" >&6
5536fi
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5555if test "${enable_libtool_lock+set}" = set; then
5556 enableval="$enable_libtool_lock"
5557
5558fi;
5559test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5560
5561# Some flags need to be propagated to the compiler or linker for good
5562# libtool support.
5563case $host in
5564ia64-*-hpux*)
5565 # Find out which ABI we are using.
5566 echo 'int i;' > conftest.$ac_ext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 case `/usr/bin/file conftest.$ac_objext` in
5573 *ELF-32*)
5574 HPUX_IA64_MODE="32"
5575 ;;
5576 *ELF-64*)
5577 HPUX_IA64_MODE="64"
5578 ;;
5579 esac
5580 fi
5581 rm -rf conftest*
5582 ;;
5583*-*-irix6*)
5584 # Find out which ABI we are using.
1b315056 5585 echo '#line 5585 "configure"' > conftest.$ac_ext
d7040cdb
SE
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; then
5591 if test "$lt_cv_prog_gnu_ld" = yes; then
5592 case `/usr/bin/file conftest.$ac_objext` in
5593 *32-bit*)
5594 LD="${LD-ld} -melf32bsmip"
5595 ;;
5596 *N32*)
5597 LD="${LD-ld} -melf32bmipn32"
5598 ;;
5599 *64-bit*)
5600 LD="${LD-ld} -melf64bmip"
5601 ;;
5602 esac
5603 else
5604 case `/usr/bin/file conftest.$ac_objext` in
5605 *32-bit*)
5606 LD="${LD-ld} -32"
5607 ;;
5608 *N32*)
5609 LD="${LD-ld} -n32"
5610 ;;
5611 *64-bit*)
5612 LD="${LD-ld} -64"
5613 ;;
5614 esac
5615 fi
5616 fi
5617 rm -rf conftest*
5618 ;;
5619
5620x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5621s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5622 # Find out which ABI we are using.
5623 echo 'int i;' > conftest.$ac_ext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 case `/usr/bin/file conftest.o` in
5630 *32-bit*)
5631 case $host in
5632 x86_64-*kfreebsd*-gnu)
5633 LD="${LD-ld} -m elf_i386_fbsd"
5634 ;;
5635 x86_64-*linux*)
5636 LD="${LD-ld} -m elf_i386"
5637 ;;
5638 ppc64-*linux*|powerpc64-*linux*)
5639 LD="${LD-ld} -m elf32ppclinux"
5640 ;;
5641 s390x-*linux*)
5642 LD="${LD-ld} -m elf_s390"
5643 ;;
5644 sparc64-*linux*)
5645 LD="${LD-ld} -m elf32_sparc"
5646 ;;
5647 esac
5648 ;;
5649 *64-bit*)
5650 case $host in
5651 x86_64-*kfreebsd*-gnu)
5652 LD="${LD-ld} -m elf_x86_64_fbsd"
5653 ;;
5654 x86_64-*linux*)
5655 LD="${LD-ld} -m elf_x86_64"
5656 ;;
5657 ppc*-*linux*|powerpc*-*linux*)
5658 LD="${LD-ld} -m elf64ppc"
5659 ;;
5660 s390*-*linux*|s390*-*tpf*)
5661 LD="${LD-ld} -m elf64_s390"
5662 ;;
5663 sparc*-*linux*)
5664 LD="${LD-ld} -m elf64_sparc"
5665 ;;
5666 esac
5667 ;;
5668 esac
5669 fi
5670 rm -rf conftest*
5671 ;;
5672
5673*-*-sco3.2v5*)
5674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5675 SAVE_CFLAGS="$CFLAGS"
5676 CFLAGS="$CFLAGS -belf"
5677 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5678echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5679if test "${lt_cv_cc_needs_belf+set}" = set; then
42ecbf5e
DJ
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
d7040cdb
SE
5682 ac_ext=c
5683ac_cpp='$CPP $CPPFLAGS'
5684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687
5688 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
5689/* confdefs.h. */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h. */
d15b04bd 5694
42ecbf5e
DJ
5695int
5696main ()
5697{
d7040cdb 5698
42ecbf5e
DJ
5699 ;
5700 return 0;
5701}
5702_ACEOF
5703rm -f conftest.$ac_objext conftest$ac_exeext
5704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
1b315056 5712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
d7040cdb 5724 lt_cv_cc_needs_belf=yes
42ecbf5e
DJ
5725else
5726 echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
d7040cdb 5729lt_cv_cc_needs_belf=no
42ecbf5e
DJ
5730fi
5731rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
5733 ac_ext=c
5734ac_cpp='$CPP $CPPFLAGS'
5735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5738
5739fi
d7040cdb
SE
5740echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5741echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5742 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5744 CFLAGS="$SAVE_CFLAGS"
5745 fi
5746 ;;
5747sparc*-*solaris*)
5748 # Find out which ABI we are using.
5749 echo 'int i;' > conftest.$ac_ext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; then
5755 case `/usr/bin/file conftest.o` in
5756 *64-bit*)
5757 case $lt_cv_prog_gnu_ld in
5758 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5759 *) LD="${LD-ld} -64" ;;
5760 esac
5761 ;;
5762 esac
5763 fi
5764 rm -rf conftest*
5765 ;;
5766esac
42ecbf5e 5767
d7040cdb 5768need_locks="$enable_libtool_lock"
42ecbf5e 5769
d7040cdb
SE
5770ac_ext=c
5771ac_cpp='$CPP $CPPFLAGS'
5772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774ac_compiler_gnu=$ac_cv_c_compiler_gnu
5775echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5776echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5777# On Suns, sometimes $CPP names a directory.
5778if test -n "$CPP" && test -d "$CPP"; then
5779 CPP=
5780fi
5781if test -z "$CPP"; then
5782 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e 5783 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5784else
d7040cdb
SE
5785 # Double quotes because CPP needs to be expanded
5786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5787 do
5788 ac_preproc_ok=false
5789for ac_c_preproc_warn_flag in '' yes
5790do
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
42ecbf5e 5799_ACEOF
d7040cdb
SE
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803#ifdef __STDC__
5804# include <limits.h>
5805#else
5806# include <assert.h>
5807#endif
5808 Syntax error
5809_ACEOF
5810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e 5812 ac_status=$?
d7040cdb
SE
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
42ecbf5e 5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5817 (exit $ac_status); } >/dev/null; then
5818 if test -s conftest.err; then
5819 ac_cpp_err=$ac_c_preproc_warn_flag
5820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5821 else
5822 ac_cpp_err=
5823 fi
e5a52504 5824else
d7040cdb 5825 ac_cpp_err=yes
e5a52504 5826fi
d7040cdb
SE
5827if test -z "$ac_cpp_err"; then
5828 :
5829else
5830 echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 # Broken: fails on valid input.
5834continue
d15b04bd 5835fi
d7040cdb 5836rm -f conftest.err conftest.$ac_ext
d15b04bd 5837
d7040cdb
SE
5838 # OK, works on sane cases. Now check whether non-existent headers
5839 # can be detected and how.
5840 cat >conftest.$ac_ext <<_ACEOF
5841/* confdefs.h. */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h. */
5846#include <ac_nonexistent.h>
5847_ACEOF
5848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null; then
5856 if test -s conftest.err; then
5857 ac_cpp_err=$ac_c_preproc_warn_flag
5858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5859 else
5860 ac_cpp_err=
5861 fi
5862else
5863 ac_cpp_err=yes
5864fi
5865if test -z "$ac_cpp_err"; then
5866 # Broken: success on invalid input.
5867continue
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872 # Passes both tests.
5873ac_preproc_ok=:
5874break
5875fi
5876rm -f conftest.err conftest.$ac_ext
5877
5878done
5879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5880rm -f conftest.err conftest.$ac_ext
5881if $ac_preproc_ok; then
5882 break
5883fi
5884
5885 done
5886 ac_cv_prog_CPP=$CPP
5887
5888fi
5889 CPP=$ac_cv_prog_CPP
5890else
5891 ac_cv_prog_CPP=$CPP
5892fi
5893echo "$as_me:$LINENO: result: $CPP" >&5
5894echo "${ECHO_T}$CPP" >&6
5895ac_preproc_ok=false
5896for ac_c_preproc_warn_flag in '' yes
5897do
5898 # Use a header file that comes with gcc, so configuring glibc
5899 # with a fresh cross-compiler works.
5900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5901 # <limits.h> exists even on freestanding compilers.
5902 # On the NeXT, cc -E runs the code through the compiler's parser,
5903 # not just through cpp. "Syntax error" is here to catch this case.
5904 cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910#ifdef __STDC__
5911# include <limits.h>
5912#else
5913# include <assert.h>
5914#endif
5915 Syntax error
5916_ACEOF
5917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null; then
5925 if test -s conftest.err; then
5926 ac_cpp_err=$ac_c_preproc_warn_flag
5927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5928 else
5929 ac_cpp_err=
5930 fi
5931else
5932 ac_cpp_err=yes
5933fi
5934if test -z "$ac_cpp_err"; then
5935 :
5936else
5937 echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 # Broken: fails on valid input.
5941continue
5942fi
5943rm -f conftest.err conftest.$ac_ext
5944
5945 # OK, works on sane cases. Now check whether non-existent headers
5946 # can be detected and how.
5947 cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953#include <ac_nonexistent.h>
5954_ACEOF
5955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null; then
5963 if test -s conftest.err; then
5964 ac_cpp_err=$ac_c_preproc_warn_flag
5965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5966 else
5967 ac_cpp_err=
5968 fi
5969else
5970 ac_cpp_err=yes
5971fi
5972if test -z "$ac_cpp_err"; then
5973 # Broken: success on invalid input.
5974continue
5975else
5976 echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 # Passes both tests.
5980ac_preproc_ok=:
5981break
5982fi
5983rm -f conftest.err conftest.$ac_ext
5984
5985done
5986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987rm -f conftest.err conftest.$ac_ext
5988if $ac_preproc_ok; then
5989 :
5990else
7a283e07
RW
5991 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5992echo "$as_me: error: in \`$ac_pwd':" >&2;}
5993{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d7040cdb
SE
5994See \`config.log' for more details." >&5
5995echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5996See \`config.log' for more details." >&2;}
7a283e07 5997 { (exit 1); exit 1; }; }; }
d7040cdb
SE
5998fi
5999
6000ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006
6007echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6008echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6009if test "${ac_cv_header_stdc+set}" = set; then
42ecbf5e 6010 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 6011else
d7040cdb
SE
6012 cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h. */
42ecbf5e 6014_ACEOF
d7040cdb
SE
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h. */
6018#include <stdlib.h>
6019#include <stdarg.h>
6020#include <string.h>
6021#include <float.h>
6022
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
1b315056 6040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
d7040cdb 6046 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
d7040cdb 6052 ac_cv_header_stdc=yes
d15b04bd 6053else
42ecbf5e
DJ
6054 echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
d7040cdb 6057ac_cv_header_stdc=no
e5a52504 6058fi
d7040cdb 6059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 6060
d7040cdb
SE
6061if test $ac_cv_header_stdc = yes; then
6062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
42ecbf5e 6065_ACEOF
d7040cdb
SE
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069#include <string.h>
d15b04bd 6070
d7040cdb
SE
6071_ACEOF
6072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6073 $EGREP "memchr" >/dev/null 2>&1; then
6074 :
6075else
6076 ac_cv_header_stdc=no
d15b04bd 6077fi
d7040cdb
SE
6078rm -f conftest*
6079
42ecbf5e 6080fi
e5a52504 6081
d7040cdb
SE
6082if test $ac_cv_header_stdc = yes; then
6083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6084 cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h. */
6090#include <stdlib.h>
7148cc28 6091
d7040cdb
SE
6092_ACEOF
6093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "free" >/dev/null 2>&1; then
6095 :
6096else
6097 ac_cv_header_stdc=no
20e95c23 6098fi
d7040cdb
SE
6099rm -f conftest*
6100
6101fi
6102
6103if test $ac_cv_header_stdc = yes; then
6104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6105 if test "$cross_compiling" = yes; then
6106 :
e5a52504 6107else
d7040cdb
SE
6108 cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h. */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h. */
6114#include <ctype.h>
6115#if ((' ' & 0x0FF) == 0x020)
6116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118#else
6119# define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124#endif
6125
6126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6127int
6128main ()
6129{
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 exit(2);
6135 exit (0);
6136}
6137_ACEOF
6138rm -f conftest$ac_exeext
6139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 :
6150else
6151 echo "$as_me: program exited with status $ac_status" >&5
6152echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155( exit $ac_status )
6156ac_cv_header_stdc=no
6157fi
6158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159fi
6160fi
6161fi
6162echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6163echo "${ECHO_T}$ac_cv_header_stdc" >&6
6164if test $ac_cv_header_stdc = yes; then
20e95c23
DJ
6165
6166cat >>confdefs.h <<\_ACEOF
d7040cdb 6167#define STDC_HEADERS 1
20e95c23
DJ
6168_ACEOF
6169
d7040cdb 6170fi
20e95c23 6171
d7040cdb 6172# On IRIX 5.3, sys/types and inttypes.h are conflicting.
20e95c23
DJ
6173
6174
20e95c23 6175
20e95c23 6176
20e95c23 6177
20e95c23 6178
20e95c23 6179
20e95c23
DJ
6180
6181
d7040cdb
SE
6182for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6183 inttypes.h stdint.h unistd.h
6184do
6185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6186echo "$as_me:$LINENO: checking for $ac_header" >&5
6187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 cat >conftest.$ac_ext <<_ACEOF
6192/* confdefs.h. */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h. */
6197$ac_includes_default
20e95c23 6198
d7040cdb
SE
6199#include <$ac_header>
6200_ACEOF
6201rm -f conftest.$ac_objext
6202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
1b315056 6210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 eval "$as_ac_Header=yes"
d15b04bd 6223else
d7040cdb
SE
6224 echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6226
d7040cdb
SE
6227eval "$as_ac_Header=no"
6228fi
6229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230fi
6231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233if test `eval echo '${'$as_ac_Header'}'` = yes; then
6234 cat >>confdefs.h <<_ACEOF
6235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6236_ACEOF
20e95c23 6237
d7040cdb 6238fi
20e95c23 6239
d7040cdb 6240done
20e95c23
DJ
6241
6242
6243
d7040cdb
SE
6244for ac_header in dlfcn.h
6245do
6246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247echo "$as_me:$LINENO: checking for $ac_header" >&5
6248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6249if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252 cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h. */
6258$ac_includes_default
42ecbf5e 6259
d7040cdb
SE
6260#include <$ac_header>
6261_ACEOF
6262rm -f conftest.$ac_objext
6263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264 (eval $ac_compile) 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
1b315056 6271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 eval "$as_ac_Header=yes"
20e95c23 6284else
d7040cdb
SE
6285 echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288eval "$as_ac_Header=no"
d15b04bd 6289fi
d7040cdb
SE
6290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6291fi
6292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6294if test `eval echo '${'$as_ac_Header'}'` = yes; then
6295 cat >>confdefs.h <<_ACEOF
6296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6297_ACEOF
20e95c23 6298
d7040cdb
SE
6299fi
6300
6301done
6302
6303
6304
6305# This can be used to rebuild libtool when needed
6306LIBTOOL_DEPS="$ltmain"
6307
6308# Always use our own libtool.
6309LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335test -z "$LN_S" && LN_S="ln -s"
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350if test -n "${ZSH_VERSION+set}" ; then
6351 setopt NO_GLOB_SUBST
6352fi
6353
6354echo "$as_me:$LINENO: checking for objdir" >&5
6355echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6356if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
d7040cdb
SE
6359 rm -f .libs 2>/dev/null
6360mkdir .libs 2>/dev/null
6361if test -d .libs; then
6362 lt_cv_objdir=.libs
42ecbf5e 6363else
d7040cdb
SE
6364 # MS-DOS does not allow filenames that begin with a dot.
6365 lt_cv_objdir=_libs
6366fi
6367rmdir .libs 2>/dev/null
42ecbf5e 6368fi
d7040cdb
SE
6369echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6370echo "${ECHO_T}$lt_cv_objdir" >&6
6371objdir=$lt_cv_objdir
42ecbf5e 6372
d7040cdb
SE
6373
6374
6375
6376
6377cat >>confdefs.h <<_ACEOF
6378#define LT_OBJDIR "$lt_cv_objdir/"
6379_ACEOF
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397case $host_os in
6398aix3*)
6399 # AIX sometimes has problems with the GCC collect2 program. For some
6400 # reason, if we set the COLLECT_NAMES environment variable, the problems
6401 # vanish in a puff of smoke.
6402 if test "X${COLLECT_NAMES+set}" != Xset; then
6403 COLLECT_NAMES=
6404 export COLLECT_NAMES
6405 fi
6406 ;;
6407esac
6408
6409# Sed substitution that helps us do robust quoting. It backslashifies
6410# metacharacters that are still active within double-quoted strings.
6411sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6412
6413# Same as above, but do not quote variable references.
6414double_quote_subst='s/\(["`\\]\)/\\\1/g'
6415
6416# Sed substitution to delay expansion of an escaped shell variable in a
6417# double_quote_subst'ed string.
6418delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6419
6420# Sed substitution to delay expansion of an escaped single quote.
6421delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6422
6423# Sed substitution to avoid accidental globbing in evaled expressions
6424no_glob_subst='s/\*/\\\*/g'
6425
6426# Global variables:
6427ofile=libtool
6428can_build_shared=yes
6429
6430# All known linkers require a `.a' archive for static linking (except MSVC,
6431# which needs '.lib').
6432libext=a
6433
6434with_gnu_ld="$lt_cv_prog_gnu_ld"
6435
6436old_CC="$CC"
6437old_CFLAGS="$CFLAGS"
6438
6439# Set sane defaults for various variables
6440test -z "$CC" && CC=cc
6441test -z "$LTCC" && LTCC=$CC
6442test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6443test -z "$LD" && LD=ld
6444test -z "$ac_objext" && ac_objext=o
6445
6446for cc_temp in $compiler""; do
6447 case $cc_temp in
6448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6450 \-*) ;;
6451 *) break;;
6452 esac
6453done
6454cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6455
6456
6457# Only perform the check for file, if the check method requires it
6458test -z "$MAGIC_CMD" && MAGIC_CMD=file
6459case $deplibs_check_method in
6460file_magic*)
6461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6462 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6463echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6464if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
d7040cdb
SE
6467 case $MAGIC_CMD in
6468[\\/*] | ?:[\\/]*)
6469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 6470 ;;
d7040cdb
SE
6471*)
6472 lt_save_MAGIC_CMD="$MAGIC_CMD"
6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6475 for ac_dir in $ac_dummy; do
6476 IFS="$lt_save_ifs"
6477 test -z "$ac_dir" && ac_dir=.
6478 if test -f $ac_dir/${ac_tool_prefix}file; then
6479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6480 if test -n "$file_magic_test_file"; then
6481 case $deplibs_check_method in
6482 "file_magic "*)
6483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6486 $EGREP "$file_magic_regex" > /dev/null; then
6487 :
6488 else
6489 cat <<_LT_EOF 1>&2
42ecbf5e 6490
d7040cdb
SE
6491*** Warning: the command libtool uses to detect shared libraries,
6492*** $file_magic_cmd, produces output that libtool cannot recognize.
6493*** The result is that libtool may fail to recognize shared libraries
6494*** as such. This will affect the creation of libtool libraries that
6495*** depend on shared libraries, but programs linked with such libtool
6496*** libraries will work regardless of this problem. Nevertheless, you
6497*** may want to report the problem to your system manager and/or to
6498*** bug-libtool@gnu.org
6499
6500_LT_EOF
6501 fi ;;
6502 esac
6503 fi
6504 break
6505 fi
6506 done
6507 IFS="$lt_save_ifs"
6508 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
6509 ;;
6510esac
42ecbf5e 6511fi
20e95c23 6512
d7040cdb
SE
6513MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514if test -n "$MAGIC_CMD"; then
6515 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6516echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
6517else
6518 echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
6520fi
6521
20e95c23
DJ
6522
6523
42ecbf5e 6524
20e95c23 6525
d7040cdb
SE
6526if test -z "$lt_cv_path_MAGIC_CMD"; then
6527 if test -n "$ac_tool_prefix"; then
6528 echo "$as_me:$LINENO: checking for file" >&5
6529echo $ECHO_N "checking for file... $ECHO_C" >&6
6530if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
d7040cdb
SE
6533 case $MAGIC_CMD in
6534[\\/*] | ?:[\\/]*)
6535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6536 ;;
6537*)
6538 lt_save_MAGIC_CMD="$MAGIC_CMD"
6539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6541 for ac_dir in $ac_dummy; do
6542 IFS="$lt_save_ifs"
6543 test -z "$ac_dir" && ac_dir=.
6544 if test -f $ac_dir/file; then
6545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6546 if test -n "$file_magic_test_file"; then
6547 case $deplibs_check_method in
6548 "file_magic "*)
6549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6552 $EGREP "$file_magic_regex" > /dev/null; then
6553 :
6554 else
6555 cat <<_LT_EOF 1>&2
6556
6557*** Warning: the command libtool uses to detect shared libraries,
6558*** $file_magic_cmd, produces output that libtool cannot recognize.
6559*** The result is that libtool may fail to recognize shared libraries
6560*** as such. This will affect the creation of libtool libraries that
6561*** depend on shared libraries, but programs linked with such libtool
6562*** libraries will work regardless of this problem. Nevertheless, you
6563*** may want to report the problem to your system manager and/or to
6564*** bug-libtool@gnu.org
6565
6566_LT_EOF
6567 fi ;;
6568 esac
6569 fi
6570 break
6571 fi
6572 done
6573 IFS="$lt_save_ifs"
6574 MAGIC_CMD="$lt_save_MAGIC_CMD"
6575 ;;
20e95c23
DJ
6576esac
6577fi
d7040cdb
SE
6578
6579MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6580if test -n "$MAGIC_CMD"; then
6581 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6582echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
6583else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586fi
6587
20e95c23 6588
42ecbf5e 6589 else
d7040cdb 6590 MAGIC_CMD=:
42ecbf5e 6591 fi
42ecbf5e 6592fi
42ecbf5e 6593
20e95c23 6594 fi
d7040cdb
SE
6595 ;;
6596esac
42ecbf5e 6597
d7040cdb 6598# Use C for the default configuration in the libtool script
42ecbf5e 6599
d7040cdb
SE
6600lt_save_CC="$CC"
6601ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 6606
42ecbf5e 6607
d7040cdb
SE
6608# Source file extension for C test sources.
6609ac_ext=c
42ecbf5e 6610
d7040cdb
SE
6611# Object file extension for compiled C test sources.
6612objext=o
6613objext=$objext
42ecbf5e 6614
d7040cdb
SE
6615# Code to be used in simple compile tests
6616lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 6617
d7040cdb
SE
6618# Code to be used in simple link tests
6619lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 6620
ac48eca1 6621
42ecbf5e 6622
42ecbf5e 6623
d5fbea21 6624
d5fbea21
DJ
6625
6626
d7040cdb
SE
6627# If no C compiler was specified, use CC.
6628LTCC=${LTCC-"$CC"}
20e95c23 6629
d7040cdb
SE
6630# If no C compiler flags were specified, use CFLAGS.
6631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 6632
d7040cdb
SE
6633# Allow CC to be a program name with arguments.
6634compiler=$CC
252b5132 6635
d7040cdb
SE
6636# Save the default compiler, since it gets overwritten when the other
6637# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6638compiler_DEFAULT=$CC
42ecbf5e 6639
d7040cdb
SE
6640# save warnings/boilerplate of simple test code
6641ac_outfile=conftest.$ac_objext
6642echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6644_lt_compiler_boilerplate=`cat conftest.err`
6645$RM conftest*
252b5132 6646
d7040cdb
SE
6647ac_outfile=conftest.$ac_objext
6648echo "$lt_simple_link_test_code" >conftest.$ac_ext
6649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6650_lt_linker_boilerplate=`cat conftest.err`
6651$RM conftest*
252b5132 6652
42ecbf5e 6653
d7040cdb
SE
6654## CAVEAT EMPTOR:
6655## There is no encapsulation within the following macros, do not change
6656## the running order or otherwise move them around unless you know exactly
6657## what you are doing...
6658if test -n "$compiler"; then
252b5132 6659
d7040cdb 6660lt_prog_compiler_no_builtin_flag=
252b5132 6661
d7040cdb
SE
6662if test "$GCC" = yes; then
6663 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 6664
d7040cdb
SE
6665 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6666echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6667if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 6668 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6669else
d7040cdb
SE
6670 lt_cv_prog_compiler_rtti_exceptions=no
6671 ac_outfile=conftest.$ac_objext
6672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6673 lt_compiler_flag="-fno-rtti -fno-exceptions"
6674 # Insert the option either (1) after the last *FLAGS variable, or
6675 # (2) before a word containing "conftest.", or (3) at the end.
6676 # Note that $ac_compile itself does not contain backslashes and begins
6677 # with a dollar sign (not a hyphen), so the echo should work correctly.
6678 # The option is referenced via a variable to avoid confusing sed.
6679 lt_compile=`echo "$ac_compile" | $SED \
6680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6682 -e 's:$: $lt_compiler_flag:'`
1b315056 6683 (eval echo "\"\$as_me:6683: $lt_compile\"" >&5)
d7040cdb
SE
6684 (eval "$lt_compile" 2>conftest.err)
6685 ac_status=$?
6686 cat conftest.err >&5
1b315056 6687 echo "$as_me:6687: \$? = $ac_status" >&5
d7040cdb
SE
6688 if (exit $ac_status) && test -s "$ac_outfile"; then
6689 # The compiler can only warn and ignore the option if not recognized
6690 # So say no if there are warnings other than the usual output.
6691 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6694 lt_cv_prog_compiler_rtti_exceptions=yes
6695 fi
6696 fi
6697 $RM conftest*
42ecbf5e 6698
252b5132 6699fi
d7040cdb
SE
6700echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6701echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6702
6703if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6704 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 6705else
d7040cdb 6706 :
252b5132 6707fi
252b5132
RH
6708
6709fi
d7040cdb
SE
6710
6711
6712
6713
6714
6715
6716 lt_prog_compiler_wl=
6717lt_prog_compiler_pic=
6718lt_prog_compiler_static=
6719
6720echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6721echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6722
6723 if test "$GCC" = yes; then
6724 lt_prog_compiler_wl='-Wl,'
6725 lt_prog_compiler_static='-static'
6726
6727 case $host_os in
6728 aix*)
6729 # All AIX code is PIC.
6730 if test "$host_cpu" = ia64; then
6731 # AIX 5 now supports IA64 processor
6732 lt_prog_compiler_static='-Bstatic'
6733 fi
6734 ;;
6735
6736 amigaos*)
6737 if test "$host_cpu" = m68k; then
6738 # FIXME: we need at least 68020 code to build shared libraries, but
6739 # adding the `-m68020' flag to GCC prevents building anything better,
6740 # like `-m68040'.
6741 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6742 fi
6743 ;;
6744
6745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6746 # PIC is the default for these OSes.
6747 ;;
6748
6749 mingw* | cygwin* | pw32* | os2*)
6750 # This hack is so that the source file can tell whether it is being
6751 # built for inclusion in a dll (and should export symbols for example).
6752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6753 # (--disable-auto-import) libraries
6754 lt_prog_compiler_pic='-DDLL_EXPORT'
6755 ;;
6756
6757 darwin* | rhapsody*)
6758 # PIC is the default on this platform
6759 # Common symbols not allowed in MH_DYLIB files
6760 lt_prog_compiler_pic='-fno-common'
6761 ;;
6762
6763 hpux*)
6764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6765 # not for PA HP-UX.
6766 case $host_cpu in
6767 hppa*64*|ia64*)
6768 # +Z the default
6769 ;;
6770 *)
6771 lt_prog_compiler_pic='-fPIC'
6772 ;;
6773 esac
6774 ;;
6775
6776 interix[3-9]*)
6777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6778 # Instead, we relocate shared libraries at runtime.
6779 ;;
6780
6781 msdosdjgpp*)
6782 # Just because we use GCC doesn't mean we suddenly get shared libraries
6783 # on systems that don't support them.
6784 lt_prog_compiler_can_build_shared=no
6785 enable_shared=no
6786 ;;
6787
6788 *nto* | *qnx*)
6789 # QNX uses GNU C++, but need to define -shared option too, otherwise
6790 # it will coredump.
6791 lt_prog_compiler_pic='-fPIC -shared'
6792 ;;
6793
6794 sysv4*MP*)
6795 if test -d /usr/nec; then
6796 lt_prog_compiler_pic=-Kconform_pic
6797 fi
6798 ;;
6799
6800 *)
6801 lt_prog_compiler_pic='-fPIC'
6802 ;;
6803 esac
6804 else
6805 # PORTME Check for flag to pass linker flags through the system compiler.
6806 case $host_os in
6807 aix*)
6808 lt_prog_compiler_wl='-Wl,'
6809 if test "$host_cpu" = ia64; then
6810 # AIX 5 now supports IA64 processor
6811 lt_prog_compiler_static='-Bstatic'
6812 else
6813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6814 fi
6815 ;;
6816 darwin*)
6817 # PIC is the default on this platform
6818 # Common symbols not allowed in MH_DYLIB files
6819 case $cc_basename in
6820 xlc*)
6821 lt_prog_compiler_pic='-qnocommon'
6822 lt_prog_compiler_wl='-Wl,'
6823 ;;
6824 esac
6825 ;;
6826
6827 mingw* | cygwin* | pw32* | os2*)
6828 # This hack is so that the source file can tell whether it is being
6829 # built for inclusion in a dll (and should export symbols for example).
6830 lt_prog_compiler_pic='-DDLL_EXPORT'
6831 ;;
6832
6833 hpux9* | hpux10* | hpux11*)
6834 lt_prog_compiler_wl='-Wl,'
6835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6836 # not for PA HP-UX.
6837 case $host_cpu in
6838 hppa*64*|ia64*)
6839 # +Z the default
6840 ;;
6841 *)
6842 lt_prog_compiler_pic='+Z'
6843 ;;
6844 esac
6845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6846 lt_prog_compiler_static='${wl}-a ${wl}archive'
6847 ;;
6848
6849 irix5* | irix6* | nonstopux*)
6850 lt_prog_compiler_wl='-Wl,'
6851 # PIC (with -KPIC) is the default.
6852 lt_prog_compiler_static='-non_shared'
6853 ;;
6854
6855 linux* | k*bsd*-gnu)
6856 case $cc_basename in
6857 icc* | ecc*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-static'
6861 ;;
6862 pgcc* | pgf77* | pgf90* | pgf95*)
6863 # Portland Group compilers (*not* the Pentium gcc compiler,
6864 # which looks to be a dead project)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-fpic'
6867 lt_prog_compiler_static='-Bstatic'
6868 ;;
6869 ccc*)
6870 lt_prog_compiler_wl='-Wl,'
6871 # All Alpha code is PIC.
6872 lt_prog_compiler_static='-non_shared'
6873 ;;
6874 *)
6875 case `$CC -V 2>&1 | sed 5q` in
6876 *Sun\ C*)
6877 # Sun C 5.9
6878 lt_prog_compiler_pic='-KPIC'
6879 lt_prog_compiler_static='-Bstatic'
6880 lt_prog_compiler_wl='-Wl,'
6881 ;;
6882 *Sun\ F*)
6883 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6886 lt_prog_compiler_wl=''
6887 ;;
6888 esac
6889 ;;
6890 esac
6891 ;;
6892
6893 newsos6)
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6896 ;;
6897
6898 *nto* | *qnx*)
6899 # QNX uses GNU C++, but need to define -shared option too, otherwise
6900 # it will coredump.
6901 lt_prog_compiler_pic='-fPIC -shared'
6902 ;;
6903
6904 osf3* | osf4* | osf5*)
6905 lt_prog_compiler_wl='-Wl,'
6906 # All OSF/1 code is PIC.
6907 lt_prog_compiler_static='-non_shared'
6908 ;;
6909
6910 rdos*)
6911 lt_prog_compiler_static='-non_shared'
6912 ;;
6913
6914 solaris*)
6915 lt_prog_compiler_pic='-KPIC'
6916 lt_prog_compiler_static='-Bstatic'
6917 case $cc_basename in
6918 f77* | f90* | f95*)
6919 lt_prog_compiler_wl='-Qoption ld ';;
6920 *)
6921 lt_prog_compiler_wl='-Wl,';;
6922 esac
6923 ;;
6924
6925 sunos4*)
6926 lt_prog_compiler_wl='-Qoption ld '
6927 lt_prog_compiler_pic='-PIC'
6928 lt_prog_compiler_static='-Bstatic'
6929 ;;
6930
6931 sysv4 | sysv4.2uw2* | sysv4.3*)
6932 lt_prog_compiler_wl='-Wl,'
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
6935 ;;
6936
6937 sysv4*MP*)
6938 if test -d /usr/nec ;then
6939 lt_prog_compiler_pic='-Kconform_pic'
6940 lt_prog_compiler_static='-Bstatic'
6941 fi
6942 ;;
6943
6944 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6945 lt_prog_compiler_wl='-Wl,'
6946 lt_prog_compiler_pic='-KPIC'
6947 lt_prog_compiler_static='-Bstatic'
6948 ;;
6949
6950 unicos*)
6951 lt_prog_compiler_wl='-Wl,'
6952 lt_prog_compiler_can_build_shared=no
6953 ;;
6954
6955 uts4*)
6956 lt_prog_compiler_pic='-pic'
6957 lt_prog_compiler_static='-Bstatic'
6958 ;;
6959
6960 *)
6961 lt_prog_compiler_can_build_shared=no
6962 ;;
6963 esac
6964 fi
6965
6966case $host_os in
6967 # For platforms which do not support PIC, -DPIC is meaningless:
6968 *djgpp*)
6969 lt_prog_compiler_pic=
6970 ;;
6971 *)
6972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6973 ;;
6974esac
6975echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6976echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6977
6978
6979
6980
6981
6982
6983#
6984# Check to make sure the PIC flag actually works.
6985#
6986if test -n "$lt_prog_compiler_pic"; then
6987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6988echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6989if test "${lt_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
d7040cdb
SE
6992 lt_prog_compiler_pic_works=no
6993 ac_outfile=conftest.$ac_objext
6994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6996 # Insert the option either (1) after the last *FLAGS variable, or
6997 # (2) before a word containing "conftest.", or (3) at the end.
6998 # Note that $ac_compile itself does not contain backslashes and begins
6999 # with a dollar sign (not a hyphen), so the echo should work correctly.
7000 # The option is referenced via a variable to avoid confusing sed.
7001 lt_compile=`echo "$ac_compile" | $SED \
7002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7004 -e 's:$: $lt_compiler_flag:'`
1b315056 7005 (eval echo "\"\$as_me:7005: $lt_compile\"" >&5)
d7040cdb
SE
7006 (eval "$lt_compile" 2>conftest.err)
7007 ac_status=$?
7008 cat conftest.err >&5
1b315056 7009 echo "$as_me:7009: \$? = $ac_status" >&5
d7040cdb
SE
7010 if (exit $ac_status) && test -s "$ac_outfile"; then
7011 # The compiler can only warn and ignore the option if not recognized
7012 # So say no if there are warnings other than the usual output.
7013 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7016 lt_prog_compiler_pic_works=yes
7017 fi
7018 fi
7019 $RM conftest*
42ecbf5e 7020
252b5132 7021fi
d7040cdb
SE
7022echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7023echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7024
7025if test x"$lt_prog_compiler_pic_works" = xyes; then
7026 case $lt_prog_compiler_pic in
7027 "" | " "*) ;;
7028 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7029 esac
252b5132 7030else
d7040cdb
SE
7031 lt_prog_compiler_pic=
7032 lt_prog_compiler_can_build_shared=no
252b5132 7033fi
252b5132
RH
7034
7035fi
42ecbf5e 7036
d7040cdb
SE
7037
7038
7039
7040
7041
7042#
7043# Check to make sure the static flag actually works.
7044#
7045wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7046echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7047echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7048if test "${lt_prog_compiler_static_works+set}" = set; then
20e95c23 7049 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 7050else
d7040cdb
SE
7051 lt_prog_compiler_static_works=no
7052 save_LDFLAGS="$LDFLAGS"
7053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7056 # The linker can only warn and ignore the option if not recognized
7057 # So say no if there are warnings
7058 if test -s conftest.err; then
7059 # Append any errors to the config.log.
7060 cat conftest.err 1>&5
7061 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7063 if diff conftest.exp conftest.er2 >/dev/null; then
7064 lt_prog_compiler_static_works=yes
7065 fi
7066 else
7067 lt_prog_compiler_static_works=yes
7068 fi
7069 fi
7070 $RM conftest*
7071 LDFLAGS="$save_LDFLAGS"
42ecbf5e 7072
42ecbf5e 7073fi
d7040cdb
SE
7074echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7075echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7076
7077if test x"$lt_prog_compiler_static_works" = xyes; then
7078 :
7079else
7080 lt_prog_compiler_static=
42ecbf5e 7081fi
42ecbf5e 7082
252b5132 7083
252b5132 7084
42ecbf5e 7085
252b5132 7086
20e95c23 7087
d7040cdb
SE
7088
7089 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7090echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7091if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 7092 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7093else
d7040cdb
SE
7094 lt_cv_prog_compiler_c_o=no
7095 $RM -r conftest 2>/dev/null
7096 mkdir conftest
7097 cd conftest
7098 mkdir out
7099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7100
7101 lt_compiler_flag="-o out/conftest2.$ac_objext"
7102 # Insert the option either (1) after the last *FLAGS variable, or
7103 # (2) before a word containing "conftest.", or (3) at the end.
7104 # Note that $ac_compile itself does not contain backslashes and begins
7105 # with a dollar sign (not a hyphen), so the echo should work correctly.
7106 lt_compile=`echo "$ac_compile" | $SED \
7107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7109 -e 's:$: $lt_compiler_flag:'`
1b315056 7110 (eval echo "\"\$as_me:7110: $lt_compile\"" >&5)
d7040cdb
SE
7111 (eval "$lt_compile" 2>out/conftest.err)
7112 ac_status=$?
7113 cat out/conftest.err >&5
1b315056 7114 echo "$as_me:7114: \$? = $ac_status" >&5
d7040cdb
SE
7115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7116 then
7117 # The compiler can only warn and ignore the option if not recognized
7118 # So say no if there are warnings
7119 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7122 lt_cv_prog_compiler_c_o=yes
7123 fi
7124 fi
7125 chmod u+w . 2>&5
7126 $RM conftest*
7127 # SGI C++ compiler will create directory out/ii_files/ for
7128 # template instantiation
7129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7130 $RM out/* && rmdir out
7131 cd ..
7132 $RM -r conftest
7133 $RM conftest*
7134
252b5132 7135fi
d7040cdb
SE
7136echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7137echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 7138
20e95c23 7139
20e95c23
DJ
7140
7141
d7040cdb
SE
7142
7143
7144 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7145echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7146if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
d7040cdb
SE
7149 lt_cv_prog_compiler_c_o=no
7150 $RM -r conftest 2>/dev/null
7151 mkdir conftest
7152 cd conftest
7153 mkdir out
7154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7155
7156 lt_compiler_flag="-o out/conftest2.$ac_objext"
7157 # Insert the option either (1) after the last *FLAGS variable, or
7158 # (2) before a word containing "conftest.", or (3) at the end.
7159 # Note that $ac_compile itself does not contain backslashes and begins
7160 # with a dollar sign (not a hyphen), so the echo should work correctly.
7161 lt_compile=`echo "$ac_compile" | $SED \
7162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7164 -e 's:$: $lt_compiler_flag:'`
1b315056 7165 (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
d7040cdb
SE
7166 (eval "$lt_compile" 2>out/conftest.err)
7167 ac_status=$?
7168 cat out/conftest.err >&5
1b315056 7169 echo "$as_me:7169: \$? = $ac_status" >&5
d7040cdb
SE
7170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7171 then
7172 # The compiler can only warn and ignore the option if not recognized
7173 # So say no if there are warnings
7174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7177 lt_cv_prog_compiler_c_o=yes
7178 fi
7179 fi
7180 chmod u+w . 2>&5
7181 $RM conftest*
7182 # SGI C++ compiler will create directory out/ii_files/ for
7183 # template instantiation
7184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7185 $RM out/* && rmdir out
7186 cd ..
7187 $RM -r conftest
7188 $RM conftest*
7189
7190fi
7191echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7192echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7193
7194
7195
7196
7197hard_links="nottested"
7198if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7199 # do not overwrite the value of need_locks provided by the user
7200 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7201echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7202 hard_links=yes
7203 $RM conftest*
7204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7205 touch conftest.a
7206 ln conftest.a conftest.b 2>&5 || hard_links=no
7207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7208 echo "$as_me:$LINENO: result: $hard_links" >&5
7209echo "${ECHO_T}$hard_links" >&6
7210 if test "$hard_links" = no; then
7211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7212echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7213 need_locks=warn
7214 fi
7215else
7216 need_locks=no
7217fi
7218
7219
7220
7221
7222
7223
7224 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7225echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7226
7227 runpath_var=
7228 allow_undefined_flag=
7229 always_export_symbols=no
7230 archive_cmds=
7231 archive_expsym_cmds=
7232 compiler_needs_object=no
7233 enable_shared_with_static_runtimes=no
7234 export_dynamic_flag_spec=
7235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7236 hardcode_automatic=no
7237 hardcode_direct=no
7238 hardcode_direct_absolute=no
7239 hardcode_libdir_flag_spec=
7240 hardcode_libdir_flag_spec_ld=
7241 hardcode_libdir_separator=
7242 hardcode_minus_L=no
7243 hardcode_shlibpath_var=unsupported
7244 inherit_rpath=no
7245 link_all_deplibs=unknown
7246 module_cmds=
7247 module_expsym_cmds=
7248 old_archive_from_new_cmds=
7249 old_archive_from_expsyms_cmds=
7250 thread_safe_flag_spec=
7251 whole_archive_flag_spec=
7252 # include_expsyms should be a list of space-separated symbols to be *always*
7253 # included in the symbol list
7254 include_expsyms=
7255 # exclude_expsyms can be an extended regexp of symbols to exclude
7256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7258 # as well as any symbol that contains `d'.
7259 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7261 # platforms (ab)use it in PIC code, but their linkers get confused if
7262 # the symbol is explicitly referenced. Since portable code cannot
7263 # rely on this symbol name, it's probably fine to never include it in
7264 # preloaded symbol tables.
7265 extract_expsyms_cmds=
7266
7267 case $host_os in
7268 cygwin* | mingw* | pw32*)
7269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7270 # When not using gcc, we currently assume that we are using
7271 # Microsoft Visual C++.
7272 if test "$GCC" != yes; then
7273 with_gnu_ld=no
7274 fi
7275 ;;
7276 interix*)
7277 # we just hope/assume this is gcc and not c89 (= MSVC++)
7278 with_gnu_ld=yes
7279 ;;
7280 openbsd*)
7281 with_gnu_ld=no
7282 ;;
7283 esac
7284
7285 ld_shlibs=yes
7286 if test "$with_gnu_ld" = yes; then
7287 # If archive_cmds runs LD, not CC, wlarc should be empty
7288 wlarc='${wl}'
7289
7290 # Set some defaults for GNU ld with shared library support. These
7291 # are reset later if shared libraries are not supported. Putting them
7292 # here allows them to be overridden if necessary.
7293 runpath_var=LD_RUN_PATH
7294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295 export_dynamic_flag_spec='${wl}--export-dynamic'
7296 # ancient GNU ld didn't support --whole-archive et. al.
7297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7299 else
7300 whole_archive_flag_spec=
7301 fi
7302 supports_anon_versioning=no
7303 case `$LD -v 2>&1` in
7304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7307 *\ 2.11.*) ;; # other 2.11 versions
7308 *) supports_anon_versioning=yes ;;
7309 esac
7310
7311 # See if GNU ld supports shared libraries.
7312 case $host_os in
50e7d84b 7313 aix[3-9]*)
d7040cdb
SE
7314 # On AIX/PPC, the GNU linker is very broken
7315 if test "$host_cpu" != ia64; then
7316 ld_shlibs=no
7317 cat <<_LT_EOF 1>&2
7318
7319*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7320*** to be unable to reliably create shared libraries on AIX.
7321*** Therefore, libtool is disabling shared libraries support. If you
7322*** really care for shared libraries, you may want to modify your PATH
7323*** so that a non-GNU linker is found, and then restart.
7324
7325_LT_EOF
7326 fi
7327 ;;
7328
7329 amigaos*)
7330 if test "$host_cpu" = m68k; then
7331 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)'
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes
7334 fi
7335
7336 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7337 # that the semantics of dynamic libraries on AmigaOS, at least up
7338 # to version 4, is to share data among multiple programs linked
7339 # with the same dynamic library. Since this doesn't match the
7340 # behavior of shared libraries on other platforms, we can't use
7341 # them.
7342 ld_shlibs=no
7343 ;;
7344
7345 beos*)
7346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7347 allow_undefined_flag=unsupported
7348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7349 # support --undefined. This deserves some investigation. FIXME
7350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 else
7352 ld_shlibs=no
7353 fi
7354 ;;
7355
7356 cygwin* | mingw* | pw32*)
7357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7358 # as there is no search path for DLLs.
7359 hardcode_libdir_flag_spec='-L$libdir'
7360 allow_undefined_flag=unsupported
7361 always_export_symbols=no
7362 enable_shared_with_static_runtimes=yes
7363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7364
7365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7367 # If the export-symbols file already is a .def file (1st line
7368 # is EXPORTS), use it as is; otherwise, prepend...
7369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7370 cp $export_symbols $output_objdir/$soname.def;
7371 else
7372 echo EXPORTS > $output_objdir/$soname.def;
7373 cat $export_symbols >> $output_objdir/$soname.def;
7374 fi~
7375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7376 else
7377 ld_shlibs=no
7378 fi
7379 ;;
7380
7381 interix[3-9]*)
7382 hardcode_direct=no
7383 hardcode_shlibpath_var=no
7384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7385 export_dynamic_flag_spec='${wl}-E'
7386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7387 # Instead, shared libraries are loaded at an image base (0x10000000 by
7388 # default) and relocated if they conflict, which is a slow very memory
7389 # consuming and fragmenting process. To avoid this, we pick a random,
7390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7393 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7394 ;;
7395
7396 gnu* | linux* | tpf* | k*bsd*-gnu)
7397 tmp_diet=no
7398 if test "$host_os" = linux-dietlibc; then
7399 case $cc_basename in
7400 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7401 esac
7402 fi
7403 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7404 && test "$tmp_diet" = no
7405 then
7406 tmp_addflag=
7407 case $cc_basename,$host_cpu in
7408 pgcc*) # Portland Group C compiler
7409 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7410 tmp_addflag=' $pic_flag'
7411 ;;
7412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7413 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7414 tmp_addflag=' $pic_flag -Mnomain' ;;
7415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7416 tmp_addflag=' -i_dynamic' ;;
7417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7418 tmp_addflag=' -i_dynamic -nofor_main' ;;
7419 ifc* | ifort*) # Intel Fortran compiler
7420 tmp_addflag=' -nofor_main' ;;
7421 esac
7422 case `$CC -V 2>&1 | sed 5q` in
7423 *Sun\ C*) # Sun C 5.9
7424 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7425 compiler_needs_object=yes
7426 tmp_sharedflag='-G' ;;
7427 *Sun\ F*) # Sun Fortran 8.3
7428 tmp_sharedflag='-G' ;;
7429 *)
7430 tmp_sharedflag='-shared' ;;
7431 esac
7432 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7433
7434 if test "x$supports_anon_versioning" = xyes; then
7435 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7437 echo "local: *; };" >> $output_objdir/$libname.ver~
7438 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7439 fi
7440 else
7441 ld_shlibs=no
7442 fi
7443 ;;
7444
7445 netbsd*)
7446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7447 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7448 wlarc=
7449 else
7450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7452 fi
7453 ;;
7454
7455 solaris*)
7456 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7457 ld_shlibs=no
7458 cat <<_LT_EOF 1>&2
7459
7460*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7461*** create shared libraries on Solaris systems. Therefore, libtool
7462*** is disabling shared libraries support. We urge you to upgrade GNU
7463*** binutils to release 2.9.1 or newer. Another option is to modify
7464*** your PATH or compiler configuration so that the native linker is
7465*** used, and then restart.
7466
7467_LT_EOF
7468 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7471 else
7472 ld_shlibs=no
7473 fi
7474 ;;
7475
7476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7477 case `$LD -v 2>&1` in
7478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7479 ld_shlibs=no
7480 cat <<_LT_EOF 1>&2
7481
7482*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7483*** reliably create shared libraries on SCO systems. Therefore, libtool
7484*** is disabling shared libraries support. We urge you to upgrade GNU
7485*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7486*** your PATH or compiler configuration so that the native linker is
7487*** used, and then restart.
7488
7489_LT_EOF
7490 ;;
7491 *)
7492 # For security reasons, it is highly recommended that you always
7493 # use absolute paths for naming shared libraries, and exclude the
7494 # DT_RUNPATH tag from executables and libraries. But doing so
7495 # requires that you compile everything twice, which is a pain.
7496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7500 else
7501 ld_shlibs=no
7502 fi
7503 ;;
7504 esac
7505 ;;
7506
7507 sunos4*)
7508 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7509 wlarc=
7510 hardcode_direct=yes
7511 hardcode_shlibpath_var=no
7512 ;;
7513
7514 *)
7515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522 esac
7523
7524 if test "$ld_shlibs" = no; then
7525 runpath_var=
7526 hardcode_libdir_flag_spec=
7527 export_dynamic_flag_spec=
7528 whole_archive_flag_spec=
7529 fi
7530 else
7531 # PORTME fill in a description of your system's linker (not GNU ld)
7532 case $host_os in
7533 aix3*)
7534 allow_undefined_flag=unsupported
7535 always_export_symbols=yes
7536 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'
7537 # Note: this linker hardcodes the directories in LIBPATH if there
7538 # are no directories specified by -L.
7539 hardcode_minus_L=yes
7540 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7541 # Neither direct hardcoding nor static linking is supported with a
7542 # broken collect2.
7543 hardcode_direct=unsupported
7544 fi
7545 ;;
7546
50e7d84b 7547 aix[4-9]*)
d7040cdb
SE
7548 if test "$host_cpu" = ia64; then
7549 # On IA64, the linker does run time linking by default, so we don't
7550 # have to do anything special.
7551 aix_use_runtimelinking=no
7552 exp_sym_flag='-Bexport'
7553 no_entry_flag=""
7554 else
7555 # If we're using GNU nm, then we don't want the "-C" option.
7556 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7557 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7558 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7559 else
7560 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7561 fi
7562 aix_use_runtimelinking=no
7563
7564 # Test if we are trying to use run time linking or normal
7565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7566 # need to do runtime linking.
50e7d84b 7567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7568 for ld_flag in $LDFLAGS; do
7569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7570 aix_use_runtimelinking=yes
7571 break
7572 fi
7573 done
7574 ;;
7575 esac
7576
7577 exp_sym_flag='-bexport'
7578 no_entry_flag='-bnoentry'
7579 fi
7580
7581 # When large executables or shared objects are built, AIX ld can
7582 # have problems creating the table of contents. If linking a library
7583 # or program results in "error TOC overflow" add -mminimal-toc to
7584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7586
7587 archive_cmds=''
7588 hardcode_direct=yes
7589 hardcode_direct_absolute=yes
7590 hardcode_libdir_separator=':'
7591 link_all_deplibs=yes
7592 file_list_spec='${wl}-f,'
7593
7594 if test "$GCC" = yes; then
7595 case $host_os in aix4.[012]|aix4.[012].*)
7596 # We only want to do this on AIX 4.2 and lower, the check
7597 # below for broken collect2 doesn't work under 4.3+
7598 collect2name=`${CC} -print-prog-name=collect2`
7599 if test -f "$collect2name" &&
7600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7601 then
7602 # We have reworked collect2
7603 :
7604 else
7605 # We have old collect2
7606 hardcode_direct=unsupported
7607 # It fails to find uninstalled libraries when the uninstalled
7608 # path is not listed in the libpath. Setting hardcode_minus_L
7609 # to unsupported forces relinking
7610 hardcode_minus_L=yes
7611 hardcode_libdir_flag_spec='-L$libdir'
7612 hardcode_libdir_separator=
7613 fi
7614 ;;
7615 esac
7616 shared_flag='-shared'
7617 if test "$aix_use_runtimelinking" = yes; then
7618 shared_flag="$shared_flag "'${wl}-G'
7619 fi
7620 else
7621 # not using gcc
7622 if test "$host_cpu" = ia64; then
7623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7624 # chokes on -Wl,-G. The following line is correct:
7625 shared_flag='-G'
7626 else
7627 if test "$aix_use_runtimelinking" = yes; then
7628 shared_flag='${wl}-G'
7629 else
7630 shared_flag='${wl}-bM:SRE'
7631 fi
7632 fi
7633 fi
7634
7635 # It seems that -bexpall does not export symbols beginning with
7636 # underscore (_), so it is better to generate a list of symbols to export.
7637 always_export_symbols=yes
7638 if test "$aix_use_runtimelinking" = yes; then
7639 # Warning - without using the other runtime loading flags (-brtl),
7640 # -berok will link without error, but may produce a broken library.
7641 allow_undefined_flag='-berok'
7642 # Determine the default libpath from the value encoded in an
7643 # empty executable.
7644 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
d7040cdb
SE
7650
7651int
7652main ()
7653{
7654
7655 ;
7656 return 0;
7657}
42ecbf5e 7658_ACEOF
d7040cdb
SE
7659rm -f conftest.$ac_objext conftest$ac_exeext
7660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 7667 (exit $ac_status); } &&
1b315056 7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680
7681lt_aix_libpath_sed='
7682 /Import File Strings/,/^$/ {
7683 /^0/ {
7684 s/^0 *\(.*\)$/\1/
7685 p
7686 }
7687 }'
7688aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7689# Check for a 64-bit object if we didn't find anything.
7690if test -z "$aix_libpath"; then
7691 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 7692fi
252b5132 7693else
20e95c23
DJ
7694 echo "$as_me: failed program was:" >&5
7695sed 's/^/| /' conftest.$ac_ext >&5
7696
252b5132 7697fi
d7040cdb
SE
7698rm -f conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 7701
d7040cdb
SE
7702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7703 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7704 else
7705 if test "$host_cpu" = ia64; then
7706 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7707 allow_undefined_flag="-z nodefs"
7708 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7709 else
7710 # Determine the default libpath from the value encoded in an
7711 # empty executable.
7712 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7713/* confdefs.h. */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h. */
d7040cdb
SE
7718
7719int
7720main ()
7721{
7722
7723 ;
7724 return 0;
7725}
42ecbf5e 7726_ACEOF
d7040cdb
SE
7727rm -f conftest.$ac_objext conftest$ac_exeext
7728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 7735 (exit $ac_status); } &&
1b315056 7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 (eval $ac_try) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748
7749lt_aix_libpath_sed='
7750 /Import File Strings/,/^$/ {
7751 /^0/ {
7752 s/^0 *\(.*\)$/\1/
7753 p
7754 }
7755 }'
7756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7757# Check for a 64-bit object if we didn't find anything.
7758if test -z "$aix_libpath"; then
7759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 7760fi
252b5132 7761else
42ecbf5e
DJ
7762 echo "$as_me: failed program was:" >&5
7763sed 's/^/| /' conftest.$ac_ext >&5
7764
252b5132 7765fi
d7040cdb
SE
7766rm -f conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7769
7770 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7771 # Warning - without using the other run time loading flags,
7772 # -berok will link without error, but may produce a broken library.
7773 no_undefined_flag=' ${wl}-bernotok'
7774 allow_undefined_flag=' ${wl}-berok'
7775 # Exported symbols can be pulled into shared objects from archives
7776 whole_archive_flag_spec='$convenience'
7777 archive_cmds_need_lc=yes
7778 # This is similar to how AIX traditionally builds its shared libraries.
7779 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7780 fi
7781 fi
7782 ;;
42ecbf5e 7783
d7040cdb
SE
7784 amigaos*)
7785 if test "$host_cpu" = m68k; then
7786 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)'
7787 hardcode_libdir_flag_spec='-L$libdir'
7788 hardcode_minus_L=yes
7789 fi
7790 # see comment about different semantics on the GNU ld section
7791 ld_shlibs=no
7792 ;;
252b5132 7793
d7040cdb
SE
7794 bsdi[45]*)
7795 export_dynamic_flag_spec=-rdynamic
7796 ;;
252b5132 7797
d7040cdb
SE
7798 cygwin* | mingw* | pw32*)
7799 # When not using gcc, we currently assume that we are using
7800 # Microsoft Visual C++.
7801 # hardcode_libdir_flag_spec is actually meaningless, as there is
7802 # no search path for DLLs.
7803 hardcode_libdir_flag_spec=' '
7804 allow_undefined_flag=unsupported
7805 # Tell ltmain to make .lib files, not .a files.
7806 libext=lib
7807 # Tell ltmain to make .dll files, not .so files.
7808 shrext_cmds=".dll"
7809 # FIXME: Setting linknames here is a bad hack.
7810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7811 # The linker will automatically build a .lib file if we build a DLL.
7812 old_archive_from_new_cmds='true'
7813 # FIXME: Should let the user specify the lib program.
7814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7815 fix_srcfile_path='`cygpath -w "$srcfile"`'
7816 enable_shared_with_static_runtimes=yes
7817 ;;
252b5132 7818
d7040cdb
SE
7819 darwin* | rhapsody*)
7820 case $host_os in
7821 rhapsody* | darwin1.[012])
7822 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7823 ;;
7824 *) # Darwin 1.3 on
7825 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7826 10.[012])
7827 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7828 ;;
7829 10.*)
7830 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7831 ;;
7832 esac
7833 ;;
7834 esac
7835 archive_cmds_need_lc=no
7836 hardcode_direct=no
7837 hardcode_automatic=yes
7838 hardcode_shlibpath_var=unsupported
7839 whole_archive_flag_spec=''
7840 link_all_deplibs=yes
7841 if test "$GCC" = yes ; then
7842 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7844else
d7040cdb
SE
7845 lt_cv_apple_cc_single_mod=no
7846 if test -z "${LT_MULTI_MODULE}"; then
7847 # By default we will add the -single_module flag. You can override
7848 # by either setting the environment variable LT_MULTI_MODULE
7849 # non-empty at configure time, or by adding -multi-module to the
7850 # link flags.
7851 echo "int foo(void){return 1;}" > conftest.c
7852 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7853 -dynamiclib ${wl}-single_module conftest.c
7854 if test -f libconftest.dylib; then
7855 lt_cv_apple_cc_single_mod=yes
7856 rm libconftest.dylib
7857 fi
7858 rm conftest.$ac_ext
7859 fi
252b5132 7860fi
c46f8c51 7861
d7040cdb
SE
7862 output_verbose_link_cmd=echo
7863 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7864 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7865 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7866 else
7867 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7868 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7869 fi
7870 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7871 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7872 else
7873 case $cc_basename in
7874 xlc*)
7875 output_verbose_link_cmd=echo
7876 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7877 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7879 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7880 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7881 ;;
7882 *)
7883 ld_shlibs=no
7884 ;;
7885 esac
7886 fi
7887 ;;
42ecbf5e 7888
d7040cdb
SE
7889 dgux*)
7890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_shlibpath_var=no
7893 ;;
252b5132 7894
d7040cdb
SE
7895 freebsd1*)
7896 ld_shlibs=no
7897 ;;
252b5132 7898
d7040cdb
SE
7899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7900 # support. Future versions do this automatically, but an explicit c++rt0.o
7901 # does not break anything, and helps significantly (at the cost of a little
7902 # extra space).
7903 freebsd2.2*)
7904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7905 hardcode_libdir_flag_spec='-R$libdir'
7906 hardcode_direct=yes
7907 hardcode_shlibpath_var=no
7908 ;;
252b5132 7909
d7040cdb
SE
7910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7911 freebsd2*)
7912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7913 hardcode_direct=yes
7914 hardcode_minus_L=yes
7915 hardcode_shlibpath_var=no
7916 ;;
42ecbf5e 7917
d7040cdb
SE
7918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7919 freebsd* | dragonfly*)
7920 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7921 hardcode_libdir_flag_spec='-R$libdir'
7922 hardcode_direct=yes
7923 hardcode_shlibpath_var=no
7924 ;;
252b5132 7925
d7040cdb
SE
7926 hpux9*)
7927 if test "$GCC" = yes; then
7928 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7929 else
7930 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'
7931 fi
7932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 hardcode_direct=yes
7935
7936 # hardcode_minus_L: Not really in the search PATH,
7937 # but as the default location of the library.
7938 hardcode_minus_L=yes
7939 export_dynamic_flag_spec='${wl}-E'
7940 ;;
20e95c23 7941
d7040cdb
SE
7942 hpux10*)
7943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7945 else
7946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7947 fi
7948 if test "$with_gnu_ld" = no; then
7949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7950 hardcode_libdir_flag_spec_ld='+b $libdir'
7951 hardcode_libdir_separator=:
7952 hardcode_direct=yes
7953 hardcode_direct_absolute=yes
7954 export_dynamic_flag_spec='${wl}-E'
7955 # hardcode_minus_L: Not really in the search PATH,
7956 # but as the default location of the library.
7957 hardcode_minus_L=yes
7958 fi
7959 ;;
20e95c23 7960
d7040cdb
SE
7961 hpux11*)
7962 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7963 case $host_cpu in
7964 hppa*64*)
7965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7966 ;;
7967 ia64*)
7968 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7969 ;;
7970 *)
7971 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7972 ;;
7973 esac
7974 else
7975 case $host_cpu in
7976 hppa*64*)
7977 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 ;;
7979 ia64*)
7980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7981 ;;
7982 *)
7983 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7984 ;;
7985 esac
7986 fi
7987 if test "$with_gnu_ld" = no; then
7988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7989 hardcode_libdir_separator=:
7990
7991 case $host_cpu in
7992 hppa*64*|ia64*)
7993 hardcode_direct=no
7994 hardcode_shlibpath_var=no
7995 ;;
7996 *)
7997 hardcode_direct=yes
7998 hardcode_direct_absolute=yes
7999 export_dynamic_flag_spec='${wl}-E'
8000
8001 # hardcode_minus_L: Not really in the search PATH,
8002 # but as the default location of the library.
8003 hardcode_minus_L=yes
8004 ;;
8005 esac
8006 fi
8007 ;;
8008
8009 irix5* | irix6* | nonstopux*)
8010 if test "$GCC" = yes; then
8011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8012 # Try to use the -exported_symbol ld option, if it does not
8013 # work, assume that -exports_file does not work either and
8014 # implicitly export all symbols.
8015 save_LDFLAGS="$LDFLAGS"
8016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8017 cat >conftest.$ac_ext <<_ACEOF
8018int foo(void) {}
42ecbf5e 8019_ACEOF
d7040cdb
SE
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
1b315056 8029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
d7040cdb 8035 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
d7040cdb
SE
8041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8042
42ecbf5e
DJ
8043else
8044 echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
42ecbf5e 8047fi
d7040cdb
SE
8048rm -f conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8050 LDFLAGS="$save_LDFLAGS"
8051 else
8052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8054 fi
8055 archive_cmds_need_lc='no'
8056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8057 hardcode_libdir_separator=:
8058 inherit_rpath=yes
8059 link_all_deplibs=yes
8060 ;;
42ecbf5e 8061
d7040cdb
SE
8062 netbsd*)
8063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8065 else
8066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8067 fi
8068 hardcode_libdir_flag_spec='-R$libdir'
8069 hardcode_direct=yes
8070 hardcode_shlibpath_var=no
8071 ;;
42ecbf5e 8072
d7040cdb
SE
8073 newsos6)
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_direct=yes
8076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8077 hardcode_libdir_separator=:
8078 hardcode_shlibpath_var=no
8079 ;;
42ecbf5e 8080
d7040cdb
SE
8081 *nto* | *qnx*)
8082 ;;
252b5132 8083
d7040cdb
SE
8084 openbsd*)
8085 hardcode_direct=yes
8086 hardcode_shlibpath_var=no
8087 hardcode_direct_absolute=yes
8088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8090 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8092 export_dynamic_flag_spec='${wl}-E'
8093 else
8094 case $host_os in
8095 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8097 hardcode_libdir_flag_spec='-R$libdir'
8098 ;;
8099 *)
8100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8102 ;;
8103 esac
8104 fi
8105 ;;
252b5132 8106
d7040cdb
SE
8107 os2*)
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 hardcode_minus_L=yes
8110 allow_undefined_flag=unsupported
8111 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'
8112 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8113 ;;
2481e6a2 8114
d7040cdb
SE
8115 osf3*)
8116 if test "$GCC" = yes; then
8117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8118 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8119 else
8120 allow_undefined_flag=' -expect_unresolved \*'
8121 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8122 fi
8123 archive_cmds_need_lc='no'
8124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8125 hardcode_libdir_separator=:
8126 ;;
42ecbf5e 8127
d7040cdb
SE
8128 osf4* | osf5*) # as osf3* with the addition of -msym flag
8129 if test "$GCC" = yes; then
8130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8131 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8133 else
8134 allow_undefined_flag=' -expect_unresolved \*'
8135 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8136 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8137 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
42ecbf5e 8138
d7040cdb
SE
8139 # Both c and cxx compiler support -rpath directly
8140 hardcode_libdir_flag_spec='-rpath $libdir'
8141 fi
8142 archive_cmds_need_lc='no'
8143 hardcode_libdir_separator=:
8144 ;;
8145
8146 solaris*)
8147 no_undefined_flag=' -z defs'
8148 if test "$GCC" = yes; then
8149 wlarc='${wl}'
8150 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8152 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8153 else
8154 case `$CC -V 2>&1` in
8155 *"Compilers 5.0"*)
8156 wlarc=''
8157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8160 ;;
8161 *)
8162 wlarc='${wl}'
8163 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8165 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8166 ;;
8167 esac
8168 fi
8169 hardcode_libdir_flag_spec='-R$libdir'
8170 hardcode_shlibpath_var=no
8171 case $host_os in
8172 solaris2.[0-5] | solaris2.[0-5].*) ;;
8173 *)
8174 # The compiler driver will combine and reorder linker options,
8175 # but understands `-z linker_flag'. GCC discards it without `$wl',
8176 # but is careful enough not to reorder.
8177 # Supported since Solaris 2.6 (maybe 2.5.1?)
8178 if test "$GCC" = yes; then
8179 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8180 else
8181 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8182 fi
8183 ;;
8184 esac
8185 link_all_deplibs=yes
8186 ;;
8187
8188 sunos4*)
8189 if test "x$host_vendor" = xsequent; then
8190 # Use $CC to link under sequent, because it throws in some extra .o
8191 # files that make .init and .fini sections work.
8192 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8193 else
8194 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8195 fi
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_direct=yes
8198 hardcode_minus_L=yes
8199 hardcode_shlibpath_var=no
8200 ;;
8201
8202 sysv4)
8203 case $host_vendor in
8204 sni)
8205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8206 hardcode_direct=yes # is this really true???
8207 ;;
8208 siemens)
8209 ## LD is ld it makes a PLAMLIB
8210 ## CC just makes a GrossModule.
8211 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8212 reload_cmds='$CC -r -o $output$reload_objs'
8213 hardcode_direct=no
8214 ;;
8215 motorola)
8216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8217 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8218 ;;
8219 esac
8220 runpath_var='LD_RUN_PATH'
8221 hardcode_shlibpath_var=no
8222 ;;
8223
8224 sysv4.3*)
8225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8226 hardcode_shlibpath_var=no
8227 export_dynamic_flag_spec='-Bexport'
8228 ;;
8229
8230 sysv4*MP*)
8231 if test -d /usr/nec; then
8232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_shlibpath_var=no
8234 runpath_var=LD_RUN_PATH
8235 hardcode_runpath_var=yes
8236 ld_shlibs=yes
8237 fi
8238 ;;
8239
8240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8241 no_undefined_flag='${wl}-z,text'
8242 archive_cmds_need_lc=no
8243 hardcode_shlibpath_var=no
8244 runpath_var='LD_RUN_PATH'
8245
8246 if test "$GCC" = yes; then
8247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8249 else
8250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8252 fi
8253 ;;
8254
8255 sysv5* | sco3.2v5* | sco5v6*)
8256 # Note: We can NOT use -z defs as we might desire, because we do not
8257 # link with -lc, and that would cause any symbols used from libc to
8258 # always be unresolved, which means just about no library would
8259 # ever link correctly. If we're not using GNU ld we use -z text
8260 # though, which does catch some bad symbols but isn't as heavy-handed
8261 # as -z defs.
8262 no_undefined_flag='${wl}-z,text'
8263 allow_undefined_flag='${wl}-z,nodefs'
8264 archive_cmds_need_lc=no
8265 hardcode_shlibpath_var=no
8266 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8267 hardcode_libdir_separator=':'
8268 link_all_deplibs=yes
8269 export_dynamic_flag_spec='${wl}-Bexport'
8270 runpath_var='LD_RUN_PATH'
8271
8272 if test "$GCC" = yes; then
8273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 else
8276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8278 fi
8279 ;;
8280
8281 uts4*)
8282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 hardcode_shlibpath_var=no
8285 ;;
8286
8287 *)
8288 ld_shlibs=no
8289 ;;
8290 esac
8291
8292 if test x$host_vendor = xsni; then
8293 case $host in
8294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8295 export_dynamic_flag_spec='${wl}-Blargedynsym'
8296 ;;
8297 esac
8298 fi
8299 fi
8300
8301echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8302echo "${ECHO_T}$ld_shlibs" >&6
8303test "$ld_shlibs" = no && can_build_shared=no
8304
8305with_gnu_ld=$with_gnu_ld
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321#
8322# Do we need to explicitly link libc?
8323#
8324case "x$archive_cmds_need_lc" in
8325x|xyes)
8326 # Assume -lc should be added
8327 archive_cmds_need_lc=yes
8328
8329 if test "$enable_shared" = yes && test "$GCC" = yes; then
8330 case $archive_cmds in
8331 *'~'*)
8332 # FIXME: we may have to deal with multi-command sequences.
8333 ;;
8334 '$CC '*)
8335 # Test whether the compiler implicitly links with -lc since on some
8336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8337 # to ld, don't add -lc before -lgcc.
8338 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8339echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8340 $RM conftest*
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8342
8343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8344 (eval $ac_compile) 2>&5
20e95c23
DJ
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8347 (exit $ac_status); } 2>conftest.err; then
8348 soname=conftest
8349 lib=conftest
8350 libobjs=conftest.$ac_objext
8351 deplibs=
8352 wl=$lt_prog_compiler_wl
8353 pic_flag=$lt_prog_compiler_pic
8354 compiler_flags=-v
8355 linker_flags=-v
8356 verstring=
8357 output_objdir=.
8358 libname=conftest
8359 lt_save_allow_undefined_flag=$allow_undefined_flag
8360 allow_undefined_flag=
8361 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8362 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8365 (exit $ac_status); }
8366 then
8367 archive_cmds_need_lc=no
8368 else
8369 archive_cmds_need_lc=yes
8370 fi
8371 allow_undefined_flag=$lt_save_allow_undefined_flag
8372 else
8373 cat conftest.err 1>&5
8374 fi
8375 $RM conftest*
8376 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8377echo "${ECHO_T}$archive_cmds_need_lc" >&6
8378 ;;
8379 esac
8380 fi
8381 ;;
8382esac
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8541echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8542withGCC=$GCC
8543if test "$withGCC" = yes; then
8544 case $host_os in
8545 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8546 *) lt_awk_arg="/^libraries:/" ;;
8547 esac
8548 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8549 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8550 # if the path contains ";" then we assume it to be the separator
8551 # otherwise default to the standard path separator (i.e. ":") - it is
8552 # assumed that no part of a normal pathname contains ";" but that should
8553 # okay in the real world where ";" in dirpaths is itself problematic.
8554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8555 else
8556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8557 fi
8558 # Ok, now we have the path, separated by spaces, we can step through it
8559 # and add multilib dir if necessary.
8560 lt_tmp_lt_search_path_spec=
8561 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8562 for lt_sys_path in $lt_search_path_spec; do
8563 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8565 else
8566 test -d "$lt_sys_path" && \
8567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8568 fi
8569 done
8570 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8571BEGIN {RS=" "; FS="/|\n";} {
8572 lt_foo="";
8573 lt_count=0;
8574 for (lt_i = NF; lt_i > 0; lt_i--) {
8575 if ($lt_i != "" && $lt_i != ".") {
8576 if ($lt_i == "..") {
8577 lt_count++;
8578 } else {
8579 if (lt_count == 0) {
8580 lt_foo="/" $lt_i lt_foo;
8581 } else {
8582 lt_count--;
8583 }
8584 }
8585 }
8586 }
8587 if (lt_foo != "") { lt_freq[lt_foo]++; }
8588 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8589}'`
8590 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8591else
8592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8593fi
8594library_names_spec=
8595libname_spec='lib$name'
8596soname_spec=
8597shrext_cmds=".so"
8598postinstall_cmds=
8599postuninstall_cmds=
8600finish_cmds=
8601finish_eval=
8602shlibpath_var=
8603shlibpath_overrides_runpath=unknown
8604version_type=none
8605dynamic_linker="$host_os ld.so"
8606sys_lib_dlsearch_path_spec="/lib /usr/lib"
8607need_lib_prefix=unknown
8608hardcode_into_libs=no
8609
8610# when you set need_version to no, make sure it does not cause -set_version
8611# flags to be left without arguments
8612need_version=unknown
8613
8614case $host_os in
8615aix3*)
8616 version_type=linux
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8618 shlibpath_var=LIBPATH
8619
8620 # AIX 3 has no versioning support, so we append a major version to the name.
8621 soname_spec='${libname}${release}${shared_ext}$major'
8622 ;;
8623
50e7d84b 8624aix[4-9]*)
d7040cdb
SE
8625 version_type=linux
8626 need_lib_prefix=no
8627 need_version=no
8628 hardcode_into_libs=yes
8629 if test "$host_cpu" = ia64; then
8630 # AIX 5 supports IA64
8631 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 else
8634 # With GCC up to 2.95.x, collect2 would create an import file
8635 # for dependence libraries. The import file would start with
8636 # the line `#! .'. This would cause the generated library to
8637 # depend on `.', always an invalid library. This was fixed in
8638 # development snapshots of GCC prior to 3.0.
8639 case $host_os in
8640 aix4 | aix4.[01] | aix4.[01].*)
8641 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8642 echo ' yes '
8643 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8644 :
8645 else
8646 can_build_shared=no
8647 fi
8648 ;;
8649 esac
8650 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8651 # soname into executable. Probably we can add versioning support to
8652 # collect2, so additional links can be useful in future.
8653 if test "$aix_use_runtimelinking" = yes; then
8654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8655 # instead of lib<name>.a to let people know that these are not
8656 # typical AIX shared libraries.
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8658 else
8659 # We preserve .a as extension for shared libraries through AIX4.2
8660 # and later when we are not doing run time linking.
8661 library_names_spec='${libname}${release}.a $libname.a'
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 fi
8664 shlibpath_var=LIBPATH
8665 fi
8666 ;;
8667
8668amigaos*)
8669 if test "$host_cpu" = m68k; then
8670 library_names_spec='$libname.ixlibrary $libname.a'
8671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8672 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'
8673 else
8674 dynamic_linker=no
8675 fi
8676 ;;
8677
8678beos*)
8679 library_names_spec='${libname}${shared_ext}'
8680 dynamic_linker="$host_os ld.so"
8681 shlibpath_var=LIBRARY_PATH
8682 ;;
8683
8684bsdi[45]*)
8685 version_type=linux
8686 need_version=no
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8693 # the default ld.so.conf also contains /usr/contrib/lib and
8694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8695 # libtool to hard-code these into programs
8696 ;;
8697
8698cygwin* | mingw* | pw32*)
8699 version_type=windows
8700 shrext_cmds=".dll"
8701 need_version=no
8702 need_lib_prefix=no
8703
8704 case $withGCC,$host_os in
8705 yes,cygwin* | yes,mingw* | yes,pw32*)
8706 library_names_spec='$libname.dll.a'
8707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8708 postinstall_cmds='base_file=`basename \${file}`~
8709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8710 dldir=$destdir/`dirname \$dlpath`~
8711 test -d \$dldir || mkdir -p \$dldir~
8712 $install_prog $dir/$dlname \$dldir/$dlname~
8713 chmod a+x \$dldir/$dlname~
8714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8716 fi'
8717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8718 dlpath=$dir/\$dldll~
8719 $RM \$dlpath'
8720 shlibpath_overrides_runpath=yes
8721
8722 case $host_os in
8723 cygwin*)
8724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8727 ;;
8728 mingw*)
8729 # MinGW DLLs use traditional 'lib' prefix
8730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8733 # It is most probably a Windows format PATH printed by
8734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8735 # path with ; separators, and with drive letters. We can handle the
8736 # drive letters (cygwin fileutils understands them), so leave them,
8737 # especially as we might pass files found there to a mingw objdump,
8738 # which wouldn't understand a cygwinified path. Ahh.
8739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8740 else
8741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8742 fi
8743 ;;
8744 pw32*)
8745 # pw32 DLLs use 'pw' prefix rather than 'lib'
8746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 ;;
8748 esac
8749 ;;
8750
8751 *)
8752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8753 ;;
8754 esac
8755 dynamic_linker='Win32 ld.exe'
8756 # FIXME: first we should search . and the directory the executable is in
8757 shlibpath_var=PATH
8758 ;;
8759
8760darwin* | rhapsody*)
8761 dynamic_linker="$host_os dyld"
8762 version_type=darwin
8763 need_lib_prefix=no
8764 need_version=no
8765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8766 soname_spec='${libname}${release}${major}$shared_ext'
8767 shlibpath_overrides_runpath=yes
8768 shlibpath_var=DYLD_LIBRARY_PATH
8769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8770
8771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8773 ;;
8774
8775dgux*)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 ;;
8783
8784freebsd1*)
8785 dynamic_linker=no
8786 ;;
8787
8788freebsd* | dragonfly*)
8789 # DragonFly does not have aout. When/if they implement a new
8790 # versioning mechanism, adjust this.
8791 if test -x /usr/bin/objformat; then
8792 objformat=`/usr/bin/objformat`
8793 else
8794 case $host_os in
8795 freebsd[123]*) objformat=aout ;;
8796 *) objformat=elf ;;
8797 esac
8798 fi
8799 version_type=freebsd-$objformat
8800 case $version_type in
8801 freebsd-elf*)
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803 need_version=no
8804 need_lib_prefix=no
8805 ;;
8806 freebsd-*)
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8808 need_version=yes
8809 ;;
8810 esac
8811 shlibpath_var=LD_LIBRARY_PATH
8812 case $host_os in
8813 freebsd2*)
8814 shlibpath_overrides_runpath=yes
8815 ;;
8816 freebsd3.[01]* | freebsdelf3.[01]*)
8817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8819 ;;
8820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8822 shlibpath_overrides_runpath=no
8823 hardcode_into_libs=yes
8824 ;;
8825 *) # from 4.6 on, and DragonFly
8826 shlibpath_overrides_runpath=yes
8827 hardcode_into_libs=yes
8828 ;;
8829 esac
8830 ;;
8831
8832gnu*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 hardcode_into_libs=yes
8840 ;;
8841
8842hpux9* | hpux10* | hpux11*)
8843 # Give a soname corresponding to the major version so that dld.sl refuses to
8844 # link against other versions.
8845 version_type=sunos
8846 need_lib_prefix=no
8847 need_version=no
8848 case $host_cpu in
8849 ia64*)
8850 shrext_cmds='.so'
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.so"
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 if test "X$HPUX_IA64_MODE" = X32; then
8858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8859 else
8860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8861 fi
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863 ;;
8864 hppa*64*)
8865 shrext_cmds='.sl'
8866 hardcode_into_libs=yes
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8874 ;;
8875 *)
8876 shrext_cmds='.sl'
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=SHLIB_PATH
8879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 ;;
8883 esac
8884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8885 postinstall_cmds='chmod 555 $lib'
8886 ;;
8887
8888interix[3-9]*)
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 hardcode_into_libs=yes
8898 ;;
8899
8900irix5* | irix6* | nonstopux*)
8901 case $host_os in
8902 nonstopux*) version_type=nonstopux ;;
8903 *)
8904 if test "$lt_cv_prog_gnu_ld" = yes; then
8905 version_type=linux
8906 else
8907 version_type=irix
8908 fi ;;
8909 esac
8910 need_lib_prefix=no
8911 need_version=no
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 case $host_os in
8915 irix5* | nonstopux*)
8916 libsuff= shlibsuff=
8917 ;;
8918 *)
8919 case $LD in # libtool.m4 will add one of these switches to LD
8920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8921 libsuff= shlibsuff= libmagic=32-bit;;
8922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8923 libsuff=32 shlibsuff=N32 libmagic=N32;;
8924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8926 *) libsuff= shlibsuff= libmagic=never-match;;
8927 esac
8928 ;;
8929 esac
8930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8931 shlibpath_overrides_runpath=no
8932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8934 hardcode_into_libs=yes
8935 ;;
8936
8937# No shared lib support for Linux oldld, aout, or coff.
8938linux*oldld* | linux*aout* | linux*coff*)
8939 dynamic_linker=no
8940 ;;
8941
8942# This must be Linux ELF.
8943linux* | k*bsd*-gnu)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=no
8952 # Some binutils ld are patched to set DT_RUNPATH
8953 save_LDFLAGS=$LDFLAGS
8954 save_libdir=$libdir
8955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8957 cat >conftest.$ac_ext <<_ACEOF
8958/* confdefs.h. */
8959_ACEOF
8960cat confdefs.h >>conftest.$ac_ext
8961cat >>conftest.$ac_ext <<_ACEOF
8962/* end confdefs.h. */
8963
8964int
8965main ()
8966{
8967
8968 ;
8969 return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext conftest$ac_exeext
8973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
1b315056 8981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8994 shlibpath_overrides_runpath=yes
8995fi
8996
8997else
8998 echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
9001fi
9002rm -f conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 LDFLAGS=$save_LDFLAGS
9005 libdir=$save_libdir
9006
9007 # This implies no fast_install, which is unacceptable.
9008 # Some rework will be needed to allow for fast_install
9009 # before this can be enabled.
9010 hardcode_into_libs=yes
9011
9012 # Append ld.so.conf contents to the search path
9013 if test -f /etc/ld.so.conf; then
9014 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9016 fi
9017
9018 # We used to test for /lib/ld.so.1 and disable shared libraries on
9019 # powerpc, because MkLinux only supported shared libraries with the
9020 # GNU dynamic linker. Since this was broken with cross compilers,
9021 # most powerpc-linux boxes support dynamic linking these days and
9022 # people can always --disable-shared, the test was removed, and we
9023 # assume the GNU/Linux dynamic linker is in use.
9024 dynamic_linker='GNU/Linux ld.so'
9025 ;;
9026
9027netbsd*)
9028 version_type=sunos
9029 need_lib_prefix=no
9030 need_version=no
9031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9034 dynamic_linker='NetBSD (a.out) ld.so'
9035 else
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 dynamic_linker='NetBSD ld.elf_so'
9039 fi
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 hardcode_into_libs=yes
9043 ;;
9044
9045newsos6)
9046 version_type=linux
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 ;;
9051
9052*nto* | *qnx*)
9053 version_type=qnx
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=no
9060 hardcode_into_libs=yes
9061 dynamic_linker='ldqnx.so'
9062 ;;
9063
9064openbsd*)
9065 version_type=sunos
9066 sys_lib_dlsearch_path_spec="/usr/lib"
9067 need_lib_prefix=no
9068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9069 case $host_os in
9070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9071 *) need_version=no ;;
9072 esac
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9077 case $host_os in
9078 openbsd2.[89] | openbsd2.[89].*)
9079 shlibpath_overrides_runpath=no
9080 ;;
9081 *)
9082 shlibpath_overrides_runpath=yes
9083 ;;
9084 esac
9085 else
9086 shlibpath_overrides_runpath=yes
9087 fi
9088 ;;
9089
9090os2*)
9091 libname_spec='$name'
9092 shrext_cmds=".dll"
9093 need_lib_prefix=no
9094 library_names_spec='$libname${shared_ext} $libname.a'
9095 dynamic_linker='OS/2 ld.exe'
9096 shlibpath_var=LIBPATH
9097 ;;
9098
9099osf3* | osf4* | osf5*)
9100 version_type=osf
9101 need_lib_prefix=no
9102 need_version=no
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9108 ;;
9109
9110rdos*)
9111 dynamic_linker=no
9112 ;;
9113
9114solaris*)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 # ldd complains unless libraries are executable
9124 postinstall_cmds='chmod +x $lib'
9125 ;;
9126
9127sunos4*)
9128 version_type=sunos
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 if test "$with_gnu_ld" = yes; then
9134 need_lib_prefix=no
9135 fi
9136 need_version=yes
9137 ;;
9138
9139sysv4 | sysv4.3*)
9140 version_type=linux
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 case $host_vendor in
9145 sni)
9146 shlibpath_overrides_runpath=no
9147 need_lib_prefix=no
9148 runpath_var=LD_RUN_PATH
9149 ;;
9150 siemens)
9151 need_lib_prefix=no
9152 ;;
9153 motorola)
9154 need_lib_prefix=no
9155 need_version=no
9156 shlibpath_overrides_runpath=no
9157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9158 ;;
9159 esac
9160 ;;
9161
9162sysv4*MP*)
9163 if test -d /usr/nec ;then
9164 version_type=linux
9165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9166 soname_spec='$libname${shared_ext}.$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 fi
9169 ;;
9170
9171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9172 version_type=freebsd-elf
9173 need_lib_prefix=no
9174 need_version=no
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 shlibpath_overrides_runpath=yes
9179 hardcode_into_libs=yes
9180 if test "$with_gnu_ld" = yes; then
9181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9182 else
9183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9184 case $host_os in
9185 sco3.2v5*)
9186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9187 ;;
9188 esac
9189 fi
9190 sys_lib_dlsearch_path_spec='/usr/lib'
9191 ;;
9192
9193tpf*)
9194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 ;;
9203
9204uts4*)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 ;;
9210
9211*)
9212 dynamic_linker=no
9213 ;;
9214esac
9215echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9216echo "${ECHO_T}$dynamic_linker" >&6
9217test "$dynamic_linker" = no && can_build_shared=no
9218
9219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9220if test "$GCC" = yes; then
9221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9222fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9311echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9312hardcode_action=
9313if test -n "$hardcode_libdir_flag_spec" ||
9314 test -n "$runpath_var" ||
9315 test "X$hardcode_automatic" = "Xyes" ; then
9316
9317 # We can hardcode non-existent directories.
9318 if test "$hardcode_direct" != no &&
9319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9320 # have to relink, otherwise we might link with an installed library
9321 # when we should be linking with a yet-to-be-installed one
9322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9323 test "$hardcode_minus_L" != no; then
9324 # Linking always hardcodes the temporary library directory.
9325 hardcode_action=relink
9326 else
9327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9328 hardcode_action=immediate
9329 fi
9330else
9331 # We cannot hardcode anything, or else we can only hardcode existing
9332 # directories.
9333 hardcode_action=unsupported
9334fi
9335echo "$as_me:$LINENO: result: $hardcode_action" >&5
9336echo "${ECHO_T}$hardcode_action" >&6
9337
9338if test "$hardcode_action" = relink ||
9339 test "$inherit_rpath" = yes; then
9340 # Fast installation is not supported
9341 enable_fast_install=no
9342elif test "$shlibpath_overrides_runpath" = yes ||
9343 test "$enable_shared" = no; then
9344 # Fast installation is not necessary
9345 enable_fast_install=needless
9346fi
9347
9348
9349
9350
9351
9352
9353 if test "x$enable_dlopen" != xyes; then
9354 enable_dlopen=unknown
9355 enable_dlopen_self=unknown
9356 enable_dlopen_self_static=unknown
9357else
9358 lt_cv_dlopen=no
9359 lt_cv_dlopen_libs=
9360
9361 case $host_os in
9362 beos*)
9363 lt_cv_dlopen="load_add_on"
9364 lt_cv_dlopen_libs=
9365 lt_cv_dlopen_self=yes
9366 ;;
9367
9368 mingw* | pw32*)
9369 lt_cv_dlopen="LoadLibrary"
9370 lt_cv_dlopen_libs=
9371 ;;
9372
9373 cygwin*)
9374 lt_cv_dlopen="dlopen"
9375 lt_cv_dlopen_libs=
9376 ;;
9377
9378 darwin*)
9379 # if libdl is installed we need to link against it
9380 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9382if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 ac_check_lib_save_LIBS=$LIBS
9386LIBS="-ldl $LIBS"
9387cat >conftest.$ac_ext <<_ACEOF
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
9393
9394/* Override any gcc2 internal prototype to avoid an error. */
9395#ifdef __cplusplus
9396extern "C"
9397#endif
9398/* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400char dlopen ();
9401int
9402main ()
9403{
9404dlopen ();
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest.$ac_objext conftest$ac_exeext
9410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
1b315056 9418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 ac_cv_lib_dl_dlopen=yes
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435ac_cv_lib_dl_dlopen=no
9436fi
9437rm -f conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439LIBS=$ac_check_lib_save_LIBS
9440fi
9441echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9442echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9443if test $ac_cv_lib_dl_dlopen = yes; then
9444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9445else
9446
9447 lt_cv_dlopen="dyld"
9448 lt_cv_dlopen_libs=
9449 lt_cv_dlopen_self=yes
9450
9451fi
9452
9453 ;;
9454
9455 *)
9456 echo "$as_me:$LINENO: checking for shl_load" >&5
9457echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9458if test "${ac_cv_func_shl_load+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461 cat >conftest.$ac_ext <<_ACEOF
9462/* confdefs.h. */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h. */
9467/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9469#define shl_load innocuous_shl_load
9470
9471/* System header to define __stub macros and hopefully few prototypes,
9472 which can conflict with char shl_load (); below.
9473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9474 <limits.h> exists even on freestanding compilers. */
9475
9476#ifdef __STDC__
9477# include <limits.h>
9478#else
9479# include <assert.h>
9480#endif
9481
9482#undef shl_load
9483
9484/* Override any gcc2 internal prototype to avoid an error. */
9485#ifdef __cplusplus
9486extern "C"
9487{
9488#endif
9489/* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9491char shl_load ();
9492/* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495#if defined (__stub_shl_load) || defined (__stub___shl_load)
9496choke me
9497#else
9498char (*f) () = shl_load;
9499#endif
9500#ifdef __cplusplus
9501}
9502#endif
9503
9504int
9505main ()
9506{
9507return f != shl_load;
9508 ;
9509 return 0;
9510}
9511_ACEOF
9512rm -f conftest.$ac_objext conftest$ac_exeext
9513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
1b315056 9521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_func_shl_load=yes
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538ac_cv_func_shl_load=no
9539fi
9540rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542fi
9543echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9544echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9545if test $ac_cv_func_shl_load = yes; then
9546 lt_cv_dlopen="shl_load"
9547else
9548 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9549echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9550if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 ac_check_lib_save_LIBS=$LIBS
9554LIBS="-ldld $LIBS"
9555cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
9561
9562/* Override any gcc2 internal prototype to avoid an error. */
9563#ifdef __cplusplus
9564extern "C"
9565#endif
9566/* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9568char shl_load ();
9569int
9570main ()
9571{
9572shl_load ();
9573 ;
9574 return 0;
9575}
9576_ACEOF
9577rm -f conftest.$ac_objext conftest$ac_exeext
9578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
1b315056 9586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest$ac_exeext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_lib_dld_shl_load=yes
9599else
9600 echo "$as_me: failed program was:" >&5
9601sed 's/^/| /' conftest.$ac_ext >&5
9602
9603ac_cv_lib_dld_shl_load=no
9604fi
9605rm -f conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607LIBS=$ac_check_lib_save_LIBS
9608fi
9609echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9610echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9611if test $ac_cv_lib_dld_shl_load = yes; then
9612 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9613else
9614 echo "$as_me:$LINENO: checking for dlopen" >&5
9615echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9616if test "${ac_cv_func_dlopen+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618else
9619 cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h. */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h. */
9625/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9627#define dlopen innocuous_dlopen
9628
9629/* System header to define __stub macros and hopefully few prototypes,
9630 which can conflict with char dlopen (); below.
9631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 <limits.h> exists even on freestanding compilers. */
9633
9634#ifdef __STDC__
9635# include <limits.h>
9636#else
9637# include <assert.h>
9638#endif
9639
9640#undef dlopen
9641
9642/* Override any gcc2 internal prototype to avoid an error. */
9643#ifdef __cplusplus
9644extern "C"
9645{
9646#endif
9647/* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649char dlopen ();
9650/* The GNU C library defines this for functions which it implements
9651 to always fail with ENOSYS. Some functions are actually named
9652 something starting with __ and the normal name is an alias. */
9653#if defined (__stub_dlopen) || defined (__stub___dlopen)
9654choke me
9655#else
9656char (*f) () = dlopen;
9657#endif
9658#ifdef __cplusplus
9659}
9660#endif
9661
9662int
9663main ()
9664{
9665return f != dlopen;
9666 ;
9667 return 0;
9668}
9669_ACEOF
9670rm -f conftest.$ac_objext conftest$ac_exeext
9671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672 (eval $ac_link) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
1b315056 9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_func_dlopen=yes
9692else
9693 echo "$as_me: failed program was:" >&5
9694sed 's/^/| /' conftest.$ac_ext >&5
9695
9696ac_cv_func_dlopen=no
9697fi
9698rm -f conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9700fi
9701echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9702echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9703if test $ac_cv_func_dlopen = yes; then
9704 lt_cv_dlopen="dlopen"
9705else
9706 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else
9711 ac_check_lib_save_LIBS=$LIBS
9712LIBS="-ldl $LIBS"
9713cat >conftest.$ac_ext <<_ACEOF
9714/* confdefs.h. */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h. */
9719
9720/* Override any gcc2 internal prototype to avoid an error. */
9721#ifdef __cplusplus
9722extern "C"
9723#endif
9724/* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9726char dlopen ();
9727int
9728main ()
9729{
9730dlopen ();
9731 ;
9732 return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext conftest$ac_exeext
9736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
1b315056 9744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_lib_dl_dlopen=yes
9757else
9758 echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761ac_cv_lib_dl_dlopen=no
9762fi
9763rm -f conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765LIBS=$ac_check_lib_save_LIBS
9766fi
9767echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9769if test $ac_cv_lib_dl_dlopen = yes; then
9770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9771else
9772 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9773echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9774if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777 ac_check_lib_save_LIBS=$LIBS
9778LIBS="-lsvld $LIBS"
9779cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785
9786/* Override any gcc2 internal prototype to avoid an error. */
9787#ifdef __cplusplus
9788extern "C"
9789#endif
9790/* We use char because int might match the return type of a gcc2
9791 builtin and then its argument prototype would still apply. */
9792char dlopen ();
9793int
9794main ()
9795{
9796dlopen ();
9797 ;
9798 return 0;
9799}
9800_ACEOF
9801rm -f conftest.$ac_objext conftest$ac_exeext
9802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
1b315056 9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_lib_svld_dlopen=yes
9823else
9824 echo "$as_me: failed program was:" >&5
9825sed 's/^/| /' conftest.$ac_ext >&5
9826
9827ac_cv_lib_svld_dlopen=no
9828fi
9829rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831LIBS=$ac_check_lib_save_LIBS
9832fi
9833echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9834echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9835if test $ac_cv_lib_svld_dlopen = yes; then
9836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9837else
9838 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9839echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9840if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842else
9843 ac_check_lib_save_LIBS=$LIBS
9844LIBS="-ldld $LIBS"
9845cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h. */
9851
9852/* Override any gcc2 internal prototype to avoid an error. */
9853#ifdef __cplusplus
9854extern "C"
9855#endif
9856/* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9858char dld_link ();
9859int
9860main ()
9861{
9862dld_link ();
9863 ;
9864 return 0;
9865}
9866_ACEOF
9867rm -f conftest.$ac_objext conftest$ac_exeext
9868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
1b315056 9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dld_dld_link=yes
9889else
9890 echo "$as_me: failed program was:" >&5
9891sed 's/^/| /' conftest.$ac_ext >&5
9892
9893ac_cv_lib_dld_dld_link=no
9894fi
9895rm -f conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
9899echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9900echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9901if test $ac_cv_lib_dld_dld_link = yes; then
9902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9903fi
9904
9905
9906fi
9907
9908
9909fi
9910
9911
9912fi
9913
9914
9915fi
9916
9917
9918fi
9919
9920 ;;
9921 esac
9922
9923 if test "x$lt_cv_dlopen" != xno; then
9924 enable_dlopen=yes
9925 else
9926 enable_dlopen=no
9927 fi
9928
9929 case $lt_cv_dlopen in
9930 dlopen)
9931 save_CPPFLAGS="$CPPFLAGS"
9932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9933
9934 save_LDFLAGS="$LDFLAGS"
9935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9936
9937 save_LIBS="$LIBS"
9938 LIBS="$lt_cv_dlopen_libs $LIBS"
9939
9940 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9941echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9942if test "${lt_cv_dlopen_self+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945 if test "$cross_compiling" = yes; then :
9946 lt_cv_dlopen_self=cross
9947else
9948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9949 lt_status=$lt_dlunknown
9950 cat > conftest.$ac_ext <<_LT_EOF
1b315056 9951#line 9951 "configure"
d7040cdb
SE
9952#include "confdefs.h"
9953
9954#if HAVE_DLFCN_H
9955#include <dlfcn.h>
9956#endif
9957
9958#include <stdio.h>
9959
9960#ifdef RTLD_GLOBAL
9961# define LT_DLGLOBAL RTLD_GLOBAL
9962#else
9963# ifdef DL_GLOBAL
9964# define LT_DLGLOBAL DL_GLOBAL
9965# else
9966# define LT_DLGLOBAL 0
9967# endif
9968#endif
9969
9970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9971 find out it does not work in some platform. */
9972#ifndef LT_DLLAZY_OR_NOW
9973# ifdef RTLD_LAZY
9974# define LT_DLLAZY_OR_NOW RTLD_LAZY
9975# else
9976# ifdef DL_LAZY
9977# define LT_DLLAZY_OR_NOW DL_LAZY
9978# else
9979# ifdef RTLD_NOW
9980# define LT_DLLAZY_OR_NOW RTLD_NOW
9981# else
9982# ifdef DL_NOW
9983# define LT_DLLAZY_OR_NOW DL_NOW
9984# else
9985# define LT_DLLAZY_OR_NOW 0
9986# endif
9987# endif
9988# endif
9989# endif
9990#endif
9991
9992#ifdef __cplusplus
9993extern "C" void exit (int);
9994#endif
9995
9996void fnord() { int i=42;}
9997int main ()
9998{
9999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000 int status = $lt_dlunknown;
10001
10002 if (self)
10003 {
10004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006 /* dlclose (self); */
10007 }
10008 else
10009 puts (dlerror ());
10010
10011 exit (status);
10012}
10013_LT_EOF
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10019 (./conftest; exit; ) >&5 2>/dev/null
10020 lt_status=$?
10021 case x$lt_status in
10022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10024 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10025 esac
10026 else :
10027 # compilation failed
10028 lt_cv_dlopen_self=no
10029 fi
10030fi
10031rm -fr conftest*
10032
10033
10034fi
10035echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10036echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10037
10038 if test "x$lt_cv_dlopen_self" = xyes; then
10039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10041echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10042if test "${lt_cv_dlopen_self_static+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044else
10045 if test "$cross_compiling" = yes; then :
10046 lt_cv_dlopen_self_static=cross
10047else
10048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10049 lt_status=$lt_dlunknown
10050 cat > conftest.$ac_ext <<_LT_EOF
1b315056 10051#line 10051 "configure"
d7040cdb
SE
10052#include "confdefs.h"
10053
10054#if HAVE_DLFCN_H
10055#include <dlfcn.h>
10056#endif
10057
10058#include <stdio.h>
10059
10060#ifdef RTLD_GLOBAL
10061# define LT_DLGLOBAL RTLD_GLOBAL
10062#else
10063# ifdef DL_GLOBAL
10064# define LT_DLGLOBAL DL_GLOBAL
10065# else
10066# define LT_DLGLOBAL 0
10067# endif
10068#endif
10069
10070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10071 find out it does not work in some platform. */
10072#ifndef LT_DLLAZY_OR_NOW
10073# ifdef RTLD_LAZY
10074# define LT_DLLAZY_OR_NOW RTLD_LAZY
10075# else
10076# ifdef DL_LAZY
10077# define LT_DLLAZY_OR_NOW DL_LAZY
10078# else
10079# ifdef RTLD_NOW
10080# define LT_DLLAZY_OR_NOW RTLD_NOW
10081# else
10082# ifdef DL_NOW
10083# define LT_DLLAZY_OR_NOW DL_NOW
10084# else
10085# define LT_DLLAZY_OR_NOW 0
10086# endif
10087# endif
10088# endif
10089# endif
10090#endif
10091
10092#ifdef __cplusplus
10093extern "C" void exit (int);
10094#endif
10095
10096void fnord() { int i=42;}
10097int main ()
10098{
10099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10100 int status = $lt_dlunknown;
10101
10102 if (self)
10103 {
10104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10106 /* dlclose (self); */
10107 }
10108 else
10109 puts (dlerror ());
10110
10111 exit (status);
10112}
10113_LT_EOF
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10119 (./conftest; exit; ) >&5 2>/dev/null
10120 lt_status=$?
10121 case x$lt_status in
10122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10125 esac
10126 else :
10127 # compilation failed
10128 lt_cv_dlopen_self_static=no
10129 fi
10130fi
10131rm -fr conftest*
10132
10133
10134fi
10135echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10136echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10137 fi
10138
10139 CPPFLAGS="$save_CPPFLAGS"
10140 LDFLAGS="$save_LDFLAGS"
10141 LIBS="$save_LIBS"
10142 ;;
10143 esac
10144
10145 case $lt_cv_dlopen_self in
10146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10147 *) enable_dlopen_self=unknown ;;
10148 esac
10149
10150 case $lt_cv_dlopen_self_static in
10151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10152 *) enable_dlopen_self_static=unknown ;;
10153 esac
10154fi
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172striplib=
10173old_striplib=
10174echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10175echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10176if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181else
10182# FIXME - insert some real tests, host_os isn't really good enough
10183 case $host_os in
10184 darwin*)
10185 if test -n "$STRIP" ; then
10186 striplib="$STRIP -x"
10187 old_striplib="$STRIP -S"
10188 echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
10193 fi
10194 ;;
10195 *)
10196 echo "$as_me:$LINENO: result: no" >&5
10197echo "${ECHO_T}no" >&6
10198 ;;
10199 esac
10200fi
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213 # Report which library types will actually be built
10214 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10215echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10216 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10217echo "${ECHO_T}$can_build_shared" >&6
10218
10219 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10220echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10221 test "$can_build_shared" = "no" && enable_shared=no
10222
10223 # On AIX, shared libraries and static libraries use the same namespace, and
10224 # are all built from PIC.
10225 case $host_os in
10226 aix3*)
10227 test "$enable_shared" = yes && enable_static=no
10228 if test -n "$RANLIB"; then
10229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10230 postinstall_cmds='$RANLIB $lib'
10231 fi
10232 ;;
10233
50e7d84b 10234 aix[4-9]*)
d7040cdb
SE
10235 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10236 test "$enable_shared" = yes && enable_static=no
10237 fi
10238 ;;
10239 esac
10240 echo "$as_me:$LINENO: result: $enable_shared" >&5
10241echo "${ECHO_T}$enable_shared" >&6
10242
10243 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10244echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10245 # Make sure either enable_shared or enable_static is yes.
10246 test "$enable_shared" = yes || enable_static=yes
10247 echo "$as_me:$LINENO: result: $enable_static" >&5
10248echo "${ECHO_T}$enable_static" >&6
10249
10250
10251
10252
10253fi
10254ac_ext=c
10255ac_cpp='$CPP $CPPFLAGS'
10256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258ac_compiler_gnu=$ac_cv_c_compiler_gnu
10259
10260CC="$lt_save_CC"
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274 ac_config_commands="$ac_config_commands libtool"
10275
10276
10277
10278
10279# Only expand once:
10280
10281
10282
10283# Check whether --enable-targets or --disable-targets was given.
10284if test "${enable_targets+set}" = set; then
10285 enableval="$enable_targets"
10286 case "${enableval}" in
10287 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10288echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10289 { (exit 1); exit 1; }; }
10290 ;;
10291 no) enable_targets= ;;
10292 *) enable_targets=$enableval ;;
10293esac
10294fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10295if test "${enable_commonbfdlib+set}" = set; then
10296 enableval="$enable_commonbfdlib"
10297 case "${enableval}" in
10298 yes) commonbfdlib=true ;;
10299 no) commonbfdlib=false ;;
10300 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10301echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10302 { (exit 1); exit 1; }; } ;;
10303esac
10304fi;
10305
10306GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10307
10308# Check whether --enable-werror or --disable-werror was given.
10309if test "${enable_werror+set}" = set; then
10310 enableval="$enable_werror"
10311 case "${enableval}" in
10312 yes | y) ERROR_ON_WARNING="yes" ;;
10313 no | n) ERROR_ON_WARNING="no" ;;
10314 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10315echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10316 { (exit 1); exit 1; }; } ;;
10317 esac
10318fi;
10319
bb8541b9
L
10320# Enable -Wno-format by default when using gcc on mingw
10321case "${host}" in
10322 *-*-mingw32*)
10323 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10324 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10325 fi
10326 ;;
10327 *) ;;
10328esac
10329
d7040cdb
SE
10330# Enable -Werror by default when using gcc
10331if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10332 ERROR_ON_WARNING=yes
10333fi
10334
10335NO_WERROR=
10336if test "${ERROR_ON_WARNING}" = yes ; then
10337 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10338 NO_WERROR="-Wno-error"
10339fi
10340
10341if test "${GCC}" = yes ; then
10342 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10343fi
10344
10345# Check whether --enable-build-warnings or --disable-build-warnings was given.
10346if test "${enable_build_warnings+set}" = set; then
10347 enableval="$enable_build_warnings"
10348 case "${enableval}" in
10349 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10350 no) if test "${GCC}" = yes ; then
10351 WARN_CFLAGS="-w"
10352 fi;;
10353 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10354 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10355 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10356 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10357 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10358esac
10359fi;
10360
10361if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10362 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10363fi
10364
10365
10366
10367
10368
10369 ac_config_headers="$ac_config_headers config.h:config.in"
10370
10371
10372if test -z "$target" ; then
10373 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10374echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10375 { (exit 1); exit 1; }; }
10376fi
10377if test -z "$host" ; then
10378 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10379echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10380 { (exit 1); exit 1; }; }
10381fi
10382
10383for ac_prog in 'bison -y' byacc
10384do
10385 # Extract the first word of "$ac_prog", so it can be a program name with args.
10386set dummy $ac_prog; ac_word=$2
10387echo "$as_me:$LINENO: checking for $ac_word" >&5
10388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389if test "${ac_cv_prog_YACC+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392 if test -n "$YACC"; then
10393 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_YACC="$ac_prog"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407done
10408
10409fi
10410fi
10411YACC=$ac_cv_prog_YACC
10412if test -n "$YACC"; then
10413 echo "$as_me:$LINENO: result: $YACC" >&5
10414echo "${ECHO_T}$YACC" >&6
10415else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418fi
10419
10420 test -n "$YACC" && break
10421done
10422test -n "$YACC" || YACC="yacc"
10423
10424for ac_prog in flex lex
10425do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427set dummy $ac_prog; ac_word=$2
10428echo "$as_me:$LINENO: checking for $ac_word" >&5
10429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430if test "${ac_cv_prog_LEX+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433 if test -n "$LEX"; then
10434 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_LEX="$ac_prog"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448done
10449
10450fi
10451fi
10452LEX=$ac_cv_prog_LEX
10453if test -n "$LEX"; then
10454 echo "$as_me:$LINENO: result: $LEX" >&5
10455echo "${ECHO_T}$LEX" >&6
10456else
10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
10459fi
10460
10461 test -n "$LEX" && break
10462done
10463test -n "$LEX" || LEX=":"
10464
10465if test -z "$LEXLIB"
10466then
10467 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10468echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10469if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471else
10472 ac_check_lib_save_LIBS=$LIBS
10473LIBS="-lfl $LIBS"
10474cat >conftest.$ac_ext <<_ACEOF
10475/* confdefs.h. */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h. */
10480
10481/* Override any gcc2 internal prototype to avoid an error. */
10482#ifdef __cplusplus
10483extern "C"
10484#endif
10485/* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487char yywrap ();
10488int
10489main ()
10490{
10491yywrap ();
10492 ;
10493 return 0;
10494}
10495_ACEOF
10496rm -f conftest.$ac_objext conftest$ac_exeext
10497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
1b315056 10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_lib_fl_yywrap=yes
10518else
10519 echo "$as_me: failed program was:" >&5
10520sed 's/^/| /' conftest.$ac_ext >&5
10521
10522ac_cv_lib_fl_yywrap=no
10523fi
10524rm -f conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526LIBS=$ac_check_lib_save_LIBS
10527fi
10528echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10529echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10530if test $ac_cv_lib_fl_yywrap = yes; then
10531 LEXLIB="-lfl"
10532else
10533 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10534echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10535if test "${ac_cv_lib_l_yywrap+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538 ac_check_lib_save_LIBS=$LIBS
10539LIBS="-ll $LIBS"
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
10546
10547/* Override any gcc2 internal prototype to avoid an error. */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551/* We use char because int might match the return type of a gcc2
10552 builtin and then its argument prototype would still apply. */
10553char yywrap ();
10554int
10555main ()
10556{
10557yywrap ();
10558 ;
10559 return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
1b315056 10571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_lib_l_yywrap=yes
10584else
10585 echo "$as_me: failed program was:" >&5
10586sed 's/^/| /' conftest.$ac_ext >&5
10587
10588ac_cv_lib_l_yywrap=no
10589fi
10590rm -f conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10592LIBS=$ac_check_lib_save_LIBS
10593fi
10594echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10595echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10596if test $ac_cv_lib_l_yywrap = yes; then
10597 LEXLIB="-ll"
10598fi
10599
10600fi
10601
10602fi
10603
10604if test "x$LEX" != "x:"; then
10605 echo "$as_me:$LINENO: checking lex output file root" >&5
10606echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10607if test "${ac_cv_prog_lex_root+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 # The minimal lex program is just a single line: %%. But some broken lexes
10611# (Solaris, I think it was) want two %% lines, so accommodate them.
10612cat >conftest.l <<_ACEOF
10613%%
10614%%
10615_ACEOF
10616{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10617 (eval $LEX conftest.l) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }
10621if test -f lex.yy.c; then
10622 ac_cv_prog_lex_root=lex.yy
10623elif test -f lexyy.c; then
10624 ac_cv_prog_lex_root=lexyy
10625else
10626 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10627echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10628 { (exit 1); exit 1; }; }
10629fi
10630fi
10631echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10632echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10633rm -f conftest.l
10634LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10635
10636echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10637echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10638if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 # POSIX says lex can declare yytext either as a pointer or an array; the
10642# default is implementation-dependent. Figure out which it is, since
10643# not all implementations provide the %pointer and %array declarations.
10644ac_cv_prog_lex_yytext_pointer=no
10645echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10646ac_save_LIBS=$LIBS
10647LIBS="$LIBS $LEXLIB"
10648cat >conftest.$ac_ext <<_ACEOF
10649`cat $LEX_OUTPUT_ROOT.c`
10650_ACEOF
10651rm -f conftest.$ac_objext conftest$ac_exeext
10652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
1b315056 10660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_prog_lex_yytext_pointer=yes
10673else
10674 echo "$as_me: failed program was:" >&5
10675sed 's/^/| /' conftest.$ac_ext >&5
10676
10677fi
10678rm -f conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680LIBS=$ac_save_LIBS
10681rm -f "${LEX_OUTPUT_ROOT}.c"
10682
10683fi
10684echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10685echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10686if test $ac_cv_prog_lex_yytext_pointer = yes; then
10687
10688cat >>confdefs.h <<\_ACEOF
10689#define YYTEXT_POINTER 1
10690_ACEOF
10691
10692fi
10693
10694fi
10695if test "$LEX" = :; then
10696 LEX=${am_missing_run}flex
10697fi
10698
30b0f203 10699ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
d7040cdb
SE
10700# If we haven't got the data from the intl directory,
10701# assume NLS is disabled.
10702USE_NLS=no
10703LIBINTL=
10704LIBINTL_DEP=
10705INCINTL=
10706XGETTEXT=
10707GMSGFMT=
10708POSUB=
10709
10710if test -f ../intl/config.intl; then
10711 . ../intl/config.intl
10712fi
10713echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10714echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10715if test x"$USE_NLS" != xyes; then
10716 echo "$as_me:$LINENO: result: no" >&5
10717echo "${ECHO_T}no" >&6
10718else
10719 echo "$as_me:$LINENO: result: yes" >&5
10720echo "${ECHO_T}yes" >&6
10721
10722cat >>confdefs.h <<\_ACEOF
10723#define ENABLE_NLS 1
10724_ACEOF
10725
10726
10727 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10728echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10729 # Look for .po and .gmo files in the source directory.
10730 CATALOGS=
10731 XLINGUAS=
10732 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10733 # If there aren't any .gmo files the shell will give us the
10734 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10735 # weeded out.
10736 case "$cat" in *\**)
10737 continue;;
10738 esac
10739 # The quadruple backslash is collapsed to a double backslash
10740 # by the backticks, then collapsed again by the double quotes,
10741 # leaving us with one backslash in the sed expression (right
10742 # before the dot that mustn't act as a wildcard).
10743 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10744 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10745 # The user is allowed to set LINGUAS to a list of languages to
10746 # install catalogs for. If it's empty that means "all of them."
10747 if test "x$LINGUAS" = x; then
10748 CATALOGS="$CATALOGS $cat"
10749 XLINGUAS="$XLINGUAS $lang"
10750 else
10751 case "$LINGUAS" in *$lang*)
10752 CATALOGS="$CATALOGS $cat"
10753 XLINGUAS="$XLINGUAS $lang"
10754 ;;
10755 esac
10756 fi
10757 done
10758 LINGUAS="$XLINGUAS"
10759 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10760echo "${ECHO_T}$LINGUAS" >&6
10761
10762
10763 DATADIRNAME=share
10764
10765 INSTOBJEXT=.mo
10766
10767 GENCAT=gencat
10768
10769 CATOBJEXT=.gmo
10770
10771fi
10772
10773 MKINSTALLDIRS=
10774 if test -n "$ac_aux_dir"; then
10775 case "$ac_aux_dir" in
10776 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10777 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10778 esac
10779 fi
10780 if test -z "$MKINSTALLDIRS"; then
10781 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10782 fi
10783
10784
10785
10786 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10787echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10788 # Check whether --enable-nls or --disable-nls was given.
10789if test "${enable_nls+set}" = set; then
10790 enableval="$enable_nls"
10791 USE_NLS=$enableval
10792else
10793 USE_NLS=yes
10794fi;
10795 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10796echo "${ECHO_T}$USE_NLS" >&6
10797
10798
10799
10800
10801
10802
10803# Prepare PATH_SEPARATOR.
10804# The user is always right.
10805if test "${PATH_SEPARATOR+set}" != set; then
10806 echo "#! /bin/sh" >conf$$.sh
10807 echo "exit 0" >>conf$$.sh
10808 chmod +x conf$$.sh
10809 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10810 PATH_SEPARATOR=';'
10811 else
10812 PATH_SEPARATOR=:
10813 fi
10814 rm -f conf$$.sh
10815fi
10816
10817# Find out how to test for executable files. Don't use a zero-byte file,
10818# as systems may use methods other than mode bits to determine executability.
10819cat >conf$$.file <<_ASEOF
10820#! /bin/sh
10821exit 0
10822_ASEOF
10823chmod +x conf$$.file
10824if test -x conf$$.file >/dev/null 2>&1; then
10825 ac_executable_p="test -x"
10826else
10827 ac_executable_p="test -f"
10828fi
10829rm -f conf$$.file
10830
10831# Extract the first word of "msgfmt", so it can be a program name with args.
10832set dummy msgfmt; ac_word=$2
10833echo "$as_me:$LINENO: checking for $ac_word" >&5
10834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10835if test "${ac_cv_path_MSGFMT+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838 case "$MSGFMT" in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10841 ;;
10842 *)
10843 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10844 for ac_dir in $PATH; do
10845 IFS="$ac_save_IFS"
10846 test -z "$ac_dir" && ac_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10849 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10850 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10851 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10852 break 2
10853 fi
10854 fi
10855 done
10856 done
10857 IFS="$ac_save_IFS"
10858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10859 ;;
10860esac
10861fi
10862MSGFMT="$ac_cv_path_MSGFMT"
10863if test "$MSGFMT" != ":"; then
10864 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10865echo "${ECHO_T}$MSGFMT" >&6
10866else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869fi
10870
10871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10872set dummy gmsgfmt; ac_word=$2
10873echo "$as_me:$LINENO: checking for $ac_word" >&5
10874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10875if test "${ac_cv_path_GMSGFMT+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 case $GMSGFMT in
10879 [\\/]* | ?:[\\/]*)
10880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10881 ;;
10882 *)
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895done
10896
10897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10898 ;;
10899esac
10900fi
10901GMSGFMT=$ac_cv_path_GMSGFMT
10902
10903if test -n "$GMSGFMT"; then
10904 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10905echo "${ECHO_T}$GMSGFMT" >&6
10906else
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
10909fi
10910
10911
10912
10913# Prepare PATH_SEPARATOR.
10914# The user is always right.
10915if test "${PATH_SEPARATOR+set}" != set; then
10916 echo "#! /bin/sh" >conf$$.sh
10917 echo "exit 0" >>conf$$.sh
10918 chmod +x conf$$.sh
10919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10920 PATH_SEPARATOR=';'
10921 else
10922 PATH_SEPARATOR=:
10923 fi
10924 rm -f conf$$.sh
10925fi
10926
10927# Find out how to test for executable files. Don't use a zero-byte file,
10928# as systems may use methods other than mode bits to determine executability.
10929cat >conf$$.file <<_ASEOF
10930#! /bin/sh
10931exit 0
10932_ASEOF
10933chmod +x conf$$.file
10934if test -x conf$$.file >/dev/null 2>&1; then
10935 ac_executable_p="test -x"
10936else
10937 ac_executable_p="test -f"
10938fi
10939rm -f conf$$.file
10940
10941# Extract the first word of "xgettext", so it can be a program name with args.
10942set dummy xgettext; ac_word=$2
10943echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945if test "${ac_cv_path_XGETTEXT+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948 case "$XGETTEXT" in
10949 [\\/]* | ?:[\\/]*)
10950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10951 ;;
10952 *)
10953 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10954 for ac_dir in $PATH; do
10955 IFS="$ac_save_IFS"
10956 test -z "$ac_dir" && ac_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10959 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10960 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10961 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10962 break 2
10963 fi
10964 fi
10965 done
10966 done
10967 IFS="$ac_save_IFS"
10968 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10969 ;;
10970esac
10971fi
10972XGETTEXT="$ac_cv_path_XGETTEXT"
10973if test "$XGETTEXT" != ":"; then
10974 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10975echo "${ECHO_T}$XGETTEXT" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981 rm -f messages.po
10982
10983
10984# Prepare PATH_SEPARATOR.
10985# The user is always right.
10986if test "${PATH_SEPARATOR+set}" != set; then
10987 echo "#! /bin/sh" >conf$$.sh
10988 echo "exit 0" >>conf$$.sh
10989 chmod +x conf$$.sh
10990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10991 PATH_SEPARATOR=';'
10992 else
10993 PATH_SEPARATOR=:
10994 fi
10995 rm -f conf$$.sh
10996fi
10997
10998# Find out how to test for executable files. Don't use a zero-byte file,
10999# as systems may use methods other than mode bits to determine executability.
11000cat >conf$$.file <<_ASEOF
11001#! /bin/sh
11002exit 0
11003_ASEOF
11004chmod +x conf$$.file
11005if test -x conf$$.file >/dev/null 2>&1; then
11006 ac_executable_p="test -x"
11007else
11008 ac_executable_p="test -f"
11009fi
11010rm -f conf$$.file
11011
11012# Extract the first word of "msgmerge", so it can be a program name with args.
11013set dummy msgmerge; ac_word=$2
11014echo "$as_me:$LINENO: checking for $ac_word" >&5
11015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11016if test "${ac_cv_path_MSGMERGE+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018else
11019 case "$MSGMERGE" in
11020 [\\/]* | ?:[\\/]*)
11021 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11022 ;;
11023 *)
11024 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11025 for ac_dir in $PATH; do
11026 IFS="$ac_save_IFS"
11027 test -z "$ac_dir" && ac_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11030 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11031 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11032 break 2
11033 fi
11034 fi
11035 done
11036 done
11037 IFS="$ac_save_IFS"
11038 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11039 ;;
11040esac
11041fi
11042MSGMERGE="$ac_cv_path_MSGMERGE"
11043if test "$MSGMERGE" != ":"; then
11044 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11045echo "${ECHO_T}$MSGMERGE" >&6
11046else
11047 echo "$as_me:$LINENO: result: no" >&5
11048echo "${ECHO_T}no" >&6
11049fi
11050
11051
11052 if test "$GMSGFMT" != ":"; then
11053 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11054 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11055 : ;
11056 else
11057 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11058 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11059echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11060 GMSGFMT=":"
11061 fi
11062 fi
11063
11064 if test "$XGETTEXT" != ":"; then
11065 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11066 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11067 : ;
11068 else
11069 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11070echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11071 XGETTEXT=":"
11072 fi
11073 rm -f messages.po
11074 fi
11075
11076 ac_config_commands="$ac_config_commands default-1"
11077
11078
11079
11080echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11081echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11082 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11083if test "${enable_maintainer_mode+set}" = set; then
11084 enableval="$enable_maintainer_mode"
11085 USE_MAINTAINER_MODE=$enableval
42ecbf5e 11086else
d7040cdb
SE
11087 USE_MAINTAINER_MODE=no
11088fi;
11089 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11090echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11091
d7040cdb
SE
11092
11093if test $USE_MAINTAINER_MODE = yes; then
11094 MAINTAINER_MODE_TRUE=
11095 MAINTAINER_MODE_FALSE='#'
11096else
11097 MAINTAINER_MODE_TRUE='#'
11098 MAINTAINER_MODE_FALSE=
42ecbf5e 11099fi
d7040cdb
SE
11100
11101 MAINT=$MAINTAINER_MODE_TRUE
11102
11103
11104
11105
11106if false; then
11107 GENINSRC_NEVER_TRUE=
11108 GENINSRC_NEVER_FALSE='#'
11109else
11110 GENINSRC_NEVER_TRUE='#'
11111 GENINSRC_NEVER_FALSE=
42ecbf5e 11112fi
d7040cdb
SE
11113
11114
11115if test -n "$EXEEXT"; then
20e95c23
DJ
11116
11117cat >>confdefs.h <<\_ACEOF
d7040cdb 11118#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 11119_ACEOF
42ecbf5e 11120
252b5132
RH
11121fi
11122
d7040cdb
SE
11123cat >>confdefs.h <<_ACEOF
11124#define EXECUTABLE_SUFFIX "${EXEEXT}"
11125_ACEOF
42ecbf5e 11126
252b5132 11127
d7040cdb 11128# host-specific stuff:
252b5132 11129
d7040cdb 11130HDEFINES=
252b5132 11131
d7040cdb 11132. ${srcdir}/../bfd/configure.host
252b5132 11133
252b5132 11134
d7040cdb 11135AR=${AR-ar}
252b5132 11136
d7040cdb
SE
11137if test -n "$ac_tool_prefix"; then
11138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11140echo "$as_me:$LINENO: checking for $ac_word" >&5
11141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11142if test "${ac_cv_prog_RANLIB+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 if test -n "$RANLIB"; then
11146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159done
11160done
252b5132 11161
d7040cdb
SE
11162fi
11163fi
11164RANLIB=$ac_cv_prog_RANLIB
11165if test -n "$RANLIB"; then
11166 echo "$as_me:$LINENO: result: $RANLIB" >&5
11167echo "${ECHO_T}$RANLIB" >&6
11168else
11169 echo "$as_me:$LINENO: result: no" >&5
11170echo "${ECHO_T}no" >&6
11171fi
20e95c23 11172
d7040cdb
SE
11173fi
11174if test -z "$ac_cv_prog_RANLIB"; then
11175 ac_ct_RANLIB=$RANLIB
11176 # Extract the first word of "ranlib", so it can be a program name with args.
11177set dummy ranlib; ac_word=$2
11178echo "$as_me:$LINENO: checking for $ac_word" >&5
11179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 11181 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11182else
d7040cdb
SE
11183 if test -n "$ac_ct_RANLIB"; then
11184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11185else
11186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187for as_dir in $PATH
11188do
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_ac_ct_RANLIB="ranlib"
11194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11196 fi
11197done
11198done
20e95c23 11199
d7040cdb
SE
11200 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11201fi
11202fi
11203ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11204if test -n "$ac_ct_RANLIB"; then
11205 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11206echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 11207else
d7040cdb
SE
11208 echo "$as_me:$LINENO: result: no" >&5
11209echo "${ECHO_T}no" >&6
11210fi
11211
11212 RANLIB=$ac_ct_RANLIB
11213else
11214 RANLIB="$ac_cv_prog_RANLIB"
11215fi
11216
11217# Find a good install program. We prefer a C program (faster),
11218# so one script is as good as another. But avoid the broken or
11219# incompatible versions:
11220# SysV /etc/install, /usr/sbin/install
11221# SunOS /usr/etc/install
11222# IRIX /sbin/install
11223# AIX /bin/install
11224# AmigaOS /C/install, which installs bootblocks on floppy discs
11225# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11226# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11227# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11228# OS/2's system install, which has a completely different semantic
11229# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11230# Reject install programs that cannot install multiple files.
d7040cdb
SE
11231echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11232echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11233if test -z "$INSTALL"; then
11234if test "${ac_cv_path_install+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236else
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 # Account for people who put trailing slashes in PATH elements.
11243case $as_dir/ in
11244 ./ | .// | /cC/* | \
11245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11247 /usr/ucb/* ) ;;
11248 *)
11249 # OSF1 and SCO ODT 3.0 have their own names for install.
11250 # Don't use installbsd from OSF since it installs stuff as root
11251 # by default.
11252 for ac_prog in ginstall scoinst install; do
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11255 if test $ac_prog = install &&
11256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11257 # AIX install. It has an incompatible calling convention.
11258 :
11259 elif test $ac_prog = install &&
11260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11261 # program-specific install script used by HP pwplus--don't use.
11262 :
11263 else
58c85be7
RW
11264 rm -rf conftest.one conftest.two conftest.dir
11265 echo one > conftest.one
11266 echo two > conftest.two
11267 mkdir conftest.dir
11268 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11269 test -s conftest.one && test -s conftest.two &&
11270 test -s conftest.dir/conftest.one &&
11271 test -s conftest.dir/conftest.two
11272 then
11273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11274 break 3
11275 fi
d7040cdb
SE
11276 fi
11277 fi
11278 done
11279 done
11280 ;;
11281esac
11282done
11283
58c85be7 11284rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
11285
11286fi
11287 if test "${ac_cv_path_install+set}" = set; then
11288 INSTALL=$ac_cv_path_install
11289 else
58c85be7
RW
11290 # As a last resort, use the slow shell script. Don't cache a
11291 # value for INSTALL within a source directory, because that will
d7040cdb 11292 # break other packages using the cache if that directory is
58c85be7 11293 # removed, or if the value is a relative name.
d7040cdb
SE
11294 INSTALL=$ac_install_sh
11295 fi
11296fi
11297echo "$as_me:$LINENO: result: $INSTALL" >&5
11298echo "${ECHO_T}$INSTALL" >&6
11299
11300# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11301# It thinks the first close brace ends the variable substitution.
11302test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11303
11304test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11305
11306test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11307
11308
11309# Put a plausible default for CC_FOR_BUILD in Makefile.
11310if test -z "$CC_FOR_BUILD"; then
11311 if test "x$cross_compiling" = "xno"; then
11312 CC_FOR_BUILD='$(CC)'
11313 else
11314 CC_FOR_BUILD=gcc
11315 fi
11316fi
20e95c23 11317
d7040cdb
SE
11318# Also set EXEEXT_FOR_BUILD.
11319if test "x$cross_compiling" = "xno"; then
11320 EXEEXT_FOR_BUILD='$(EXEEXT)'
11321else
11322 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11323echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11324if test "${bfd_cv_build_exeext+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 rm -f conftest*
11328 echo 'int main () { return 0; }' > conftest.c
11329 bfd_cv_build_exeext=
11330 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11331 for file in conftest.*; do
11332 case $file in
11333 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11334 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11335 esac
11336 done
11337 rm -f conftest*
11338 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 11339fi
d7040cdb
SE
11340echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11341echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11342 EXEEXT_FOR_BUILD=""
11343 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
11344fi
11345
11346
d7040cdb
SE
11347DEMANGLER_NAME=c++filt
11348case "${host}" in
11349 *-*-go32* | *-*-msdos*)
11350 DEMANGLER_NAME=cxxfilt
11351esac
8a965946
ILT
11352
11353
42ecbf5e
DJ
11354
11355
11356
11357
11358
11359
f8eae8b2
L
11360
11361
11362for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 11363do
42ecbf5e
DJ
11364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11365if eval "test \"\${$as_ac_Header+set}\" = set"; then
11366 echo "$as_me:$LINENO: checking for $ac_header" >&5
11367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11368if eval "test \"\${$as_ac_Header+set}\" = set"; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370fi
11371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11373else
11374 # Is the header compilable?
11375echo "$as_me:$LINENO: checking $ac_header usability" >&5
11376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11377cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383$ac_includes_default
11384#include <$ac_header>
11385_ACEOF
11386rm -f conftest.$ac_objext
11387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11388 (eval $ac_compile) 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
1b315056 11395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_header_compiler=yes
11408else
11409 echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412ac_header_compiler=no
11413fi
11414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416echo "${ECHO_T}$ac_header_compiler" >&6
11417
11418# Is the header present?
11419echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11421cat >conftest.$ac_ext <<_ACEOF
11422/* confdefs.h. */
11423_ACEOF
11424cat confdefs.h >>conftest.$ac_ext
11425cat >>conftest.$ac_ext <<_ACEOF
11426/* end confdefs.h. */
11427#include <$ac_header>
11428_ACEOF
11429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
252b5132 11443else
42ecbf5e 11444 ac_cpp_err=yes
252b5132 11445fi
42ecbf5e
DJ
11446if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11448else
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_header_preproc=no
252b5132 11453fi
42ecbf5e
DJ
11454rm -f conftest.err conftest.$ac_ext
11455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456echo "${ECHO_T}$ac_header_preproc" >&6
11457
11458# So? What about this header?
11459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11466 ;;
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480 (
11481 cat <<\_ASBOX
11482## ------------------------------------------ ##
11483## Report this to the AC_PACKAGE_NAME lists. ##
11484## ------------------------------------------ ##
11485_ASBOX
11486 ) |
11487 sed "s/^/$as_me: WARNING: /" >&2
11488 ;;
11489esac
11490echo "$as_me:$LINENO: checking for $ac_header" >&5
11491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11492if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11494else
42ecbf5e
DJ
11495 eval "$as_ac_Header=\$ac_header_preproc"
11496fi
11497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11499
252b5132 11500fi
42ecbf5e
DJ
11501if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504_ACEOF
11505
11506fi
11507
252b5132
RH
11508done
11509
42ecbf5e
DJ
11510echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11511echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11512if test "${ac_cv_header_sys_wait_h+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514else
11515 cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
252b5132
RH
11521#include <sys/types.h>
11522#include <sys/wait.h>
11523#ifndef WEXITSTATUS
42ecbf5e 11524# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
11525#endif
11526#ifndef WIFEXITED
42ecbf5e 11527# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 11528#endif
42ecbf5e
DJ
11529
11530int
11531main ()
11532{
11533 int s;
11534 wait (&s);
11535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext
11541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11542 (eval $ac_compile) 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
1b315056 11549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
252b5132
RH
11561 ac_cv_header_sys_wait_h=yes
11562else
42ecbf5e
DJ
11563 echo "$as_me: failed program was:" >&5
11564sed 's/^/| /' conftest.$ac_ext >&5
11565
11566ac_cv_header_sys_wait_h=no
252b5132 11567fi
42ecbf5e 11568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11569fi
42ecbf5e
DJ
11570echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11571echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 11572if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
11573
11574cat >>confdefs.h <<\_ACEOF
252b5132 11575#define HAVE_SYS_WAIT_H 1
42ecbf5e 11576_ACEOF
252b5132
RH
11577
11578fi
11579
11580# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11581# for constant arguments. Useless!
42ecbf5e
DJ
11582echo "$as_me:$LINENO: checking for working alloca.h" >&5
11583echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11584if test "${ac_cv_working_alloca_h+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
252b5132 11593#include <alloca.h>
42ecbf5e
DJ
11594int
11595main ()
11596{
11597char *p = (char *) alloca (2 * sizeof (int));
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext conftest$ac_exeext
11603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
1b315056 11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_working_alloca_h=yes
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628ac_cv_working_alloca_h=no
11629fi
11630rm -f conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632fi
11633echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11634echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11635if test $ac_cv_working_alloca_h = yes; then
11636
11637cat >>confdefs.h <<\_ACEOF
252b5132 11638#define HAVE_ALLOCA_H 1
42ecbf5e 11639_ACEOF
252b5132
RH
11640
11641fi
11642
42ecbf5e
DJ
11643echo "$as_me:$LINENO: checking for alloca" >&5
11644echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11645if test "${ac_cv_func_alloca_works+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11647else
42ecbf5e
DJ
11648 cat >conftest.$ac_ext <<_ACEOF
11649/* confdefs.h. */
11650_ACEOF
11651cat confdefs.h >>conftest.$ac_ext
11652cat >>conftest.$ac_ext <<_ACEOF
11653/* end confdefs.h. */
252b5132
RH
11654#ifdef __GNUC__
11655# define alloca __builtin_alloca
11656#else
11657# ifdef _MSC_VER
11658# include <malloc.h>
11659# define alloca _alloca
11660# else
11661# if HAVE_ALLOCA_H
11662# include <alloca.h>
11663# else
11664# ifdef _AIX
11665 #pragma alloca
11666# else
11667# ifndef alloca /* predefined by HP cc +Olibcalls */
11668char *alloca ();
11669# endif
11670# endif
11671# endif
11672# endif
11673#endif
11674
42ecbf5e
DJ
11675int
11676main ()
11677{
11678char *p = (char *) alloca (1);
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext conftest$ac_exeext
11684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
1b315056 11692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
252b5132
RH
11704 ac_cv_func_alloca_works=yes
11705else
42ecbf5e
DJ
11706 echo "$as_me: failed program was:" >&5
11707sed 's/^/| /' conftest.$ac_ext >&5
11708
11709ac_cv_func_alloca_works=no
252b5132 11710fi
42ecbf5e
DJ
11711rm -f conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
252b5132 11713fi
42ecbf5e
DJ
11714echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11715echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 11716
252b5132 11717if test $ac_cv_func_alloca_works = yes; then
e5a52504 11718
42ecbf5e
DJ
11719cat >>confdefs.h <<\_ACEOF
11720#define HAVE_ALLOCA 1
11721_ACEOF
e5a52504 11722
42ecbf5e 11723else
d15b04bd 11724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
11725# that cause trouble. Some versions do not even contain alloca or
11726# contain a buggy version. If you still want to use their alloca,
11727# use ar to extract alloca.o from them instead of compiling alloca.c.
11728
11729ALLOCA=alloca.$ac_objext
11730
11731cat >>confdefs.h <<\_ACEOF
252b5132 11732#define C_ALLOCA 1
42ecbf5e 11733_ACEOF
252b5132
RH
11734
11735
42ecbf5e
DJ
11736echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11737echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11738if test "${ac_cv_os_cray+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11740else
42ecbf5e
DJ
11741 cat >conftest.$ac_ext <<_ACEOF
11742/* confdefs.h. */
11743_ACEOF
11744cat confdefs.h >>conftest.$ac_ext
11745cat >>conftest.$ac_ext <<_ACEOF
11746/* end confdefs.h. */
252b5132
RH
11747#if defined(CRAY) && ! defined(CRAY2)
11748webecray
11749#else
11750wenotbecray
11751#endif
11752
42ecbf5e 11753_ACEOF
252b5132 11754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 11755 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
11756 ac_cv_os_cray=yes
11757else
252b5132
RH
11758 ac_cv_os_cray=no
11759fi
11760rm -f conftest*
11761
11762fi
42ecbf5e
DJ
11763echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11764echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 11765if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
11766 for ac_func in _getb67 GETB67 getb67; do
11767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11768echo "$as_me:$LINENO: checking for $ac_func" >&5
11769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11770if eval "test \"\${$as_ac_var+set}\" = set"; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11781#define $ac_func innocuous_$ac_func
11782
252b5132 11783/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11784 which can conflict with char $ac_func (); below.
11785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786 <limits.h> exists even on freestanding compilers. */
11787
11788#ifdef __STDC__
11789# include <limits.h>
11790#else
11791# include <assert.h>
11792#endif
d15b04bd 11793
42ecbf5e 11794#undef $ac_func
d15b04bd 11795
42ecbf5e
DJ
11796/* Override any gcc2 internal prototype to avoid an error. */
11797#ifdef __cplusplus
11798extern "C"
11799{
11800#endif
11801/* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11803char $ac_func ();
252b5132
RH
11804/* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11808choke me
11809#else
42ecbf5e
DJ
11810char (*f) () = $ac_func;
11811#endif
11812#ifdef __cplusplus
11813}
252b5132
RH
11814#endif
11815
42ecbf5e
DJ
11816int
11817main ()
11818{
11819return f != $ac_func;
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824rm -f conftest.$ac_objext conftest$ac_exeext
11825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826 (eval $ac_link) 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
1b315056 11833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 eval "$as_ac_var=yes"
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850eval "$as_ac_var=no"
11851fi
11852rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854fi
11855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11857if test `eval echo '${'$as_ac_var'}'` = yes; then
11858
11859cat >>confdefs.h <<_ACEOF
252b5132 11860#define CRAY_STACKSEG_END $ac_func
42ecbf5e 11861_ACEOF
252b5132 11862
42ecbf5e 11863 break
252b5132
RH
11864fi
11865
42ecbf5e 11866 done
252b5132
RH
11867fi
11868
42ecbf5e
DJ
11869echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11870echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11871if test "${ac_cv_c_stack_direction+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11873else
11874 if test "$cross_compiling" = yes; then
11875 ac_cv_c_stack_direction=0
11876else
42ecbf5e
DJ
11877 cat >conftest.$ac_ext <<_ACEOF
11878/* confdefs.h. */
11879_ACEOF
11880cat confdefs.h >>conftest.$ac_ext
11881cat >>conftest.$ac_ext <<_ACEOF
11882/* end confdefs.h. */
11883int
252b5132
RH
11884find_stack_direction ()
11885{
11886 static char *addr = 0;
11887 auto char dummy;
11888 if (addr == 0)
11889 {
11890 addr = &dummy;
11891 return find_stack_direction ();
11892 }
11893 else
11894 return (&dummy > addr) ? 1 : -1;
11895}
42ecbf5e
DJ
11896
11897int
252b5132
RH
11898main ()
11899{
42ecbf5e 11900 exit (find_stack_direction () < 0);
252b5132 11901}
42ecbf5e
DJ
11902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
252b5132
RH
11914 ac_cv_c_stack_direction=1
11915else
42ecbf5e
DJ
11916 echo "$as_me: program exited with status $ac_status" >&5
11917echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920( exit $ac_status )
11921ac_cv_c_stack_direction=-1
252b5132 11922fi
42ecbf5e 11923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 11924fi
252b5132 11925fi
42ecbf5e
DJ
11926echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11927echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 11928
42ecbf5e 11929cat >>confdefs.h <<_ACEOF
252b5132 11930#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
11931_ACEOF
11932
252b5132
RH
11933
11934fi
11935
42ecbf5e
DJ
11936
11937
11938
11939
11940
9710509e 11941for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 11942do
42ecbf5e
DJ
11943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11944echo "$as_me:$LINENO: checking for $ac_func" >&5
11945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11946if eval "test \"\${$as_ac_var+set}\" = set"; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948else
11949 cat >conftest.$ac_ext <<_ACEOF
11950/* confdefs.h. */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h. */
11955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11957#define $ac_func innocuous_$ac_func
11958
252b5132 11959/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11960 which can conflict with char $ac_func (); below.
11961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962 <limits.h> exists even on freestanding compilers. */
11963
11964#ifdef __STDC__
11965# include <limits.h>
11966#else
11967# include <assert.h>
11968#endif
d15b04bd 11969
42ecbf5e 11970#undef $ac_func
d15b04bd 11971
42ecbf5e
DJ
11972/* Override any gcc2 internal prototype to avoid an error. */
11973#ifdef __cplusplus
11974extern "C"
11975{
11976#endif
11977/* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979char $ac_func ();
252b5132
RH
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984choke me
11985#else
42ecbf5e
DJ
11986char (*f) () = $ac_func;
11987#endif
11988#ifdef __cplusplus
11989}
252b5132
RH
11990#endif
11991
42ecbf5e
DJ
11992int
11993main ()
11994{
11995return f != $ac_func;
11996 ;
11997 return 0;
11998}
11999_ACEOF
12000rm -f conftest.$ac_objext conftest$ac_exeext
12001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
1b315056 12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12022else
12023 echo "$as_me: failed program was:" >&5
12024sed 's/^/| /' conftest.$ac_ext >&5
12025
12026eval "$as_ac_var=no"
12027fi
12028rm -f conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030fi
12031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12032echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12033if test `eval echo '${'$as_ac_var'}'` = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036_ACEOF
252b5132 12037
252b5132
RH
12038fi
12039done
12040
f9c026a8
NC
12041echo "$as_me:$LINENO: checking for mkstemp" >&5
12042echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12043if test "${ac_cv_func_mkstemp+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045else
12046 cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12054#define mkstemp innocuous_mkstemp
12055
12056/* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char mkstemp (); below.
12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12059 <limits.h> exists even on freestanding compilers. */
12060
12061#ifdef __STDC__
12062# include <limits.h>
12063#else
12064# include <assert.h>
12065#endif
12066
12067#undef mkstemp
12068
12069/* Override any gcc2 internal prototype to avoid an error. */
12070#ifdef __cplusplus
12071extern "C"
12072{
12073#endif
12074/* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076char mkstemp ();
12077/* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12081choke me
12082#else
12083char (*f) () = mkstemp;
12084#endif
12085#ifdef __cplusplus
12086}
12087#endif
12088
12089int
12090main ()
12091{
12092return f != mkstemp;
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097rm -f conftest.$ac_objext conftest$ac_exeext
12098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
1b315056 12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f9c026a8
NC
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_func_mkstemp=yes
12119else
12120 echo "$as_me: failed program was:" >&5
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
12123ac_cv_func_mkstemp=no
12124fi
12125rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127fi
12128echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12129echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12130if test $ac_cv_func_mkstemp = yes; then
12131
12132cat >>confdefs.h <<\_ACEOF
12133#define HAVE_MKSTEMP 1
12134_ACEOF
12135
12136fi
12137
12138echo "$as_me:$LINENO: checking for mkdtemp" >&5
12139echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12140if test "${ac_cv_func_mkdtemp+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 cat >conftest.$ac_ext <<_ACEOF
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12151#define mkdtemp innocuous_mkdtemp
12152
12153/* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char mkdtemp (); below.
12155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 <limits.h> exists even on freestanding compilers. */
12157
12158#ifdef __STDC__
12159# include <limits.h>
12160#else
12161# include <assert.h>
12162#endif
12163
12164#undef mkdtemp
12165
12166/* Override any gcc2 internal prototype to avoid an error. */
12167#ifdef __cplusplus
12168extern "C"
12169{
12170#endif
12171/* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173char mkdtemp ();
12174/* The GNU C library defines this for functions which it implements
12175 to always fail with ENOSYS. Some functions are actually named
12176 something starting with __ and the normal name is an alias. */
12177#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12178choke me
12179#else
12180char (*f) () = mkdtemp;
12181#endif
12182#ifdef __cplusplus
12183}
12184#endif
12185
12186int
12187main ()
12188{
12189return f != mkdtemp;
12190 ;
12191 return 0;
12192}
12193_ACEOF
12194rm -f conftest.$ac_objext conftest$ac_exeext
12195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
1b315056 12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f9c026a8
NC
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_func_mkdtemp=yes
12216else
12217 echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
12220ac_cv_func_mkdtemp=no
12221fi
12222rm -f conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224fi
12225echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12226echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12227if test $ac_cv_func_mkdtemp = yes; then
12228
12229cat >>confdefs.h <<\_ACEOF
12230#define HAVE_MKDTEMP 1
12231_ACEOF
12232
12233fi
12234
252b5132 12235
cedd9a58
JJ
12236# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12237# needs to be defined for it
42ecbf5e
DJ
12238echo "$as_me:$LINENO: checking for fopen64" >&5
12239echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12240if test "${bu_cv_have_fopen64+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243 cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
cedd9a58 12249#include <stdio.h>
42ecbf5e
DJ
12250int
12251main ()
12252{
cedd9a58 12253FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext conftest$ac_exeext
12259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
1b315056 12267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
cedd9a58
JJ
12279 bu_cv_have_fopen64=yes
12280else
42ecbf5e
DJ
12281 echo "$as_me: failed program was:" >&5
12282sed 's/^/| /' conftest.$ac_ext >&5
12283
12284saved_CPPFLAGS=$CPPFLAGS
cedd9a58 12285 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12286 cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
cedd9a58 12292#include <stdio.h>
42ecbf5e
DJ
12293int
12294main ()
12295{
cedd9a58 12296FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12297 ;
12298 return 0;
12299}
12300_ACEOF
12301rm -f conftest.$ac_objext conftest$ac_exeext
12302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
1b315056 12310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest$ac_exeext'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
cedd9a58
JJ
12322 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12323else
42ecbf5e
DJ
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
12327bu_cv_have_fopen64=no
cedd9a58 12328fi
42ecbf5e
DJ
12329rm -f conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 12331 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 12332fi
42ecbf5e
DJ
12333rm -f conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
cedd9a58 12335fi
cedd9a58 12336
42ecbf5e
DJ
12337echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12338echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 12339if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
12340
12341cat >>confdefs.h <<\_ACEOF
cedd9a58 12342#define HAVE_FOPEN64 1
42ecbf5e 12343_ACEOF
cedd9a58 12344
fb5b5478 12345fi
42ecbf5e
DJ
12346echo "$as_me:$LINENO: checking for stat64" >&5
12347echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12348if test "${bu_cv_have_stat64+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 12350else
42ecbf5e
DJ
12351 cat >conftest.$ac_ext <<_ACEOF
12352/* confdefs.h. */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
12356/* end confdefs.h. */
fb5b5478 12357#include <sys/stat.h>
42ecbf5e
DJ
12358int
12359main ()
12360{
fb5b5478 12361struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12362 ;
12363 return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext conftest$ac_exeext
12367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
1b315056 12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest$ac_exeext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
fb5b5478
JJ
12387 bu_cv_have_stat64=yes
12388else
42ecbf5e
DJ
12389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392saved_CPPFLAGS=$CPPFLAGS
fb5b5478 12393 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12394 cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
fb5b5478 12400#include <sys/stat.h>
42ecbf5e
DJ
12401int
12402main ()
12403{
fb5b5478 12404struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12405 ;
12406 return 0;
12407}
12408_ACEOF
12409rm -f conftest.$ac_objext conftest$ac_exeext
12410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411 (eval $ac_link) 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
1b315056 12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
fb5b5478
JJ
12430 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12431else
42ecbf5e
DJ
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435bu_cv_have_stat64=no
fb5b5478 12436fi
42ecbf5e
DJ
12437rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12439 CPPFLAGS=$saved_CPPFLAGS
12440fi
42ecbf5e
DJ
12441rm -f conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12443fi
12444
42ecbf5e
DJ
12445echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12446echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 12447if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
12448
12449cat >>confdefs.h <<\_ACEOF
fb5b5478 12450#define HAVE_STAT64 1
42ecbf5e 12451_ACEOF
fb5b5478
JJ
12452
12453fi
12454if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12455 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
12456
12457cat >>confdefs.h <<\_ACEOF
cedd9a58 12458#define _LARGEFILE64_SOURCE 1
42ecbf5e 12459_ACEOF
cedd9a58 12460
fb5b5478 12461 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
12462fi
12463
f353eb8a 12464# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
12465echo "$as_me:$LINENO: checking for library containing frexp" >&5
12466echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12467if test "${ac_cv_search_frexp+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 ac_func_search_save_LIBS=$LIBS
12471ac_cv_search_frexp=no
12472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
f353eb8a 12478
f353eb8a 12479/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12480#ifdef __cplusplus
12481extern "C"
12482#endif
f353eb8a 12483/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12484 builtin and then its argument prototype would still apply. */
12485char frexp ();
12486int
12487main ()
12488{
12489frexp ();
12490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest$ac_exeext
12495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496 (eval $ac_link) 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
1b315056 12503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
f353eb8a
ILT
12515 ac_cv_search_frexp="none required"
12516else
42ecbf5e
DJ
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
f353eb8a 12520fi
42ecbf5e
DJ
12521rm -f conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523if test "$ac_cv_search_frexp" = no; then
12524 for ac_lib in m; do
12525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
12532
f353eb8a 12533/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12534#ifdef __cplusplus
12535extern "C"
12536#endif
f353eb8a 12537/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12538 builtin and then its argument prototype would still apply. */
12539char frexp ();
12540int
12541main ()
12542{
12543frexp ();
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext conftest$ac_exeext
12549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
1b315056 12557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
12570break
12571else
42ecbf5e
DJ
12572 echo "$as_me: failed program was:" >&5
12573sed 's/^/| /' conftest.$ac_ext >&5
12574
f353eb8a 12575fi
42ecbf5e
DJ
12576rm -f conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 done
e5a52504 12579fi
42ecbf5e
DJ
12580LIBS=$ac_func_search_save_LIBS
12581fi
12582echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12583echo "${ECHO_T}$ac_cv_search_frexp" >&6
12584if test "$ac_cv_search_frexp" != no; then
d15b04bd 12585 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 12586
f353eb8a
ILT
12587fi
12588
42ecbf5e
DJ
12589
12590echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12591echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12592if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12594else
42ecbf5e
DJ
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
252b5132 12601#include <time.h>
42ecbf5e
DJ
12602int
12603main ()
12604{
252b5132 12605time_t i;
42ecbf5e
DJ
12606 ;
12607 return 0;
12608}
12609_ACEOF
12610rm -f conftest.$ac_objext
12611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
1b315056 12619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
252b5132
RH
12631 bu_cv_decl_time_t_time_h=yes
12632else
42ecbf5e
DJ
12633 echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
12636bu_cv_decl_time_t_time_h=no
252b5132 12637fi
42ecbf5e 12638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12639fi
12640
42ecbf5e
DJ
12641echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12642echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 12643if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
12644
12645cat >>confdefs.h <<\_ACEOF
252b5132 12646#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 12647_ACEOF
252b5132
RH
12648
12649fi
12650
42ecbf5e
DJ
12651echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12652echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12653if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12655else
42ecbf5e
DJ
12656 cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
252b5132 12662#include <sys/types.h>
42ecbf5e
DJ
12663int
12664main ()
12665{
252b5132 12666time_t i;
42ecbf5e
DJ
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671rm -f conftest.$ac_objext
12672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
1b315056 12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
252b5132
RH
12692 bu_cv_decl_time_t_types_h=yes
12693else
42ecbf5e
DJ
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697bu_cv_decl_time_t_types_h=no
252b5132 12698fi
42ecbf5e 12699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12700fi
12701
42ecbf5e
DJ
12702echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12703echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 12704if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
12705
12706cat >>confdefs.h <<\_ACEOF
252b5132 12707#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 12708_ACEOF
252b5132
RH
12709
12710fi
12711
42ecbf5e
DJ
12712echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12713echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12714if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 12716else
42ecbf5e
DJ
12717 cat >conftest.$ac_ext <<_ACEOF
12718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h. */
e46eba98 12723#include <unistd.h>
42ecbf5e
DJ
12724int
12725main ()
12726{
e46eba98 12727extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732rm -f conftest.$ac_objext
12733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
1b315056 12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
e46eba98
NC
12753 bu_cv_decl_getopt_unistd_h=yes
12754else
42ecbf5e
DJ
12755 echo "$as_me: failed program was:" >&5
12756sed 's/^/| /' conftest.$ac_ext >&5
12757
12758bu_cv_decl_getopt_unistd_h=no
e46eba98 12759fi
42ecbf5e 12760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
12761fi
12762
42ecbf5e
DJ
12763echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12764echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 12765if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
12766
12767cat >>confdefs.h <<\_ACEOF
e46eba98 12768#define HAVE_DECL_GETOPT 1
42ecbf5e 12769_ACEOF
e46eba98
NC
12770
12771fi
12772
252b5132
RH
12773# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12774# by default.
42ecbf5e
DJ
12775echo "$as_me:$LINENO: checking for utime.h" >&5
12776echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12777if test "${bu_cv_header_utime_h+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780 cat >conftest.$ac_ext <<_ACEOF
12781/* confdefs.h. */
12782_ACEOF
12783cat confdefs.h >>conftest.$ac_ext
12784cat >>conftest.$ac_ext <<_ACEOF
12785/* end confdefs.h. */
252b5132
RH
12786#include <sys/types.h>
12787#ifdef HAVE_TIME_H
12788#include <time.h>
12789#endif
12790#include <utime.h>
42ecbf5e
DJ
12791int
12792main ()
12793{
252b5132 12794struct utimbuf s;
42ecbf5e
DJ
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
1b315056 12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
252b5132
RH
12820 bu_cv_header_utime_h=yes
12821else
42ecbf5e
DJ
12822 echo "$as_me: failed program was:" >&5
12823sed 's/^/| /' conftest.$ac_ext >&5
12824
12825bu_cv_header_utime_h=no
252b5132 12826fi
42ecbf5e 12827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12828fi
12829
42ecbf5e
DJ
12830echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12831echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 12832if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
12833
12834cat >>confdefs.h <<\_ACEOF
252b5132 12835#define HAVE_GOOD_UTIME_H 1
42ecbf5e 12836_ACEOF
252b5132
RH
12837
12838fi
12839
398ee8f1
SE
12840echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12841echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12842if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 12843 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12844else
42ecbf5e
DJ
12845 cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
398ee8f1 12851$ac_includes_default
42ecbf5e
DJ
12852int
12853main ()
12854{
398ee8f1
SE
12855#ifndef fprintf
12856 char *p = (char *) fprintf;
12857#endif
12858
42ecbf5e
DJ
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863rm -f conftest.$ac_objext
12864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>conftest.er1
12866 ac_status=$?
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
1b315056 12872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
398ee8f1 12884 ac_cv_have_decl_fprintf=yes
252b5132 12885else
42ecbf5e
DJ
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
398ee8f1 12889ac_cv_have_decl_fprintf=no
252b5132 12890fi
42ecbf5e 12891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12892fi
398ee8f1
SE
12893echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12894echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12895if test $ac_cv_have_decl_fprintf = yes; then
252b5132 12896
398ee8f1
SE
12897cat >>confdefs.h <<_ACEOF
12898#define HAVE_DECL_FPRINTF 1
12899_ACEOF
42ecbf5e 12900
398ee8f1
SE
12901
12902else
12903 cat >>confdefs.h <<_ACEOF
12904#define HAVE_DECL_FPRINTF 0
42ecbf5e 12905_ACEOF
252b5132 12906
252b5132 12907
3e321448
L
12908fi
12909echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12910echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12911if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913else
12914 cat >conftest.$ac_ext <<_ACEOF
12915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h. */
12920$ac_includes_default
12921int
12922main ()
12923{
12924#ifndef stpcpy
12925 char *p = (char *) stpcpy;
12926#endif
12927
12928 ;
12929 return 0;
12930}
12931_ACEOF
12932rm -f conftest.$ac_objext
12933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
1b315056 12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3e321448
L
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_have_decl_stpcpy=yes
12954else
12955 echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
12958ac_cv_have_decl_stpcpy=no
12959fi
12960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12961fi
12962echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12963echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12964if test $ac_cv_have_decl_stpcpy = yes; then
12965
12966cat >>confdefs.h <<_ACEOF
12967#define HAVE_DECL_STPCPY 1
12968_ACEOF
12969
12970
12971else
12972 cat >>confdefs.h <<_ACEOF
12973#define HAVE_DECL_STPCPY 0
12974_ACEOF
12975
12976
398ee8f1
SE
12977fi
12978echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12979echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12980if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 12981 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12982else
42ecbf5e
DJ
12983 cat >conftest.$ac_ext <<_ACEOF
12984/* confdefs.h. */
12985_ACEOF
12986cat confdefs.h >>conftest.$ac_ext
12987cat >>conftest.$ac_ext <<_ACEOF
12988/* end confdefs.h. */
398ee8f1 12989$ac_includes_default
42ecbf5e
DJ
12990int
12991main ()
12992{
398ee8f1
SE
12993#ifndef strstr
12994 char *p = (char *) strstr;
12995#endif
12996
42ecbf5e
DJ
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001rm -f conftest.$ac_objext
13002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
1b315056 13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
398ee8f1 13022 ac_cv_have_decl_strstr=yes
252b5132 13023else
42ecbf5e
DJ
13024 echo "$as_me: failed program was:" >&5
13025sed 's/^/| /' conftest.$ac_ext >&5
13026
398ee8f1 13027ac_cv_have_decl_strstr=no
252b5132 13028fi
42ecbf5e 13029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13030fi
398ee8f1
SE
13031echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13032echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13033if test $ac_cv_have_decl_strstr = yes; then
252b5132 13034
398ee8f1
SE
13035cat >>confdefs.h <<_ACEOF
13036#define HAVE_DECL_STRSTR 1
13037_ACEOF
42ecbf5e 13038
398ee8f1
SE
13039
13040else
13041 cat >>confdefs.h <<_ACEOF
13042#define HAVE_DECL_STRSTR 0
42ecbf5e 13043_ACEOF
252b5132 13044
252b5132 13045
398ee8f1
SE
13046fi
13047echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13048echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13049if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13050 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13051else
42ecbf5e
DJ
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
398ee8f1 13058$ac_includes_default
42ecbf5e
DJ
13059int
13060main ()
13061{
398ee8f1
SE
13062#ifndef sbrk
13063 char *p = (char *) sbrk;
13064#endif
13065
42ecbf5e
DJ
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070rm -f conftest.$ac_objext
13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
1b315056 13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
398ee8f1 13091 ac_cv_have_decl_sbrk=yes
252b5132 13092else
42ecbf5e
DJ
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
398ee8f1 13096ac_cv_have_decl_sbrk=no
252b5132 13097fi
42ecbf5e 13098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13099fi
398ee8f1
SE
13100echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13101echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13102if test $ac_cv_have_decl_sbrk = yes; then
252b5132 13103
398ee8f1
SE
13104cat >>confdefs.h <<_ACEOF
13105#define HAVE_DECL_SBRK 1
13106_ACEOF
42ecbf5e 13107
398ee8f1
SE
13108
13109else
13110 cat >>confdefs.h <<_ACEOF
13111#define HAVE_DECL_SBRK 0
42ecbf5e 13112_ACEOF
252b5132 13113
252b5132 13114
398ee8f1
SE
13115fi
13116echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13117echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13118if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13119 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13120else
42ecbf5e
DJ
13121 cat >conftest.$ac_ext <<_ACEOF
13122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
398ee8f1 13127$ac_includes_default
42ecbf5e
DJ
13128int
13129main ()
13130{
398ee8f1
SE
13131#ifndef getenv
13132 char *p = (char *) getenv;
13133#endif
13134
42ecbf5e
DJ
13135 ;
13136 return 0;
13137}
13138_ACEOF
13139rm -f conftest.$ac_objext
13140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13141 (eval $ac_compile) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
1b315056 13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
398ee8f1 13160 ac_cv_have_decl_getenv=yes
252b5132 13161else
42ecbf5e
DJ
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
398ee8f1 13165ac_cv_have_decl_getenv=no
252b5132 13166fi
42ecbf5e 13167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13168fi
398ee8f1
SE
13169echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13170echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13171if test $ac_cv_have_decl_getenv = yes; then
252b5132 13172
398ee8f1
SE
13173cat >>confdefs.h <<_ACEOF
13174#define HAVE_DECL_GETENV 1
13175_ACEOF
42ecbf5e 13176
398ee8f1
SE
13177
13178else
13179 cat >>confdefs.h <<_ACEOF
13180#define HAVE_DECL_GETENV 0
42ecbf5e 13181_ACEOF
252b5132 13182
252b5132 13183
398ee8f1
SE
13184fi
13185echo "$as_me:$LINENO: checking whether environ is declared" >&5
13186echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13187if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13188 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13189else
42ecbf5e
DJ
13190 cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h. */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
13195/* end confdefs.h. */
398ee8f1 13196$ac_includes_default
42ecbf5e
DJ
13197int
13198main ()
13199{
398ee8f1
SE
13200#ifndef environ
13201 char *p = (char *) environ;
13202#endif
13203
42ecbf5e
DJ
13204 ;
13205 return 0;
13206}
13207_ACEOF
13208rm -f conftest.$ac_objext
13209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
1b315056 13217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
398ee8f1 13229 ac_cv_have_decl_environ=yes
252b5132 13230else
42ecbf5e
DJ
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
398ee8f1 13234ac_cv_have_decl_environ=no
252b5132 13235fi
42ecbf5e 13236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13237fi
398ee8f1
SE
13238echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13239echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13240if test $ac_cv_have_decl_environ = yes; then
252b5132 13241
398ee8f1
SE
13242cat >>confdefs.h <<_ACEOF
13243#define HAVE_DECL_ENVIRON 1
13244_ACEOF
42ecbf5e 13245
398ee8f1
SE
13246
13247else
13248 cat >>confdefs.h <<_ACEOF
13249#define HAVE_DECL_ENVIRON 0
42ecbf5e 13250_ACEOF
252b5132 13251
252b5132 13252
398ee8f1 13253fi
b7d4af3a
JW
13254echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13255echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13256if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258else
13259 cat >conftest.$ac_ext <<_ACEOF
13260/* confdefs.h. */
13261_ACEOF
13262cat confdefs.h >>conftest.$ac_ext
13263cat >>conftest.$ac_ext <<_ACEOF
13264/* end confdefs.h. */
13265$ac_includes_default
13266int
13267main ()
13268{
13269#ifndef getc_unlocked
13270 char *p = (char *) getc_unlocked;
13271#endif
13272
13273 ;
13274 return 0;
13275}
13276_ACEOF
13277rm -f conftest.$ac_objext
13278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
1b315056 13286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7d4af3a
JW
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest.$ac_objext'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_have_decl_getc_unlocked=yes
13299else
13300 echo "$as_me: failed program was:" >&5
13301sed 's/^/| /' conftest.$ac_ext >&5
13302
13303ac_cv_have_decl_getc_unlocked=no
13304fi
13305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13306fi
13307echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13308echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13309if test $ac_cv_have_decl_getc_unlocked = yes; then
13310
13311cat >>confdefs.h <<_ACEOF
13312#define HAVE_DECL_GETC_UNLOCKED 1
13313_ACEOF
13314
13315
13316else
13317 cat >>confdefs.h <<_ACEOF
13318#define HAVE_DECL_GETC_UNLOCKED 0
13319_ACEOF
13320
13321
db50c840
EB
13322fi
13323echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13324echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13325if test "${ac_cv_have_decl_snprintf+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327else
13328 cat >conftest.$ac_ext <<_ACEOF
13329/* confdefs.h. */
13330_ACEOF
13331cat confdefs.h >>conftest.$ac_ext
13332cat >>conftest.$ac_ext <<_ACEOF
13333/* end confdefs.h. */
13334$ac_includes_default
13335int
13336main ()
13337{
13338#ifndef snprintf
13339 char *p = (char *) snprintf;
13340#endif
13341
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346rm -f conftest.$ac_objext
13347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13348 (eval $ac_compile) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
1b315056 13355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
db50c840
EB
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_have_decl_snprintf=yes
13368else
13369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
13371
13372ac_cv_have_decl_snprintf=no
13373fi
13374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13375fi
13376echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13377echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13378if test $ac_cv_have_decl_snprintf = yes; then
13379
13380cat >>confdefs.h <<_ACEOF
13381#define HAVE_DECL_SNPRINTF 1
13382_ACEOF
13383
13384
13385else
13386 cat >>confdefs.h <<_ACEOF
13387#define HAVE_DECL_SNPRINTF 0
13388_ACEOF
13389
13390
13391fi
13392echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13393echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13394if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403$ac_includes_default
13404int
13405main ()
13406{
13407#ifndef vsnprintf
13408 char *p = (char *) vsnprintf;
13409#endif
13410
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
1b315056 13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
db50c840
EB
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_have_decl_vsnprintf=yes
13437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441ac_cv_have_decl_vsnprintf=no
13442fi
13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13444fi
13445echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13446echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13447if test $ac_cv_have_decl_vsnprintf = yes; then
13448
13449cat >>confdefs.h <<_ACEOF
13450#define HAVE_DECL_VSNPRINTF 1
13451_ACEOF
13452
13453
13454else
13455 cat >>confdefs.h <<_ACEOF
13456#define HAVE_DECL_VSNPRINTF 0
13457_ACEOF
13458
13459
b7d4af3a
JW
13460fi
13461
13462
252b5132 13463
1b315056
CS
13464# Link in zlib if we can. This allows us to read compressed debug
13465# sections. This is used only by readelf.c (objdump uses bfd for
13466# reading compressed sections).
13467echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13468echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13469if test "${ac_cv_search_zlibVersion+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472 ac_func_search_save_LIBS=$LIBS
13473ac_cv_search_zlibVersion=no
13474cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480
13481/* Override any gcc2 internal prototype to avoid an error. */
13482#ifdef __cplusplus
13483extern "C"
13484#endif
13485/* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487char zlibVersion ();
13488int
13489main ()
13490{
13491zlibVersion ();
13492 ;
13493 return 0;
13494}
13495_ACEOF
13496rm -f conftest.$ac_objext conftest$ac_exeext
13497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_search_zlibVersion="none required"
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522fi
13523rm -f conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525if test "$ac_cv_search_zlibVersion" = no; then
13526 for ac_lib in z; do
13527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13528 cat >conftest.$ac_ext <<_ACEOF
13529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
13533/* end confdefs.h. */
13534
13535/* Override any gcc2 internal prototype to avoid an error. */
13536#ifdef __cplusplus
13537extern "C"
13538#endif
13539/* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13541char zlibVersion ();
13542int
13543main ()
13544{
13545zlibVersion ();
13546 ;
13547 return 0;
13548}
13549_ACEOF
13550rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest$ac_exeext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_cv_search_zlibVersion="-l$ac_lib"
13572break
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577fi
13578rm -f conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13580 done
13581fi
13582LIBS=$ac_func_search_save_LIBS
13583fi
13584echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13585echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13586if test "$ac_cv_search_zlibVersion" != no; then
13587 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13588
13589for ac_header in zlib.h
13590do
13591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593 echo "$as_me:$LINENO: checking for $ac_header" >&5
13594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13595if eval "test \"\${$as_ac_Header+set}\" = set"; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597fi
13598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13600else
13601 # Is the header compilable?
13602echo "$as_me:$LINENO: checking $ac_header usability" >&5
13603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13604cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
13610$ac_includes_default
13611#include <$ac_header>
13612_ACEOF
13613rm -f conftest.$ac_objext
13614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615 (eval $ac_compile) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_header_compiler=yes
13635else
13636 echo "$as_me: failed program was:" >&5
13637sed 's/^/| /' conftest.$ac_ext >&5
13638
13639ac_header_compiler=no
13640fi
13641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13643echo "${ECHO_T}$ac_header_compiler" >&6
13644
13645# Is the header present?
13646echo "$as_me:$LINENO: checking $ac_header presence" >&5
13647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13648cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654#include <$ac_header>
13655_ACEOF
13656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } >/dev/null; then
13664 if test -s conftest.err; then
13665 ac_cpp_err=$ac_c_preproc_warn_flag
13666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13667 else
13668 ac_cpp_err=
13669 fi
13670else
13671 ac_cpp_err=yes
13672fi
13673if test -z "$ac_cpp_err"; then
13674 ac_header_preproc=yes
13675else
13676 echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 ac_header_preproc=no
13680fi
13681rm -f conftest.err conftest.$ac_ext
13682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13683echo "${ECHO_T}$ac_header_preproc" >&6
13684
13685# So? What about this header?
13686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 yes:no: )
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13692 ac_header_preproc=yes
13693 ;;
13694 no:yes:* )
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13698echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13702echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13707 (
13708 cat <<\_ASBOX
13709## ------------------------------------------ ##
13710## Report this to the AC_PACKAGE_NAME lists. ##
13711## ------------------------------------------ ##
13712_ASBOX
13713 ) |
13714 sed "s/^/$as_me: WARNING: /" >&2
13715 ;;
13716esac
13717echo "$as_me:$LINENO: checking for $ac_header" >&5
13718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13719if eval "test \"\${$as_ac_Header+set}\" = set"; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721else
13722 eval "$as_ac_Header=\$ac_header_preproc"
13723fi
13724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13726
13727fi
13728if test `eval echo '${'$as_ac_Header'}'` = yes; then
13729 cat >>confdefs.h <<_ACEOF
13730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13731_ACEOF
13732
13733fi
13734
13735done
13736
13737fi
13738
13739
252b5132
RH
13740
13741case "${host}" in
8a965946 13742*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
13743
13744cat >>confdefs.h <<\_ACEOF
252b5132 13745#define USE_BINARY_FOPEN 1
42ecbf5e 13746_ACEOF
252b5132
RH
13747 ;;
13748esac
13749
13750# target-specific stuff:
13751
13752# Canonicalize the secondary target names.
13753if test -n "$enable_targets"; then
13754 for targ in `echo $enable_targets | sed 's/,/ /g'`
13755 do
6d83c84b 13756 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13757 if test -n "$result"; then
13758 canon_targets="$canon_targets $result"
13759 else
13760 # Allow targets that config.sub doesn't recognize, like "all".
13761 canon_targets="$canon_targets $targ"
13762 fi
13763 done
13764fi
13765
5ba684e2
NC
13766if test "${ac_cv_header_iconv_h+set}" = set; then
13767 echo "$as_me:$LINENO: checking for iconv.h" >&5
13768echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13769if test "${ac_cv_header_iconv_h+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771fi
13772echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13773echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13774else
13775 # Is the header compilable?
13776echo "$as_me:$LINENO: checking iconv.h usability" >&5
13777echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13778cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784$ac_includes_default
13785#include <iconv.h>
13786_ACEOF
13787rm -f conftest.$ac_objext
13788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
1b315056 13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5ba684e2
NC
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler=yes
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813ac_header_compiler=no
13814fi
13815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817echo "${ECHO_T}$ac_header_compiler" >&6
13818
13819# Is the header present?
13820echo "$as_me:$LINENO: checking iconv.h presence" >&5
13821echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13822cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
13828#include <iconv.h>
13829_ACEOF
13830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13843 fi
13844else
13845 ac_cpp_err=yes
13846fi
13847if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849else
13850 echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 ac_header_preproc=no
13854fi
13855rm -f conftest.err conftest.$ac_ext
13856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857echo "${ECHO_T}$ac_header_preproc" >&6
13858
13859# So? What about this header?
13860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13863echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13865echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13867 ;;
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13870echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13872echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13874echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13876echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13878echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13880echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13881 (
13882 cat <<\_ASBOX
13883## ------------------------------------------ ##
13884## Report this to the AC_PACKAGE_NAME lists. ##
13885## ------------------------------------------ ##
13886_ASBOX
13887 ) |
13888 sed "s/^/$as_me: WARNING: /" >&2
13889 ;;
13890esac
13891echo "$as_me:$LINENO: checking for iconv.h" >&5
13892echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13893if test "${ac_cv_header_iconv_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896 ac_cv_header_iconv_h=$ac_header_preproc
13897fi
13898echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13899echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13900
13901fi
13902
13903
13904
13905 if test "X$prefix" = "XNONE"; then
13906 acl_final_prefix="$ac_default_prefix"
13907 else
13908 acl_final_prefix="$prefix"
13909 fi
13910 if test "X$exec_prefix" = "XNONE"; then
13911 acl_final_exec_prefix='${prefix}'
13912 else
13913 acl_final_exec_prefix="$exec_prefix"
13914 fi
13915 acl_save_prefix="$prefix"
13916 prefix="$acl_final_prefix"
13917 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13918 prefix="$acl_save_prefix"
13919
13920
13921# Check whether --with-gnu-ld or --without-gnu-ld was given.
13922if test "${with_gnu_ld+set}" = set; then
13923 withval="$with_gnu_ld"
13924 test "$withval" = no || with_gnu_ld=yes
13925else
13926 with_gnu_ld=no
13927fi;
13928# Prepare PATH_SEPARATOR.
13929# The user is always right.
13930if test "${PATH_SEPARATOR+set}" != set; then
13931 echo "#! /bin/sh" >conf$$.sh
13932 echo "exit 0" >>conf$$.sh
13933 chmod +x conf$$.sh
13934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13935 PATH_SEPARATOR=';'
13936 else
13937 PATH_SEPARATOR=:
13938 fi
13939 rm -f conf$$.sh
13940fi
13941ac_prog=ld
13942if test "$GCC" = yes; then
13943 # Check if gcc -print-prog-name=ld gives a path.
13944 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13945echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13946 case $host in
13947 *-*-mingw*)
13948 # gcc leaves a trailing carriage return which upsets mingw
13949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13950 *)
13951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13952 esac
13953 case $ac_prog in
13954 # Accept absolute paths.
13955 [\\/]* | [A-Za-z]:[\\/]*)
13956 re_direlt='/[^/][^/]*/\.\./'
13957 # Canonicalize the path of ld
13958 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13960 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13961 done
13962 test -z "$LD" && LD="$ac_prog"
13963 ;;
13964 "")
13965 # If it fails, then pretend we aren't using GCC.
13966 ac_prog=ld
13967 ;;
13968 *)
13969 # If it is relative, then search for the first ld in PATH.
13970 with_gnu_ld=unknown
13971 ;;
13972 esac
13973elif test "$with_gnu_ld" = yes; then
13974 echo "$as_me:$LINENO: checking for GNU ld" >&5
13975echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13976else
13977 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13978echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13979fi
13980if test "${acl_cv_path_LD+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982else
13983 if test -z "$LD"; then
13984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13985 for ac_dir in $PATH; do
13986 test -z "$ac_dir" && ac_dir=.
13987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13988 acl_cv_path_LD="$ac_dir/$ac_prog"
13989 # Check to see if the program is GNU ld. I'd rather use --version,
13990 # but apparently some GNU ld's only accept -v.
13991 # Break only if it was the GNU/non-GNU ld that we prefer.
13992 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13993 test "$with_gnu_ld" != no && break
13994 else
13995 test "$with_gnu_ld" != yes && break
13996 fi
13997 fi
13998 done
13999 IFS="$ac_save_ifs"
14000else
14001 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14002fi
14003fi
14004
14005LD="$acl_cv_path_LD"
14006if test -n "$LD"; then
14007 echo "$as_me:$LINENO: result: $LD" >&5
14008echo "${ECHO_T}$LD" >&6
14009else
14010 echo "$as_me:$LINENO: result: no" >&5
14011echo "${ECHO_T}no" >&6
14012fi
14013test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14014echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14015 { (exit 1); exit 1; }; }
14016echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14017echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14018if test "${acl_cv_prog_gnu_ld+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020else
14021 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14022if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14023 acl_cv_prog_gnu_ld=yes
14024else
14025 acl_cv_prog_gnu_ld=no
14026fi
14027fi
14028echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14029echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14030with_gnu_ld=$acl_cv_prog_gnu_ld
14031
14032
14033
14034 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14035echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14036if test "${acl_cv_rpath+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038else
14039
14040 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14041 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14042 . ./conftest.sh
14043 rm -f ./conftest.sh
14044 acl_cv_rpath=done
14045
14046fi
14047echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14048echo "${ECHO_T}$acl_cv_rpath" >&6
14049 wl="$acl_cv_wl"
14050 libext="$acl_cv_libext"
14051 shlibext="$acl_cv_shlibext"
14052 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14053 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14054 hardcode_direct="$acl_cv_hardcode_direct"
14055 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14056 # Check whether --enable-rpath or --disable-rpath was given.
14057if test "${enable_rpath+set}" = set; then
14058 enableval="$enable_rpath"
14059 :
14060else
14061 enable_rpath=yes
14062fi;
14063
14064
14065
14066
14067
14068
14069
14070 use_additional=yes
14071
14072 acl_save_prefix="$prefix"
14073 prefix="$acl_final_prefix"
14074 acl_save_exec_prefix="$exec_prefix"
14075 exec_prefix="$acl_final_exec_prefix"
14076
14077 eval additional_includedir=\"$includedir\"
14078 eval additional_libdir=\"$libdir\"
14079
14080 exec_prefix="$acl_save_exec_prefix"
14081 prefix="$acl_save_prefix"
14082
14083
14084# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14085if test "${with_libiconv_prefix+set}" = set; then
14086 withval="$with_libiconv_prefix"
14087
14088 if test "X$withval" = "Xno"; then
14089 use_additional=no
14090 else
14091 if test "X$withval" = "X"; then
14092
14093 acl_save_prefix="$prefix"
14094 prefix="$acl_final_prefix"
14095 acl_save_exec_prefix="$exec_prefix"
14096 exec_prefix="$acl_final_exec_prefix"
14097
14098 eval additional_includedir=\"$includedir\"
14099 eval additional_libdir=\"$libdir\"
14100
14101 exec_prefix="$acl_save_exec_prefix"
14102 prefix="$acl_save_prefix"
14103
14104 else
14105 additional_includedir="$withval/include"
14106 additional_libdir="$withval/lib"
14107 fi
14108 fi
14109
14110fi;
14111 LIBICONV=
14112 LTLIBICONV=
14113 INCICONV=
14114 rpathdirs=
14115 ltrpathdirs=
14116 names_already_handled=
14117 names_next_round='iconv '
14118 while test -n "$names_next_round"; do
14119 names_this_round="$names_next_round"
14120 names_next_round=
14121 for name in $names_this_round; do
14122 already_handled=
14123 for n in $names_already_handled; do
14124 if test "$n" = "$name"; then
14125 already_handled=yes
14126 break
14127 fi
14128 done
14129 if test -z "$already_handled"; then
14130 names_already_handled="$names_already_handled $name"
14131 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14132 eval value=\"\$HAVE_LIB$uppername\"
14133 if test -n "$value"; then
14134 if test "$value" = yes; then
14135 eval value=\"\$LIB$uppername\"
14136 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14137 eval value=\"\$LTLIB$uppername\"
14138 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14139 else
14140 :
14141 fi
14142 else
14143 found_dir=
14144 found_la=
14145 found_so=
14146 found_a=
14147 if test $use_additional = yes; then
14148 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14149 found_dir="$additional_libdir"
14150 found_so="$additional_libdir/lib$name.$shlibext"
14151 if test -f "$additional_libdir/lib$name.la"; then
14152 found_la="$additional_libdir/lib$name.la"
14153 fi
14154 else
14155 if test -f "$additional_libdir/lib$name.$libext"; then
14156 found_dir="$additional_libdir"
14157 found_a="$additional_libdir/lib$name.$libext"
14158 if test -f "$additional_libdir/lib$name.la"; then
14159 found_la="$additional_libdir/lib$name.la"
14160 fi
14161 fi
14162 fi
14163 fi
14164 if test "X$found_dir" = "X"; then
14165 for x in $LDFLAGS $LTLIBICONV; do
14166
14167 acl_save_prefix="$prefix"
14168 prefix="$acl_final_prefix"
14169 acl_save_exec_prefix="$exec_prefix"
14170 exec_prefix="$acl_final_exec_prefix"
14171 eval x=\"$x\"
14172 exec_prefix="$acl_save_exec_prefix"
14173 prefix="$acl_save_prefix"
14174
14175 case "$x" in
14176 -L*)
14177 dir=`echo "X$x" | sed -e 's/^X-L//'`
14178 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14179 found_dir="$dir"
14180 found_so="$dir/lib$name.$shlibext"
14181 if test -f "$dir/lib$name.la"; then
14182 found_la="$dir/lib$name.la"
14183 fi
14184 else
14185 if test -f "$dir/lib$name.$libext"; then
14186 found_dir="$dir"
14187 found_a="$dir/lib$name.$libext"
14188 if test -f "$dir/lib$name.la"; then
14189 found_la="$dir/lib$name.la"
14190 fi
14191 fi
14192 fi
14193 ;;
14194 esac
14195 if test "X$found_dir" != "X"; then
14196 break
14197 fi
14198 done
14199 fi
14200 if test "X$found_dir" != "X"; then
14201 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14202 if test "X$found_so" != "X"; then
14203 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14205 else
14206 haveit=
14207 for x in $ltrpathdirs; do
14208 if test "X$x" = "X$found_dir"; then
14209 haveit=yes
14210 break
14211 fi
14212 done
14213 if test -z "$haveit"; then
14214 ltrpathdirs="$ltrpathdirs $found_dir"
14215 fi
14216 if test "$hardcode_direct" = yes; then
14217 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14218 else
14219 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14221 haveit=
14222 for x in $rpathdirs; do
14223 if test "X$x" = "X$found_dir"; then
14224 haveit=yes
14225 break
14226 fi
14227 done
14228 if test -z "$haveit"; then
14229 rpathdirs="$rpathdirs $found_dir"
14230 fi
14231 else
14232 haveit=
14233 for x in $LDFLAGS $LIBICONV; do
14234
14235 acl_save_prefix="$prefix"
14236 prefix="$acl_final_prefix"
14237 acl_save_exec_prefix="$exec_prefix"
14238 exec_prefix="$acl_final_exec_prefix"
14239 eval x=\"$x\"
14240 exec_prefix="$acl_save_exec_prefix"
14241 prefix="$acl_save_prefix"
14242
14243 if test "X$x" = "X-L$found_dir"; then
14244 haveit=yes
14245 break
14246 fi
14247 done
14248 if test -z "$haveit"; then
14249 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14250 fi
14251 if test "$hardcode_minus_L" != no; then
14252 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14253 else
14254 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14255 fi
14256 fi
14257 fi
14258 fi
14259 else
14260 if test "X$found_a" != "X"; then
14261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14262 else
14263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14264 fi
14265 fi
14266 additional_includedir=
14267 case "$found_dir" in
14268 */lib | */lib/)
14269 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14270 additional_includedir="$basedir/include"
14271 ;;
14272 esac
14273 if test "X$additional_includedir" != "X"; then
14274 if test "X$additional_includedir" != "X/usr/include"; then
14275 haveit=
14276 if test "X$additional_includedir" = "X/usr/local/include"; then
14277 if test -n "$GCC"; then
14278 case $host_os in
14279 linux*) haveit=yes;;
14280 esac
14281 fi
14282 fi
14283 if test -z "$haveit"; then
14284 for x in $CPPFLAGS $INCICONV; do
14285
14286 acl_save_prefix="$prefix"
14287 prefix="$acl_final_prefix"
14288 acl_save_exec_prefix="$exec_prefix"
14289 exec_prefix="$acl_final_exec_prefix"
14290 eval x=\"$x\"
14291 exec_prefix="$acl_save_exec_prefix"
14292 prefix="$acl_save_prefix"
14293
14294 if test "X$x" = "X-I$additional_includedir"; then
14295 haveit=yes
14296 break
14297 fi
14298 done
14299 if test -z "$haveit"; then
14300 if test -d "$additional_includedir"; then
14301 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14302 fi
14303 fi
14304 fi
14305 fi
14306 fi
14307 if test -n "$found_la"; then
14308 save_libdir="$libdir"
14309 case "$found_la" in
14310 */* | *\\*) . "$found_la" ;;
14311 *) . "./$found_la" ;;
14312 esac
14313 libdir="$save_libdir"
14314 for dep in $dependency_libs; do
14315 case "$dep" in
14316 -L*)
14317 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14318 if test "X$additional_libdir" != "X/usr/lib"; then
14319 haveit=
14320 if test "X$additional_libdir" = "X/usr/local/lib"; then
14321 if test -n "$GCC"; then
14322 case $host_os in
14323 linux*) haveit=yes;;
14324 esac
14325 fi
14326 fi
14327 if test -z "$haveit"; then
14328 haveit=
14329 for x in $LDFLAGS $LIBICONV; do
14330
14331 acl_save_prefix="$prefix"
14332 prefix="$acl_final_prefix"
14333 acl_save_exec_prefix="$exec_prefix"
14334 exec_prefix="$acl_final_exec_prefix"
14335 eval x=\"$x\"
14336 exec_prefix="$acl_save_exec_prefix"
14337 prefix="$acl_save_prefix"
14338
14339 if test "X$x" = "X-L$additional_libdir"; then
14340 haveit=yes
14341 break
14342 fi
14343 done
14344 if test -z "$haveit"; then
14345 if test -d "$additional_libdir"; then
14346 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14347 fi
14348 fi
14349 haveit=
14350 for x in $LDFLAGS $LTLIBICONV; do
14351
14352 acl_save_prefix="$prefix"
14353 prefix="$acl_final_prefix"
14354 acl_save_exec_prefix="$exec_prefix"
14355 exec_prefix="$acl_final_exec_prefix"
14356 eval x=\"$x\"
14357 exec_prefix="$acl_save_exec_prefix"
14358 prefix="$acl_save_prefix"
14359
14360 if test "X$x" = "X-L$additional_libdir"; then
14361 haveit=yes
14362 break
14363 fi
14364 done
14365 if test -z "$haveit"; then
14366 if test -d "$additional_libdir"; then
14367 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14368 fi
14369 fi
14370 fi
14371 fi
14372 ;;
14373 -R*)
14374 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14375 if test "$enable_rpath" != no; then
14376 haveit=
14377 for x in $rpathdirs; do
14378 if test "X$x" = "X$dir"; then
14379 haveit=yes
14380 break
14381 fi
14382 done
14383 if test -z "$haveit"; then
14384 rpathdirs="$rpathdirs $dir"
14385 fi
14386 haveit=
14387 for x in $ltrpathdirs; do
14388 if test "X$x" = "X$dir"; then
14389 haveit=yes
14390 break
14391 fi
14392 done
14393 if test -z "$haveit"; then
14394 ltrpathdirs="$ltrpathdirs $dir"
14395 fi
14396 fi
14397 ;;
14398 -l*)
14399 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14400 ;;
14401 *.la)
14402 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14403 ;;
14404 *)
14405 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14406 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14407 ;;
14408 esac
14409 done
14410 fi
14411 else
14412 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14413 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14414 fi
14415 fi
14416 fi
14417 done
14418 done
14419 if test "X$rpathdirs" != "X"; then
14420 if test -n "$hardcode_libdir_separator"; then
14421 alldirs=
14422 for found_dir in $rpathdirs; do
14423 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14424 done
14425 acl_save_libdir="$libdir"
14426 libdir="$alldirs"
14427 eval flag=\"$hardcode_libdir_flag_spec\"
14428 libdir="$acl_save_libdir"
14429 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14430 else
14431 for found_dir in $rpathdirs; do
14432 acl_save_libdir="$libdir"
14433 libdir="$found_dir"
14434 eval flag=\"$hardcode_libdir_flag_spec\"
14435 libdir="$acl_save_libdir"
14436 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14437 done
14438 fi
14439 fi
14440 if test "X$ltrpathdirs" != "X"; then
14441 for found_dir in $ltrpathdirs; do
14442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14443 done
14444 fi
14445
14446
14447
14448
14449
14450
14451
14452 am_save_CPPFLAGS="$CPPFLAGS"
14453
14454 for element in $INCICONV; do
14455 haveit=
14456 for x in $CPPFLAGS; do
14457
14458 acl_save_prefix="$prefix"
14459 prefix="$acl_final_prefix"
14460 acl_save_exec_prefix="$exec_prefix"
14461 exec_prefix="$acl_final_exec_prefix"
14462 eval x=\"$x\"
14463 exec_prefix="$acl_save_exec_prefix"
14464 prefix="$acl_save_prefix"
14465
14466 if test "X$x" = "X$element"; then
14467 haveit=yes
14468 break
14469 fi
14470 done
14471 if test -z "$haveit"; then
14472 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14473 fi
14474 done
14475
14476
14477 echo "$as_me:$LINENO: checking for iconv" >&5
14478echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14479if test "${am_cv_func_iconv+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482
14483 am_cv_func_iconv="no, consider installing GNU libiconv"
14484 am_cv_lib_iconv=no
14485 cat >conftest.$ac_ext <<_ACEOF
14486/* confdefs.h. */
14487_ACEOF
14488cat confdefs.h >>conftest.$ac_ext
14489cat >>conftest.$ac_ext <<_ACEOF
14490/* end confdefs.h. */
14491#include <stdlib.h>
14492#include <iconv.h>
14493int
14494main ()
14495{
14496iconv_t cd = iconv_open("","");
14497 iconv(cd,NULL,NULL,NULL,NULL);
14498 iconv_close(cd);
14499 ;
14500 return 0;
14501}
14502_ACEOF
14503rm -f conftest.$ac_objext conftest$ac_exeext
14504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14505 (eval $ac_link) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
1b315056 14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5ba684e2
NC
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 am_cv_func_iconv=yes
14525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
14529fi
14530rm -f conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 if test "$am_cv_func_iconv" != yes; then
14533 am_save_LIBS="$LIBS"
14534 LIBS="$LIBS $LIBICONV"
14535 cat >conftest.$ac_ext <<_ACEOF
14536/* confdefs.h. */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h. */
14541#include <stdlib.h>
14542#include <iconv.h>
14543int
14544main ()
14545{
14546iconv_t cd = iconv_open("","");
14547 iconv(cd,NULL,NULL,NULL,NULL);
14548 iconv_close(cd);
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext conftest$ac_exeext
14554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
1b315056 14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5ba684e2
NC
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 am_cv_lib_iconv=yes
14575 am_cv_func_iconv=yes
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580fi
14581rm -f conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS="$am_save_LIBS"
14584 fi
14585
14586fi
14587echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14588echo "${ECHO_T}$am_cv_func_iconv" >&6
14589 if test "$am_cv_func_iconv" = yes; then
14590
14591cat >>confdefs.h <<\_ACEOF
14592#define HAVE_ICONV 1
14593_ACEOF
14594
14595 fi
14596 if test "$am_cv_lib_iconv" = yes; then
14597 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14598echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14599 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14600echo "${ECHO_T}$LIBICONV" >&6
14601 else
14602 CPPFLAGS="$am_save_CPPFLAGS"
14603 LIBICONV=
14604 LTLIBICONV=
14605 fi
14606
14607
14608
14609 if test "$am_cv_func_iconv" = yes; then
14610 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14611echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14612 if test "${am_cv_proto_iconv+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614else
14615
14616 cat >conftest.$ac_ext <<_ACEOF
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h. */
14622
14623#include <stdlib.h>
14624#include <iconv.h>
14625extern
14626#ifdef __cplusplus
14627"C"
14628#endif
14629#if defined(__STDC__) || defined(__cplusplus)
14630size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14631#else
14632size_t iconv();
14633#endif
14634
14635int
14636main ()
14637{
14638
14639 ;
14640 return 0;
14641}
14642_ACEOF
14643rm -f conftest.$ac_objext
14644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645 (eval $ac_compile) 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
1b315056 14652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5ba684e2
NC
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 am_cv_proto_iconv_arg1=""
14665else
14666 echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
14669am_cv_proto_iconv_arg1="const"
14670fi
14671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14673fi
14674
14675 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14676 echo "$as_me:$LINENO: result: ${ac_t:-
14677 }$am_cv_proto_iconv" >&5
14678echo "${ECHO_T}${ac_t:-
14679 }$am_cv_proto_iconv" >&6
14680
14681cat >>confdefs.h <<_ACEOF
14682#define ICONV_CONST $am_cv_proto_iconv_arg1
14683_ACEOF
14684
14685 fi
14686
14687
252b5132
RH
14688all_targets=false
14689BUILD_NLMCONV=
14690NLMCONV_DEFS=
14691BUILD_SRCONV=
14692BUILD_DLLTOOL=
14693DLLTOOL_DEFS=
7aad4c3d 14694DLLTOOL_DEFAULT=
252b5132 14695BUILD_WINDRES=
692ed3e7 14696BUILD_WINDMC=
252b5132
RH
14697BUILD_DLLWRAP=
14698BUILD_MISC=
1d97d67f 14699BUILD_INSTALL_MISC=
8b1e6df3 14700OBJDUMP_DEFS=
252b5132
RH
14701
14702for targ in $target $canon_targets
14703do
14704 if test "x$targ" = "xall"; then
14705 all_targets=true
14706 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14707 BUILD_SRCONV='$(SRCONV_PROG)'
14708 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 14709 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14710 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14711 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14712 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14713 if test -z "$DLLTOOL_DEFAULT"; then
14714 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14715 fi
14716 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14717 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
14718 else
14719 case $targ in
42ecbf5e 14720 i[3-7]86*-*-netware*)
252b5132
RH
14721 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14722 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14723 ;;
14724 alpha*-*-netware*)
14725 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14726 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14727 ;;
14728 powerpc*-*-netware*)
14729 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14730 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14731 ;;
14732 sparc*-*-netware*)
14733 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14734 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14735 ;;
14736 esac
14737 case $targ in
14738 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14739 esac
14740 case $targ in
a8c548cb
NC
14741 arm-epoc-pe*)
14742 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14743 if test -z "$DLLTOOL_DEFAULT"; then
14744 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14745 fi
a8c548cb
NC
14746 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14747 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14748 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 14749 ;;
7148cc28
NC
14750 arm-wince-pe* | arm-*-wince)
14751 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14752 if test -z "$DLLTOOL_DEFAULT"; then
14753 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14754 fi
7148cc28
NC
14755 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14756 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14757 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14758 ;;
14759 arm-*-pe*)
252b5132 14760 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14761 if test -z "$DLLTOOL_DEFAULT"; then
14762 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14763 fi
252b5132
RH
14764 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14765 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14766 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14767 ;;
27a710e5 14768 thumb-*-pe*)
252b5132 14769 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14770 if test -z "$DLLTOOL_DEFAULT"; then
14771 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14772 fi
252b5132
RH
14773 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14774 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14775 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14776 ;;
42037fe5 14777 x86_64-*-mingw*)
99ad8390 14778 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14779 if test -z "$DLLTOOL_DEFAULT"; then
14780 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14781 fi
99ad8390
NC
14782 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14783 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14784 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14785 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14786 ;;
80c7c40a 14787 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14788 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14789 if test -z "$DLLTOOL_DEFAULT"; then
14790 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14791 fi
252b5132
RH
14792 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14793 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14794 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14795 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14796 ;;
80c7c40a 14797 i[3-7]86-*-interix)
7a7b06ef 14798 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14799 if test -z "$DLLTOOL_DEFAULT"; then
14800 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14801 fi
7a7b06ef
ILT
14802 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14803 ;;
f0660b73
NC
14804 powerpc*-aix5.[01])
14805 ;;
14806 powerpc*-aix5.*)
14807 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14808 ;;
e1d5b1e7 14809 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 14810 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14811 if test -z "$DLLTOOL_DEFAULT"; then
14812 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14813 fi
252b5132
RH
14814 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14815 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14816 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14817 ;;
59678365 14818 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 14819 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 14820 ;;
e1d5b1e7 14821 sh*-*-pe)
8a0e0f38 14822 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14823 if test -z "$DLLTOOL_DEFAULT"; then
14824 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14825 fi
8a0e0f38
NC
14826 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14827 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14828 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14829 ;;
cd14b966 14830 spu-*-*)
1d97d67f 14831 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14832 ;;
e1d5b1e7 14833 mips*-*-pe)
8a0e0f38 14834 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14835 if test -z "$DLLTOOL_DEFAULT"; then
14836 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14837 fi
8a0e0f38
NC
14838 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14839 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14840 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14841 ;;
27a710e5 14842 mcore-*-pe)
661016bb 14843 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14844 if test -z "$DLLTOOL_DEFAULT"; then
14845 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14846 fi
661016bb
NC
14847 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14848 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14849 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14850 ;;
27a710e5 14851 mcore-*-elf)
661016bb 14852 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14853 if test -z "$DLLTOOL_DEFAULT"; then
14854 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14855 fi
661016bb 14856 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14857 ;;
15ab5209
DB
14858 mep-*)
14859 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14860 ;;
252b5132
RH
14861 esac
14862 fi
14863done
14864
7aad4c3d
L
14865DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14866
42ecbf5e
DJ
14867if test "${with_windres+set}" = set; then
14868 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14869fi
14870
692ed3e7
NC
14871if test "${with_windmc+set}" = set; then
14872 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14873fi
14874
14875
42ecbf5e
DJ
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
1d97d67f 14887
42ecbf5e
DJ
14888cat >>confdefs.h <<_ACEOF
14889#define TARGET "${target}"
14890_ACEOF
14891
14892
14893targ=$target
14894. $srcdir/../bfd/config.bfd
14895if test "x$targ_underscore" = "xyes"; then
14896 UNDERSCORE=1
14897else
14898 UNDERSCORE=0
14899fi
14900
14901cat >>confdefs.h <<_ACEOF
14902#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14903_ACEOF
14904
14905
14906# Emulation
14907for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14908do
14909 # Canonicalize the secondary target names.
14910 result=`$ac_config_sub $targ_alias 2>/dev/null`
14911 if test -n "$result"; then
14912 targ=$result
14913 else
14914 targ=$targ_alias
14915 fi
14916
14917 . ${srcdir}/configure.tgt
14918
14919 EMULATION=$targ_emul
14920 EMULATION_VECTOR=$targ_emul_vector
14921done
14922
14923
14924
14925
108a6f8e
CD
14926# Required for html and install-html
14927
14928
14929
14930
42ecbf5e 14931 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
14932cat >confcache <<\_ACEOF
14933# This file is a shell script that caches the results of configure
14934# tests run on this system so they can be shared between configure
14935# scripts and configure runs, see configure's option --config-cache.
14936# It is not useful on other systems. If it contains results you don't
14937# want to keep, you may remove or edit it.
14938#
14939# config.status only pays attention to the cache file if you give it
14940# the --recheck option to rerun configure.
14941#
14942# `ac_cv_env_foo' variables (set or unset) will be overridden when
14943# loading this file, other *unset* `ac_cv_foo' will be assigned the
14944# following values.
14945
14946_ACEOF
14947
14948# The following way of writing the cache mishandles newlines in values,
14949# but we know of no workaround that is simple, portable, and efficient.
14950# So, don't put newlines in cache variables' values.
14951# Ultrix sh set writes to stderr and can't be redirected directly,
14952# and sets the high bit in the cache file unless we assign to the vars.
14953{
14954 (set) 2>&1 |
14955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14956 *ac_space=\ *)
14957 # `set' does not quote correctly, so add quotes (double-quote
14958 # substitution turns \\\\ into \\, and sed turns \\ into \).
14959 sed -n \
14960 "s/'/'\\\\''/g;
14961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14962 ;;
14963 *)
14964 # `set' quotes correctly as required by POSIX, so do not add quotes.
14965 sed -n \
14966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14967 ;;
14968 esac;
14969} |
14970 sed '
14971 t clear
14972 : clear
14973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14974 t end
14975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14976 : end' >>confcache
14977if diff $cache_file confcache >/dev/null 2>&1; then :; else
14978 if test -w $cache_file; then
14979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14980 cat confcache >$cache_file
14981 else
14982 echo "not updating unwritable cache $cache_file"
14983 fi
14984fi
14985rm -f confcache
14986
14987test "x$prefix" = xNONE && prefix=$ac_default_prefix
14988# Let make expand exec_prefix.
14989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14990
14991# VPATH may cause trouble with some makes, so we remove $(srcdir),
14992# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14993# trailing colons and then remove the whole line if VPATH becomes empty
14994# (actually we leave an empty line to preserve line numbers).
14995if test "x$srcdir" = x.; then
14996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14997s/:*\$(srcdir):*/:/;
14998s/:*\${srcdir}:*/:/;
14999s/:*@srcdir@:*/:/;
15000s/^\([^=]*=[ ]*\):*/\1/;
15001s/:*$//;
15002s/^[^=]*=[ ]*$//;
15003}'
15004fi
15005
15006DEFS=-DHAVE_CONFIG_H
15007
15008ac_libobjs=
15009ac_ltlibobjs=
15010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15011 # 1. Remove the extension, and $U if already installed.
15012 ac_i=`echo "$ac_i" |
15013 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15014 # 2. Add them.
15015 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15016 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15017done
15018LIBOBJS=$ac_libobjs
15019
15020LTLIBOBJS=$ac_ltlibobjs
15021
15022
15023if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15024 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15025Usually this means the macro was only invoked conditionally." >&5
15026echo "$as_me: error: conditional \"AMDEP\" was never defined.
15027Usually this means the macro was only invoked conditionally." >&2;}
15028 { (exit 1); exit 1; }; }
15029fi
15030if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15031 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15032Usually this means the macro was only invoked conditionally." >&5
15033echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15034Usually this means the macro was only invoked conditionally." >&2;}
15035 { (exit 1); exit 1; }; }
15036fi
15037if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15038 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15039Usually this means the macro was only invoked conditionally." >&5
15040echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15041Usually this means the macro was only invoked conditionally." >&2;}
15042 { (exit 1); exit 1; }; }
15043fi
d5fbea21
DJ
15044if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15045 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15046Usually this means the macro was only invoked conditionally." >&5
15047echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15048Usually this means the macro was only invoked conditionally." >&2;}
15049 { (exit 1); exit 1; }; }
15050fi
42ecbf5e
DJ
15051
15052: ${CONFIG_STATUS=./config.status}
15053ac_clean_files_save=$ac_clean_files
15054ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15055{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15056echo "$as_me: creating $CONFIG_STATUS" >&6;}
15057cat >$CONFIG_STATUS <<_ACEOF
15058#! $SHELL
15059# Generated by $as_me.
15060# Run this file to recreate the current configuration.
15061# Compiler output produced by configure, useful for debugging
15062# configure, is in config.log if it exists.
15063
15064debug=false
15065ac_cs_recheck=false
15066ac_cs_silent=false
15067SHELL=\${CONFIG_SHELL-$SHELL}
15068_ACEOF
252b5132 15069
42ecbf5e
DJ
15070cat >>$CONFIG_STATUS <<\_ACEOF
15071## --------------------- ##
15072## M4sh Initialization. ##
15073## --------------------- ##
252b5132 15074
42ecbf5e
DJ
15075# Be Bourne compatible
15076if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15077 emulate sh
15078 NULLCMD=:
15079 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15080 # is contrary to our usage. Disable this feature.
15081 alias -g '${1+"$@"}'='"$@"'
15082elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15083 set -o posix
15084fi
15085DUALCASE=1; export DUALCASE # for MKS sh
252b5132 15086
42ecbf5e
DJ
15087# Support unset when possible.
15088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15089 as_unset=unset
15090else
15091 as_unset=false
15092fi
252b5132
RH
15093
15094
42ecbf5e
DJ
15095# Work around bugs in pre-3.0 UWIN ksh.
15096$as_unset ENV MAIL MAILPATH
15097PS1='$ '
15098PS2='> '
15099PS4='+ '
252b5132 15100
42ecbf5e
DJ
15101# NLS nuisances.
15102for as_var in \
15103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15105 LC_TELEPHONE LC_TIME
15106do
15107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15108 eval $as_var=C; export $as_var
15109 else
15110 $as_unset $as_var
15111 fi
15112done
252b5132 15113
42ecbf5e
DJ
15114# Required to use basename.
15115if expr a : '\(a\)' >/dev/null 2>&1; then
15116 as_expr=expr
15117else
15118 as_expr=false
15119fi
252b5132 15120
42ecbf5e
DJ
15121if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15122 as_basename=basename
15123else
15124 as_basename=false
15125fi
252b5132 15126
8b1e6df3 15127
42ecbf5e
DJ
15128# Name of the executable.
15129as_me=`$as_basename "$0" ||
15130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15131 X"$0" : 'X\(//\)$' \| \
15132 X"$0" : 'X\(/\)$' \| \
15133 . : '\(.\)' 2>/dev/null ||
15134echo X/"$0" |
15135 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15136 /^X\/\(\/\/\)$/{ s//\1/; q; }
15137 /^X\/\(\/\).*/{ s//\1/; q; }
15138 s/.*/./; q'`
0218d1e4 15139
252b5132 15140
42ecbf5e
DJ
15141# PATH needs CR, and LINENO needs CR and PATH.
15142# Avoid depending upon Character Ranges.
15143as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15145as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15146as_cr_digits='0123456789'
15147as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 15148
42ecbf5e
DJ
15149# The user is always right.
15150if test "${PATH_SEPARATOR+set}" != set; then
15151 echo "#! /bin/sh" >conf$$.sh
15152 echo "exit 0" >>conf$$.sh
15153 chmod +x conf$$.sh
15154 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15155 PATH_SEPARATOR=';'
15156 else
15157 PATH_SEPARATOR=:
15158 fi
15159 rm -f conf$$.sh
252b5132
RH
15160fi
15161
15162
42ecbf5e
DJ
15163 as_lineno_1=$LINENO
15164 as_lineno_2=$LINENO
15165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15166 test "x$as_lineno_1" != "x$as_lineno_2" &&
15167 test "x$as_lineno_3" = "x$as_lineno_2" || {
15168 # Find who we are. Look in the path if we contain no path at all
15169 # relative or not.
15170 case $0 in
15171 *[\\/]* ) as_myself=$0 ;;
15172 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173for as_dir in $PATH
eb1e0e80 15174do
42ecbf5e
DJ
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15178done
eb1e0e80 15179
42ecbf5e
DJ
15180 ;;
15181 esac
15182 # We did not find ourselves, most probably we were run as `sh COMMAND'
15183 # in which case we are not to be found in the path.
15184 if test "x$as_myself" = x; then
15185 as_myself=$0
15186 fi
15187 if test ! -f "$as_myself"; then
15188 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15189echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15190 { (exit 1); exit 1; }; }
15191 fi
15192 case $CONFIG_SHELL in
15193 '')
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15196do
15197 IFS=$as_save_IFS
15198 test -z "$as_dir" && as_dir=.
15199 for as_base in sh bash ksh sh5; do
15200 case $as_dir in
15201 /*)
15202 if ("$as_dir/$as_base" -c '
15203 as_lineno_1=$LINENO
15204 as_lineno_2=$LINENO
15205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15206 test "x$as_lineno_1" != "x$as_lineno_2" &&
15207 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15208 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15209 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15210 CONFIG_SHELL=$as_dir/$as_base
15211 export CONFIG_SHELL
15212 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15213 fi;;
15214 esac
15215 done
eb1e0e80 15216done
42ecbf5e
DJ
15217;;
15218 esac
eb1e0e80 15219
42ecbf5e
DJ
15220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15221 # uniformly replaced by the line number. The first 'sed' inserts a
15222 # line-number line before each line; the second 'sed' does the real
15223 # work. The second script uses 'N' to pair each line-number line
15224 # with the numbered line, and appends trailing '-' during
15225 # substitution so that $LINENO is not a special case at line end.
15226 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15227 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15228 sed '=' <$as_myself |
15229 sed '
15230 N
15231 s,$,-,
15232 : loop
15233 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15234 t loop
15235 s,-$,,
15236 s,^['$as_cr_digits']*\n,,
15237 ' >$as_me.lineno &&
15238 chmod +x $as_me.lineno ||
15239 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15240echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15241 { (exit 1); exit 1; }; }
15242
15243 # Don't try to exec as it changes $[0], causing all sort of problems
15244 # (the dirname of $[0] is not the place where we might find the
15245 # original and so on. Autoconf is especially sensible to this).
15246 . ./$as_me.lineno
15247 # Exit status is that of the last command.
15248 exit
15249}
eb1e0e80
NC
15250
15251
42ecbf5e
DJ
15252case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15253 *c*,-n*) ECHO_N= ECHO_C='
15254' ECHO_T=' ' ;;
15255 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15256 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15257esac
eb1e0e80 15258
42ecbf5e
DJ
15259if expr a : '\(a\)' >/dev/null 2>&1; then
15260 as_expr=expr
d15b04bd 15261else
42ecbf5e
DJ
15262 as_expr=false
15263fi
15264
15265rm -f conf$$ conf$$.exe conf$$.file
15266echo >conf$$.file
15267if ln -s conf$$.file conf$$ 2>/dev/null; then
15268 # We could just check for DJGPP; but this test a) works b) is more generic
15269 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15270 if test -f conf$$.exe; then
15271 # Don't use ln at all; we don't have any links
15272 as_ln_s='cp -p'
252b5132 15273 else
42ecbf5e 15274 as_ln_s='ln -s'
252b5132 15275 fi
42ecbf5e
DJ
15276elif ln conf$$.file conf$$ 2>/dev/null; then
15277 as_ln_s=ln
15278else
15279 as_ln_s='cp -p'
252b5132 15280fi
42ecbf5e 15281rm -f conf$$ conf$$.exe conf$$.file
252b5132 15282
42ecbf5e
DJ
15283if mkdir -p . 2>/dev/null; then
15284 as_mkdir_p=:
15285else
15286 test -d ./-p && rmdir ./-p
15287 as_mkdir_p=false
15288fi
d15b04bd 15289
42ecbf5e 15290as_executable_p="test -f"
252b5132 15291
42ecbf5e
DJ
15292# Sed expression to map a string onto a valid CPP name.
15293as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15294
15295# Sed expression to map a string onto a valid variable name.
15296as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15297
15298
15299# IFS
15300# We need space, tab and new line, in precisely that order.
15301as_nl='
15302'
15303IFS=" $as_nl"
15304
15305# CDPATH.
15306$as_unset CDPATH
15307
15308exec 6>&1
15309
15310# Open the log real soon, to keep \$[0] and so on meaningful, and to
15311# report actual input values of CONFIG_FILES etc. instead of their
15312# values after options handling. Logging --version etc. is OK.
15313exec 5>>config.log
15314{
15315 echo
15316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15317## Running $as_me. ##
15318_ASBOX
15319} >&5
15320cat >&5 <<_CSEOF
15321
15322This file was extended by $as_me, which was
15323generated by GNU Autoconf 2.59. Invocation command line was
15324
15325 CONFIG_FILES = $CONFIG_FILES
15326 CONFIG_HEADERS = $CONFIG_HEADERS
15327 CONFIG_LINKS = $CONFIG_LINKS
15328 CONFIG_COMMANDS = $CONFIG_COMMANDS
15329 $ $0 $@
15330
15331_CSEOF
15332echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15333echo >&5
15334_ACEOF
15335
15336# Files that config.status was made for.
15337if test -n "$ac_config_files"; then
15338 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
15339fi
15340
42ecbf5e
DJ
15341if test -n "$ac_config_headers"; then
15342 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15343fi
e5a52504 15344
42ecbf5e
DJ
15345if test -n "$ac_config_links"; then
15346 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15347fi
e5a52504 15348
42ecbf5e
DJ
15349if test -n "$ac_config_commands"; then
15350 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15351fi
d15b04bd 15352
42ecbf5e
DJ
15353cat >>$CONFIG_STATUS <<\_ACEOF
15354
15355ac_cs_usage="\
15356\`$as_me' instantiates files from templates according to the
15357current configuration.
15358
15359Usage: $0 [OPTIONS] [FILE]...
15360
15361 -h, --help print this help, then exit
15362 -V, --version print version number, then exit
15363 -q, --quiet do not print progress messages
15364 -d, --debug don't remove temporary files
15365 --recheck update $as_me by reconfiguring in the same conditions
15366 --file=FILE[:TEMPLATE]
15367 instantiate the configuration file FILE
15368 --header=FILE[:TEMPLATE]
15369 instantiate the configuration header FILE
15370
15371Configuration files:
15372$config_files
15373
15374Configuration headers:
15375$config_headers
15376
15377Configuration commands:
15378$config_commands
15379
15380Report bugs to <bug-autoconf@gnu.org>."
15381_ACEOF
15382
15383cat >>$CONFIG_STATUS <<_ACEOF
15384ac_cs_version="\\
15385config.status
15386configured by $0, generated by GNU Autoconf 2.59,
15387 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15388
15389Copyright (C) 2003 Free Software Foundation, Inc.
15390This config.status script is free software; the Free Software Foundation
15391gives unlimited permission to copy, distribute and modify it."
15392srcdir=$srcdir
15393INSTALL="$INSTALL"
15394_ACEOF
15395
15396cat >>$CONFIG_STATUS <<\_ACEOF
15397# If no file are specified by the user, then we need to provide default
15398# value. By we need to know if files were specified by the user.
15399ac_need_defaults=:
15400while test $# != 0
15401do
15402 case $1 in
15403 --*=*)
15404 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15405 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15406 ac_shift=:
15407 ;;
15408 -*)
15409 ac_option=$1
15410 ac_optarg=$2
15411 ac_shift=shift
15412 ;;
15413 *) # This is not an option, so the user has probably given explicit
15414 # arguments.
15415 ac_option=$1
15416 ac_need_defaults=false;;
15417 esac
15418
15419 case $ac_option in
15420 # Handling of the options.
15421_ACEOF
15422cat >>$CONFIG_STATUS <<\_ACEOF
15423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15424 ac_cs_recheck=: ;;
15425 --version | --vers* | -V )
15426 echo "$ac_cs_version"; exit 0 ;;
15427 --he | --h)
15428 # Conflict between --help and --header
15429 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15430Try \`$0 --help' for more information." >&5
15431echo "$as_me: error: ambiguous option: $1
15432Try \`$0 --help' for more information." >&2;}
15433 { (exit 1); exit 1; }; };;
15434 --help | --hel | -h )
15435 echo "$ac_cs_usage"; exit 0 ;;
15436 --debug | --d* | -d )
15437 debug=: ;;
15438 --file | --fil | --fi | --f )
15439 $ac_shift
15440 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15441 ac_need_defaults=false;;
15442 --header | --heade | --head | --hea )
15443 $ac_shift
15444 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15445 ac_need_defaults=false;;
15446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15448 ac_cs_silent=: ;;
15449
15450 # This is an error.
15451 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15452Try \`$0 --help' for more information." >&5
15453echo "$as_me: error: unrecognized option: $1
15454Try \`$0 --help' for more information." >&2;}
15455 { (exit 1); exit 1; }; } ;;
15456
15457 *) ac_config_targets="$ac_config_targets $1" ;;
15458
15459 esac
15460 shift
15461done
15462
15463ac_configure_extra_args=
15464
15465if $ac_cs_silent; then
15466 exec 6>/dev/null
15467 ac_configure_extra_args="$ac_configure_extra_args --silent"
15468fi
15469
15470_ACEOF
15471cat >>$CONFIG_STATUS <<_ACEOF
15472if \$ac_cs_recheck; then
15473 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15474 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15475fi
15476
15477_ACEOF
15478
15479cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 15480#
42ecbf5e 15481# INIT-COMMANDS section.
d15b04bd 15482#
e5a52504 15483
42ecbf5e 15484AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15485
15486
15487# The HP-UX ksh and POSIX shell print the target directory to stdout
15488# if CDPATH is set.
15489(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15490
15491sed_quote_subst='$sed_quote_subst'
15492double_quote_subst='$double_quote_subst'
15493delay_variable_subst='$delay_variable_subst'
15494macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15495macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15496enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15497enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15498pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15499enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15500host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15501host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15502host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15503build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15504build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15505build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15506SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15507Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15508GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15509EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15510FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15511LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15512NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15513LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15514max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15515ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15516exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15517lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15518lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15519lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15520reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15521reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15522deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15523file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15524AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15525AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15526STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15527RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15528old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15529old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15530old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15531CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15532CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15533compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15534GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15535lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15536lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15537lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15538objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15539SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15540ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15541MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15542lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15543lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15544lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15545lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15546lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15547need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15548libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15549shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15550extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15551archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15552enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15553export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15554whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15555compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15556old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15557old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15558archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15559archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15560module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15561module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15562with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15563allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15564no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15565hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15566hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15567hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15568hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15569hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15570hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15571hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15572hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15573inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15574link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15575fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15576always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15577export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15578exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15579include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15580prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15581file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15582variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15583need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15584need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15585version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15586runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15587shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15588shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15589libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15590library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15591soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15592postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15593postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15594finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15595finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15596hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15597sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15598sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15599hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15600enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15601enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15602enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15603old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15604striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15605
15606LTCC='$LTCC'
15607LTCFLAGS='$LTCFLAGS'
15608compiler='$compiler_DEFAULT'
15609
15610# Quote evaled strings.
15611for var in SED \
15612GREP \
15613EGREP \
15614FGREP \
15615LD \
15616NM \
15617LN_S \
15618lt_SP2NL \
15619lt_NL2SP \
15620reload_flag \
15621deplibs_check_method \
15622file_magic_cmd \
15623AR \
15624AR_FLAGS \
15625STRIP \
15626RANLIB \
15627CC \
15628CFLAGS \
15629compiler \
15630lt_cv_sys_global_symbol_pipe \
15631lt_cv_sys_global_symbol_to_cdecl \
15632lt_cv_sys_global_symbol_to_c_name_address \
15633SHELL \
15634ECHO \
15635lt_prog_compiler_no_builtin_flag \
15636lt_prog_compiler_wl \
15637lt_prog_compiler_pic \
15638lt_prog_compiler_static \
15639lt_cv_prog_compiler_c_o \
15640need_locks \
15641shrext_cmds \
15642export_dynamic_flag_spec \
15643whole_archive_flag_spec \
15644compiler_needs_object \
15645with_gnu_ld \
15646allow_undefined_flag \
15647no_undefined_flag \
15648hardcode_libdir_flag_spec \
15649hardcode_libdir_flag_spec_ld \
15650hardcode_libdir_separator \
15651fix_srcfile_path \
15652exclude_expsyms \
15653include_expsyms \
15654file_list_spec \
15655variables_saved_for_relink \
15656libname_spec \
15657library_names_spec \
15658soname_spec \
15659finish_eval \
15660old_striplib \
15661striplib; do
15662 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15663 *[\\\\\\\`\\"\\\$]*)
15664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15665 ;;
15666 *)
15667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15668 ;;
15669 esac
15670done
15671
15672# Double-quote double-evaled strings.
15673for var in reload_cmds \
15674old_postinstall_cmds \
15675old_postuninstall_cmds \
15676old_archive_cmds \
15677extract_expsyms_cmds \
15678old_archive_from_new_cmds \
15679old_archive_from_expsyms_cmds \
15680archive_cmds \
15681archive_expsym_cmds \
15682module_cmds \
15683module_expsym_cmds \
15684export_symbols_cmds \
15685prelink_cmds \
15686postinstall_cmds \
15687postuninstall_cmds \
15688finish_cmds \
15689sys_lib_search_path_spec \
15690sys_lib_dlsearch_path_spec; do
15691 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15692 *[\\\\\\\`\\"\\\$]*)
15693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15694 ;;
15695 *)
15696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15697 ;;
15698 esac
15699done
15700
15701# Fix-up fallback echo if it was mangled by the above quoting rules.
15702case \$lt_ECHO in
15703*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15704 ;;
15705esac
15706
15707ac_aux_dir='$ac_aux_dir'
15708xsi_shell='$xsi_shell'
15709lt_shell_append='$lt_shell_append'
15710
15711# See if we are running on zsh, and set the options which allow our
15712# commands through without removal of \ escapes INIT.
15713if test -n "\${ZSH_VERSION+set}" ; then
15714 setopt NO_GLOB_SUBST
15715fi
15716
15717
15718 PACKAGE='$PACKAGE'
15719 VERSION='$VERSION'
15720 TIMESTAMP='$TIMESTAMP'
15721 RM='$RM'
15722 ofile='$ofile'
15723
15724
15725
20e95c23
DJ
15726# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15727 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15728 # from automake.
15729 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15730 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15731 LINGUAS="${LINGUAS-%UNSET%}"
15732
42ecbf5e
DJ
15733
15734_ACEOF
15735
15736
15737
15738cat >>$CONFIG_STATUS <<\_ACEOF
15739for ac_config_target in $ac_config_targets
252b5132 15740do
42ecbf5e
DJ
15741 case "$ac_config_target" in
15742 # Handling of arguments.
15743 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15744 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15745 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15746 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 15747 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 15748 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
15749 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15751echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15752 { (exit 1); exit 1; }; };;
d15b04bd 15753 esac
252b5132
RH
15754done
15755
42ecbf5e
DJ
15756# If the user did not use the arguments to specify the items to instantiate,
15757# then the envvar interface is used. Set only those that are not.
15758# We use the long form for the default assignment because of an extremely
15759# bizarre bug on SunOS 4.1.3.
15760if $ac_need_defaults; then
15761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15764fi
15765
15766# Have a temporary directory for convenience. Make it in the build tree
15767# simply because there is no reason to put it here, and in addition,
15768# creating and moving files from /tmp can sometimes cause problems.
15769# Create a temporary directory, and hook for its removal unless debugging.
15770$debug ||
15771{
15772 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15773 trap '{ (exit 1); exit 1; }' 1 2 13 15
15774}
252b5132 15775
42ecbf5e 15776# Create a (secure) tmp directory for tmp files.
e5a52504 15777
42ecbf5e
DJ
15778{
15779 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15780 test -n "$tmp" && test -d "$tmp"
15781} ||
15782{
15783 tmp=./confstat$$-$RANDOM
15784 (umask 077 && mkdir $tmp)
15785} ||
15786{
15787 echo "$me: cannot create a temporary directory in ." >&2
15788 { (exit 1); exit 1; }
15789}
15790
15791_ACEOF
15792
15793cat >>$CONFIG_STATUS <<_ACEOF
15794
15795#
15796# CONFIG_FILES section.
15797#
e5a52504 15798
42ecbf5e
DJ
15799# No need to generate the scripts if there are no CONFIG_FILES.
15800# This happens for instance when ./config.status config.h
15801if test -n "\$CONFIG_FILES"; then
15802 # Protect against being on the right side of a sed subst in config.status.
15803 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15804 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15805s,@SHELL@,$SHELL,;t t
15806s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15807s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15808s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15809s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15810s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15811s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15812s,@exec_prefix@,$exec_prefix,;t t
15813s,@prefix@,$prefix,;t t
15814s,@program_transform_name@,$program_transform_name,;t t
15815s,@bindir@,$bindir,;t t
15816s,@sbindir@,$sbindir,;t t
15817s,@libexecdir@,$libexecdir,;t t
15818s,@datadir@,$datadir,;t t
15819s,@sysconfdir@,$sysconfdir,;t t
15820s,@sharedstatedir@,$sharedstatedir,;t t
15821s,@localstatedir@,$localstatedir,;t t
15822s,@libdir@,$libdir,;t t
15823s,@includedir@,$includedir,;t t
15824s,@oldincludedir@,$oldincludedir,;t t
15825s,@infodir@,$infodir,;t t
15826s,@mandir@,$mandir,;t t
15827s,@build_alias@,$build_alias,;t t
15828s,@host_alias@,$host_alias,;t t
15829s,@target_alias@,$target_alias,;t t
15830s,@DEFS@,$DEFS,;t t
15831s,@ECHO_C@,$ECHO_C,;t t
15832s,@ECHO_N@,$ECHO_N,;t t
15833s,@ECHO_T@,$ECHO_T,;t t
15834s,@LIBS@,$LIBS,;t t
15835s,@build@,$build,;t t
15836s,@build_cpu@,$build_cpu,;t t
15837s,@build_vendor@,$build_vendor,;t t
15838s,@build_os@,$build_os,;t t
15839s,@host@,$host,;t t
15840s,@host_cpu@,$host_cpu,;t t
15841s,@host_vendor@,$host_vendor,;t t
15842s,@host_os@,$host_os,;t t
15843s,@target@,$target,;t t
15844s,@target_cpu@,$target_cpu,;t t
15845s,@target_vendor@,$target_vendor,;t t
15846s,@target_os@,$target_os,;t t
15847s,@CC@,$CC,;t t
15848s,@CFLAGS@,$CFLAGS,;t t
15849s,@LDFLAGS@,$LDFLAGS,;t t
15850s,@CPPFLAGS@,$CPPFLAGS,;t t
15851s,@ac_ct_CC@,$ac_ct_CC,;t t
15852s,@EXEEXT@,$EXEEXT,;t t
15853s,@OBJEXT@,$OBJEXT,;t t
15854s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15855s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15856s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15857s,@CYGPATH_W@,$CYGPATH_W,;t t
15858s,@PACKAGE@,$PACKAGE,;t t
15859s,@VERSION@,$VERSION,;t t
15860s,@ACLOCAL@,$ACLOCAL,;t t
15861s,@AUTOCONF@,$AUTOCONF,;t t
15862s,@AUTOMAKE@,$AUTOMAKE,;t t
15863s,@AUTOHEADER@,$AUTOHEADER,;t t
15864s,@MAKEINFO@,$MAKEINFO,;t t
15865s,@install_sh@,$install_sh,;t t
15866s,@STRIP@,$STRIP,;t t
15867s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15868s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15869s,@mkdir_p@,$mkdir_p,;t t
15870s,@AWK@,$AWK,;t t
15871s,@SET_MAKE@,$SET_MAKE,;t t
15872s,@am__leading_dot@,$am__leading_dot,;t t
15873s,@AMTAR@,$AMTAR,;t t
15874s,@am__tar@,$am__tar,;t t
15875s,@am__untar@,$am__untar,;t t
15876s,@DEPDIR@,$DEPDIR,;t t
15877s,@am__include@,$am__include,;t t
15878s,@am__quote@,$am__quote,;t t
15879s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15880s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15881s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15882s,@CCDEPMODE@,$CCDEPMODE,;t t
15883s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15884s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
15885s,@LIBTOOL@,$LIBTOOL,;t t
15886s,@SED@,$SED,;t t
15887s,@EGREP@,$EGREP,;t t
15888s,@FGREP@,$FGREP,;t t
15889s,@GREP@,$GREP,;t t
15890s,@LD@,$LD,;t t
15891s,@DUMPBIN@,$DUMPBIN,;t t
15892s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15893s,@NM@,$NM,;t t
42ecbf5e 15894s,@LN_S@,$LN_S,;t t
d7040cdb
SE
15895s,@AR@,$AR,;t t
15896s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
15897s,@RANLIB@,$RANLIB,;t t
15898s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
15899s,@lt_ECHO@,$lt_ECHO,;t t
15900s,@CPP@,$CPP,;t t
42ecbf5e
DJ
15901s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15902s,@NO_WERROR@,$NO_WERROR,;t t
15903s,@YACC@,$YACC,;t t
15904s,@LEX@,$LEX,;t t
15905s,@LEXLIB@,$LEXLIB,;t t
15906s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 15907s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15908s,@LIBINTL@,$LIBINTL,;t t
15909s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15910s,@INCINTL@,$INCINTL,;t t
42ecbf5e 15911s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15912s,@GMSGFMT@,$GMSGFMT,;t t
15913s,@POSUB@,$POSUB,;t t
42ecbf5e 15914s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 15915s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 15916s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15917s,@GENCAT@,$GENCAT,;t t
15918s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 15919s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15920s,@MSGFMT@,$MSGFMT,;t t
15921s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
15922s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15923s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15924s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15925s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15926s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 15927s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
15928s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15929s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15930s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 15931s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
15932s,@LIBICONV@,$LIBICONV,;t t
15933s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
15934s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15935s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15936s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15937s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15938s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15939s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 15940s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
15941s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15942s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 15943s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
15944s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15945s,@EMULATION@,$EMULATION,;t t
15946s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
15947s,@datarootdir@,$datarootdir,;t t
15948s,@docdir@,$docdir,;t t
15949s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
15950s,@LIBOBJS@,$LIBOBJS,;t t
15951s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 15952CEOF
252b5132 15953
42ecbf5e
DJ
15954_ACEOF
15955
15956 cat >>$CONFIG_STATUS <<\_ACEOF
15957 # Split the substitutions into bite-sized pieces for seds with
15958 # small command number limits, like on Digital OSF/1 and HP-UX.
15959 ac_max_sed_lines=48
15960 ac_sed_frag=1 # Number of current file.
15961 ac_beg=1 # First line for current file.
15962 ac_end=$ac_max_sed_lines # Line after last line for current file.
15963 ac_more_lines=:
15964 ac_sed_cmds=
15965 while $ac_more_lines; do
15966 if test $ac_beg -gt 1; then
15967 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15968 else
15969 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15970 fi
15971 if test ! -s $tmp/subs.frag; then
15972 ac_more_lines=false
d15b04bd 15973 else
42ecbf5e
DJ
15974 # The purpose of the label and of the branching condition is to
15975 # speed up the sed processing (if there are no `@' at all, there
15976 # is no need to browse any of the substitutions).
15977 # These are the two extra sed commands mentioned above.
15978 (echo ':t
15979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15980 if test -z "$ac_sed_cmds"; then
15981 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15982 else
15983 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15984 fi
15985 ac_sed_frag=`expr $ac_sed_frag + 1`
15986 ac_beg=$ac_end
15987 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 15988 fi
42ecbf5e
DJ
15989 done
15990 if test -z "$ac_sed_cmds"; then
15991 ac_sed_cmds=cat
252b5132 15992 fi
42ecbf5e 15993fi # test -n "$CONFIG_FILES"
252b5132 15994
42ecbf5e
DJ
15995_ACEOF
15996cat >>$CONFIG_STATUS <<\_ACEOF
15997for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 15998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15999 case $ac_file in
16000 - | *:- | *:-:* ) # input from stdin
16001 cat >$tmp/stdin
16002 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16004 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16006 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16007 esac
16008
42ecbf5e
DJ
16009 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16010 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16012 X"$ac_file" : 'X\(//\)[^/]' \| \
16013 X"$ac_file" : 'X\(//\)$' \| \
16014 X"$ac_file" : 'X\(/\)' \| \
16015 . : '\(.\)' 2>/dev/null ||
16016echo X"$ac_file" |
16017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16019 /^X\(\/\/\)$/{ s//\1/; q; }
16020 /^X\(\/\).*/{ s//\1/; q; }
16021 s/.*/./; q'`
16022 { if $as_mkdir_p; then
16023 mkdir -p "$ac_dir"
d15b04bd 16024 else
42ecbf5e
DJ
16025 as_dir="$ac_dir"
16026 as_dirs=
16027 while test ! -d "$as_dir"; do
16028 as_dirs="$as_dir $as_dirs"
16029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16031 X"$as_dir" : 'X\(//\)[^/]' \| \
16032 X"$as_dir" : 'X\(//\)$' \| \
16033 X"$as_dir" : 'X\(/\)' \| \
16034 . : '\(.\)' 2>/dev/null ||
16035echo X"$as_dir" |
16036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16038 /^X\(\/\/\)$/{ s//\1/; q; }
16039 /^X\(\/\).*/{ s//\1/; q; }
16040 s/.*/./; q'`
16041 done
16042 test ! -n "$as_dirs" || mkdir $as_dirs
16043 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16044echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16045 { (exit 1); exit 1; }; }; }
16046
16047 ac_builddir=.
e5a52504 16048
42ecbf5e
DJ
16049if test "$ac_dir" != .; then
16050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16051 # A "../" for each directory in $ac_dir_suffix.
16052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16053else
16054 ac_dir_suffix= ac_top_builddir=
16055fi
16056
16057case $srcdir in
16058 .) # No --srcdir option. We are building in place.
16059 ac_srcdir=.
16060 if test -z "$ac_top_builddir"; then
16061 ac_top_srcdir=.
16062 else
16063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16064 fi ;;
16065 [\\/]* | ?:[\\/]* ) # Absolute path.
16066 ac_srcdir=$srcdir$ac_dir_suffix;
16067 ac_top_srcdir=$srcdir ;;
e5a52504 16068 *) # Relative path.
42ecbf5e
DJ
16069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16071esac
252b5132 16072
42ecbf5e
DJ
16073# Do not use `cd foo && pwd` to compute absolute paths, because
16074# the directories may not exist.
16075case `pwd` in
16076.) ac_abs_builddir="$ac_dir";;
16077*)
16078 case "$ac_dir" in
16079 .) ac_abs_builddir=`pwd`;;
16080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16082 esac;;
16083esac
16084case $ac_abs_builddir in
16085.) ac_abs_top_builddir=${ac_top_builddir}.;;
16086*)
16087 case ${ac_top_builddir}. in
16088 .) ac_abs_top_builddir=$ac_abs_builddir;;
16089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16091 esac;;
16092esac
16093case $ac_abs_builddir in
16094.) ac_abs_srcdir=$ac_srcdir;;
16095*)
16096 case $ac_srcdir in
16097 .) ac_abs_srcdir=$ac_abs_builddir;;
16098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16100 esac;;
16101esac
16102case $ac_abs_builddir in
16103.) ac_abs_top_srcdir=$ac_top_srcdir;;
16104*)
16105 case $ac_top_srcdir in
16106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16109 esac;;
16110esac
e5a52504 16111
42ecbf5e
DJ
16112
16113 case $INSTALL in
16114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16115 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 16116 esac
e5a52504 16117
42ecbf5e
DJ
16118 # Let's still pretend it is `configure' which instantiates (i.e., don't
16119 # use $as_me), people would be surprised to read:
16120 # /* config.h. Generated by config.status. */
16121 if test x"$ac_file" = x-; then
16122 configure_input=
16123 else
16124 configure_input="$ac_file. "
16125 fi
16126 configure_input=$configure_input"Generated from `echo $ac_file_in |
16127 sed 's,.*/,,'` by configure."
16128
16129 # First look for the input files in the build tree, otherwise in the
16130 # src tree.
16131 ac_file_inputs=`IFS=:
16132 for f in $ac_file_in; do
16133 case $f in
16134 -) echo $tmp/stdin ;;
16135 [\\/$]*)
16136 # Absolute (can't be DOS-style, as IFS=:)
16137 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16138echo "$as_me: error: cannot find input file: $f" >&2;}
16139 { (exit 1); exit 1; }; }
16140 echo "$f";;
16141 *) # Relative
16142 if test -f "$f"; then
16143 # Build tree
16144 echo "$f"
16145 elif test -f "$srcdir/$f"; then
16146 # Source tree
16147 echo "$srcdir/$f"
16148 else
16149 # /dev/null tree
16150 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16151echo "$as_me: error: cannot find input file: $f" >&2;}
16152 { (exit 1); exit 1; }; }
16153 fi;;
16154 esac
16155 done` || { (exit 1); exit 1; }
1b315056
CS
16156
16157 if test x"$ac_file" != x-; then
16158 { echo "$as_me:$LINENO: creating $ac_file" >&5
16159echo "$as_me: creating $ac_file" >&6;}
16160 rm -f "$ac_file"
16161 fi
42ecbf5e
DJ
16162_ACEOF
16163cat >>$CONFIG_STATUS <<_ACEOF
16164 sed "$ac_vpsub
16165$extrasub
16166_ACEOF
16167cat >>$CONFIG_STATUS <<\_ACEOF
16168:t
16169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16170s,@configure_input@,$configure_input,;t t
16171s,@srcdir@,$ac_srcdir,;t t
16172s,@abs_srcdir@,$ac_abs_srcdir,;t t
16173s,@top_srcdir@,$ac_top_srcdir,;t t
16174s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16175s,@builddir@,$ac_builddir,;t t
16176s,@abs_builddir@,$ac_abs_builddir,;t t
16177s,@top_builddir@,$ac_top_builddir,;t t
16178s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16179s,@INSTALL@,$ac_INSTALL,;t t
16180" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16181 rm -f $tmp/stdin
16182 if test x"$ac_file" != x-; then
16183 mv $tmp/out $ac_file
16184 else
16185 cat $tmp/out
16186 rm -f $tmp/out
16187 fi
16188
16189done
16190_ACEOF
16191cat >>$CONFIG_STATUS <<\_ACEOF
16192
16193#
16194# CONFIG_HEADER section.
16195#
252b5132
RH
16196
16197# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16198# NAME is the cpp macro being defined and VALUE is the value it is being given.
16199#
16200# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
16201ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16202ac_dB='[ ].*$,\1#\2'
16203ac_dC=' '
16204ac_dD=',;t'
16205# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16206ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16207ac_uB='$,\1#\2define\3'
252b5132 16208ac_uC=' '
42ecbf5e
DJ
16209ac_uD=',;t'
16210
16211for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 16212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
16213 case $ac_file in
16214 - | *:- | *:-:* ) # input from stdin
16215 cat >$tmp/stdin
16216 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16218 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16219 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16220 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16221 esac
16222
42ecbf5e
DJ
16223 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16224echo "$as_me: creating $ac_file" >&6;}
16225
16226 # First look for the input files in the build tree, otherwise in the
16227 # src tree.
16228 ac_file_inputs=`IFS=:
16229 for f in $ac_file_in; do
16230 case $f in
16231 -) echo $tmp/stdin ;;
16232 [\\/$]*)
16233 # Absolute (can't be DOS-style, as IFS=:)
16234 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16235echo "$as_me: error: cannot find input file: $f" >&2;}
16236 { (exit 1); exit 1; }; }
16237 # Do quote $f, to prevent DOS paths from being IFS'd.
16238 echo "$f";;
16239 *) # Relative
16240 if test -f "$f"; then
16241 # Build tree
16242 echo "$f"
16243 elif test -f "$srcdir/$f"; then
16244 # Source tree
16245 echo "$srcdir/$f"
16246 else
16247 # /dev/null tree
16248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16249echo "$as_me: error: cannot find input file: $f" >&2;}
16250 { (exit 1); exit 1; }; }
16251 fi;;
16252 esac
16253 done` || { (exit 1); exit 1; }
16254 # Remove the trailing spaces.
16255 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16256
16257_ACEOF
16258
16259# Transform confdefs.h into two sed scripts, `conftest.defines' and
16260# `conftest.undefs', that substitutes the proper values into
16261# config.h.in to produce config.h. The first handles `#define'
16262# templates, and the second `#undef' templates.
16263# And first: Protect against being on the right side of a sed subst in
16264# config.status. Protect against being in an unquoted here document
16265# in config.status.
16266rm -f conftest.defines conftest.undefs
16267# Using a here document instead of a string reduces the quoting nightmare.
16268# Putting comments in sed scripts is not portable.
16269#
16270# `end' is used to avoid that the second main sed command (meant for
16271# 0-ary CPP macros) applies to n-ary macro definitions.
16272# See the Autoconf documentation for `clear'.
16273cat >confdef2sed.sed <<\_ACEOF
16274s/[\\&,]/\\&/g
16275s,[\\$`],\\&,g
16276t clear
16277: clear
16278s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16279t end
16280s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16281: end
16282_ACEOF
16283# If some macros were called several times there might be several times
16284# the same #defines, which is useless. Nevertheless, we may not want to
16285# sort them, since we want the *last* AC-DEFINE to be honored.
16286uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16287sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16288rm -f confdef2sed.sed
252b5132
RH
16289
16290# This sed command replaces #undef with comments. This is necessary, for
16291# example, in the case of _POSIX_SOURCE, which is predefined and required
16292# on some systems where configure will not decide to define it.
42ecbf5e
DJ
16293cat >>conftest.undefs <<\_ACEOF
16294s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16295_ACEOF
16296
16297# Break up conftest.defines because some shells have a limit on the size
16298# of here documents, and old seds have small limits too (100 cmds).
16299echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16300echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16301echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16302echo ' :' >>$CONFIG_STATUS
16303rm -f conftest.tail
16304while grep . conftest.defines >/dev/null
16305do
16306 # Write a limited-size here document to $tmp/defines.sed.
16307 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16308 # Speed up: don't consider the non `#define' lines.
16309 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16310 # Work around the forget-to-reset-the-flag bug.
16311 echo 't clr' >>$CONFIG_STATUS
16312 echo ': clr' >>$CONFIG_STATUS
16313 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16314 echo 'CEOF
16315 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16316 rm -f $tmp/in
16317 mv $tmp/out $tmp/in
16318' >>$CONFIG_STATUS
16319 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16320 rm -f conftest.defines
16321 mv conftest.tail conftest.defines
16322done
16323rm -f conftest.defines
16324echo ' fi # grep' >>$CONFIG_STATUS
16325echo >>$CONFIG_STATUS
252b5132 16326
42ecbf5e
DJ
16327# Break up conftest.undefs because some shells have a limit on the size
16328# of here documents, and old seds have small limits too (100 cmds).
16329echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16330rm -f conftest.tail
42ecbf5e 16331while grep . conftest.undefs >/dev/null
252b5132 16332do
42ecbf5e
DJ
16333 # Write a limited-size here document to $tmp/undefs.sed.
16334 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16335 # Speed up: don't consider the non `#undef'
16336 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16337 # Work around the forget-to-reset-the-flag bug.
16338 echo 't clr' >>$CONFIG_STATUS
16339 echo ': clr' >>$CONFIG_STATUS
16340 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16341 echo 'CEOF
42ecbf5e
DJ
16342 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16343 rm -f $tmp/in
16344 mv $tmp/out $tmp/in
16345' >>$CONFIG_STATUS
16346 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16347 rm -f conftest.undefs
16348 mv conftest.tail conftest.undefs
252b5132 16349done
42ecbf5e
DJ
16350rm -f conftest.undefs
16351
16352cat >>$CONFIG_STATUS <<\_ACEOF
16353 # Let's still pretend it is `configure' which instantiates (i.e., don't
16354 # use $as_me), people would be surprised to read:
16355 # /* config.h. Generated by config.status. */
16356 if test x"$ac_file" = x-; then
16357 echo "/* Generated by configure. */" >$tmp/config.h
16358 else
16359 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16360 fi
16361 cat $tmp/in >>$tmp/config.h
16362 rm -f $tmp/in
16363 if test x"$ac_file" != x-; then
16364 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16365 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16366echo "$as_me: $ac_file is unchanged" >&6;}
16367 else
16368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16369$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370 X"$ac_file" : 'X\(//\)[^/]' \| \
16371 X"$ac_file" : 'X\(//\)$' \| \
16372 X"$ac_file" : 'X\(/\)' \| \
16373 . : '\(.\)' 2>/dev/null ||
16374echo X"$ac_file" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16377 /^X\(\/\/\)$/{ s//\1/; q; }
16378 /^X\(\/\).*/{ s//\1/; q; }
16379 s/.*/./; q'`
16380 { if $as_mkdir_p; then
16381 mkdir -p "$ac_dir"
252b5132 16382 else
42ecbf5e
DJ
16383 as_dir="$ac_dir"
16384 as_dirs=
16385 while test ! -d "$as_dir"; do
16386 as_dirs="$as_dir $as_dirs"
16387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16388$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389 X"$as_dir" : 'X\(//\)[^/]' \| \
16390 X"$as_dir" : 'X\(//\)$' \| \
16391 X"$as_dir" : 'X\(/\)' \| \
16392 . : '\(.\)' 2>/dev/null ||
16393echo X"$as_dir" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16396 /^X\(\/\/\)$/{ s//\1/; q; }
16397 /^X\(\/\).*/{ s//\1/; q; }
16398 s/.*/./; q'`
16399 done
16400 test ! -n "$as_dirs" || mkdir $as_dirs
16401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16402echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16403 { (exit 1); exit 1; }; }; }
16404
16405 rm -f $ac_file
16406 mv $tmp/config.h $ac_file
252b5132 16407 fi
42ecbf5e
DJ
16408 else
16409 cat $tmp/config.h
16410 rm -f $tmp/config.h
252b5132 16411 fi
42ecbf5e
DJ
16412# Compute $ac_file's index in $config_headers.
16413_am_stamp_count=1
16414for _am_header in $config_headers :; do
16415 case $_am_header in
16416 $ac_file | $ac_file:* )
16417 break ;;
16418 * )
16419 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16420 esac
16421done
16422echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16423$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16424 X$ac_file : 'X\(//\)[^/]' \| \
16425 X$ac_file : 'X\(//\)$' \| \
16426 X$ac_file : 'X\(/\)' \| \
16427 . : '\(.\)' 2>/dev/null ||
16428echo X$ac_file |
16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16431 /^X\(\/\/\)$/{ s//\1/; q; }
16432 /^X\(\/\).*/{ s//\1/; q; }
16433 s/.*/./; q'`/stamp-h$_am_stamp_count
16434done
16435_ACEOF
16436cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 16437
42ecbf5e
DJ
16438#
16439# CONFIG_COMMANDS section.
16440#
16441for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16442 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16443 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16444 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16445$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$ac_dest" : 'X\(//\)[^/]' \| \
16447 X"$ac_dest" : 'X\(//\)$' \| \
16448 X"$ac_dest" : 'X\(/\)' \| \
16449 . : '\(.\)' 2>/dev/null ||
16450echo X"$ac_dest" |
16451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16453 /^X\(\/\/\)$/{ s//\1/; q; }
16454 /^X\(\/\).*/{ s//\1/; q; }
16455 s/.*/./; q'`
16456 { if $as_mkdir_p; then
16457 mkdir -p "$ac_dir"
16458 else
16459 as_dir="$ac_dir"
16460 as_dirs=
16461 while test ! -d "$as_dir"; do
16462 as_dirs="$as_dir $as_dirs"
16463 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16464$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16465 X"$as_dir" : 'X\(//\)[^/]' \| \
16466 X"$as_dir" : 'X\(//\)$' \| \
16467 X"$as_dir" : 'X\(/\)' \| \
16468 . : '\(.\)' 2>/dev/null ||
16469echo X"$as_dir" |
16470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16472 /^X\(\/\/\)$/{ s//\1/; q; }
16473 /^X\(\/\).*/{ s//\1/; q; }
16474 s/.*/./; q'`
16475 done
16476 test ! -n "$as_dirs" || mkdir $as_dirs
16477 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16478echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16479 { (exit 1); exit 1; }; }; }
252b5132 16480
42ecbf5e 16481 ac_builddir=.
e5a52504 16482
42ecbf5e
DJ
16483if test "$ac_dir" != .; then
16484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16485 # A "../" for each directory in $ac_dir_suffix.
16486 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16487else
16488 ac_dir_suffix= ac_top_builddir=
16489fi
16490
16491case $srcdir in
16492 .) # No --srcdir option. We are building in place.
16493 ac_srcdir=.
16494 if test -z "$ac_top_builddir"; then
16495 ac_top_srcdir=.
16496 else
16497 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16498 fi ;;
16499 [\\/]* | ?:[\\/]* ) # Absolute path.
16500 ac_srcdir=$srcdir$ac_dir_suffix;
16501 ac_top_srcdir=$srcdir ;;
16502 *) # Relative path.
16503 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16504 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16505esac
16506
16507# Do not use `cd foo && pwd` to compute absolute paths, because
16508# the directories may not exist.
16509case `pwd` in
16510.) ac_abs_builddir="$ac_dir";;
16511*)
16512 case "$ac_dir" in
16513 .) ac_abs_builddir=`pwd`;;
16514 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16515 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16516 esac;;
16517esac
16518case $ac_abs_builddir in
16519.) ac_abs_top_builddir=${ac_top_builddir}.;;
16520*)
16521 case ${ac_top_builddir}. in
16522 .) ac_abs_top_builddir=$ac_abs_builddir;;
16523 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16524 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16525 esac;;
16526esac
16527case $ac_abs_builddir in
16528.) ac_abs_srcdir=$ac_srcdir;;
16529*)
16530 case $ac_srcdir in
16531 .) ac_abs_srcdir=$ac_abs_builddir;;
16532 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16533 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16534 esac;;
16535esac
16536case $ac_abs_builddir in
16537.) ac_abs_top_srcdir=$ac_top_srcdir;;
16538*)
16539 case $ac_top_srcdir in
16540 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16541 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16542 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16543 esac;;
16544esac
e5a52504 16545
42ecbf5e
DJ
16546
16547 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16548echo "$as_me: executing $ac_dest commands" >&6;}
16549 case $ac_dest in
16550 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16551 # Strip MF so we end up with the name of the file.
16552 mf=`echo "$mf" | sed -e 's/:.*$//'`
16553 # Check whether this is an Automake generated Makefile or not.
16554 # We used to match only the files named `Makefile.in', but
16555 # some people rename them; so instead we look at the file content.
16556 # Grep'ing the first line is not enough: some people post-process
16557 # each Makefile.in and add a new line on top of each file to say so.
16558 # So let's grep whole file.
16559 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16560 dirpart=`(dirname "$mf") 2>/dev/null ||
16561$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562 X"$mf" : 'X\(//\)[^/]' \| \
16563 X"$mf" : 'X\(//\)$' \| \
16564 X"$mf" : 'X\(/\)' \| \
16565 . : '\(.\)' 2>/dev/null ||
16566echo X"$mf" |
16567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16569 /^X\(\/\/\)$/{ s//\1/; q; }
16570 /^X\(\/\).*/{ s//\1/; q; }
16571 s/.*/./; q'`
16572 else
16573 continue
16574 fi
16575 # Extract the definition of DEPDIR, am__include, and am__quote
16576 # from the Makefile without running `make'.
16577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16578 test -z "$DEPDIR" && continue
16579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16580 test -z "am__include" && continue
16581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16582 # When using ansi2knr, U may be empty or an underscore; expand it
16583 U=`sed -n 's/^U = //p' < "$mf"`
16584 # Find all dependency output files, they are included files with
16585 # $(DEPDIR) in their names. We invoke sed twice because it is the
16586 # simplest approach to changing $(DEPDIR) to its actual value in the
16587 # expansion.
16588 for file in `sed -n "
16589 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16590 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16591 # Make sure the directory exists.
16592 test -f "$dirpart/$file" && continue
16593 fdir=`(dirname "$file") 2>/dev/null ||
16594$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595 X"$file" : 'X\(//\)[^/]' \| \
16596 X"$file" : 'X\(//\)$' \| \
16597 X"$file" : 'X\(/\)' \| \
16598 . : '\(.\)' 2>/dev/null ||
16599echo X"$file" |
16600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16602 /^X\(\/\/\)$/{ s//\1/; q; }
16603 /^X\(\/\).*/{ s//\1/; q; }
16604 s/.*/./; q'`
16605 { if $as_mkdir_p; then
16606 mkdir -p $dirpart/$fdir
16607 else
16608 as_dir=$dirpart/$fdir
16609 as_dirs=
16610 while test ! -d "$as_dir"; do
16611 as_dirs="$as_dir $as_dirs"
16612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614 X"$as_dir" : 'X\(//\)[^/]' \| \
16615 X"$as_dir" : 'X\(//\)$' \| \
16616 X"$as_dir" : 'X\(/\)' \| \
16617 . : '\(.\)' 2>/dev/null ||
16618echo X"$as_dir" |
16619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16621 /^X\(\/\/\)$/{ s//\1/; q; }
16622 /^X\(\/\).*/{ s//\1/; q; }
16623 s/.*/./; q'`
16624 done
16625 test ! -n "$as_dirs" || mkdir $as_dirs
16626 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16627echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16628 { (exit 1); exit 1; }; }; }
16629
16630 # echo "creating $dirpart/$file"
16631 echo '# dummy' > "$dirpart/$file"
16632 done
16633done
d7040cdb
SE
16634 ;;
16635 libtool )
16636
16637 # See if we are running on zsh, and set the options which allow our
16638 # commands through without removal of \ escapes.
16639 if test -n "${ZSH_VERSION+set}" ; then
16640 setopt NO_GLOB_SUBST
16641 fi
16642
16643 cfgfile="${ofile}T"
16644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16645 $RM "$cfgfile"
16646
16647 cat <<_LT_EOF >> "$cfgfile"
16648#! $SHELL
16649
16650# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16651# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16653# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16654#
16655# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16656# 2006, 2007 Free Software Foundation, Inc.
16657#
16658# This file is part of GNU Libtool:
16659# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16660#
16661# This program is free software; you can redistribute it and/or modify
16662# it under the terms of the GNU General Public License as published by
16663# the Free Software Foundation; either version 2 of the License, or
16664# (at your option) any later version.
16665#
16666# This program is distributed in the hope that it will be useful, but
16667# WITHOUT ANY WARRANTY; without even the implied warranty of
16668# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16669# General Public License for more details.
16670#
16671# You should have received a copy of the GNU General Public License
16672# along with this program; if not, a copy can be downloaded from
16673# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16674# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16675# MA 02110-1301, USA.
16676#
16677# As a special exception to the GNU General Public License, if you
16678# distribute this file as part of a program that contains a
16679# configuration script generated by Autoconf, you may include it under
16680# the same distribution terms that you use for the rest of that program.
16681
16682
16683# The names of the tagged configurations supported by this script.
16684available_tags=""
16685
16686# ### BEGIN LIBTOOL CONFIG
16687
16688# Which release of libtool.m4 was used?
16689macro_version=$macro_version
16690macro_revision=$macro_revision
16691
16692# Whether or not to build shared libraries.
16693build_libtool_libs=$enable_shared
16694
16695# Whether or not to build static libraries.
16696build_old_libs=$enable_static
16697
16698# What type of objects to build.
16699pic_mode=$pic_mode
16700
16701# Whether or not to optimize for fast installation.
16702fast_install=$enable_fast_install
16703
16704# The host system.
16705host_alias=$host_alias
16706host=$host
16707host_os=$host_os
16708
16709# The build system.
16710build_alias=$build_alias
16711build=$build
16712build_os=$build_os
16713
16714# A sed program that does not truncate output.
16715SED=$lt_SED
16716
16717# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16718Xsed="\$SED -e 1s/^X//"
16719
16720# A grep program that handles long lines.
16721GREP=$lt_GREP
16722
16723# An ERE matcher.
16724EGREP=$lt_EGREP
16725
16726# A literal string matcher.
16727FGREP=$lt_FGREP
16728
16729# A BSD- or MS-compatible name lister.
16730NM=$lt_NM
16731
16732# Whether we need soft or hard links.
16733LN_S=$lt_LN_S
16734
16735# What is the maximum length of a command?
16736max_cmd_len=$max_cmd_len
16737
16738# Object file suffix (normally "o").
16739objext=$ac_objext
16740
16741# Executable file suffix (normally "").
16742exeext=$exeext
16743
16744# whether the shell understands "unset".
16745lt_unset=$lt_unset
16746
16747# turn spaces into newlines.
16748SP2NL=$lt_lt_SP2NL
16749
16750# turn newlines into spaces.
16751NL2SP=$lt_lt_NL2SP
16752
16753# How to create reloadable object files.
16754reload_flag=$lt_reload_flag
16755reload_cmds=$lt_reload_cmds
16756
16757# Method to check whether dependent libraries are shared objects.
16758deplibs_check_method=$lt_deplibs_check_method
16759
16760# Command to use when deplibs_check_method == "file_magic".
16761file_magic_cmd=$lt_file_magic_cmd
16762
16763# The archiver.
16764AR=$lt_AR
16765AR_FLAGS=$lt_AR_FLAGS
16766
16767# A symbol stripping program.
16768STRIP=$lt_STRIP
16769
16770# Commands used to install an old-style archive.
16771RANLIB=$lt_RANLIB
16772old_postinstall_cmds=$lt_old_postinstall_cmds
16773old_postuninstall_cmds=$lt_old_postuninstall_cmds
16774
16775# A C compiler.
16776LTCC=$lt_CC
16777
16778# LTCC compiler flags.
16779LTCFLAGS=$lt_CFLAGS
16780
16781# Take the output of nm and produce a listing of raw symbols and C names.
16782global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16783
16784# Transform the output of nm in a proper C declaration.
16785global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16786
16787# Transform the output of nm in a C name address pair.
16788global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16789
16790# The name of the directory that contains temporary libtool files.
16791objdir=$objdir
16792
16793# Shell to use when invoking shell scripts.
16794SHELL=$lt_SHELL
16795
16796# An echo program that does not interpret backslashes.
16797ECHO=$lt_ECHO
16798
16799# Used to examine libraries when file_magic_cmd begins with "file".
16800MAGIC_CMD=$MAGIC_CMD
16801
16802# Must we lock files when doing compilation?
16803need_locks=$lt_need_locks
16804
16805# Old archive suffix (normally "a").
16806libext=$libext
16807
16808# Shared library suffix (normally ".so").
16809shrext_cmds=$lt_shrext_cmds
16810
16811# The commands to extract the exported symbol list from a shared archive.
16812extract_expsyms_cmds=$lt_extract_expsyms_cmds
16813
16814# Variables whose values should be saved in libtool wrapper scripts and
16815# restored at link time.
16816variables_saved_for_relink=$lt_variables_saved_for_relink
16817
16818# Do we need the "lib" prefix for modules?
16819need_lib_prefix=$need_lib_prefix
16820
16821# Do we need a version for libraries?
16822need_version=$need_version
16823
16824# Library versioning type.
16825version_type=$version_type
16826
16827# Shared library runtime path variable.
16828runpath_var=$runpath_var
16829
16830# Shared library path variable.
16831shlibpath_var=$shlibpath_var
16832
16833# Is shlibpath searched before the hard-coded library search path?
16834shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16835
16836# Format of library name prefix.
16837libname_spec=$lt_libname_spec
16838
16839# List of archive names. First name is the real one, the rest are links.
16840# The last name is the one that the linker finds with -lNAME
16841library_names_spec=$lt_library_names_spec
16842
16843# The coded name of the library, if different from the real name.
16844soname_spec=$lt_soname_spec
16845
16846# Command to use after installation of a shared archive.
16847postinstall_cmds=$lt_postinstall_cmds
16848
16849# Command to use after uninstallation of a shared archive.
16850postuninstall_cmds=$lt_postuninstall_cmds
16851
16852# Commands used to finish a libtool library installation in a directory.
16853finish_cmds=$lt_finish_cmds
16854
16855# As "finish_cmds", except a single script fragment to be evaled but
16856# not shown.
16857finish_eval=$lt_finish_eval
16858
16859# Whether we should hardcode library paths into libraries.
16860hardcode_into_libs=$hardcode_into_libs
16861
16862# Compile-time system search path for libraries.
16863sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16864
16865# Run-time system search path for libraries.
16866sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16867
16868# Whether dlopen is supported.
16869dlopen_support=$enable_dlopen
16870
16871# Whether dlopen of programs is supported.
16872dlopen_self=$enable_dlopen_self
16873
16874# Whether dlopen of statically linked programs is supported.
16875dlopen_self_static=$enable_dlopen_self_static
16876
16877# Commands to strip libraries.
16878old_striplib=$lt_old_striplib
16879striplib=$lt_striplib
16880
16881
16882# The linker used to build libraries.
16883LD=$lt_LD
16884
16885# Commands used to build an old-style archive.
16886old_archive_cmds=$lt_old_archive_cmds
16887
16888# A language specific compiler.
16889CC=$lt_compiler
16890
16891# Is the compiler the GNU compiler?
16892with_gcc=$GCC
16893
16894# Compiler flag to turn off builtin functions.
16895no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16896
16897# How to pass a linker flag through the compiler.
16898wl=$lt_lt_prog_compiler_wl
16899
16900# Additional compiler flags for building library objects.
16901pic_flag=$lt_lt_prog_compiler_pic
16902
16903# Compiler flag to prevent dynamic linking.
16904link_static_flag=$lt_lt_prog_compiler_static
16905
16906# Does compiler simultaneously support -c and -o options?
16907compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16908
16909# Whether or not to add -lc for building shared libraries.
16910build_libtool_need_lc=$archive_cmds_need_lc
16911
16912# Whether or not to disallow shared libs when runtime libs are static.
16913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16914
16915# Compiler flag to allow reflexive dlopens.
16916export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16917
16918# Compiler flag to generate shared objects directly from archives.
16919whole_archive_flag_spec=$lt_whole_archive_flag_spec
16920
16921# Whether the compiler copes with passing no objects directly.
16922compiler_needs_object=$lt_compiler_needs_object
16923
16924# Create an old-style archive from a shared archive.
16925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16926
16927# Create a temporary old-style archive to link instead of a shared archive.
16928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16929
16930# Commands used to build a shared archive.
16931archive_cmds=$lt_archive_cmds
16932archive_expsym_cmds=$lt_archive_expsym_cmds
16933
16934# Commands used to build a loadable module if different from building
16935# a shared archive.
16936module_cmds=$lt_module_cmds
16937module_expsym_cmds=$lt_module_expsym_cmds
16938
16939# Whether we are building with GNU ld or not.
16940with_gnu_ld=$lt_with_gnu_ld
16941
16942# Flag that allows shared libraries with undefined symbols to be built.
16943allow_undefined_flag=$lt_allow_undefined_flag
16944
16945# Flag that enforces no undefined symbols.
16946no_undefined_flag=$lt_no_undefined_flag
16947
16948# Flag to hardcode \$libdir into a binary during linking.
16949# This must work even if \$libdir does not exist
16950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16951
16952# If ld is used when linking, flag to hardcode \$libdir into a binary
16953# during linking. This must work even if \$libdir does not exist.
16954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16955
16956# Whether we need a single "-rpath" flag with a separated argument.
16957hardcode_libdir_separator=$lt_hardcode_libdir_separator
16958
16959# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16960# DIR into the resulting binary.
16961hardcode_direct=$hardcode_direct
16962
16963# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16964# DIR into the resulting binary and the resulting library dependency is
16965# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16966# library is relocated.
16967hardcode_direct_absolute=$hardcode_direct_absolute
16968
16969# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16970# into the resulting binary.
16971hardcode_minus_L=$hardcode_minus_L
16972
16973# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16974# into the resulting binary.
16975hardcode_shlibpath_var=$hardcode_shlibpath_var
16976
16977# Set to "yes" if building a shared library automatically hardcodes DIR
16978# into the library and all subsequent libraries and executables linked
16979# against it.
16980hardcode_automatic=$hardcode_automatic
16981
16982# Set to yes if linker adds runtime paths of dependent libraries
16983# to runtime path list.
16984inherit_rpath=$inherit_rpath
16985
16986# Whether libtool must link a program against all its dependency libraries.
16987link_all_deplibs=$link_all_deplibs
16988
16989# Fix the shell variable \$srcfile for the compiler.
16990fix_srcfile_path=$lt_fix_srcfile_path
16991
16992# Set to "yes" if exported symbols are required.
16993always_export_symbols=$always_export_symbols
16994
16995# The commands to list exported symbols.
16996export_symbols_cmds=$lt_export_symbols_cmds
16997
16998# Symbols that should not be listed in the preloaded symbols.
16999exclude_expsyms=$lt_exclude_expsyms
17000
17001# Symbols that must always be exported.
17002include_expsyms=$lt_include_expsyms
17003
17004# Commands necessary for linking programs (against libraries) with templates.
17005prelink_cmds=$lt_prelink_cmds
17006
17007# Specify filename containing input files.
17008file_list_spec=$lt_file_list_spec
17009
17010# How to hardcode a shared library path into an executable.
17011hardcode_action=$hardcode_action
17012
17013# ### END LIBTOOL CONFIG
17014
17015_LT_EOF
17016
17017 case $host_os in
17018 aix3*)
17019 cat <<\_LT_EOF >> "$cfgfile"
17020# AIX sometimes has problems with the GCC collect2 program. For some
17021# reason, if we set the COLLECT_NAMES environment variable, the problems
17022# vanish in a puff of smoke.
17023if test "X${COLLECT_NAMES+set}" != Xset; then
17024 COLLECT_NAMES=
17025 export COLLECT_NAMES
17026fi
17027_LT_EOF
17028 ;;
17029 esac
17030
17031
17032ltmain="$ac_aux_dir/ltmain.sh"
17033
17034
17035 # We use sed instead of cat because bash on DJGPP gets confused if
17036 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17037 # text mode, it properly converts lines to CR/LF. This bash problem
17038 # is reportedly fixed, but why not run on old versions too?
17039 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17040 || (rm -f "$cfgfile"; exit 1)
17041
17042 case $xsi_shell in
17043 yes)
17044 cat << \_LT_EOF >> "$cfgfile"
17045# func_dirname file append nondir_replacement
17046# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17047# otherwise set result to NONDIR_REPLACEMENT.
17048func_dirname ()
17049{
17050 case ${1} in
17051 */*) func_dirname_result="${1%/*}${2}" ;;
17052 * ) func_dirname_result="${3}" ;;
17053 esac
17054}
17055
17056# func_basename file
17057func_basename ()
17058{
17059 func_basename_result="${1##*/}"
17060}
17061
17062# func_stripname prefix suffix name
17063# strip PREFIX and SUFFIX off of NAME.
17064# PREFIX and SUFFIX must not contain globbing or regex special
17065# characters, hashes, percent signs, but SUFFIX may contain a leading
17066# dot (in which case that matches only a dot).
17067func_stripname ()
17068{
17069 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17070 # positional parameters, so assign one to ordinary parameter first.
17071 func_stripname_result=${3}
17072 func_stripname_result=${func_stripname_result#"${1}"}
17073 func_stripname_result=${func_stripname_result%"${2}"}
17074}
17075
17076# func_opt_split
17077func_opt_split ()
17078{
17079 func_opt_split_opt=${1%%=*}
17080 func_opt_split_arg=${1#*=}
17081}
17082
17083# func_lo2o object
17084func_lo2o ()
17085{
17086 case ${1} in
17087 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17088 *) func_lo2o_result=${1} ;;
17089 esac
17090}
17091_LT_EOF
17092 ;;
17093 *) # Bourne compatible functions.
17094 cat << \_LT_EOF >> "$cfgfile"
17095# func_dirname file append nondir_replacement
17096# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17097# otherwise set result to NONDIR_REPLACEMENT.
17098func_dirname ()
17099{
17100 # Extract subdirectory from the argument.
17101 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17102 if test "X$func_dirname_result" = "X${1}"; then
17103 func_dirname_result="${3}"
17104 else
17105 func_dirname_result="$func_dirname_result${2}"
17106 fi
17107}
17108
17109# func_basename file
17110func_basename ()
17111{
17112 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17113}
17114
17115# func_stripname prefix suffix name
17116# strip PREFIX and SUFFIX off of NAME.
17117# PREFIX and SUFFIX must not contain globbing or regex special
17118# characters, hashes, percent signs, but SUFFIX may contain a leading
17119# dot (in which case that matches only a dot).
17120# func_strip_suffix prefix name
17121func_stripname ()
17122{
17123 case ${2} in
17124 .*) func_stripname_result=`$ECHO "X${3}" \
17125 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17126 *) func_stripname_result=`$ECHO "X${3}" \
17127 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17128 esac
17129}
17130
17131# sed scripts:
17132my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17133my_sed_long_arg='1s/^-[^=]*=//'
17134
17135# func_opt_split
17136func_opt_split ()
17137{
17138 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17139 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17140}
17141
17142# func_lo2o object
17143func_lo2o ()
17144{
17145 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17146}
17147_LT_EOF
17148esac
17149
17150case $lt_shell_append in
17151 yes)
17152 cat << \_LT_EOF >> "$cfgfile"
17153
17154# func_append var value
17155# Append VALUE to the end of shell variable VAR.
17156func_append ()
17157{
17158 eval "$1+=\$2"
17159}
17160_LT_EOF
17161 ;;
17162 *)
17163 cat << \_LT_EOF >> "$cfgfile"
17164
17165# func_append var value
17166# Append VALUE to the end of shell variable VAR.
17167func_append ()
17168{
17169 eval "$1=\$$1\$2"
17170}
17171_LT_EOF
17172 ;;
17173 esac
17174
17175
17176 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17177 || (rm -f "$cfgfile"; exit 1)
17178
17179 mv -f "$cfgfile" "$ofile" ||
17180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17181 chmod +x "$ofile"
17182
42ecbf5e 17183 ;;
20e95c23
DJ
17184 default-1 )
17185 for ac_file in $CONFIG_FILES; do
17186 # Support "outfile[:infile[:infile...]]"
17187 case "$ac_file" in
17188 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17189 esac
17190 # PO directories have a Makefile.in generated from Makefile.in.in.
17191 case "$ac_file" in */Makefile.in)
17192 # Adjust a relative srcdir.
17193 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17194 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17195 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17196 # In autoconf-2.13 it is called $ac_given_srcdir.
17197 # In autoconf-2.50 it is called $srcdir.
17198 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17199 case "$ac_given_srcdir" in
17200 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17201 /*) top_srcdir="$ac_given_srcdir" ;;
17202 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17203 esac
17204 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17205 rm -f "$ac_dir/POTFILES"
17206 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17207 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17208 POMAKEFILEDEPS="POTFILES.in"
17209 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17210 # on $ac_dir but don't depend on user-specified configuration
17211 # parameters.
17212 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17213 # The LINGUAS file contains the set of available languages.
17214 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17215 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17216 fi
17217 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17218 # Hide the ALL_LINGUAS assigment from automake.
17219 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17220 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17221 else
17222 # The set of available languages was given in configure.in.
17223 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17224 fi
17225 case "$ac_given_srcdir" in
17226 .) srcdirpre= ;;
17227 *) srcdirpre='$(srcdir)/' ;;
17228 esac
17229 POFILES=
17230 GMOFILES=
17231 UPDATEPOFILES=
17232 DUMMYPOFILES=
17233 for lang in $ALL_LINGUAS; do
17234 POFILES="$POFILES $srcdirpre$lang.po"
17235 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17236 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17237 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17238 done
17239 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17240 # environment variable.
17241 INST_LINGUAS=
17242 if test -n "$ALL_LINGUAS"; then
17243 for presentlang in $ALL_LINGUAS; do
17244 useit=no
17245 if test "%UNSET%" != "$LINGUAS"; then
17246 desiredlanguages="$LINGUAS"
17247 else
17248 desiredlanguages="$ALL_LINGUAS"
17249 fi
17250 for desiredlang in $desiredlanguages; do
17251 # Use the presentlang catalog if desiredlang is
17252 # a. equal to presentlang, or
17253 # b. a variant of presentlang (because in this case,
17254 # presentlang can be used as a fallback for messages
17255 # which are not translated in the desiredlang catalog).
17256 case "$desiredlang" in
17257 "$presentlang"*) useit=yes;;
17258 esac
17259 done
17260 if test $useit = yes; then
17261 INST_LINGUAS="$INST_LINGUAS $presentlang"
17262 fi
17263 done
17264 fi
17265 CATALOGS=
17266 if test -n "$INST_LINGUAS"; then
17267 for lang in $INST_LINGUAS; do
17268 CATALOGS="$CATALOGS $lang.gmo"
17269 done
17270 fi
17271 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17272 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17273 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17274 if test -f "$f"; then
17275 case "$f" in
17276 *.orig | *.bak | *~) ;;
17277 *) cat "$f" >> "$ac_dir/Makefile" ;;
17278 esac
17279 fi
17280 done
17281 fi
17282 ;;
17283 esac
17284 done ;;
42ecbf5e
DJ
17285 esac
17286done
17287_ACEOF
e5a52504 17288
42ecbf5e
DJ
17289cat >>$CONFIG_STATUS <<\_ACEOF
17290
17291{ (exit 0); exit 0; }
17292_ACEOF
252b5132 17293chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17294ac_clean_files=$ac_clean_files_save
17295
17296
17297# configure is writing to config.log, and then calls config.status.
17298# config.status does its own redirection, appending to config.log.
17299# Unfortunately, on DOS this fails, as config.log is still kept open
17300# by configure, so config.status won't be able to write to it; its
17301# output is simply discarded. So we exec the FD to /dev/null,
17302# effectively closing config.log, so it can be properly (re)opened and
17303# appended to by config.status. When coming back to configure, we
17304# need to make the FD available again.
17305if test "$no_create" != yes; then
17306 ac_cs_success=:
17307 ac_config_status_args=
17308 test "$silent" = yes &&
17309 ac_config_status_args="$ac_config_status_args --quiet"
17310 exec 5>/dev/null
17311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17312 exec 5>>config.log
17313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17314 # would make configure fail if this is the last instruction.
17315 $ac_cs_success || { (exit 1); exit 1; }
17316fi
252b5132 17317
This page took 1.230881 seconds and 4 git commands to generate.