* app.c (do_scrub_chars): Do not UNGET an EOF value.
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 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.
979273e3
NN
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
979273e3
NN
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
979273e3
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
979273e3
NN
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="z8k-dis.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
45d42143 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 AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
979273e3 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
979273e3
NN
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
979273e3 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
979273e3
NN
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
979273e3 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
979273e3 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
979273e3 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979273e3
NN
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
979273e3 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
979273e3 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
979273e3
NN
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
979273e3 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
979273e3
NN
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
979273e3 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
979273e3 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
979273e3
NN
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
979273e3 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
979273e3 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
979273e3 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
979273e3 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
979273e3 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979273e3 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979273e3 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979273e3 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979273e3 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
979273e3 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
979273e3 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
979273e3 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
979273e3 710 site=$ac_optarg ;;
1fe1f39c 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979273e3 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
979273e3
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
979273e3 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
979273e3
NN
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
979273e3
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
979273e3 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
979273e3 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
979273e3
NN
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
979273e3 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979273e3 773 x_libraries=$ac_optarg ;;
252b5132 774
979273e3
NN
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
979273e3
NN
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
979273e3
NN
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
979273e3
NN
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132 805fi
252b5132 806
979273e3
NN
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
979273e3
NN
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
979273e3
NN
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
979273e3
NN
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
252b5132 847
979273e3
NN
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
979273e3
NN
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
979273e3
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
979273e3
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
979273e3
NN
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
979273e3
NN
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
979273e3 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
979273e3
NN
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
979273e3 937Defaults for the options are specified in brackets.
ac48eca1 938
979273e3
NN
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
979273e3
NN
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
979273e3 964For better control, use the options below.
ac48eca1 965
979273e3
NN
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
ac48eca1 980
979273e3 981 cat <<\_ACEOF
252b5132 982
979273e3
NN
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
979273e3
NN
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
979273e3 995if test -n "$ac_init_help"; then
252b5132 996
979273e3 997 cat <<\_ACEOF
252b5132 998
979273e3
NN
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
979273e3
NN
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1015 --enable-maintainer-mode enable make rules and dependencies not useful
1016 (and sometimes confusing) to the casual installer
979273e3
NN
1017 --enable-install-libbfd controls installation of libbfd and related headers
1018 --disable-nls do not use Native Language Support
1019 --enable-cgen-maint=dir build cgen generated files
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]
252b5132 1027
979273e3
NN
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
a2d91340 1036
979273e3
NN
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
a2d91340
AC
1041fi
1042
979273e3
NN
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
a2d91340 1057
979273e3
NN
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
a2d91340 1065 fi ;;
979273e3
NN
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a2d91340
AC
1072esac
1073
979273e3
NN
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
a2d91340 1084esac
979273e3
NN
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
a2d91340
AC
1111esac
1112
979273e3
NN
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
8ae85421 1128 cd $ac_popdir
979273e3
NN
1129 done
1130fi
a2d91340 1131
979273e3
NN
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
252b5132 1135
979273e3
NN
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
2c73f9d8 1146
979273e3
NN
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1149
979273e3 1150 $ $0 $@
252b5132 1151
979273e3
NN
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
252b5132 1185
979273e3 1186} >&5
75798298 1187
979273e3 1188cat >&5 <<_ACEOF
252b5132 1189
252b5132 1190
979273e3
NN
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
979273e3 1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486ac_aux_dir=
1487for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511# Make sure we can run config.sub.
1512$ac_config_sub sun4 >/dev/null 2>&1 ||
1513 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515 { (exit 1); exit 1; }; }
1516
1517echo "$as_me:$LINENO: checking build system type" >&5
1518echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519if test "${ac_cv_build+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 ac_cv_build_alias=$build_alias
1523test -z "$ac_cv_build_alias" &&
1524 ac_cv_build_alias=`$ac_config_guess`
1525test -z "$ac_cv_build_alias" &&
1526 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528 { (exit 1); exit 1; }; }
1529ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534fi
1535echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536echo "${ECHO_T}$ac_cv_build" >&6
1537build=$ac_cv_build
1538build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543echo "$as_me:$LINENO: checking host system type" >&5
1544echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547else
1548 ac_cv_host_alias=$host_alias
1549test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556fi
1557echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558echo "${ECHO_T}$ac_cv_host" >&6
1559host=$ac_cv_host
1560host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565echo "$as_me:$LINENO: checking target system type" >&5
1566echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_target_alias=$target_alias
1571test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578fi
1579echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580echo "${ECHO_T}$ac_cv_target" >&6
1581target=$ac_cv_target
1582target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587# The aliases save the names the user supplied, while $host etc.
1588# will get canonicalized.
1589test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
1593ac_ext=c
1594ac_cpp='$CPP $CPPFLAGS'
1595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598if test -n "$ac_tool_prefix"; then
1599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600set dummy ${ac_tool_prefix}gcc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
1623fi
1624fi
1625CC=$ac_cv_prog_CC
1626if test -n "$CC"; then
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628echo "${ECHO_T}$CC" >&6
1629else
1630 echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634fi
1635if test -z "$ac_cv_prog_CC"; then
1636 ac_ct_CC=$CC
1637 # Extract the first word of "gcc", so it can be a program name with args.
1638set dummy gcc; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="gcc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
1667else
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672 CC=$ac_ct_CC
1673else
1674 CC="$ac_cv_prog_CC"
1675fi
1676
1677if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680set dummy ${ac_tool_prefix}cc; ac_word=$2
1681echo "$as_me:$LINENO: checking for $ac_word" >&5
1682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1688else
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC="${ac_tool_prefix}cc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700done
1701done
1702
1703fi
1704fi
1705CC=$ac_cv_prog_CC
1706if test -n "$CC"; then
1707 echo "$as_me:$LINENO: result: $CC" >&5
1708echo "${ECHO_T}$CC" >&6
1709else
1710 echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714fi
1715if test -z "$ac_cv_prog_CC"; then
1716 ac_ct_CC=$CC
1717 # Extract the first word of "cc", so it can be a program name with args.
1718set dummy cc; ac_word=$2
1719echo "$as_me:$LINENO: checking for $ac_word" >&5
1720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724 if test -n "$ac_ct_CC"; then
1725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726else
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_ac_ct_CC="cc"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 break 2
1737 fi
1738done
1739done
1740
1741fi
1742fi
1743ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744if test -n "$ac_ct_CC"; then
1745 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746echo "${ECHO_T}$ac_ct_CC" >&6
1747else
1748 echo "$as_me:$LINENO: result: no" >&5
1749echo "${ECHO_T}no" >&6
1750fi
1751
1752 CC=$ac_ct_CC
1753else
1754 CC="$ac_cv_prog_CC"
1755fi
1756
1757fi
1758if test -z "$CC"; then
1759 # Extract the first word of "cc", so it can be a program name with args.
1760set dummy cc; ac_word=$2
1761echo "$as_me:$LINENO: checking for $ac_word" >&5
1762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763if test "${ac_cv_prog_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 if test -n "$CC"; then
1767 ac_cv_prog_CC="$CC" # Let the user override the test.
1768else
1769 ac_prog_rejected=no
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778 ac_prog_rejected=yes
1779 continue
1780 fi
1781 ac_cv_prog_CC="cc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1784 fi
1785done
1786done
1787
1788if test $ac_prog_rejected = yes; then
1789 # We found a bogon in the path, so make sure we never use it.
1790 set dummy $ac_cv_prog_CC
1791 shift
1792 if test $# != 0; then
1793 # We chose a different compiler from the bogus one.
1794 # However, it has the same basename, so the bogon will be chosen
1795 # first if we set CC to just the basename; use the full file name.
1796 shift
1797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1798 fi
1799fi
1800fi
1801fi
1802CC=$ac_cv_prog_CC
1803if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805echo "${ECHO_T}$CC" >&6
1806else
1807 echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811fi
1812if test -z "$CC"; then
1813 if test -n "$ac_tool_prefix"; then
1814 for ac_prog in cl
1815 do
1816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837done
1838done
1839
1840fi
1841fi
1842CC=$ac_cv_prog_CC
1843if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845echo "${ECHO_T}$CC" >&6
1846else
1847 echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851 test -n "$CC" && break
1852 done
1853fi
1854if test -z "$CC"; then
1855 ac_ct_CC=$CC
1856 for ac_prog in cl
1857do
1858 # Extract the first word of "$ac_prog", so it can be a program name with args.
1859set dummy $ac_prog; ac_word=$2
1860echo "$as_me:$LINENO: checking for $ac_word" >&5
1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867else
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879done
1880done
1881
1882fi
1883fi
1884ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887echo "${ECHO_T}$ac_ct_CC" >&6
1888else
1889 echo "$as_me:$LINENO: result: no" >&5
1890echo "${ECHO_T}no" >&6
1891fi
1892
1893 test -n "$ac_ct_CC" && break
1894done
1895
1896 CC=$ac_ct_CC
1897fi
1898
1899fi
1900
1901
1902test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: no acceptable C compiler found in \$PATH
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907
1908# Provide some information about the compiler.
1909echo "$as_me:$LINENO:" \
1910 "checking for C compiler version" >&5
1911ac_compiler=`set X $ac_compile; echo $2`
1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1913 (eval $ac_compiler --version </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1918 (eval $ac_compiler -v </dev/null >&5) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }
1922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1923 (eval $ac_compiler -V </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927
1928cat >conftest.$ac_ext <<_ACEOF
1929/* confdefs.h. */
1930_ACEOF
1931cat confdefs.h >>conftest.$ac_ext
1932cat >>conftest.$ac_ext <<_ACEOF
1933/* end confdefs.h. */
1934
1935int
1936main ()
1937{
1938
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943ac_clean_files_save=$ac_clean_files
1944ac_clean_files="$ac_clean_files a.out a.exe b.out"
1945# Try to create an executable without -o first, disregard a.out.
1946# It will help us diagnose broken compilers, and finding out an intuition
1947# of exeext.
1948echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952 (eval $ac_link_default) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 # Find the output, starting from the most likely. This scheme is
1957# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1958# resort.
1959
1960# Be careful to initialize this variable, since it used to be cached.
1961# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962ac_cv_exeext=
1963# b.out is created by i960 compilers.
1964for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965do
1966 test -f "$ac_file" || continue
1967 case $ac_file in
1968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1969 ;;
1970 conftest.$ac_ext )
1971 # This is the source file.
1972 ;;
1973 [ab].out )
1974 # We found the default executable, but exeext='' is most
1975 # certainly right.
1976 break;;
1977 *.* )
1978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979 # FIXME: I believe we export ac_cv_exeext for Libtool,
1980 # but it would be cool to find out if it's true. Does anybody
1981 # maintain Libtool? --akim.
1982 export ac_cv_exeext
1983 break;;
1984 * )
1985 break;;
1986 esac
1987done
1988else
1989 echo "$as_me: failed program was:" >&5
1990sed 's/^/| /' conftest.$ac_ext >&5
1991
1992{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993See \`config.log' for more details." >&5
1994echo "$as_me: error: C compiler cannot create executables
1995See \`config.log' for more details." >&2;}
1996 { (exit 77); exit 77; }; }
1997fi
1998
1999ac_exeext=$ac_cv_exeext
2000echo "$as_me:$LINENO: result: $ac_file" >&5
2001echo "${ECHO_T}$ac_file" >&6
2002
2003# Check the compiler produces executables we can run. If not, either
2004# the compiler is broken, or we cross compile.
2005echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008# If not cross compiling, check that we can run a simple program.
2009if test "$cross_compiling" != yes; then
2010 if { ac_try='./$ac_file'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 cross_compiling=no
2017 else
2018 if test "$cross_compiling" = maybe; then
2019 cross_compiling=yes
2020 else
2021 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022If you meant to cross compile, use \`--host'.
2023See \`config.log' for more details." >&5
2024echo "$as_me: error: cannot run C compiled programs.
2025If you meant to cross compile, use \`--host'.
2026See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2028 fi
2029 fi
2030fi
2031echo "$as_me:$LINENO: result: yes" >&5
2032echo "${ECHO_T}yes" >&6
2033
2034rm -f a.out a.exe conftest$ac_cv_exeext b.out
2035ac_clean_files=$ac_clean_files_save
2036# Check the compiler produces executables we can run. If not, either
2037# the compiler is broken, or we cross compile.
2038echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041echo "${ECHO_T}$cross_compiling" >&6
2042
2043echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046 (eval $ac_link) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; then
2050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2052# work properly (i.e., refer to `conftest.exe'), while it won't with
2053# `rm'.
2054for ac_file in conftest.exe conftest conftest.*; do
2055 test -f "$ac_file" || continue
2056 case $ac_file in
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059 export ac_cv_exeext
2060 break;;
2061 * ) break;;
2062 esac
2063done
2064else
2065 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066See \`config.log' for more details." >&5
2067echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2070fi
2071
2072rm -f conftest$ac_cv_exeext
2073echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074echo "${ECHO_T}$ac_cv_exeext" >&6
2075
2076rm -f conftest.$ac_ext
2077EXEEXT=$ac_cv_exeext
2078ac_exeext=$EXEEXT
2079echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081if test "${ac_cv_objext+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084 cat >conftest.$ac_ext <<_ACEOF
2085/* confdefs.h. */
2086_ACEOF
2087cat confdefs.h >>conftest.$ac_ext
2088cat >>conftest.$ac_ext <<_ACEOF
2089/* end confdefs.h. */
2090
2091int
2092main ()
2093{
2094
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099rm -f conftest.o conftest.obj
2100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2108 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2109 break;;
2110 esac
2111done
2112else
2113 echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
2115
2116{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117See \`config.log' for more details." >&5
2118echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2121fi
2122
2123rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124fi
2125echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126echo "${ECHO_T}$ac_cv_objext" >&6
2127OBJEXT=$ac_cv_objext
2128ac_objext=$OBJEXT
2129echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134 cat >conftest.$ac_ext <<_ACEOF
2135/* confdefs.h. */
2136_ACEOF
2137cat confdefs.h >>conftest.$ac_ext
2138cat >>conftest.$ac_ext <<_ACEOF
2139/* end confdefs.h. */
2140
2141int
2142main ()
2143{
2144#ifndef __GNUC__
2145 choke me
2146#endif
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152rm -f conftest.$ac_objext
2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2155 ac_status=$?
2156 grep -v '^ *+' conftest.er1 >conftest.err
2157 rm -f conftest.er1
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
8ae85421
AM
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
979273e3
NN
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 ac_compiler_gnu=yes
2175else
2176 echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179ac_compiler_gnu=no
2180fi
2181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182ac_cv_c_compiler_gnu=$ac_compiler_gnu
2183
2184fi
2185echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187GCC=`test $ac_compiler_gnu = yes && echo yes`
2188ac_test_CFLAGS=${CFLAGS+set}
2189ac_save_CFLAGS=$CFLAGS
2190CFLAGS="-g"
2191echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193if test "${ac_cv_prog_cc_g+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 cat >conftest.$ac_ext <<_ACEOF
2197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
2202
2203int
2204main ()
2205{
2206
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211rm -f conftest.$ac_objext
2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>conftest.er1
2214 ac_status=$?
2215 grep -v '^ *+' conftest.er1 >conftest.err
2216 rm -f conftest.er1
2217 cat conftest.err >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
8ae85421
AM
2220 { ac_try='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
979273e3
NN
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 ac_cv_prog_cc_g=yes
2234else
2235 echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238ac_cv_prog_cc_g=no
2239fi
2240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244if test "$ac_test_CFLAGS" = set; then
2245 CFLAGS=$ac_save_CFLAGS
2246elif test $ac_cv_prog_cc_g = yes; then
2247 if test "$GCC" = yes; then
2248 CFLAGS="-g -O2"
2249 else
2250 CFLAGS="-g"
2251 fi
2252else
2253 if test "$GCC" = yes; then
2254 CFLAGS="-O2"
2255 else
2256 CFLAGS=
2257 fi
2258fi
2259echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 ac_cv_prog_cc_stdc=no
2265ac_save_CC=$CC
2266cat >conftest.$ac_ext <<_ACEOF
2267/* confdefs.h. */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h. */
2272#include <stdarg.h>
2273#include <stdio.h>
2274#include <sys/types.h>
2275#include <sys/stat.h>
2276/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2277struct buf { int x; };
2278FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279static char *e (p, i)
2280 char **p;
2281 int i;
2282{
2283 return p[i];
2284}
2285static char *f (char * (*g) (char **, int), char **p, ...)
2286{
2287 char *s;
2288 va_list v;
2289 va_start (v,p);
2290 s = g (p, va_arg (v,int));
2291 va_end (v);
2292 return s;
2293}
2294
2295/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2296 function prototypes and stuff, but not '\xHH' hex character constants.
2297 These don't provoke an error unfortunately, instead are silently treated
2298 as 'x'. The following induces an error, until -std1 is added to get
2299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2300 array size at least. It's necessary to write '\x00'==0 to get something
2301 that's true only with -std1. */
2302int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303
2304int test (int i, double x);
2305struct s1 {int (*f) (int a);};
2306struct s2 {int (*f) (double a);};
2307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308int argc;
2309char **argv;
2310int
2311main ()
2312{
2313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2314 ;
2315 return 0;
2316}
2317_ACEOF
2318# Don't try gcc -ansi; that turns off useful extensions and
2319# breaks some systems' header files.
2320# AIX -qlanglvl=ansi
2321# Ultrix and OSF/1 -std1
2322# HP-UX 10.20 and later -Ae
2323# HP-UX older versions -Aa -D_HPUX_SOURCE
2324# SVR4 -Xc -D__EXTENSIONS__
2325for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326do
2327 CC="$ac_save_CC $ac_arg"
2328 rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
8ae85421
AM
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
979273e3
NN
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cc_stdc=$ac_arg
2351break
2352else
2353 echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356fi
2357rm -f conftest.err conftest.$ac_objext
2358done
2359rm -f conftest.$ac_ext conftest.$ac_objext
2360CC=$ac_save_CC
2361
2362fi
2363
2364case "x$ac_cv_prog_cc_stdc" in
2365 x|xno)
2366 echo "$as_me:$LINENO: result: none needed" >&5
2367echo "${ECHO_T}none needed" >&6 ;;
2368 *)
2369 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371 CC="$CC $ac_cv_prog_cc_stdc" ;;
2372esac
2373
2374# Some people use a C++ compiler to compile C. Since we use `exit',
2375# in C++ we need to declare it. In case someone uses the same compiler
2376# for both compiling C and C++ we need to have the C++ compiler decide
2377# the declaration of exit, since it's the most demanding environment.
2378cat >conftest.$ac_ext <<_ACEOF
2379#ifndef __cplusplus
2380 choke me
2381#endif
2382_ACEOF
2383rm -f conftest.$ac_objext
2384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
8ae85421
AM
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
979273e3
NN
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 for ac_declaration in \
2406 '' \
2407 'extern "C" void std::exit (int) throw (); using std::exit;' \
2408 'extern "C" void std::exit (int); using std::exit;' \
2409 'extern "C" void exit (int) throw ();' \
2410 'extern "C" void exit (int);' \
2411 'void exit (int);'
2412do
2413 cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
2419$ac_declaration
2420#include <stdlib.h>
2421int
2422main ()
2423{
2424exit (42);
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
8ae85421
AM
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
979273e3
NN
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 :
2452else
2453 echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456continue
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h. */
2465$ac_declaration
2466int
2467main ()
2468{
2469exit (42);
2470 ;
2471 return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
8ae85421
AM
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
979273e3
NN
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 break
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501fi
2502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503done
2504rm -f conftest*
2505if test -n "$ac_declaration"; then
2506 echo '#ifdef __cplusplus' >>confdefs.h
2507 echo $ac_declaration >>confdefs.h
2508 echo '#endif' >>confdefs.h
2509fi
2510
2511else
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515fi
2516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517ac_ext=c
2518ac_cpp='$CPP $CPPFLAGS'
2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
8ae85421
AM
2524echo "$as_me:$LINENO: checking for library containing strerror" >&5
2525echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2526if test "${ac_cv_search_strerror+set}" = set; then
979273e3
NN
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
8ae85421
AM
2529 ac_func_search_save_LIBS=$LIBS
2530ac_cv_search_strerror=no
979273e3
NN
2531cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h. */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h. */
2537
2538/* Override any gcc2 internal prototype to avoid an error. */
2539#ifdef __cplusplus
2540extern "C"
2541#endif
2542/* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2544char strerror ();
2545int
2546main ()
2547{
2548strerror ();
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553rm -f conftest.$ac_objext conftest$ac_exeext
2554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555 (eval $ac_link) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
8ae85421
AM
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
979273e3
NN
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest$ac_exeext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
8ae85421 2575 ac_cv_search_strerror="none required"
979273e3
NN
2576else
2577 echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
979273e3
NN
2580fi
2581rm -f conftest.err conftest.$ac_objext \
2582 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
2583if test "$ac_cv_search_strerror" = no; then
2584 for ac_lib in cposix; do
2585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2586 cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h. */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h. */
2592
2593/* Override any gcc2 internal prototype to avoid an error. */
2594#ifdef __cplusplus
2595extern "C"
2596#endif
2597/* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2599char strerror ();
2600int
2601main ()
2602{
2603strerror ();
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext conftest$ac_exeext
2609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610 (eval $ac_link) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest$ac_exeext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_search_strerror="-l$ac_lib"
2631break
2632else
2633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
979273e3 2636fi
8ae85421
AM
2637rm -f conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2639 done
979273e3 2640fi
8ae85421
AM
2641LIBS=$ac_func_search_save_LIBS
2642fi
2643echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2644echo "${ECHO_T}$ac_cv_search_strerror" >&6
2645if test "$ac_cv_search_strerror" != no; then
2646 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
979273e3 2647
8ae85421 2648fi
979273e3
NN
2649
2650
2651# We currently only use the version number for the name of any shared
2652# library. For user convenience, we always use the same version
2653# number that BFD is using.
2654BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2655
8ae85421 2656am__api_version="1.9"
979273e3
NN
2657# Find a good install program. We prefer a C program (faster),
2658# so one script is as good as another. But avoid the broken or
2659# incompatible versions:
2660# SysV /etc/install, /usr/sbin/install
2661# SunOS /usr/etc/install
2662# IRIX /sbin/install
2663# AIX /bin/install
2664# AmigaOS /C/install, which installs bootblocks on floppy discs
2665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2668# OS/2's system install, which has a completely different semantic
252b5132 2669# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2670# Reject install programs that cannot install multiple files.
979273e3
NN
2671echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2672echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2673if test -z "$INSTALL"; then
979273e3
NN
2674if test "${ac_cv_path_install+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2676else
979273e3
NN
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 # Account for people who put trailing slashes in PATH elements.
2683case $as_dir/ in
2684 ./ | .// | /cC/* | \
2685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2686 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2687 /usr/ucb/* ) ;;
2688 *)
2689 # OSF1 and SCO ODT 3.0 have their own names for install.
2690 # Don't use installbsd from OSF since it installs stuff as root
2691 # by default.
2692 for ac_prog in ginstall scoinst install; do
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2695 if test $ac_prog = install &&
979273e3 2696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2697 # AIX install. It has an incompatible calling convention.
2698 :
979273e3
NN
2699 elif test $ac_prog = install &&
2700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701 # program-specific install script used by HP pwplus--don't use.
2702 :
252b5132 2703 else
58c85be7
RW
2704 rm -rf conftest.one conftest.two conftest.dir
2705 echo one > conftest.one
2706 echo two > conftest.two
2707 mkdir conftest.dir
2708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2709 test -s conftest.one && test -s conftest.two &&
2710 test -s conftest.dir/conftest.one &&
2711 test -s conftest.dir/conftest.two
2712 then
2713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2714 break 3
2715 fi
252b5132
RH
2716 fi
2717 fi
2718 done
979273e3
NN
2719 done
2720 ;;
2721esac
2722done
2723
58c85be7 2724rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2725
2726fi
2727 if test "${ac_cv_path_install+set}" = set; then
979273e3 2728 INSTALL=$ac_cv_path_install
252b5132 2729 else
58c85be7
RW
2730 # As a last resort, use the slow shell script. Don't cache a
2731 # value for INSTALL within a source directory, because that will
252b5132 2732 # break other packages using the cache if that directory is
58c85be7 2733 # removed, or if the value is a relative name.
979273e3 2734 INSTALL=$ac_install_sh
252b5132
RH
2735 fi
2736fi
979273e3
NN
2737echo "$as_me:$LINENO: result: $INSTALL" >&5
2738echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2739
2740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2741# It thinks the first close brace ends the variable substitution.
2742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2743
979273e3 2744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2745
2746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2747
979273e3
NN
2748echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2749echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2750# Just in case
2751sleep 1
8ae85421 2752echo timestamp > conftest.file
252b5132
RH
2753# Do `set' in a subshell so we don't clobber the current shell's
2754# arguments. Must try -L first in case configure is actually a
2755# symlink; some systems play weird games with the mod time of symlinks
2756# (eg FreeBSD returns the mod time of the symlink's containing
2757# directory).
2758if (
8ae85421 2759 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2760 if test "$*" = "X"; then
2761 # -L didn't work.
8ae85421 2762 set X `ls -t $srcdir/configure conftest.file`
252b5132 2763 fi
8ae85421
AM
2764 rm -f conftest.file
2765 if test "$*" != "X $srcdir/configure conftest.file" \
2766 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2767
2768 # If neither matched, then we have a broken ls. This can happen
2769 # if, for instance, CONFIG_SHELL is bash and it inherits a
2770 # broken ls alias from the environment. This has actually
2771 # happened. Such a system could not be considered "sane".
979273e3
NN
2772 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2773alias in your environment" >&5
2774echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2775alias in your environment" >&2;}
2776 { (exit 1); exit 1; }; }
252b5132
RH
2777 fi
2778
8ae85421 2779 test "$2" = conftest.file
252b5132
RH
2780 )
2781then
2782 # Ok.
2783 :
2784else
979273e3
NN
2785 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2786Check your system clock" >&5
2787echo "$as_me: error: newly created file is older than distributed files!
2788Check your system clock" >&2;}
2789 { (exit 1); exit 1; }; }
252b5132 2790fi
979273e3
NN
2791echo "$as_me:$LINENO: result: yes" >&5
2792echo "${ECHO_T}yes" >&6
252b5132 2793test "$program_prefix" != NONE &&
979273e3 2794 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2795# Use a double $ so make ignores it.
2796test "$program_suffix" != NONE &&
979273e3
NN
2797 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2798# Double any \ or $. echo might interpret backslashes.
2799# By default was `s,x,x', remove it if useless.
2800cat <<\_ACEOF >conftest.sed
2801s/[\\$]/&&/g;s/;s,x,x,$//
2802_ACEOF
2803program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2804rm conftest.sed
2805
8ae85421
AM
2806# expand $ac_aux_dir to an absolute path
2807am_aux_dir=`cd $ac_aux_dir && pwd`
2808
2809test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2810# Use eval to expand $SHELL
2811if eval "$MISSING --run true"; then
2812 am_missing_run="$MISSING --run "
2813else
2814 am_missing_run=
2815 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2816echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2817fi
2818
2819if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2820 # We used to keeping the `.' as first argument, in order to
2821 # allow $(mkdir_p) to be used without argument. As in
2822 # $(mkdir_p) $(somedir)
2823 # where $(somedir) is conditionally defined. However this is wrong
2824 # for two reasons:
2825 # 1. if the package is installed by a user who cannot write `.'
2826 # make install will fail,
2827 # 2. the above comment should most certainly read
2828 # $(mkdir_p) $(DESTDIR)$(somedir)
2829 # so it does not work when $(somedir) is undefined and
2830 # $(DESTDIR) is not.
2831 # To support the latter case, we have to write
2832 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2833 # so the `.' trick is pointless.
2834 mkdir_p='mkdir -p --'
2835else
2836 # On NextStep and OpenStep, the `mkdir' command does not
2837 # recognize any option. It will interpret all options as
2838 # directories to create, and then abort because `.' already
2839 # exists.
2840 for d in ./-p ./--version;
2841 do
2842 test -d $d && rmdir $d
2843 done
2844 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2845 if test -f "$ac_aux_dir/mkinstalldirs"; then
2846 mkdir_p='$(mkinstalldirs)'
2847 else
2848 mkdir_p='$(install_sh) -d'
2849 fi
2850fi
2851
2852for ac_prog in gawk mawk nawk awk
2853do
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855set dummy $ac_prog; ac_word=$2
2856echo "$as_me:$LINENO: checking for $ac_word" >&5
2857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858if test "${ac_cv_prog_AWK+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861 if test -n "$AWK"; then
2862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_AWK="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876done
2877
2878fi
2879fi
2880AWK=$ac_cv_prog_AWK
2881if test -n "$AWK"; then
2882 echo "$as_me:$LINENO: result: $AWK" >&5
2883echo "${ECHO_T}$AWK" >&6
2884else
2885 echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888
2889 test -n "$AWK" && break
2890done
2891
979273e3
NN
2892echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2893echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2894set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2895if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898 cat >conftest.make <<\_ACEOF
252b5132 2899all:
979273e3
NN
2900 @echo 'ac_maketemp="$(MAKE)"'
2901_ACEOF
252b5132 2902# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2903eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2904if test -n "$ac_maketemp"; then
2905 eval ac_cv_prog_make_${ac_make}_set=yes
2906else
2907 eval ac_cv_prog_make_${ac_make}_set=no
2908fi
979273e3 2909rm -f conftest.make
252b5132
RH
2910fi
2911if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2912 echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6
252b5132
RH
2914 SET_MAKE=
2915else
979273e3
NN
2916 echo "$as_me:$LINENO: result: no" >&5
2917echo "${ECHO_T}no" >&6
252b5132
RH
2918 SET_MAKE="MAKE=${MAKE-make}"
2919fi
2920
8ae85421
AM
2921rm -rf .tst 2>/dev/null
2922mkdir .tst 2>/dev/null
2923if test -d .tst; then
2924 am__leading_dot=.
2925else
2926 am__leading_dot=_
2927fi
2928rmdir .tst 2>/dev/null
2929
2930DEPDIR="${am__leading_dot}deps"
2931
2932 ac_config_commands="$ac_config_commands depfiles"
2933
2934
2935am_make=${MAKE-make}
2936cat > confinc << 'END'
2937am__doit:
2938 @echo done
2939.PHONY: am__doit
2940END
2941# If we don't find an include directive, just comment out the code.
2942echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2943echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2944am__include="#"
2945am__quote=
2946_am_result=none
2947# First try GNU make style include.
2948echo "include confinc" > confmf
2949# We grep out `Entering directory' and `Leaving directory'
2950# messages which can occur if `w' ends up in MAKEFLAGS.
2951# In particular we don't look at `^make:' because GNU make might
2952# be invoked under some other name (usually "gmake"), in which
2953# case it prints its new name instead of `make'.
2954if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2955 am__include=include
2956 am__quote=
2957 _am_result=GNU
2958fi
2959# Now try BSD make style include.
2960if test "$am__include" = "#"; then
2961 echo '.include "confinc"' > confmf
2962 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2963 am__include=.include
2964 am__quote="\""
2965 _am_result=BSD
2966 fi
2967fi
2968
2969
2970echo "$as_me:$LINENO: result: $_am_result" >&5
2971echo "${ECHO_T}$_am_result" >&6
2972rm -f confinc confmf
2973
2974# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2975if test "${enable_dependency_tracking+set}" = set; then
2976 enableval="$enable_dependency_tracking"
2977
2978fi;
2979if test "x$enable_dependency_tracking" != xno; then
2980 am_depcomp="$ac_aux_dir/depcomp"
2981 AMDEPBACKSLASH='\'
2982fi
2983
2984
2985if test "x$enable_dependency_tracking" != xno; then
2986 AMDEP_TRUE=
2987 AMDEP_FALSE='#'
2988else
2989 AMDEP_TRUE='#'
2990 AMDEP_FALSE=
2991fi
252b5132 2992
252b5132 2993
252b5132 2994
8ae85421
AM
2995# test to see if srcdir already configured
2996if test "`cd $srcdir && pwd`" != "`pwd`" &&
2997 test -f $srcdir/config.status; then
979273e3
NN
2998 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2999echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3000 { (exit 1); exit 1; }; }
252b5132 3001fi
979273e3 3002
8ae85421
AM
3003# test whether we have cygpath
3004if test -z "$CYGPATH_W"; then
3005 if (cygpath --version) >/dev/null 2>/dev/null; then
3006 CYGPATH_W='cygpath -w'
3007 else
3008 CYGPATH_W=echo
3009 fi
3010fi
3011
3012
3013# Define the identity of the package.
3014 PACKAGE=opcodes
3015 VERSION=${BFD_VERSION}
3016
3017
979273e3 3018cat >>confdefs.h <<_ACEOF
252b5132 3019#define PACKAGE "$PACKAGE"
979273e3 3020_ACEOF
252b5132 3021
979273e3
NN
3022
3023cat >>confdefs.h <<_ACEOF
252b5132 3024#define VERSION "$VERSION"
979273e3 3025_ACEOF
252b5132 3026
8ae85421 3027# Some tools Automake needs.
252b5132 3028
8ae85421 3029ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3030
8ae85421
AM
3031
3032AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3033
3034
3035AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3036
3037
3038AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3039
3040
3041MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3042
3043install_sh=${install_sh-"$am_aux_dir/install-sh"}
3044
3045# Installed binaries are usually stripped using `strip' when the user
3046# run `make install-strip'. However `strip' might not be the right
3047# tool to use in cross-compilation environments, therefore Automake
3048# will honor the `STRIP' environment variable to overrule this program.
3049if test "$cross_compiling" != no; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3052set dummy ${ac_tool_prefix}strip; ac_word=$2
3053echo "$as_me:$LINENO: checking for $ac_word" >&5
3054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055if test "${ac_cv_prog_STRIP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 if test -n "$STRIP"; then
3059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072done
3073done
3074
3075fi
3076fi
3077STRIP=$ac_cv_prog_STRIP
3078if test -n "$STRIP"; then
3079 echo "$as_me:$LINENO: result: $STRIP" >&5
3080echo "${ECHO_T}$STRIP" >&6
252b5132 3081else
8ae85421
AM
3082 echo "$as_me:$LINENO: result: no" >&5
3083echo "${ECHO_T}no" >&6
252b5132
RH
3084fi
3085
8ae85421
AM
3086fi
3087if test -z "$ac_cv_prog_STRIP"; then
3088 ac_ct_STRIP=$STRIP
3089 # Extract the first word of "strip", so it can be a program name with args.
3090set dummy strip; ac_word=$2
3091echo "$as_me:$LINENO: checking for $ac_word" >&5
3092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096 if test -n "$ac_ct_STRIP"; then
3097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_ac_ct_STRIP="strip"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110done
3111done
3112
3113 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3114fi
3115fi
3116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3117if test -n "$ac_ct_STRIP"; then
3118 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3119echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3120else
8ae85421
AM
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
252b5132
RH
3123fi
3124
8ae85421 3125 STRIP=$ac_ct_STRIP
252b5132 3126else
8ae85421 3127 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3128fi
3129
8ae85421
AM
3130fi
3131INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3132
3133# We need awk for the "check" target. The system "awk" is bad on
3134# some platforms.
3135# Always define AMTAR for backward compatibility.
3136
3137AMTAR=${AMTAR-"${am_missing_run}tar"}
3138
3139am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3140
3141
3142
3143
3144depcc="$CC" am_compiler_list=
3145
3146echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3147echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3148if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3150else
8ae85421
AM
3151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3152 # We make a subdir and do the tests there. Otherwise we can end up
3153 # making bogus files that we don't know about and never remove. For
3154 # instance it was reported that on HP-UX the gcc test will end up
3155 # making a dummy file named `D' -- because `-MD' means `put the output
3156 # in D'.
3157 mkdir conftest.dir
3158 # Copy depcomp to subdir because otherwise we won't find it if we're
3159 # using a relative directory.
3160 cp "$am_depcomp" conftest.dir
3161 cd conftest.dir
3162 # We will build objects and dependencies in a subdirectory because
3163 # it helps to detect inapplicable dependency modes. For instance
3164 # both Tru64's cc and ICC support -MD to output dependencies as a
3165 # side effect of compilation, but ICC will put the dependencies in
3166 # the current directory while Tru64 will put them in the object
3167 # directory.
3168 mkdir sub
3169
3170 am_cv_CC_dependencies_compiler_type=none
3171 if test "$am_compiler_list" = ""; then
3172 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3173 fi
3174 for depmode in $am_compiler_list; do
3175 # Setup a source with many dependencies, because some compilers
3176 # like to wrap large dependency lists on column 80 (with \), and
3177 # we should not choose a depcomp mode which is confused by this.
3178 #
3179 # We need to recreate these files for each test, as the compiler may
3180 # overwrite some of them when testing with obscure command lines.
3181 # This happens at least with the AIX C compiler.
3182 : > sub/conftest.c
3183 for i in 1 2 3 4 5 6; do
3184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3185 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3186 # Solaris 8's {/usr,}/bin/sh.
3187 touch sub/conftst$i.h
3188 done
3189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3190
3191 case $depmode in
3192 nosideeffect)
3193 # after this tag, mechanisms are not by side-effect, so they'll
3194 # only be used when explicitly requested
3195 if test "x$enable_dependency_tracking" = xyes; then
3196 continue
3197 else
3198 break
3199 fi
3200 ;;
3201 none) break ;;
3202 esac
3203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3204 # mode. It turns out that the SunPro C++ compiler does not properly
3205 # handle `-M -o', and we need to detect this.
3206 if depmode=$depmode \
3207 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3209 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3210 >/dev/null 2>conftest.err &&
3211 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3212 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3213 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3214 # icc doesn't choke on unknown options, it will just issue warnings
3215 # or remarks (even with -Werror). So we grep stderr for any message
3216 # that says an option was ignored or not supported.
3217 # When given -MP, icc 7.0 and 7.1 complain thusly:
3218 # icc: Command line warning: ignoring option '-M'; no argument required
3219 # The diagnosis changed in icc 8.0:
3220 # icc: Command line remark: option '-MP' not supported
3221 if (grep 'ignoring option' conftest.err ||
3222 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3223 am_cv_CC_dependencies_compiler_type=$depmode
3224 break
3225 fi
3226 fi
3227 done
3228
3229 cd ..
3230 rm -rf conftest.dir
3231else
3232 am_cv_CC_dependencies_compiler_type=none
3233fi
3234
252b5132 3235fi
8ae85421
AM
3236echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3237echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3238CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3239
3240
252b5132 3241
8ae85421
AM
3242if
3243 test "x$enable_dependency_tracking" != xno \
3244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3245 am__fastdepCC_TRUE=
3246 am__fastdepCC_FALSE='#'
252b5132 3247else
8ae85421
AM
3248 am__fastdepCC_TRUE='#'
3249 am__fastdepCC_FALSE=
252b5132
RH
3250fi
3251
3252
3253
8ae85421 3254
dabbade6
L
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3260if test -n "$ac_tool_prefix"; then
dabbade6
L
3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262set dummy ${ac_tool_prefix}gcc; ac_word=$2
979273e3
NN
3263echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3265if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3266 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3267else
dabbade6
L
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3270else
979273e3
NN
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
979273e3
NN
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283done
3284
252b5132
RH
3285fi
3286fi
dabbade6
L
3287CC=$ac_cv_prog_CC
3288if test -n "$CC"; then
3289 echo "$as_me:$LINENO: result: $CC" >&5
3290echo "${ECHO_T}$CC" >&6
252b5132 3291else
979273e3
NN
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294fi
3295
252b5132 3296fi
dabbade6
L
3297if test -z "$ac_cv_prog_CC"; then
3298 ac_ct_CC=$CC
3299 # Extract the first word of "gcc", so it can be a program name with args.
3300set dummy gcc; ac_word=$2
979273e3
NN
3301echo "$as_me:$LINENO: checking for $ac_word" >&5
3302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3
NN
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
dabbade6
L
3306 if test -n "$ac_ct_CC"; then
3307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3316 ac_cv_prog_ac_ct_CC="gcc"
979273e3
NN
3317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321done
252b5132 3322
979273e3
NN
3323fi
3324fi
dabbade6
L
3325ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326if test -n "$ac_ct_CC"; then
3327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3328echo "${ECHO_T}$ac_ct_CC" >&6
979273e3
NN
3329else
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332fi
252b5132 3333
dabbade6 3334 CC=$ac_ct_CC
979273e3 3335else
dabbade6 3336 CC="$ac_cv_prog_CC"
979273e3 3337fi
252b5132 3338
dabbade6
L
3339if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342set dummy ${ac_tool_prefix}cc; ac_word=$2
979273e3
NN
3343echo "$as_me:$LINENO: checking for $ac_word" >&5
3344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3345if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3346 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3347else
dabbade6
L
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3350else
979273e3
NN
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3358 ac_cv_prog_CC="${ac_tool_prefix}cc"
979273e3
NN
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362done
3363done
3364
252b5132
RH
3365fi
3366fi
dabbade6
L
3367CC=$ac_cv_prog_CC
3368if test -n "$CC"; then
3369 echo "$as_me:$LINENO: result: $CC" >&5
3370echo "${ECHO_T}$CC" >&6
252b5132 3371else
979273e3
NN
3372 echo "$as_me:$LINENO: result: no" >&5
3373echo "${ECHO_T}no" >&6
252b5132
RH
3374fi
3375
979273e3 3376fi
dabbade6
L
3377if test -z "$ac_cv_prog_CC"; then
3378 ac_ct_CC=$CC
3379 # Extract the first word of "cc", so it can be a program name with args.
3380set dummy cc; ac_word=$2
979273e3
NN
3381echo "$as_me:$LINENO: checking for $ac_word" >&5
3382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3383if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3 3384 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3385else
dabbade6
L
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3388else
979273e3
NN
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3396 ac_cv_prog_ac_ct_CC="cc"
979273e3
NN
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400done
3401done
3402
252b5132
RH
3403fi
3404fi
dabbade6
L
3405ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406if test -n "$ac_ct_CC"; then
3407 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3409else
979273e3
NN
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
252b5132
RH
3412fi
3413
dabbade6 3414 CC=$ac_ct_CC
252b5132 3415else
dabbade6 3416 CC="$ac_cv_prog_CC"
252b5132
RH
3417fi
3418
dabbade6
L
3419fi
3420if test -z "$CC"; then
3421 # Extract the first word of "cc", so it can be a program name with args.
3422set dummy cc; ac_word=$2
3423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425if test "${ac_cv_prog_CC+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430else
3431 ac_prog_rejected=no
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3440 ac_prog_rejected=yes
3441 continue
3442 fi
3443 ac_cv_prog_CC="cc"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447done
3448done
252b5132 3449
dabbade6
L
3450if test $ac_prog_rejected = yes; then
3451 # We found a bogon in the path, so make sure we never use it.
3452 set dummy $ac_cv_prog_CC
3453 shift
3454 if test $# != 0; then
3455 # We chose a different compiler from the bogus one.
3456 # However, it has the same basename, so the bogon will be chosen
3457 # first if we set CC to just the basename; use the full file name.
3458 shift
3459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3460 fi
3461fi
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 echo "$as_me:$LINENO: result: $CC" >&5
3467echo "${ECHO_T}$CC" >&6
252b5132 3468else
dabbade6
L
3469 echo "$as_me:$LINENO: result: no" >&5
3470echo "${ECHO_T}no" >&6
3471fi
252b5132 3472
dabbade6
L
3473fi
3474if test -z "$CC"; then
3475 if test -n "$ac_tool_prefix"; then
3476 for ac_prog in cl
3477 do
3478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3479set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3480echo "$as_me:$LINENO: checking for $ac_word" >&5
3481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3482if test "${ac_cv_prog_CC+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499done
3500done
d7040cdb 3501
dabbade6
L
3502fi
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
3506 echo "$as_me:$LINENO: result: $CC" >&5
3507echo "${ECHO_T}$CC" >&6
3508else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511fi
d7040cdb 3512
dabbade6
L
3513 test -n "$CC" && break
3514 done
3515fi
3516if test -z "$CC"; then
3517 ac_ct_CC=$CC
3518 for ac_prog in cl
3519do
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521set dummy $ac_prog; ac_word=$2
3522echo "$as_me:$LINENO: checking for $ac_word" >&5
3523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_ac_ct_CC="$ac_prog"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541done
3542done
d7040cdb 3543
dabbade6
L
3544fi
3545fi
3546ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547if test -n "$ac_ct_CC"; then
3548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3549echo "${ECHO_T}$ac_ct_CC" >&6
3550else
3551 echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
3553fi
d7040cdb 3554
dabbade6
L
3555 test -n "$ac_ct_CC" && break
3556done
d7040cdb 3557
dabbade6
L
3558 CC=$ac_ct_CC
3559fi
d7040cdb 3560
dabbade6 3561fi
d7040cdb
SE
3562
3563
dabbade6
L
3564test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3565See \`config.log' for more details." >&5
3566echo "$as_me: error: no acceptable C compiler found in \$PATH
3567See \`config.log' for more details." >&2;}
3568 { (exit 1); exit 1; }; }
d7040cdb 3569
dabbade6
L
3570# Provide some information about the compiler.
3571echo "$as_me:$LINENO:" \
3572 "checking for C compiler version" >&5
3573ac_compiler=`set X $ac_compile; echo $2`
3574{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3575 (eval $ac_compiler --version </dev/null >&5) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3579{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3580 (eval $ac_compiler -v </dev/null >&5) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }
3584{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3585 (eval $ac_compiler -V </dev/null >&5) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
d7040cdb 3589
dabbade6
L
3590echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3591echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3592if test "${ac_cv_c_compiler_gnu+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3594else
dabbade6
L
3595 cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h. */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h. */
d7040cdb 3601
dabbade6
L
3602int
3603main ()
3604{
3605#ifndef __GNUC__
3606 choke me
3607#endif
d7040cdb 3608
dabbade6
L
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext
3614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3635 ac_compiler_gnu=yes
d7040cdb 3636else
dabbade6
L
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3639
dabbade6
L
3640ac_compiler_gnu=no
3641fi
3642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3644
dabbade6
L
3645fi
3646echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3647echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3648GCC=`test $ac_compiler_gnu = yes && echo yes`
3649ac_test_CFLAGS=${CFLAGS+set}
3650ac_save_CFLAGS=$CFLAGS
3651CFLAGS="-g"
3652echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3653echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3654if test "${ac_cv_prog_cc_g+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3656else
dabbade6
L
3657 cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h. */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h. */
d7040cdb 3663
dabbade6
L
3664int
3665main ()
3666{
d7040cdb 3667
dabbade6
L
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_prog_cc_g=yes
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3698
dabbade6
L
3699ac_cv_prog_cc_g=no
3700fi
3701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702fi
3703echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3704echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3705if test "$ac_test_CFLAGS" = set; then
3706 CFLAGS=$ac_save_CFLAGS
3707elif test $ac_cv_prog_cc_g = yes; then
3708 if test "$GCC" = yes; then
3709 CFLAGS="-g -O2"
3710 else
3711 CFLAGS="-g"
3712 fi
3713else
3714 if test "$GCC" = yes; then
3715 CFLAGS="-O2"
3716 else
3717 CFLAGS=
3718 fi
3719fi
3720echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3721echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3722if test "${ac_cv_prog_cc_stdc+set}" = set; then
d7040cdb
SE
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
dabbade6
L
3725 ac_cv_prog_cc_stdc=no
3726ac_save_CC=$CC
3727cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733#include <stdarg.h>
3734#include <stdio.h>
3735#include <sys/types.h>
3736#include <sys/stat.h>
3737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3738struct buf { int x; };
3739FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740static char *e (p, i)
3741 char **p;
3742 int i;
3743{
3744 return p[i];
3745}
3746static char *f (char * (*g) (char **, int), char **p, ...)
3747{
3748 char *s;
3749 va_list v;
3750 va_start (v,p);
3751 s = g (p, va_arg (v,int));
3752 va_end (v);
3753 return s;
3754}
d7040cdb 3755
dabbade6
L
3756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3757 function prototypes and stuff, but not '\xHH' hex character constants.
3758 These don't provoke an error unfortunately, instead are silently treated
3759 as 'x'. The following induces an error, until -std1 is added to get
3760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3761 array size at least. It's necessary to write '\x00'==0 to get something
3762 that's true only with -std1. */
3763int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3764
dabbade6
L
3765int test (int i, double x);
3766struct s1 {int (*f) (int a);};
3767struct s2 {int (*f) (double a);};
3768int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3769int argc;
3770char **argv;
3771int
3772main ()
3773{
3774return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3775 ;
3776 return 0;
3777}
3778_ACEOF
3779# Don't try gcc -ansi; that turns off useful extensions and
3780# breaks some systems' header files.
3781# AIX -qlanglvl=ansi
3782# Ultrix and OSF/1 -std1
3783# HP-UX 10.20 and later -Ae
3784# HP-UX older versions -Aa -D_HPUX_SOURCE
3785# SVR4 -Xc -D__EXTENSIONS__
3786for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3787do
3788 CC="$ac_save_CC $ac_arg"
3789 rm -f conftest.$ac_objext
3790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_prog_cc_stdc=$ac_arg
3812break
d7040cdb 3813else
dabbade6
L
3814 echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3816
d7040cdb 3817fi
dabbade6
L
3818rm -f conftest.err conftest.$ac_objext
3819done
3820rm -f conftest.$ac_ext conftest.$ac_objext
3821CC=$ac_save_CC
d7040cdb 3822
dabbade6 3823fi
d7040cdb 3824
dabbade6
L
3825case "x$ac_cv_prog_cc_stdc" in
3826 x|xno)
3827 echo "$as_me:$LINENO: result: none needed" >&5
3828echo "${ECHO_T}none needed" >&6 ;;
252b5132 3829 *)
dabbade6
L
3830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3831echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3832 CC="$CC $ac_cv_prog_cc_stdc" ;;
3833esac
252b5132 3834
dabbade6
L
3835# Some people use a C++ compiler to compile C. Since we use `exit',
3836# in C++ we need to declare it. In case someone uses the same compiler
3837# for both compiling C and C++ we need to have the C++ compiler decide
3838# the declaration of exit, since it's the most demanding environment.
3839cat >conftest.$ac_ext <<_ACEOF
3840#ifndef __cplusplus
3841 choke me
3842#endif
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 for ac_declaration in \
3867 '' \
3868 'extern "C" void std::exit (int) throw (); using std::exit;' \
3869 'extern "C" void std::exit (int); using std::exit;' \
3870 'extern "C" void exit (int) throw ();' \
3871 'extern "C" void exit (int);' \
3872 'void exit (int);'
3873do
3874 cat >conftest.$ac_ext <<_ACEOF
3875/* confdefs.h. */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h. */
3880$ac_declaration
3881#include <stdlib.h>
3882int
3883main ()
3884{
3885exit (42);
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890rm -f conftest.$ac_objext
3891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_c_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 :
252b5132 3913else
dabbade6
L
3914 echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917continue
252b5132 3918fi
dabbade6
L
3919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 cat >conftest.$ac_ext <<_ACEOF
3921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
3926$ac_declaration
3927int
3928main ()
3929{
3930exit (42);
3931 ;
3932 return 0;
3933}
3934_ACEOF
3935rm -f conftest.$ac_objext
3936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>conftest.er1
3938 ac_status=$?
3939 grep -v '^ *+' conftest.er1 >conftest.err
3940 rm -f conftest.er1
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -z "$ac_c_werror_flag"
3945 || test ! -s conftest.err'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; } &&
3951 { ac_try='test -s conftest.$ac_objext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 break
252b5132 3958else
dabbade6
L
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3961
dabbade6
L
3962fi
3963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3964done
3965rm -f conftest*
3966if test -n "$ac_declaration"; then
3967 echo '#ifdef __cplusplus' >>confdefs.h
3968 echo $ac_declaration >>confdefs.h
3969 echo '#endif' >>confdefs.h
3970fi
ac48eca1 3971
dabbade6
L
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3975
dabbade6
L
3976fi
3977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3983
3984
dabbade6
L
3985cat >>confdefs.h <<\_ACEOF
3986#define _GNU_SOURCE 1
3987_ACEOF
d7040cdb
SE
3988
3989
3990
dabbade6
L
3991if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}ar; ac_word=$2
3994echo "$as_me:$LINENO: checking for $ac_word" >&5
3995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996if test "${ac_cv_prog_AR+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 if test -n "$AR"; then
4000 ac_cv_prog_AR="$AR" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_AR="${ac_tool_prefix}ar"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013done
4014done
d7040cdb 4015
dabbade6
L
4016fi
4017fi
4018AR=$ac_cv_prog_AR
4019if test -n "$AR"; then
4020 echo "$as_me:$LINENO: result: $AR" >&5
4021echo "${ECHO_T}$AR" >&6
4022else
4023 echo "$as_me:$LINENO: result: no" >&5
4024echo "${ECHO_T}no" >&6
4025fi
d7040cdb 4026
dabbade6
L
4027fi
4028if test -z "$ac_cv_prog_AR"; then
4029 ac_ct_AR=$AR
4030 # Extract the first word of "ar", so it can be a program name with args.
4031set dummy ar; ac_word=$2
4032echo "$as_me:$LINENO: checking for $ac_word" >&5
4033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
979273e3 4035 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4036else
dabbade6
L
4037 if test -n "$ac_ct_AR"; then
4038 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 4039else
dabbade6
L
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_ac_ct_AR="ar"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
d7040cdb 4050 fi
dabbade6
L
4051done
4052done
4053
252b5132
RH
4054fi
4055fi
dabbade6
L
4056ac_ct_AR=$ac_cv_prog_ac_ct_AR
4057if test -n "$ac_ct_AR"; then
4058 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4059echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 4060else
dabbade6
L
4061 echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063fi
4064
4065 AR=$ac_ct_AR
4066else
4067 AR="$ac_cv_prog_AR"
4068fi
4069
4070if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d7040cdb
SE
4073echo "$as_me:$LINENO: checking for $ac_word" >&5
4074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4075if test "${ac_cv_prog_RANLIB+set}" = set; then
d7040cdb
SE
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077else
dabbade6
L
4078 if test -n "$RANLIB"; then
4079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d7040cdb
SE
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d7040cdb
SE
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092done
4093done
4094
4095fi
4096fi
dabbade6
L
4097RANLIB=$ac_cv_prog_RANLIB
4098if test -n "$RANLIB"; then
4099 echo "$as_me:$LINENO: result: $RANLIB" >&5
4100echo "${ECHO_T}$RANLIB" >&6
d7040cdb
SE
4101else
4102 echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6
4104fi
4105
d7040cdb 4106fi
dabbade6
L
4107if test -z "$ac_cv_prog_RANLIB"; then
4108 ac_ct_RANLIB=$RANLIB
4109 # Extract the first word of "ranlib", so it can be a program name with args.
4110set dummy ranlib; ac_word=$2
d7040cdb
SE
4111echo "$as_me:$LINENO: checking for $ac_word" >&5
4112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4113if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb
SE
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
dabbade6
L
4116 if test -n "$ac_ct_RANLIB"; then
4117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d7040cdb
SE
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4126 ac_cv_prog_ac_ct_RANLIB="ranlib"
d7040cdb
SE
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130done
4131done
4132
dabbade6 4133 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb
SE
4134fi
4135fi
dabbade6
L
4136ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4137if test -n "$ac_ct_RANLIB"; then
4138 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4139echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb
SE
4140else
4141 echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
4143fi
4144
dabbade6
L
4145 RANLIB=$ac_ct_RANLIB
4146else
4147 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
4148fi
4149
4150
dabbade6
L
4151# Check whether --enable-shared or --disable-shared was given.
4152if test "${enable_shared+set}" = set; then
4153 enableval="$enable_shared"
4154 p=${PACKAGE-default}
4155 case $enableval in
4156 yes) enable_shared=yes ;;
4157 no) enable_shared=no ;;
4158 *)
4159 enable_shared=no
4160 # Look at the argument we got. We use all the common list separators.
4161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4162 for pkg in $enableval; do
4163 IFS="$lt_save_ifs"
4164 if test "X$pkg" = "X$p"; then
4165 enable_shared=yes
4166 fi
4167 done
4168 IFS="$lt_save_ifs"
4169 ;;
4170 esac
4171else
4172 enable_shared=no
4173fi;
d7040cdb
SE
4174
4175
4176
4177
4178
4179
d7040cdb 4180
d7040cdb 4181
d7040cdb 4182
d7040cdb 4183
d7040cdb 4184
dabbade6
L
4185macro_version='2.1a'
4186macro_revision='1.2435'
d7040cdb 4187
d7040cdb 4188
d7040cdb 4189
d7040cdb 4190
d7040cdb 4191
d7040cdb 4192
d7040cdb
SE
4193
4194
4195
4196
4197
4198
dabbade6 4199ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4200
dabbade6 4201# Set options
d7040cdb 4202
dabbade6 4203enable_dlopen=no
d7040cdb
SE
4204
4205
dabbade6 4206enable_win32_dll=no
d7040cdb
SE
4207
4208
dabbade6
L
4209
4210# Check whether --enable-static or --disable-static was given.
4211if test "${enable_static+set}" = set; then
4212 enableval="$enable_static"
4213 p=${PACKAGE-default}
4214 case $enableval in
4215 yes) enable_static=yes ;;
4216 no) enable_static=no ;;
4217 *)
4218 enable_static=no
4219 # Look at the argument we got. We use all the common list separators.
4220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4221 for pkg in $enableval; do
4222 IFS="$lt_save_ifs"
4223 if test "X$pkg" = "X$p"; then
4224 enable_static=yes
4225 fi
4226 done
4227 IFS="$lt_save_ifs"
4228 ;;
4229 esac
d7040cdb 4230else
dabbade6
L
4231 enable_static=yes
4232fi;
d7040cdb
SE
4233
4234
4235
4236
4237
d7040cdb
SE
4238
4239
4240
4241
dabbade6
L
4242# Check whether --with-pic or --without-pic was given.
4243if test "${with_pic+set}" = set; then
4244 withval="$with_pic"
4245 pic_mode="$withval"
4246else
4247 pic_mode=default
4248fi;
d7040cdb 4249
dabbade6 4250test -z "$pic_mode" && pic_mode=default
d7040cdb
SE
4251
4252
4253
4254
d7040cdb
SE
4255
4256
4257
dabbade6
L
4258# Check whether --enable-fast-install or --disable-fast-install was given.
4259if test "${enable_fast_install+set}" = set; then
4260 enableval="$enable_fast_install"
4261 p=${PACKAGE-default}
4262 case $enableval in
4263 yes) enable_fast_install=yes ;;
4264 no) enable_fast_install=no ;;
4265 *)
4266 enable_fast_install=no
4267 # Look at the argument we got. We use all the common list separators.
4268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4269 for pkg in $enableval; do
4270 IFS="$lt_save_ifs"
4271 if test "X$pkg" = "X$p"; then
4272 enable_fast_install=yes
4273 fi
4274 done
4275 IFS="$lt_save_ifs"
4276 ;;
4277 esac
4278else
4279 enable_fast_install=yes
4280fi;
4281
252b5132 4282
d7040cdb
SE
4283
4284
4285
4286
4287
4288
dabbade6
L
4289echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4290echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4291if test "${lt_cv_path_SED+set}" = set; then
979273e3 4292 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4293else
dabbade6
L
4294 # Loop through the user's path and test for sed and gsed.
4295# Then use that list of sed's as ones to test for truncation.
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for lt_ac_prog in sed gsed; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4304 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4305 fi
4306 done
4307 done
4308done
4309IFS=$as_save_IFS
4310lt_ac_max=0
4311lt_ac_count=0
4312# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4313# along with /bin/sed that truncates output.
4314for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4315 test ! -f $lt_ac_sed && continue
4316 cat /dev/null > conftest.in
4317 lt_ac_count=0
4318 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4319 # Check for GNU sed and select it if it is found.
4320 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4321 lt_cv_path_SED=$lt_ac_sed
4322 break
4323 fi
4324 while true; do
4325 cat conftest.in conftest.in >conftest.tmp
4326 mv conftest.tmp conftest.in
4327 cp conftest.in conftest.nl
4328 echo >>conftest.nl
4329 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4330 cmp -s conftest.out conftest.nl || break
4331 # 10000 chars as input seems more than enough
4332 test $lt_ac_count -gt 10 && break
4333 lt_ac_count=`expr $lt_ac_count + 1`
4334 if test $lt_ac_count -gt $lt_ac_max; then
4335 lt_ac_max=$lt_ac_count
4336 lt_cv_path_SED=$lt_ac_sed
4337 fi
4338 done
4339done
ac48eca1 4340
dabbade6 4341fi
ac48eca1 4342
dabbade6 4343SED=$lt_cv_path_SED
ac48eca1 4344
dabbade6
L
4345echo "$as_me:$LINENO: result: $SED" >&5
4346echo "${ECHO_T}$SED" >&6
ac48eca1 4347
dabbade6
L
4348test -z "$SED" && SED=sed
4349Xsed="$SED -e 1s/^X//"
d7040cdb 4350
ac48eca1 4351
87e6d782 4352
ac48eca1 4353
ac48eca1 4354
d7040cdb 4355
d7040cdb 4356
ac48eca1 4357
ac48eca1 4358
ac48eca1 4359
87e6d782 4360
dabbade6
L
4361echo "$as_me:$LINENO: checking for egrep" >&5
4362echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4363if test "${ac_cv_prog_egrep+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4367 then ac_cv_prog_egrep='grep -E'
4368 else ac_cv_prog_egrep='egrep'
4369 fi
4370fi
4371echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4372echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4373 EGREP=$ac_cv_prog_egrep
ac48eca1 4374
ac48eca1 4375
dabbade6
L
4376echo "$as_me:$LINENO: checking for fgrep" >&5
4377echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4378if test "${ac_cv_prog_fgrep+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4382 then ac_cv_prog_fgrep='grep -F'
4383 else ac_cv_prog_fgrep='fgrep'
4384 fi
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4387echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4388 FGREP=$ac_cv_prog_fgrep
ac48eca1 4389
6be7c12c 4390
dabbade6 4391test -z "$GREP" && GREP=grep
d7040cdb 4392
d7040cdb 4393
d7040cdb 4394
ac48eca1
AO
4395
4396
4397
ac48eca1 4398
ac48eca1 4399
ac48eca1 4400
ac48eca1 4401
ac48eca1 4402
ac48eca1 4403
ac48eca1 4404
ac48eca1 4405
ac48eca1 4406
ac48eca1 4407
dabbade6
L
4408
4409
4410
4411# Check whether --with-gnu-ld or --without-gnu-ld was given.
4412if test "${with_gnu_ld+set}" = set; then
4413 withval="$with_gnu_ld"
4414 test "$withval" = no || with_gnu_ld=yes
4415else
4416 with_gnu_ld=no
4417fi;
4418ac_prog=ld
4419if test "$GCC" = yes; then
4420 # Check if gcc -print-prog-name=ld gives a path.
4421 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4422echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4423 case $host in
4424 *-*-mingw*)
4425 # gcc leaves a trailing carriage return which upsets mingw
4426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4427 *)
4428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4429 esac
4430 case $ac_prog in
4431 # Accept absolute paths.
4432 [\\/]* | ?:[\\/]*)
4433 re_direlt='/[^/][^/]*/\.\./'
4434 # Canonicalize the pathname of ld
4435 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4436 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4437 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4438 done
4439 test -z "$LD" && LD="$ac_prog"
4440 ;;
4441 "")
4442 # If it fails, then pretend we aren't using GCC.
4443 ac_prog=ld
4444 ;;
4445 *)
4446 # If it is relative, then search for the first ld in PATH.
4447 with_gnu_ld=unknown
4448 ;;
4449 esac
4450elif test "$with_gnu_ld" = yes; then
4451 echo "$as_me:$LINENO: checking for GNU ld" >&5
4452echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4453else
4454 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4455echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4456fi
4457if test "${lt_cv_path_LD+set}" = set; then
979273e3 4458 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4459else
dabbade6
L
4460 if test -z "$LD"; then
4461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462 for ac_dir in $PATH; do
4463 IFS="$lt_save_ifs"
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4466 lt_cv_path_LD="$ac_dir/$ac_prog"
4467 # Check to see if the program is GNU ld. I'd rather use --version,
4468 # but apparently some variants of GNU ld only accept -v.
4469 # Break only if it was the GNU/non-GNU ld that we prefer.
4470 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4471 *GNU* | *'with BFD'*)
4472 test "$with_gnu_ld" != no && break
4473 ;;
4474 *)
4475 test "$with_gnu_ld" != yes && break
4476 ;;
4477 esac
4478 fi
4479 done
4480 IFS="$lt_save_ifs"
ac48eca1 4481else
dabbade6 4482 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
4483fi
4484fi
dabbade6
L
4485
4486LD="$lt_cv_path_LD"
4487if test -n "$LD"; then
4488 echo "$as_me:$LINENO: result: $LD" >&5
4489echo "${ECHO_T}$LD" >&6
ac48eca1 4490else
979273e3
NN
4491 echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6
ac48eca1 4493fi
dabbade6
L
4494test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4495echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4496 { (exit 1); exit 1; }; }
4497echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4498echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4499if test "${lt_cv_prog_gnu_ld+set}" = set; then
979273e3 4500 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4501else
dabbade6
L
4502 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503case `$LD -v 2>&1 </dev/null` in
4504*GNU* | *'with BFD'*)
4505 lt_cv_prog_gnu_ld=yes
4506 ;;
4507*)
4508 lt_cv_prog_gnu_ld=no
4509 ;;
4510esac
ac48eca1 4511fi
dabbade6
L
4512echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4513echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4514with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
dabbade6
L
4525echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4526echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4527if test "${lt_cv_path_NM+set}" = set; then
979273e3 4528 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4529else
dabbade6
L
4530 if test -n "$NM"; then
4531 # Let the user override the test.
4532 lt_cv_path_NM="$NM"
ac48eca1 4533else
dabbade6
L
4534 lt_nm_to_check="${ac_tool_prefix}nm"
4535 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4536 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 4537 fi
dabbade6
L
4538 for lt_tmp_nm in $lt_nm_to_check; do
4539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4540 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4541 IFS="$lt_save_ifs"
4542 test -z "$ac_dir" && ac_dir=.
4543 tmp_nm="$ac_dir/$lt_tmp_nm"
4544 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4545 # Check to see if the nm accepts a BSD-compat flag.
4546 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4547 # nm: unknown option "B" ignored
4548 # Tru64's nm complains that /dev/null is an invalid object file
4549 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4550 */dev/null* | *'Invalid file or object type'*)
4551 lt_cv_path_NM="$tmp_nm -B"
4552 break
4553 ;;
4554 *)
4555 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4556 */dev/null*)
4557 lt_cv_path_NM="$tmp_nm -p"
4558 break
4559 ;;
4560 *)
4561 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4562 continue # so that we can try to find one that supports BSD flags
4563 ;;
4564 esac
4565 ;;
4566 esac
4567 fi
4568 done
4569 IFS="$lt_save_ifs"
4570 done
4571 : ${lt_cv_path_NM=no}
ac48eca1
AO
4572fi
4573fi
dabbade6
L
4574echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4575echo "${ECHO_T}$lt_cv_path_NM" >&6
4576if test "$lt_cv_path_NM" != "no"; then
4577 NM="$lt_cv_path_NM"
ac48eca1 4578else
dabbade6
L
4579 # Didn't find any BSD compatible name lister, look for dumpbin.
4580 if test -n "$ac_tool_prefix"; then
4581 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4582 do
4583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
979273e3
NN
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4587if test "${ac_cv_prog_DUMPBIN+set}" = set; then
979273e3 4588 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4589else
dabbade6
L
4590 if test -n "$DUMPBIN"; then
4591 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 4592else
979273e3
NN
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4600 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
979273e3
NN
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606
ac48eca1
AO
4607fi
4608fi
dabbade6
L
4609DUMPBIN=$ac_cv_prog_DUMPBIN
4610if test -n "$DUMPBIN"; then
4611 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4612echo "${ECHO_T}$DUMPBIN" >&6
ac48eca1 4613else
979273e3
NN
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
ac48eca1
AO
4616fi
4617
dabbade6
L
4618 test -n "$DUMPBIN" && break
4619 done
ac48eca1 4620fi
dabbade6
L
4621if test -z "$DUMPBIN"; then
4622 ac_ct_DUMPBIN=$DUMPBIN
4623 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4624do
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626set dummy $ac_prog; ac_word=$2
d7040cdb
SE
4627echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4629if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
d7040cdb 4630 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4631else
dabbade6
L
4632 if test -n "$ac_ct_DUMPBIN"; then
4633 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4642 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7040cdb
SE
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
252b5132 4645 fi
d7040cdb
SE
4646done
4647done
252b5132 4648
d7040cdb
SE
4649fi
4650fi
dabbade6
L
4651ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4652if test -n "$ac_ct_DUMPBIN"; then
4653 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4654echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
d7040cdb
SE
4655else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658fi
4867be41 4659
dabbade6 4660 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 4661done
dabbade6 4662test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
32fba81d 4663
dabbade6 4664 DUMPBIN=$ac_ct_DUMPBIN
d7040cdb 4665fi
979273e3
NN
4666
4667
dabbade6
L
4668 if test "$DUMPBIN" != ":"; then
4669 NM="$DUMPBIN"
4670 fi
4671fi
4672test -z "$NM" && NM=nm
ac48eca1 4673
252b5132 4674
252b5132 4675
979273e3 4676
ac48eca1 4677
d7040cdb 4678
dabbade6
L
4679echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4680echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4681if test "${lt_cv_nm_interface+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 lt_cv_nm_interface="BSD nm"
4685 echo "int some_variable = 0;" > conftest.$ac_ext
6194aaab 4686 (eval echo "\"\$as_me:4686: $ac_compile\"" >&5)
dabbade6
L
4687 (eval "$ac_compile" 2>conftest.err)
4688 cat conftest.err >&5
6194aaab 4689 (eval echo "\"\$as_me:4689: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
4690 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4691 cat conftest.err >&5
6194aaab 4692 (eval echo "\"\$as_me:4692: output\"" >&5)
dabbade6
L
4693 cat conftest.out >&5
4694 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4695 lt_cv_nm_interface="MS dumpbin"
4696 fi
4697 rm -f conftest*
4698fi
4699echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4700echo "${ECHO_T}$lt_cv_nm_interface" >&6
d7040cdb 4701
dabbade6
L
4702echo "$as_me:$LINENO: checking whether ln -s works" >&5
4703echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4704LN_S=$as_ln_s
4705if test "$LN_S" = "ln -s"; then
4706 echo "$as_me:$LINENO: result: yes" >&5
4707echo "${ECHO_T}yes" >&6
4708else
4709 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4710echo "${ECHO_T}no, using $LN_S" >&6
4711fi
4712
4713# find the maximum length of command line arguments
4714echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4715echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4716if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 i=0
4720 teststring="ABCD"
4721
4722 case $build_os in
4723 msdosdjgpp*)
4724 # On DJGPP, this test can blow up pretty badly due to problems in libc
4725 # (any single argument exceeding 2000 bytes causes a buffer overrun
4726 # during glob expansion). Even if it were fixed, the result of this
4727 # check would be larger than it should be.
4728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4729 ;;
4730
4731 gnu*)
4732 # Under GNU Hurd, this test is not required because there is
4733 # no limit to the length of command line arguments.
4734 # Libtool will interpret -1 as no limit whatsoever
4735 lt_cv_sys_max_cmd_len=-1;
4736 ;;
4737
4738 cygwin* | mingw*)
4739 # On Win9x/ME, this test blows up -- it succeeds, but takes
4740 # about 5 minutes as the teststring grows exponentially.
4741 # Worse, since 9x/ME are not pre-emptively multitasking,
4742 # you end up with a "frozen" computer, even though with patience
4743 # the test eventually succeeds (with a max line length of 256k).
4744 # Instead, let's just punt: use the minimum linelength reported by
4745 # all of the supported platforms: 8192 (on NT/2K/XP).
4746 lt_cv_sys_max_cmd_len=8192;
4747 ;;
4748
4749 amigaos*)
4750 # On AmigaOS with pdksh, this test takes hours, literally.
4751 # So we just punt and use a minimum line length of 8192.
4752 lt_cv_sys_max_cmd_len=8192;
4753 ;;
4754
4755 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4756 # This has been around since 386BSD, at least. Likely further.
4757 if test -x /sbin/sysctl; then
4758 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4759 elif test -x /usr/sbin/sysctl; then
4760 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4761 else
4762 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4763 fi
4764 # And add a safety zone
4765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4767 ;;
4768
4769 interix*)
4770 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4771 lt_cv_sys_max_cmd_len=196608
4772 ;;
4773
4774 osf*)
4775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4777 # nice to cause kernel panics so lets avoid the loop below.
4778 # First set a reasonable default.
4779 lt_cv_sys_max_cmd_len=16384
4780 #
4781 if test -x /sbin/sysconfig; then
4782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4784 esac
4785 fi
4786 ;;
4787 sco3.2v5*)
4788 lt_cv_sys_max_cmd_len=102400
4789 ;;
4790 sysv5* | sco5v6* | sysv4.2uw2*)
4791 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4792 if test -n "$kargmax"; then
4793 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4794 else
4795 lt_cv_sys_max_cmd_len=32768
4796 fi
d7040cdb
SE
4797 ;;
4798 *)
dabbade6
L
4799 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4800 if test -n $lt_cv_sys_max_cmd_len; then
4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4803 else
4804 # Make teststring a little bigger before we do anything with it.
4805 # a 1K string should be a reasonable start.
4806 for i in 1 2 3 4 5 6 7 8 ; do
4807 teststring=$teststring$teststring
4808 done
4809 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4810 # If test is not a shell built-in, we'll probably end up computing a
4811 # maximum length that is only half of the actual maximum length, but
4812 # we can't tell.
4813 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4814 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4815 test $i != 17 # 1/2 MB should be enough
4816 do
4817 i=`expr $i + 1`
4818 teststring=$teststring$teststring
4819 done
4820 # Only check the string length outside the loop.
4821 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4822 teststring=
4823 # Add a significant safety factor because C++ compilers can tack on
4824 # massive amounts of additional arguments before passing them to the
4825 # linker. It appears as though 1/2 is a usable value.
4826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4827 fi
d7040cdb
SE
4828 ;;
4829 esac
252b5132 4830
dabbade6 4831fi
252b5132 4832
dabbade6
L
4833if test -n $lt_cv_sys_max_cmd_len ; then
4834 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4835echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4836else
4837 echo "$as_me:$LINENO: result: none" >&5
4838echo "${ECHO_T}none" >&6
4839fi
4840max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4841
252b5132 4842
979273e3 4843
979273e3 4844
252b5132 4845
252b5132 4846
252b5132 4847
dabbade6
L
4848: ${CP="cp -f"}
4849: ${MV="mv -f"}
4850: ${RM="rm -f"}
252b5132 4851
dabbade6
L
4852echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4853echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4854# Try some XSI features
4855xsi_shell=no
4856( _lt_dummy="a/b/c"
4857 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4858 = c,a/b,, ) >/dev/null 2>&1 \
4859 && xsi_shell=yes
4860echo "$as_me:$LINENO: result: $xsi_shell" >&5
4861echo "${ECHO_T}$xsi_shell" >&6
252b5132 4862
252b5132 4863
dabbade6
L
4864echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4865echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4866lt_shell_append=no
4867( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4868 >/dev/null 2>&1 \
4869 && lt_shell_append=yes
4870echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4871echo "${ECHO_T}$lt_shell_append" >&6
252b5132 4872
ac48eca1 4873
dabbade6
L
4874if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4875 lt_unset=unset
4876else
4877 lt_unset=false
4878fi
979273e3
NN
4879
4880
4881
4882
ac48eca1 4883
dabbade6
L
4884# test EBCDIC or ASCII
4885case `echo X|tr X '\101'` in
4886 A) # ASCII based system
4887 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4888 lt_SP2NL='tr \040 \012'
4889 lt_NL2SP='tr \015\012 \040\040'
4890 ;;
4891 *) # EBCDIC based system
4892 lt_SP2NL='tr \100 \n'
4893 lt_NL2SP='tr \r\n \100\100'
4894 ;;
4895esac
9e9b66a9 4896
1ad12f97 4897
1ad12f97 4898
9e9b66a9 4899
1ad12f97 4900
a541e3ce 4901
9e9b66a9 4902
a2d91340
AC
4903
4904
dabbade6
L
4905echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4906echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4907if test "${lt_cv_ld_reload_flag+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 lt_cv_ld_reload_flag='-r'
4911fi
4912echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4913echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4914reload_flag=$lt_cv_ld_reload_flag
4915case $reload_flag in
4916"" | " "*) ;;
4917*) reload_flag=" $reload_flag" ;;
4918esac
4919reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920case $host_os in
4921 darwin*)
4922 if test "$GCC" = yes; then
4923 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4924 else
4925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4926 fi
4927 ;;
4928esac
9e9b66a9
AM
4929
4930
4931
252b5132 4932
252b5132 4933
252b5132 4934
252b5132 4935
252b5132 4936
d7040cdb
SE
4937
4938
dabbade6
L
4939echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4940echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4941if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb 4942 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4943else
dabbade6
L
4944 lt_cv_file_magic_cmd='$MAGIC_CMD'
4945lt_cv_file_magic_test_file=
4946lt_cv_deplibs_check_method='unknown'
4947# Need to set the preceding variable on all platforms that support
4948# interlibrary dependencies.
4949# 'none' -- dependencies not supported.
4950# `unknown' -- same as none, but documents that we really don't know.
4951# 'pass_all' -- all dependencies passed with no checks.
4952# 'test_compile' -- check by making test program.
4953# 'file_magic [[regex]]' -- check by looking for files in library path
4954# which responds to the $file_magic_cmd with a given extended regex.
4955# If you have `file' or equivalent on your system and you're not sure
4956# whether `pass_all' will *always* work, you probably want this one.
8ae85421 4957
dabbade6 4958case $host_os in
50e7d84b 4959aix[4-9]*)
dabbade6
L
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
979273e3 4962
dabbade6
L
4963beos*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
24443139 4966
dabbade6
L
4967bsdi[45]*)
4968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4969 lt_cv_file_magic_cmd='/usr/bin/file -L'
4970 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 4971 ;;
dabbade6
L
4972
4973cygwin*)
4974 # func_win32_libid is a shell function defined in ltmain.sh
4975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4976 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 4977 ;;
dabbade6
L
4978
4979mingw* | pw32*)
4980 # Base MSYS/MinGW do not provide the 'file' command needed by
4981 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4982 # unless we find 'file', for example because we are cross-compiling.
4983 if ( file / ) >/dev/null 2>&1; then
4984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4985 lt_cv_file_magic_cmd='func_win32_libid'
4986 else
4987 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4988 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
4989 fi
4990 ;;
dabbade6
L
4991
4992darwin* | rhapsody*)
4993 lt_cv_deplibs_check_method=pass_all
d7040cdb 4994 ;;
dabbade6
L
4995
4996freebsd* | dragonfly*)
4997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998 case $host_cpu in
4999 i*86 )
5000 # Not sure whether the presence of OpenBSD here was a mistake.
5001 # Let's accept both of them until this is cleared up.
5002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5003 lt_cv_file_magic_cmd=/usr/bin/file
5004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5005 ;;
5006 esac
5007 else
5008 lt_cv_deplibs_check_method=pass_all
5009 fi
d7040cdb 5010 ;;
dabbade6
L
5011
5012gnu*)
5013 lt_cv_deplibs_check_method=pass_all
d7040cdb 5014 ;;
dabbade6
L
5015
5016hpux10.20* | hpux11*)
5017 lt_cv_file_magic_cmd=/usr/bin/file
5018 case $host_cpu in
5019 ia64*)
5020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5022 ;;
5023 hppa*64*)
5024 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]'
5025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5026 ;;
5027 *)
5028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5030 ;;
5031 esac
d7040cdb 5032 ;;
24443139 5033
dabbade6
L
5034interix[3-9]*)
5035 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5037 ;;
24443139 5038
dabbade6
L
5039irix5* | irix6* | nonstopux*)
5040 case $LD in
5041 *-32|*"-32 ") libmagic=32-bit;;
5042 *-n32|*"-n32 ") libmagic=N32;;
5043 *-64|*"-64 ") libmagic=64-bit;;
5044 *) libmagic=never-match;;
5045 esac
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
8ae85421 5048
dabbade6
L
5049# This must be Linux ELF.
5050linux* | k*bsd*-gnu)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
24443139 5053
dabbade6
L
5054netbsd*)
5055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057 else
5058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5059 fi
d7040cdb 5060 ;;
24443139 5061
dabbade6
L
5062newos6*)
5063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5064 lt_cv_file_magic_cmd=/usr/bin/file
5065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5066 ;;
d7040cdb 5067
dabbade6
L
5068*nto* | *qnx*)
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
d7040cdb 5071
dabbade6
L
5072openbsd*)
5073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 5075 else
dabbade6 5076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 5077 fi
dabbade6 5078 ;;
24443139 5079
dabbade6
L
5080osf3* | osf4* | osf5*)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
24443139 5083
dabbade6
L
5084rdos*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
81172ff2 5087
dabbade6
L
5088solaris*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
81172ff2 5091
dabbade6
L
5092sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
252b5132 5095
dabbade6
L
5096sysv4 | sysv4.3*)
5097 case $host_vendor in
5098 motorola)
5099 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]'
5100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5101 ;;
5102 ncr)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105 sequent)
5106 lt_cv_file_magic_cmd='/bin/file'
5107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5108 ;;
5109 sni)
5110 lt_cv_file_magic_cmd='/bin/file'
5111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5112 lt_cv_file_magic_test_file=/lib/libc.so
5113 ;;
5114 siemens)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117 pc)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120 esac
5121 ;;
252b5132 5122
dabbade6
L
5123tpf*)
5124 lt_cv_deplibs_check_method=pass_all
5125 ;;
5126esac
979273e3 5127
dabbade6
L
5128fi
5129echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5130echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5131file_magic_cmd=$lt_cv_file_magic_cmd
5132deplibs_check_method=$lt_cv_deplibs_check_method
5133test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5134
979273e3 5135
979273e3 5136
dabbade6
L
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}ar; ac_word=$2
5149echo "$as_me:$LINENO: checking for $ac_word" >&5
5150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151if test "${ac_cv_prog_AR+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 if test -n "$AR"; then
5155 ac_cv_prog_AR="$AR" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_AR="${ac_tool_prefix}ar"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
252b5132 5167 fi
979273e3 5168done
dabbade6 5169done
979273e3 5170
dabbade6
L
5171fi
5172fi
5173AR=$ac_cv_prog_AR
5174if test -n "$AR"; then
5175 echo "$as_me:$LINENO: result: $AR" >&5
5176echo "${ECHO_T}$AR" >&6
5177else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
979273e3 5180fi
d7040cdb 5181
252b5132 5182fi
dabbade6
L
5183if test -z "$ac_cv_prog_AR"; then
5184 ac_ct_AR=$AR
5185 # Extract the first word of "ar", so it can be a program name with args.
5186set dummy ar; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 5191else
dabbade6
L
5192 if test -n "$ac_ct_AR"; then
5193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_AR="ar"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207done
5208
5209 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5210fi
5211fi
5212ac_ct_AR=$ac_cv_prog_ac_ct_AR
5213if test -n "$ac_ct_AR"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5215echo "${ECHO_T}$ac_ct_AR" >&6
5216else
5217 echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
252b5132
RH
5219fi
5220
dabbade6
L
5221 AR=$ac_ct_AR
5222else
5223 AR="$ac_cv_prog_AR"
5224fi
252b5132 5225
dabbade6
L
5226test -z "$AR" && AR=ar
5227test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 5228
979273e3 5229
979273e3 5230
979273e3 5231
252b5132 5232
979273e3 5233
979273e3 5234
252b5132 5235
979273e3 5236
979273e3 5237
979273e3 5238
dabbade6
L
5239if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5241set dummy ${ac_tool_prefix}strip; ac_word=$2
5242echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244if test "${ac_cv_prog_STRIP+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247 if test -n "$STRIP"; then
5248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262done
979273e3 5263
dabbade6
L
5264fi
5265fi
5266STRIP=$ac_cv_prog_STRIP
5267if test -n "$STRIP"; then
5268 echo "$as_me:$LINENO: result: $STRIP" >&5
5269echo "${ECHO_T}$STRIP" >&6
5270else
5271 echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273fi
979273e3 5274
dabbade6
L
5275fi
5276if test -z "$ac_cv_prog_STRIP"; then
5277 ac_ct_STRIP=$STRIP
5278 # Extract the first word of "strip", so it can be a program name with args.
5279set dummy strip; ac_word=$2
5280echo "$as_me:$LINENO: checking for $ac_word" >&5
5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 if test -n "$ac_ct_STRIP"; then
5286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_ac_ct_STRIP="strip"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300done
979273e3 5301
dabbade6
L
5302 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5303fi
5304fi
5305ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5306if test -n "$ac_ct_STRIP"; then
5307 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5308echo "${ECHO_T}$ac_ct_STRIP" >&6
5309else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312fi
979273e3 5313
dabbade6
L
5314 STRIP=$ac_ct_STRIP
5315else
5316 STRIP="$ac_cv_prog_STRIP"
5317fi
979273e3 5318
dabbade6 5319test -z "$STRIP" && STRIP=:
979273e3 5320
d7040cdb 5321
979273e3 5322
d7040cdb 5323
979273e3 5324
979273e3 5325
dabbade6
L
5326if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5328set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5329echo "$as_me:$LINENO: checking for $ac_word" >&5
5330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5331if test "${ac_cv_prog_RANLIB+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 5333else
dabbade6
L
5334 if test -n "$RANLIB"; then
5335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348done
5349done
979273e3 5350
979273e3 5351fi
979273e3 5352fi
dabbade6
L
5353RANLIB=$ac_cv_prog_RANLIB
5354if test -n "$RANLIB"; then
5355 echo "$as_me:$LINENO: result: $RANLIB" >&5
5356echo "${ECHO_T}$RANLIB" >&6
5357else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360fi
d7040cdb 5361
d7040cdb 5362fi
dabbade6
L
5363if test -z "$ac_cv_prog_RANLIB"; then
5364 ac_ct_RANLIB=$RANLIB
5365 # Extract the first word of "ranlib", so it can be a program name with args.
5366set dummy ranlib; ac_word=$2
5367echo "$as_me:$LINENO: checking for $ac_word" >&5
5368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
979273e3
NN
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
dabbade6
L
5372 if test -n "$ac_ct_RANLIB"; then
5373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
d7040cdb 5377do
dabbade6
L
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_ac_ct_RANLIB="ranlib"
5383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
979273e3 5385 fi
dabbade6
L
5386done
5387done
5388
5389 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
979273e3 5390fi
dabbade6
L
5391fi
5392ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5393if test -n "$ac_ct_RANLIB"; then
5394 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5395echo "${ECHO_T}$ac_ct_RANLIB" >&6
979273e3 5396else
dabbade6
L
5397 echo "$as_me:$LINENO: result: no" >&5
5398echo "${ECHO_T}no" >&6
d7040cdb 5399fi
d7040cdb 5400
dabbade6 5401 RANLIB=$ac_ct_RANLIB
d7040cdb 5402else
dabbade6 5403 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5404fi
979273e3 5405
dabbade6 5406test -z "$RANLIB" && RANLIB=:
979273e3 5407
252b5132 5408
252b5132 5409
d7040cdb 5410
d7040cdb 5411
d7040cdb 5412
dabbade6
L
5413# Determine commands to create old-style static archives.
5414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415old_postinstall_cmds='chmod 644 $oldlib'
5416old_postuninstall_cmds=
d7040cdb 5417
dabbade6
L
5418if test -n "$RANLIB"; then
5419 case $host_os in
5420 openbsd*)
5421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5422 ;;
5423 *)
5424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5425 ;;
5426 esac
5427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
5428fi
5429
d7040cdb
SE
5430
5431
d7040cdb 5432
d7040cdb 5433
252b5132 5434
d7040cdb 5435
d7040cdb 5436
d7040cdb
SE
5437
5438
5439
d7040cdb 5440
d7040cdb 5441
d7040cdb 5442
252b5132 5443
d7040cdb
SE
5444
5445
5446
d7040cdb 5447
d7040cdb
SE
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
dabbade6
L
5463# If no C compiler was specified, use CC.
5464LTCC=${LTCC-"$CC"}
d7040cdb 5465
dabbade6
L
5466# If no C compiler flags were specified, use CFLAGS.
5467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5468
dabbade6
L
5469# Allow CC to be a program name with arguments.
5470compiler=$CC
d7040cdb
SE
5471
5472
dabbade6
L
5473# Check for command to grab the raw symbol name followed by C symbol from nm.
5474echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5475echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5476if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
d7040cdb 5479
dabbade6
L
5480# These are sane defaults that work on at least a few old systems.
5481# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5482
dabbade6
L
5483# Character class describing NM global symbol codes.
5484symcode='[BCDEGRST]'
d7040cdb 5485
dabbade6
L
5486# Regexp to match symbols that can be accessed directly from C.
5487sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5488
dabbade6
L
5489# Define system-specific variables.
5490case $host_os in
5491aix*)
5492 symcode='[BCDT]'
5493 ;;
5494cygwin* | mingw* | pw32*)
5495 symcode='[ABCDGISTW]'
5496 ;;
5497hpux*)
5498 if test "$host_cpu" = ia64; then
5499 symcode='[ABCDEGRST]'
5500 fi
5501 ;;
5502irix* | nonstopux*)
5503 symcode='[BCDEGRST]'
5504 ;;
5505osf*)
5506 symcode='[BCDEGQRST]'
5507 ;;
5508solaris*)
5509 symcode='[BDRT]'
5510 ;;
5511sco3.2v5*)
5512 symcode='[DT]'
5513 ;;
5514sysv4.2uw2*)
5515 symcode='[DT]'
5516 ;;
5517sysv5* | sco5v6* | unixware* | OpenUNIX*)
5518 symcode='[ABDT]'
5519 ;;
5520sysv4)
5521 symcode='[DFNSTU]'
5522 ;;
5523esac
5524
5525# If we're using GNU nm, then use its standard symbol codes.
5526case `$NM -V 2>&1` in
5527*GNU* | *'with BFD'*)
5528 symcode='[ABCDGIRSTW]' ;;
5529esac
d7040cdb 5530
dabbade6
L
5531# Transform an extracted symbol line into a proper C declaration.
5532# Some systems (esp. on ia64) link data and code symbols differently,
5533# so use this general approach.
5534lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5535
dabbade6
L
5536# Transform an extracted symbol line into symbol name and symbol address
5537lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5538
dabbade6
L
5539# Handle CRLF in mingw tool chain
5540opt_cr=
5541case $build_os in
5542mingw*)
5543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5544 ;;
5545esac
5546
5547# Try without a prefix underscore, then with it.
5548for ac_symprfx in "" "_"; do
d7040cdb 5549
dabbade6
L
5550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5551 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5552
dabbade6
L
5553 # Write the raw and C identifiers.
5554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5555 # Fake it for dumpbin and say T for any non-static function
5556 # and D for any global variable.
5557 # Also find C++ and __fastcall symbols from MSVC++,
5558 # which start with @ or ?.
5559 lt_cv_sys_global_symbol_pipe="$AWK '"\
5560" {last_section=section; section=\$ 3};"\
5561" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5562" \$ 0!~/External *\|/{next};"\
5563" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5564" {if(hide[section]) next};"\
5565" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5566" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5567" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5568" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5569" ' prfx=^$ac_symprfx"
5570 else
5571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5572 fi
d7040cdb 5573
dabbade6
L
5574 # Check to see that the pipe works correctly.
5575 pipe_works=no
d7040cdb 5576
dabbade6
L
5577 rm -f conftest*
5578 cat > conftest.$ac_ext <<_LT_EOF
5579#ifdef __cplusplus
5580extern "C" {
5581#endif
5582char nm_test_var;
5583void nm_test_func(void);
5584void nm_test_func(void){}
5585#ifdef __cplusplus
5586}
5587#endif
5588int main(){nm_test_var='a';nm_test_func();return(0);}
5589_LT_EOF
d7040cdb 5590
dabbade6
L
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; then
5596 # Now try to grab the symbols.
5597 nlist=conftest.nm
5598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && test -s "$nlist"; then
5603 # Try sorting and uniquifying the output.
5604 if sort "$nlist" | uniq > "$nlist"T; then
5605 mv -f "$nlist"T "$nlist"
5606 else
5607 rm -f "$nlist"T
5608 fi
d7040cdb 5609
dabbade6
L
5610 # Make sure that we snagged all the symbols we need.
5611 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5612 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5613 cat <<_LT_EOF > conftest.$ac_ext
5614#ifdef __cplusplus
5615extern "C" {
5616#endif
d7040cdb 5617
dabbade6
L
5618_LT_EOF
5619 # Now generate the symbol file.
5620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5621
dabbade6 5622 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5623
dabbade6
L
5624/* The mapping between symbol names and symbols. */
5625const struct {
5626 const char *name;
5627 void *address;
5628}
5629lt__PROGRAM__LTX_preloaded_symbols[] =
5630{
5631 { "@PROGRAM@", (void *) 0 },
5632_LT_EOF
5633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5634 cat <<\_LT_EOF >> conftest.$ac_ext
5635 {0, (void *) 0}
5636};
d7040cdb 5637
dabbade6
L
5638/* This works around a problem in FreeBSD linker */
5639#ifdef FREEBSD_WORKAROUND
5640static const void *lt_preloaded_setup() {
5641 return lt__PROGRAM__LTX_preloaded_symbols;
5642}
5643#endif
d7040cdb 5644
dabbade6
L
5645#ifdef __cplusplus
5646}
5647#endif
5648_LT_EOF
5649 # Now try linking the two files.
5650 mv conftest.$ac_objext conftstm.$ac_objext
5651 lt_save_LIBS="$LIBS"
5652 lt_save_CFLAGS="$CFLAGS"
5653 LIBS="conftstm.$ac_objext"
5654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5660 pipe_works=yes
5661 fi
5662 LIBS="$lt_save_LIBS"
5663 CFLAGS="$lt_save_CFLAGS"
5664 else
5665 echo "cannot find nm_test_func in $nlist" >&5
5666 fi
5667 else
5668 echo "cannot find nm_test_var in $nlist" >&5
5669 fi
5670 else
5671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5672 fi
5673 else
5674 echo "$progname: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 fi
5677 rm -f conftest* conftst*
d7040cdb 5678
dabbade6
L
5679 # Do not use the global_symbol_pipe unless it works.
5680 if test "$pipe_works" = yes; then
5681 break
5682 else
5683 lt_cv_sys_global_symbol_pipe=
5684 fi
5685done
d7040cdb 5686
d7040cdb
SE
5687fi
5688
dabbade6
L
5689if test -z "$lt_cv_sys_global_symbol_pipe"; then
5690 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 5691fi
dabbade6
L
5692if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5693 echo "$as_me:$LINENO: result: failed" >&5
5694echo "${ECHO_T}failed" >&6
5695else
5696 echo "$as_me:$LINENO: result: ok" >&5
5697echo "${ECHO_T}ok" >&6
d7040cdb 5698fi
d7040cdb
SE
5699
5700
d7040cdb
SE
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
dabbade6
L
5716# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5717if test "${enable_libtool_lock+set}" = set; then
5718 enableval="$enable_libtool_lock"
d7040cdb 5719
dabbade6
L
5720fi;
5721test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5722
dabbade6
L
5723# Some flags need to be propagated to the compiler or linker for good
5724# libtool support.
5725case $host in
5726ia64-*-hpux*)
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case `/usr/bin/file conftest.$ac_objext` in
5735 *ELF-32*)
5736 HPUX_IA64_MODE="32"
5737 ;;
5738 *ELF-64*)
5739 HPUX_IA64_MODE="64"
5740 ;;
5741 esac
d7040cdb 5742 fi
dabbade6 5743 rm -rf conftest*
d7040cdb 5744 ;;
dabbade6
L
5745*-*-irix6*)
5746 # Find out which ABI we are using.
6194aaab 5747 echo '#line 5747 "configure"' > conftest.$ac_ext
dabbade6
L
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; then
5753 if test "$lt_cv_prog_gnu_ld" = yes; then
5754 case `/usr/bin/file conftest.$ac_objext` in
5755 *32-bit*)
5756 LD="${LD-ld} -melf32bsmip"
5757 ;;
5758 *N32*)
5759 LD="${LD-ld} -melf32bmipn32"
5760 ;;
5761 *64-bit*)
5762 LD="${LD-ld} -melf64bmip"
5763 ;;
5764 esac
5765 else
5766 case `/usr/bin/file conftest.$ac_objext` in
5767 *32-bit*)
5768 LD="${LD-ld} -32"
5769 ;;
5770 *N32*)
5771 LD="${LD-ld} -n32"
5772 ;;
5773 *64-bit*)
5774 LD="${LD-ld} -64"
5775 ;;
5776 esac
5777 fi
5778 fi
5779 rm -rf conftest*
d7040cdb 5780 ;;
d7040cdb 5781
dabbade6
L
5782x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5783s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5784 # Find out which ABI we are using.
5785 echo 'int i;' > conftest.$ac_ext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then
5791 case `/usr/bin/file conftest.o` in
5792 *32-bit*)
5793 case $host in
5794 x86_64-*kfreebsd*-gnu)
5795 LD="${LD-ld} -m elf_i386_fbsd"
5796 ;;
5797 x86_64-*linux*)
5798 LD="${LD-ld} -m elf_i386"
5799 ;;
5800 ppc64-*linux*|powerpc64-*linux*)
5801 LD="${LD-ld} -m elf32ppclinux"
5802 ;;
5803 s390x-*linux*)
5804 LD="${LD-ld} -m elf_s390"
5805 ;;
5806 sparc64-*linux*)
5807 LD="${LD-ld} -m elf32_sparc"
5808 ;;
d7040cdb 5809 esac
dabbade6
L
5810 ;;
5811 *64-bit*)
5812 case $host in
5813 x86_64-*kfreebsd*-gnu)
5814 LD="${LD-ld} -m elf_x86_64_fbsd"
5815 ;;
5816 x86_64-*linux*)
5817 LD="${LD-ld} -m elf_x86_64"
5818 ;;
5819 ppc*-*linux*|powerpc*-*linux*)
5820 LD="${LD-ld} -m elf64ppc"
5821 ;;
5822 s390*-*linux*|s390*-*tpf*)
5823 LD="${LD-ld} -m elf64_s390"
5824 ;;
5825 sparc*-*linux*)
5826 LD="${LD-ld} -m elf64_sparc"
5827 ;;
5828 esac
5829 ;;
5830 esac
5831 fi
5832 rm -rf conftest*
d7040cdb 5833 ;;
d7040cdb 5834
dabbade6
L
5835*-*-sco3.2v5*)
5836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5837 SAVE_CFLAGS="$CFLAGS"
5838 CFLAGS="$CFLAGS -belf"
5839 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5840echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5841if test "${lt_cv_cc_needs_belf+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5843else
dabbade6
L
5844 ac_ext=c
5845ac_cpp='$CPP $CPPFLAGS'
5846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5849
dabbade6
L
5850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
d7040cdb 5856
dabbade6
L
5857int
5858main ()
5859{
d7040cdb 5860
dabbade6
L
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext conftest$ac_exeext
5866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867 (eval $ac_link) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 lt_cv_cc_needs_belf=yes
5888else
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5891
dabbade6
L
5892lt_cv_cc_needs_belf=no
5893fi
5894rm -f conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5896 ac_ext=c
5897ac_cpp='$CPP $CPPFLAGS'
5898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5901
d7040cdb 5902fi
dabbade6
L
5903echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5904echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5905 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5906 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5907 CFLAGS="$SAVE_CFLAGS"
d7040cdb 5908 fi
dabbade6
L
5909 ;;
5910sparc*-*solaris*)
5911 # Find out which ABI we are using.
5912 echo 'int i;' > conftest.$ac_ext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; then
5918 case `/usr/bin/file conftest.o` in
5919 *64-bit*)
5920 case $lt_cv_prog_gnu_ld in
5921 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5922 *) LD="${LD-ld} -64" ;;
5923 esac
5924 ;;
5925 esac
d7040cdb 5926 fi
dabbade6 5927 rm -rf conftest*
d7040cdb
SE
5928 ;;
5929esac
5930
dabbade6 5931need_locks="$enable_libtool_lock"
d7040cdb 5932
d7040cdb
SE
5933ac_ext=c
5934ac_cpp='$CPP $CPPFLAGS'
5935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_c_compiler_gnu
dabbade6
L
5938echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5939echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5940# On Suns, sometimes $CPP names a directory.
5941if test -n "$CPP" && test -d "$CPP"; then
5942 CPP=
5943fi
5944if test -z "$CPP"; then
5945 if test "${ac_cv_prog_CPP+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948 # Double quotes because CPP needs to be expanded
5949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5950 do
5951 ac_preproc_ok=false
5952for ac_c_preproc_warn_flag in '' yes
5953do
5954 # Use a header file that comes with gcc, so configuring glibc
5955 # with a fresh cross-compiler works.
5956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5957 # <limits.h> exists even on freestanding compilers.
5958 # On the NeXT, cc -E runs the code through the compiler's parser,
5959 # not just through cpp. "Syntax error" is here to catch this case.
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966#ifdef __STDC__
5967# include <limits.h>
5968#else
5969# include <assert.h>
5970#endif
5971 Syntax error
5972_ACEOF
5973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } >/dev/null; then
5981 if test -s conftest.err; then
5982 ac_cpp_err=$ac_c_preproc_warn_flag
5983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5984 else
5985 ac_cpp_err=
5986 fi
5987else
5988 ac_cpp_err=yes
5989fi
5990if test -z "$ac_cpp_err"; then
5991 :
5992else
5993 echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5995
dabbade6
L
5996 # Broken: fails on valid input.
5997continue
5998fi
5999rm -f conftest.err conftest.$ac_ext
d7040cdb 6000
dabbade6
L
6001 # OK, works on sane cases. Now check whether non-existent headers
6002 # can be detected and how.
6003 cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h. */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h. */
6009#include <ac_nonexistent.h>
6010_ACEOF
6011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null; then
6019 if test -s conftest.err; then
6020 ac_cpp_err=$ac_c_preproc_warn_flag
6021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022 else
6023 ac_cpp_err=
6024 fi
6025else
6026 ac_cpp_err=yes
6027fi
6028if test -z "$ac_cpp_err"; then
6029 # Broken: success on invalid input.
6030continue
6031else
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6034
dabbade6
L
6035 # Passes both tests.
6036ac_preproc_ok=:
6037break
6038fi
6039rm -f conftest.err conftest.$ac_ext
d7040cdb 6040
dabbade6
L
6041done
6042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6043rm -f conftest.err conftest.$ac_ext
6044if $ac_preproc_ok; then
6045 break
6046fi
d7040cdb 6047
dabbade6
L
6048 done
6049 ac_cv_prog_CPP=$CPP
d7040cdb 6050
dabbade6
L
6051fi
6052 CPP=$ac_cv_prog_CPP
6053else
6054 ac_cv_prog_CPP=$CPP
6055fi
6056echo "$as_me:$LINENO: result: $CPP" >&5
6057echo "${ECHO_T}$CPP" >&6
6058ac_preproc_ok=false
6059for ac_c_preproc_warn_flag in '' yes
6060do
6061 # Use a header file that comes with gcc, so configuring glibc
6062 # with a fresh cross-compiler works.
6063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064 # <limits.h> exists even on freestanding compilers.
6065 # On the NeXT, cc -E runs the code through the compiler's parser,
6066 # not just through cpp. "Syntax error" is here to catch this case.
6067 cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073#ifdef __STDC__
6074# include <limits.h>
6075#else
6076# include <assert.h>
6077#endif
6078 Syntax error
6079_ACEOF
6080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null; then
6088 if test -s conftest.err; then
6089 ac_cpp_err=$ac_c_preproc_warn_flag
6090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6091 else
6092 ac_cpp_err=
6093 fi
6094else
6095 ac_cpp_err=yes
6096fi
6097if test -z "$ac_cpp_err"; then
6098 :
6099else
6100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6102
dabbade6
L
6103 # Broken: fails on valid input.
6104continue
6105fi
6106rm -f conftest.err conftest.$ac_ext
d7040cdb 6107
dabbade6
L
6108 # OK, works on sane cases. Now check whether non-existent headers
6109 # can be detected and how.
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
6116#include <ac_nonexistent.h>
6117_ACEOF
6118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129 else
6130 ac_cpp_err=
6131 fi
6132else
6133 ac_cpp_err=yes
6134fi
6135if test -z "$ac_cpp_err"; then
6136 # Broken: success on invalid input.
6137continue
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6141
dabbade6
L
6142 # Passes both tests.
6143ac_preproc_ok=:
6144break
6145fi
6146rm -f conftest.err conftest.$ac_ext
d7040cdb 6147
dabbade6
L
6148done
6149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6150rm -f conftest.err conftest.$ac_ext
6151if $ac_preproc_ok; then
6152 :
6153else
6154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6155See \`config.log' for more details." >&5
6156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6157See \`config.log' for more details." >&2;}
6158 { (exit 1); exit 1; }; }
6159fi
d7040cdb 6160
dabbade6
L
6161ac_ext=c
6162ac_cpp='$CPP $CPPFLAGS'
6163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6166
d7040cdb 6167
dabbade6
L
6168echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6169echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6170if test "${ac_cv_header_stdc+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173 cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179#include <stdlib.h>
6180#include <stdarg.h>
6181#include <string.h>
6182#include <float.h>
d7040cdb 6183
dabbade6
L
6184int
6185main ()
6186{
d7040cdb 6187
dabbade6
L
6188 ;
6189 return 0;
6190}
6191_ACEOF
6192rm -f conftest.$ac_objext
6193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -z "$ac_c_werror_flag"
6202 || test ! -s conftest.err'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; } &&
6208 { ac_try='test -s conftest.$ac_objext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_header_stdc=yes
d7040cdb 6215else
dabbade6
L
6216 echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6218
dabbade6 6219ac_cv_header_stdc=no
d7040cdb 6220fi
dabbade6 6221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6222
dabbade6
L
6223if test $ac_cv_header_stdc = yes; then
6224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6225 cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231#include <string.h>
6232
6233_ACEOF
6234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235 $EGREP "memchr" >/dev/null 2>&1; then
6236 :
d7040cdb 6237else
dabbade6 6238 ac_cv_header_stdc=no
d7040cdb 6239fi
dabbade6 6240rm -f conftest*
d7040cdb
SE
6241
6242fi
6243
dabbade6
L
6244if test $ac_cv_header_stdc = yes; then
6245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6246 cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */
6252#include <stdlib.h>
d7040cdb 6253
dabbade6
L
6254_ACEOF
6255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 $EGREP "free" >/dev/null 2>&1; then
6257 :
6258else
6259 ac_cv_header_stdc=no
6260fi
6261rm -f conftest*
d7040cdb 6262
dabbade6 6263fi
d7040cdb 6264
dabbade6
L
6265if test $ac_cv_header_stdc = yes; then
6266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6267 if test "$cross_compiling" = yes; then
6268 :
6269else
6270 cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276#include <ctype.h>
6277#if ((' ' & 0x0FF) == 0x020)
6278# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6279# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6280#else
6281# define ISLOWER(c) \
6282 (('a' <= (c) && (c) <= 'i') \
6283 || ('j' <= (c) && (c) <= 'r') \
6284 || ('s' <= (c) && (c) <= 'z'))
6285# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6286#endif
d7040cdb 6287
dabbade6
L
6288#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6289int
6290main ()
6291{
6292 int i;
6293 for (i = 0; i < 256; i++)
6294 if (XOR (islower (i), ISLOWER (i))
6295 || toupper (i) != TOUPPER (i))
6296 exit(2);
6297 exit (0);
6298}
6299_ACEOF
6300rm -f conftest$ac_exeext
6301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 :
6312else
6313 echo "$as_me: program exited with status $ac_status" >&5
6314echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6316
dabbade6
L
6317( exit $ac_status )
6318ac_cv_header_stdc=no
6319fi
6320rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6321fi
6322fi
6323fi
6324echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6325echo "${ECHO_T}$ac_cv_header_stdc" >&6
6326if test $ac_cv_header_stdc = yes; then
d7040cdb 6327
dabbade6
L
6328cat >>confdefs.h <<\_ACEOF
6329#define STDC_HEADERS 1
6330_ACEOF
d7040cdb 6331
dabbade6 6332fi
d7040cdb 6333
dabbade6 6334# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6335
d7040cdb 6336
d7040cdb 6337
d7040cdb 6338
d7040cdb 6339
d7040cdb 6340
d7040cdb 6341
d7040cdb 6342
d7040cdb 6343
dabbade6
L
6344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345 inttypes.h stdint.h unistd.h
6346do
6347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348echo "$as_me:$LINENO: checking for $ac_header" >&5
6349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353 cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h. */
6359$ac_includes_default
d7040cdb 6360
dabbade6
L
6361#include <$ac_header>
6362_ACEOF
6363rm -f conftest.$ac_objext
6364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try='test -s conftest.$ac_objext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 eval "$as_ac_Header=yes"
6386else
6387 echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6389
dabbade6
L
6390eval "$as_ac_Header=no"
6391fi
6392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399_ACEOF
d7040cdb 6400
dabbade6 6401fi
d7040cdb 6402
dabbade6 6403done
d7040cdb 6404
d7040cdb 6405
d7040cdb 6406
dabbade6
L
6407for ac_header in dlfcn.h
6408do
6409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410echo "$as_me:$LINENO: checking for $ac_header" >&5
6411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415 cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h. */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h. */
6421$ac_includes_default
d7040cdb 6422
dabbade6
L
6423#include <$ac_header>
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 eval "$as_ac_Header=yes"
6448else
6449 echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6451
dabbade6
L
6452eval "$as_ac_Header=no"
6453fi
6454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6458if test `eval echo '${'$as_ac_Header'}'` = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6461_ACEOF
d7040cdb 6462
dabbade6 6463fi
d7040cdb 6464
dabbade6 6465done
d7040cdb 6466
d7040cdb 6467
d7040cdb 6468
dabbade6
L
6469# This can be used to rebuild libtool when needed
6470LIBTOOL_DEPS="$ltmain"
d7040cdb 6471
dabbade6
L
6472# Always use our own libtool.
6473LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6474
d7040cdb 6475
d7040cdb 6476
d7040cdb
SE
6477
6478
6479
6480
6481
6482
d7040cdb 6483
d7040cdb 6484
d7040cdb 6485
d7040cdb
SE
6486
6487
6488
6489
6490
6491
d7040cdb 6492
d7040cdb 6493
d7040cdb
SE
6494
6495
6496
6497
6498
dabbade6 6499test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6500
6501
d7040cdb 6502
d7040cdb 6503
d7040cdb
SE
6504
6505
6506
6507
6508
6509
dabbade6
L
6510
6511
6512
6513
6514if test -n "${ZSH_VERSION+set}" ; then
6515 setopt NO_GLOB_SUBST
6516fi
6517
6518echo "$as_me:$LINENO: checking for objdir" >&5
6519echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6520if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
dabbade6
L
6523 rm -f .libs 2>/dev/null
6524mkdir .libs 2>/dev/null
6525if test -d .libs; then
6526 lt_cv_objdir=.libs
6527else
6528 # MS-DOS does not allow filenames that begin with a dot.
6529 lt_cv_objdir=_libs
d7040cdb 6530fi
dabbade6
L
6531rmdir .libs 2>/dev/null
6532fi
6533echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6534echo "${ECHO_T}$lt_cv_objdir" >&6
6535objdir=$lt_cv_objdir
d7040cdb
SE
6536
6537
6538
6539
d7040cdb 6540
dabbade6
L
6541cat >>confdefs.h <<_ACEOF
6542#define LT_OBJDIR "$lt_cv_objdir/"
6543_ACEOF
d7040cdb
SE
6544
6545
6546
6547
6548
d7040cdb 6549
d7040cdb 6550
d7040cdb 6551
d7040cdb 6552
d7040cdb 6553
d7040cdb 6554
d7040cdb 6555
d7040cdb 6556
d7040cdb 6557
d7040cdb 6558
d7040cdb 6559
d7040cdb 6560
dabbade6
L
6561case $host_os in
6562aix3*)
6563 # AIX sometimes has problems with the GCC collect2 program. For some
6564 # reason, if we set the COLLECT_NAMES environment variable, the problems
6565 # vanish in a puff of smoke.
6566 if test "X${COLLECT_NAMES+set}" != Xset; then
6567 COLLECT_NAMES=
6568 export COLLECT_NAMES
6569 fi
6570 ;;
6571esac
d7040cdb 6572
dabbade6
L
6573# Sed substitution that helps us do robust quoting. It backslashifies
6574# metacharacters that are still active within double-quoted strings.
6575sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6576
dabbade6
L
6577# Same as above, but do not quote variable references.
6578double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6579
dabbade6
L
6580# Sed substitution to delay expansion of an escaped shell variable in a
6581# double_quote_subst'ed string.
6582delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6583
dabbade6
L
6584# Sed substitution to delay expansion of an escaped single quote.
6585delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6586
dabbade6
L
6587# Sed substitution to avoid accidental globbing in evaled expressions
6588no_glob_subst='s/\*/\\\*/g'
d7040cdb 6589
dabbade6
L
6590# Global variables:
6591ofile=libtool
6592can_build_shared=yes
d7040cdb 6593
dabbade6
L
6594# All known linkers require a `.a' archive for static linking (except MSVC,
6595# which needs '.lib').
6596libext=a
d7040cdb 6597
dabbade6 6598with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6599
dabbade6
L
6600old_CC="$CC"
6601old_CFLAGS="$CFLAGS"
d7040cdb 6602
dabbade6
L
6603# Set sane defaults for various variables
6604test -z "$CC" && CC=cc
6605test -z "$LTCC" && LTCC=$CC
6606test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6607test -z "$LD" && LD=ld
6608test -z "$ac_objext" && ac_objext=o
6609
6610for cc_temp in $compiler""; do
6611 case $cc_temp in
6612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6614 \-*) ;;
6615 *) break;;
6616 esac
6617done
6618cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6619
6620
6621# Only perform the check for file, if the check method requires it
6622test -z "$MAGIC_CMD" && MAGIC_CMD=file
6623case $deplibs_check_method in
6624file_magic*)
6625 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6626 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6627echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6628if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631 case $MAGIC_CMD in
6632[\\/*] | ?:[\\/]*)
6633 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6634 ;;
6635*)
6636 lt_save_MAGIC_CMD="$MAGIC_CMD"
6637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6639 for ac_dir in $ac_dummy; do
6640 IFS="$lt_save_ifs"
6641 test -z "$ac_dir" && ac_dir=.
6642 if test -f $ac_dir/${ac_tool_prefix}file; then
6643 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6644 if test -n "$file_magic_test_file"; then
6645 case $deplibs_check_method in
6646 "file_magic "*)
6647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6648 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6650 $EGREP "$file_magic_regex" > /dev/null; then
6651 :
d7040cdb 6652 else
dabbade6 6653 cat <<_LT_EOF 1>&2
d7040cdb 6654
dabbade6
L
6655*** Warning: the command libtool uses to detect shared libraries,
6656*** $file_magic_cmd, produces output that libtool cannot recognize.
6657*** The result is that libtool may fail to recognize shared libraries
6658*** as such. This will affect the creation of libtool libraries that
6659*** depend on shared libraries, but programs linked with such libtool
6660*** libraries will work regardless of this problem. Nevertheless, you
6661*** may want to report the problem to your system manager and/or to
6662*** bug-libtool@gnu.org
d7040cdb 6663
dabbade6
L
6664_LT_EOF
6665 fi ;;
6666 esac
d7040cdb 6667 fi
dabbade6 6668 break
d7040cdb 6669 fi
dabbade6
L
6670 done
6671 IFS="$lt_save_ifs"
6672 MAGIC_CMD="$lt_save_MAGIC_CMD"
6673 ;;
6674esac
6675fi
d7040cdb 6676
dabbade6
L
6677MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6678if test -n "$MAGIC_CMD"; then
6679 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6680echo "${ECHO_T}$MAGIC_CMD" >&6
6681else
6682 echo "$as_me:$LINENO: result: no" >&5
6683echo "${ECHO_T}no" >&6
6684fi
d7040cdb 6685
d7040cdb 6686
d7040cdb 6687
d7040cdb 6688
d7040cdb 6689
dabbade6
L
6690if test -z "$lt_cv_path_MAGIC_CMD"; then
6691 if test -n "$ac_tool_prefix"; then
6692 echo "$as_me:$LINENO: checking for file" >&5
6693echo $ECHO_N "checking for file... $ECHO_C" >&6
6694if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 case $MAGIC_CMD in
6698[\\/*] | ?:[\\/]*)
6699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6700 ;;
6701*)
6702 lt_save_MAGIC_CMD="$MAGIC_CMD"
6703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6705 for ac_dir in $ac_dummy; do
6706 IFS="$lt_save_ifs"
6707 test -z "$ac_dir" && ac_dir=.
6708 if test -f $ac_dir/file; then
6709 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6710 if test -n "$file_magic_test_file"; then
6711 case $deplibs_check_method in
6712 "file_magic "*)
6713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6716 $EGREP "$file_magic_regex" > /dev/null; then
6717 :
d7040cdb 6718 else
dabbade6 6719 cat <<_LT_EOF 1>&2
d7040cdb 6720
dabbade6
L
6721*** Warning: the command libtool uses to detect shared libraries,
6722*** $file_magic_cmd, produces output that libtool cannot recognize.
6723*** The result is that libtool may fail to recognize shared libraries
6724*** as such. This will affect the creation of libtool libraries that
6725*** depend on shared libraries, but programs linked with such libtool
6726*** libraries will work regardless of this problem. Nevertheless, you
6727*** may want to report the problem to your system manager and/or to
6728*** bug-libtool@gnu.org
d7040cdb 6729
dabbade6
L
6730_LT_EOF
6731 fi ;;
6732 esac
6733 fi
6734 break
6735 fi
6736 done
6737 IFS="$lt_save_ifs"
6738 MAGIC_CMD="$lt_save_MAGIC_CMD"
6739 ;;
6740esac
d7040cdb 6741fi
dabbade6
L
6742
6743MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6744if test -n "$MAGIC_CMD"; then
6745 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6746echo "${ECHO_T}$MAGIC_CMD" >&6
d7040cdb 6747else
dabbade6
L
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750fi
6751
d7040cdb 6752
dabbade6
L
6753 else
6754 MAGIC_CMD=:
6755 fi
d7040cdb 6756fi
d7040cdb 6757
dabbade6
L
6758 fi
6759 ;;
6760esac
d7040cdb 6761
dabbade6 6762# Use C for the default configuration in the libtool script
d7040cdb 6763
dabbade6
L
6764lt_save_CC="$CC"
6765ac_ext=c
6766ac_cpp='$CPP $CPPFLAGS'
6767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6770
d7040cdb 6771
dabbade6
L
6772# Source file extension for C test sources.
6773ac_ext=c
d7040cdb 6774
dabbade6
L
6775# Object file extension for compiled C test sources.
6776objext=o
6777objext=$objext
6778
6779# Code to be used in simple compile tests
6780lt_simple_compile_test_code="int some_variable = 0;"
6781
6782# Code to be used in simple link tests
6783lt_simple_link_test_code='int main(){return(0);}'
6784
6785
6786
6787
6788
6789
6790
6791# If no C compiler was specified, use CC.
6792LTCC=${LTCC-"$CC"}
6793
6794# If no C compiler flags were specified, use CFLAGS.
6795LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6796
6797# Allow CC to be a program name with arguments.
6798compiler=$CC
6799
6800# Save the default compiler, since it gets overwritten when the other
6801# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6802compiler_DEFAULT=$CC
6803
6804# save warnings/boilerplate of simple test code
6805ac_outfile=conftest.$ac_objext
6806echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6807eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6808_lt_compiler_boilerplate=`cat conftest.err`
6809$RM conftest*
6810
6811ac_outfile=conftest.$ac_objext
6812echo "$lt_simple_link_test_code" >conftest.$ac_ext
6813eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6814_lt_linker_boilerplate=`cat conftest.err`
6815$RM conftest*
6816
6817
6818## CAVEAT EMPTOR:
6819## There is no encapsulation within the following macros, do not change
6820## the running order or otherwise move them around unless you know exactly
6821## what you are doing...
6822if test -n "$compiler"; then
6823
6824lt_prog_compiler_no_builtin_flag=
6825
6826if test "$GCC" = yes; then
6827 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6828
6829 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6830echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6831if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834 lt_cv_prog_compiler_rtti_exceptions=no
6835 ac_outfile=conftest.$ac_objext
6836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6837 lt_compiler_flag="-fno-rtti -fno-exceptions"
6838 # Insert the option either (1) after the last *FLAGS variable, or
6839 # (2) before a word containing "conftest.", or (3) at the end.
6840 # Note that $ac_compile itself does not contain backslashes and begins
6841 # with a dollar sign (not a hyphen), so the echo should work correctly.
6842 # The option is referenced via a variable to avoid confusing sed.
6843 lt_compile=`echo "$ac_compile" | $SED \
6844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6846 -e 's:$: $lt_compiler_flag:'`
6194aaab 6847 (eval echo "\"\$as_me:6847: $lt_compile\"" >&5)
dabbade6
L
6848 (eval "$lt_compile" 2>conftest.err)
6849 ac_status=$?
6850 cat conftest.err >&5
6194aaab 6851 echo "$as_me:6851: \$? = $ac_status" >&5
dabbade6
L
6852 if (exit $ac_status) && test -s "$ac_outfile"; then
6853 # The compiler can only warn and ignore the option if not recognized
6854 # So say no if there are warnings other than the usual output.
6855 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6858 lt_cv_prog_compiler_rtti_exceptions=yes
6859 fi
6860 fi
6861 $RM conftest*
6862
6863fi
6864echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6865echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6866
6867if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6868 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6869else
6870 :
6871fi
6872
6873fi
6874
6875
6876
6877
6878
6879
6880 lt_prog_compiler_wl=
6881lt_prog_compiler_pic=
6882lt_prog_compiler_static=
6883
6884echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6885echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6886
6887 if test "$GCC" = yes; then
6888 lt_prog_compiler_wl='-Wl,'
6889 lt_prog_compiler_static='-static'
6890
6891 case $host_os in
6892 aix*)
6893 # All AIX code is PIC.
6894 if test "$host_cpu" = ia64; then
6895 # AIX 5 now supports IA64 processor
6896 lt_prog_compiler_static='-Bstatic'
6897 fi
6898 ;;
d7040cdb
SE
6899
6900 amigaos*)
6901 if test "$host_cpu" = m68k; then
dabbade6
L
6902 # FIXME: we need at least 68020 code to build shared libraries, but
6903 # adding the `-m68020' flag to GCC prevents building anything better,
6904 # like `-m68040'.
6905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 6906 fi
d7040cdb
SE
6907 ;;
6908
dabbade6
L
6909 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6910 # PIC is the default for these OSes.
d7040cdb
SE
6911 ;;
6912
dabbade6
L
6913 mingw* | cygwin* | pw32* | os2*)
6914 # This hack is so that the source file can tell whether it is being
6915 # built for inclusion in a dll (and should export symbols for example).
6916 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6917 # (--disable-auto-import) libraries
6918 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6919 ;;
6920
6921 darwin* | rhapsody*)
dabbade6
L
6922 # PIC is the default on this platform
6923 # Common symbols not allowed in MH_DYLIB files
6924 lt_prog_compiler_pic='-fno-common'
6925 ;;
6926
6927 hpux*)
6928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6929 # not for PA HP-UX.
6930 case $host_cpu in
6931 hppa*64*|ia64*)
6932 # +Z the default
d7040cdb 6933 ;;
dabbade6
L
6934 *)
6935 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
6936 ;;
6937 esac
dabbade6 6938 ;;
d7040cdb 6939
dabbade6
L
6940 interix[3-9]*)
6941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6942 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
6943 ;;
6944
dabbade6
L
6945 msdosdjgpp*)
6946 # Just because we use GCC doesn't mean we suddenly get shared libraries
6947 # on systems that don't support them.
6948 lt_prog_compiler_can_build_shared=no
6949 enable_shared=no
d7040cdb
SE
6950 ;;
6951
dabbade6
L
6952 *nto* | *qnx*)
6953 # QNX uses GNU C++, but need to define -shared option too, otherwise
6954 # it will coredump.
6955 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6956 ;;
6957
dabbade6
L
6958 sysv4*MP*)
6959 if test -d /usr/nec; then
6960 lt_prog_compiler_pic=-Kconform_pic
6961 fi
d7040cdb
SE
6962 ;;
6963
dabbade6
L
6964 *)
6965 lt_prog_compiler_pic='-fPIC'
d7040cdb 6966 ;;
dabbade6
L
6967 esac
6968 else
6969 # PORTME Check for flag to pass linker flags through the system compiler.
6970 case $host_os in
6971 aix*)
6972 lt_prog_compiler_wl='-Wl,'
6973 if test "$host_cpu" = ia64; then
6974 # AIX 5 now supports IA64 processor
6975 lt_prog_compiler_static='-Bstatic'
d7040cdb 6976 else
dabbade6 6977 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 6978 fi
dabbade6
L
6979 ;;
6980 darwin*)
6981 # PIC is the default on this platform
6982 # Common symbols not allowed in MH_DYLIB files
6983 case $cc_basename in
6984 xlc*)
6985 lt_prog_compiler_pic='-qnocommon'
6986 lt_prog_compiler_wl='-Wl,'
6987 ;;
6988 esac
6989 ;;
d7040cdb 6990
dabbade6
L
6991 mingw* | cygwin* | pw32* | os2*)
6992 # This hack is so that the source file can tell whether it is being
6993 # built for inclusion in a dll (and should export symbols for example).
6994 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6995 ;;
6996
dabbade6
L
6997 hpux9* | hpux10* | hpux11*)
6998 lt_prog_compiler_wl='-Wl,'
6999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7000 # not for PA HP-UX.
7001 case $host_cpu in
7002 hppa*64*|ia64*)
7003 # +Z the default
7004 ;;
7005 *)
7006 lt_prog_compiler_pic='+Z'
7007 ;;
7008 esac
7009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7010 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7011 ;;
7012
dabbade6
L
7013 irix5* | irix6* | nonstopux*)
7014 lt_prog_compiler_wl='-Wl,'
7015 # PIC (with -KPIC) is the default.
7016 lt_prog_compiler_static='-non_shared'
7017 ;;
d7040cdb 7018
dabbade6
L
7019 linux* | k*bsd*-gnu)
7020 case $cc_basename in
7021 icc* | ecc*)
7022 lt_prog_compiler_wl='-Wl,'
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-static'
7025 ;;
7026 pgcc* | pgf77* | pgf90* | pgf95*)
7027 # Portland Group compilers (*not* the Pentium gcc compiler,
7028 # which looks to be a dead project)
7029 lt_prog_compiler_wl='-Wl,'
7030 lt_prog_compiler_pic='-fpic'
7031 lt_prog_compiler_static='-Bstatic'
7032 ;;
7033 ccc*)
7034 lt_prog_compiler_wl='-Wl,'
7035 # All Alpha code is PIC.
7036 lt_prog_compiler_static='-non_shared'
7037 ;;
7038 *)
7039 case `$CC -V 2>&1 | sed 5q` in
7040 *Sun\ C*)
7041 # Sun C 5.9
7042 lt_prog_compiler_pic='-KPIC'
7043 lt_prog_compiler_static='-Bstatic'
7044 lt_prog_compiler_wl='-Wl,'
d7040cdb 7045 ;;
dabbade6
L
7046 *Sun\ F*)
7047 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7048 lt_prog_compiler_pic='-KPIC'
7049 lt_prog_compiler_static='-Bstatic'
7050 lt_prog_compiler_wl=''
d7040cdb
SE
7051 ;;
7052 esac
dabbade6
L
7053 ;;
7054 esac
d7040cdb
SE
7055 ;;
7056
dabbade6
L
7057 newsos6)
7058 lt_prog_compiler_pic='-KPIC'
7059 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7060 ;;
7061
dabbade6
L
7062 *nto* | *qnx*)
7063 # QNX uses GNU C++, but need to define -shared option too, otherwise
7064 # it will coredump.
7065 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7066 ;;
7067
dabbade6
L
7068 osf3* | osf4* | osf5*)
7069 lt_prog_compiler_wl='-Wl,'
7070 # All OSF/1 code is PIC.
7071 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7072 ;;
7073
dabbade6
L
7074 rdos*)
7075 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7076 ;;
7077
7078 solaris*)
dabbade6
L
7079 lt_prog_compiler_pic='-KPIC'
7080 lt_prog_compiler_static='-Bstatic'
7081 case $cc_basename in
7082 f77* | f90* | f95*)
7083 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 7084 *)
dabbade6 7085 lt_prog_compiler_wl='-Wl,';;
d7040cdb 7086 esac
d7040cdb
SE
7087 ;;
7088
7089 sunos4*)
dabbade6
L
7090 lt_prog_compiler_wl='-Qoption ld '
7091 lt_prog_compiler_pic='-PIC'
7092 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7093 ;;
7094
dabbade6
L
7095 sysv4 | sysv4.2uw2* | sysv4.3*)
7096 lt_prog_compiler_wl='-Wl,'
7097 lt_prog_compiler_pic='-KPIC'
7098 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7099 ;;
7100
7101 sysv4*MP*)
dabbade6
L
7102 if test -d /usr/nec ;then
7103 lt_prog_compiler_pic='-Kconform_pic'
7104 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7105 fi
7106 ;;
7107
dabbade6
L
7108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7109 lt_prog_compiler_wl='-Wl,'
7110 lt_prog_compiler_pic='-KPIC'
7111 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7112 ;;
7113
dabbade6
L
7114 unicos*)
7115 lt_prog_compiler_wl='-Wl,'
7116 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7117 ;;
7118
7119 uts4*)
dabbade6
L
7120 lt_prog_compiler_pic='-pic'
7121 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7122 ;;
7123
7124 *)
dabbade6 7125 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7126 ;;
7127 esac
d7040cdb
SE
7128 fi
7129
dabbade6
L
7130case $host_os in
7131 # For platforms which do not support PIC, -DPIC is meaningless:
7132 *djgpp*)
7133 lt_prog_compiler_pic=
7134 ;;
7135 *)
7136 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7137 ;;
7138esac
7139echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7140echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7141
7142
7143
7144
7145
7146
7147#
dabbade6 7148# Check to make sure the PIC flag actually works.
d7040cdb 7149#
dabbade6
L
7150if test -n "$lt_prog_compiler_pic"; then
7151 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7153if test "${lt_prog_compiler_pic_works+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 lt_prog_compiler_pic_works=no
7157 ac_outfile=conftest.$ac_objext
7158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7159 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7160 # Insert the option either (1) after the last *FLAGS variable, or
7161 # (2) before a word containing "conftest.", or (3) at the end.
7162 # Note that $ac_compile itself does not contain backslashes and begins
7163 # with a dollar sign (not a hyphen), so the echo should work correctly.
7164 # The option is referenced via a variable to avoid confusing sed.
7165 lt_compile=`echo "$ac_compile" | $SED \
7166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7168 -e 's:$: $lt_compiler_flag:'`
6194aaab 7169 (eval echo "\"\$as_me:7169: $lt_compile\"" >&5)
dabbade6
L
7170 (eval "$lt_compile" 2>conftest.err)
7171 ac_status=$?
7172 cat conftest.err >&5
6194aaab 7173 echo "$as_me:7173: \$? = $ac_status" >&5
dabbade6
L
7174 if (exit $ac_status) && test -s "$ac_outfile"; then
7175 # The compiler can only warn and ignore the option if not recognized
7176 # So say no if there are warnings other than the usual output.
7177 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7180 lt_prog_compiler_pic_works=yes
7181 fi
7182 fi
7183 $RM conftest*
d7040cdb 7184
dabbade6
L
7185fi
7186echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7187echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7188
dabbade6
L
7189if test x"$lt_prog_compiler_pic_works" = xyes; then
7190 case $lt_prog_compiler_pic in
7191 "" | " "*) ;;
7192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7193 esac
7194else
7195 lt_prog_compiler_pic=
7196 lt_prog_compiler_can_build_shared=no
7197fi
d7040cdb 7198
dabbade6 7199fi
d7040cdb
SE
7200
7201
7202
7203
7204
7205
dabbade6
L
7206#
7207# Check to make sure the static flag actually works.
7208#
7209wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7210echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7211echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7212if test "${lt_prog_compiler_static_works+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215 lt_prog_compiler_static_works=no
7216 save_LDFLAGS="$LDFLAGS"
7217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7220 # The linker can only warn and ignore the option if not recognized
7221 # So say no if there are warnings
7222 if test -s conftest.err; then
7223 # Append any errors to the config.log.
7224 cat conftest.err 1>&5
7225 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7227 if diff conftest.exp conftest.er2 >/dev/null; then
7228 lt_prog_compiler_static_works=yes
7229 fi
7230 else
7231 lt_prog_compiler_static_works=yes
7232 fi
7233 fi
7234 $RM conftest*
7235 LDFLAGS="$save_LDFLAGS"
d7040cdb 7236
dabbade6
L
7237fi
7238echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7239echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7240
dabbade6
L
7241if test x"$lt_prog_compiler_static_works" = xyes; then
7242 :
7243else
7244 lt_prog_compiler_static=
7245fi
d7040cdb
SE
7246
7247
7248
7249
7250
7251
7252
dabbade6
L
7253 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7254echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7255if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258 lt_cv_prog_compiler_c_o=no
7259 $RM -r conftest 2>/dev/null
7260 mkdir conftest
7261 cd conftest
7262 mkdir out
7263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7264
dabbade6
L
7265 lt_compiler_flag="-o out/conftest2.$ac_objext"
7266 # Insert the option either (1) after the last *FLAGS variable, or
7267 # (2) before a word containing "conftest.", or (3) at the end.
7268 # Note that $ac_compile itself does not contain backslashes and begins
7269 # with a dollar sign (not a hyphen), so the echo should work correctly.
7270 lt_compile=`echo "$ac_compile" | $SED \
7271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7273 -e 's:$: $lt_compiler_flag:'`
6194aaab 7274 (eval echo "\"\$as_me:7274: $lt_compile\"" >&5)
dabbade6
L
7275 (eval "$lt_compile" 2>out/conftest.err)
7276 ac_status=$?
7277 cat out/conftest.err >&5
6194aaab 7278 echo "$as_me:7278: \$? = $ac_status" >&5
dabbade6
L
7279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7280 then
7281 # The compiler can only warn and ignore the option if not recognized
7282 # So say no if there are warnings
7283 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7286 lt_cv_prog_compiler_c_o=yes
7287 fi
7288 fi
7289 chmod u+w . 2>&5
7290 $RM conftest*
7291 # SGI C++ compiler will create directory out/ii_files/ for
7292 # template instantiation
7293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7294 $RM out/* && rmdir out
7295 cd ..
7296 $RM -r conftest
7297 $RM conftest*
d7040cdb 7298
dabbade6
L
7299fi
7300echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7301echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7302
7303
7304
7305
7306
7307
dabbade6
L
7308 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7309echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7310if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 lt_cv_prog_compiler_c_o=no
7314 $RM -r conftest 2>/dev/null
7315 mkdir conftest
7316 cd conftest
7317 mkdir out
7318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7319
dabbade6
L
7320 lt_compiler_flag="-o out/conftest2.$ac_objext"
7321 # Insert the option either (1) after the last *FLAGS variable, or
7322 # (2) before a word containing "conftest.", or (3) at the end.
7323 # Note that $ac_compile itself does not contain backslashes and begins
7324 # with a dollar sign (not a hyphen), so the echo should work correctly.
7325 lt_compile=`echo "$ac_compile" | $SED \
7326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7328 -e 's:$: $lt_compiler_flag:'`
6194aaab 7329 (eval echo "\"\$as_me:7329: $lt_compile\"" >&5)
dabbade6
L
7330 (eval "$lt_compile" 2>out/conftest.err)
7331 ac_status=$?
7332 cat out/conftest.err >&5
6194aaab 7333 echo "$as_me:7333: \$? = $ac_status" >&5
dabbade6
L
7334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7335 then
7336 # The compiler can only warn and ignore the option if not recognized
7337 # So say no if there are warnings
7338 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7341 lt_cv_prog_compiler_c_o=yes
7342 fi
7343 fi
7344 chmod u+w . 2>&5
7345 $RM conftest*
7346 # SGI C++ compiler will create directory out/ii_files/ for
7347 # template instantiation
7348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7349 $RM out/* && rmdir out
7350 cd ..
7351 $RM -r conftest
7352 $RM conftest*
d7040cdb 7353
dabbade6
L
7354fi
7355echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7356echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7357
7358
7359
7360
dabbade6
L
7361hard_links="nottested"
7362if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7363 # do not overwrite the value of need_locks provided by the user
7364 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7365echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7366 hard_links=yes
7367 $RM conftest*
7368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7369 touch conftest.a
7370 ln conftest.a conftest.b 2>&5 || hard_links=no
7371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7372 echo "$as_me:$LINENO: result: $hard_links" >&5
7373echo "${ECHO_T}$hard_links" >&6
7374 if test "$hard_links" = no; then
7375 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7376echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7377 need_locks=warn
7378 fi
7379else
7380 need_locks=no
7381fi
d7040cdb
SE
7382
7383
7384
7385
7386
7387
dabbade6
L
7388 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7389echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7390
dabbade6
L
7391 runpath_var=
7392 allow_undefined_flag=
7393 always_export_symbols=no
7394 archive_cmds=
7395 archive_expsym_cmds=
7396 compiler_needs_object=no
7397 enable_shared_with_static_runtimes=no
7398 export_dynamic_flag_spec=
7399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7400 hardcode_automatic=no
7401 hardcode_direct=no
7402 hardcode_direct_absolute=no
7403 hardcode_libdir_flag_spec=
7404 hardcode_libdir_flag_spec_ld=
7405 hardcode_libdir_separator=
7406 hardcode_minus_L=no
7407 hardcode_shlibpath_var=unsupported
7408 inherit_rpath=no
7409 link_all_deplibs=unknown
7410 module_cmds=
7411 module_expsym_cmds=
7412 old_archive_from_new_cmds=
7413 old_archive_from_expsyms_cmds=
7414 thread_safe_flag_spec=
7415 whole_archive_flag_spec=
7416 # include_expsyms should be a list of space-separated symbols to be *always*
7417 # included in the symbol list
7418 include_expsyms=
7419 # exclude_expsyms can be an extended regexp of symbols to exclude
7420 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7421 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7422 # as well as any symbol that contains `d'.
7423 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7425 # platforms (ab)use it in PIC code, but their linkers get confused if
7426 # the symbol is explicitly referenced. Since portable code cannot
7427 # rely on this symbol name, it's probably fine to never include it in
7428 # preloaded symbol tables.
7429 extract_expsyms_cmds=
d7040cdb 7430
dabbade6
L
7431 case $host_os in
7432 cygwin* | mingw* | pw32*)
7433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7434 # When not using gcc, we currently assume that we are using
7435 # Microsoft Visual C++.
7436 if test "$GCC" != yes; then
7437 with_gnu_ld=no
7438 fi
7439 ;;
7440 interix*)
7441 # we just hope/assume this is gcc and not c89 (= MSVC++)
7442 with_gnu_ld=yes
7443 ;;
7444 openbsd*)
7445 with_gnu_ld=no
7446 ;;
7447 esac
d7040cdb 7448
dabbade6
L
7449 ld_shlibs=yes
7450 if test "$with_gnu_ld" = yes; then
7451 # If archive_cmds runs LD, not CC, wlarc should be empty
7452 wlarc='${wl}'
d7040cdb 7453
dabbade6
L
7454 # Set some defaults for GNU ld with shared library support. These
7455 # are reset later if shared libraries are not supported. Putting them
7456 # here allows them to be overridden if necessary.
7457 runpath_var=LD_RUN_PATH
7458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7459 export_dynamic_flag_spec='${wl}--export-dynamic'
7460 # ancient GNU ld didn't support --whole-archive et. al.
7461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7463 else
7464 whole_archive_flag_spec=
7465 fi
7466 supports_anon_versioning=no
7467 case `$LD -v 2>&1` in
7468 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7469 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7470 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7471 *\ 2.11.*) ;; # other 2.11 versions
7472 *) supports_anon_versioning=yes ;;
7473 esac
d7040cdb 7474
dabbade6
L
7475 # See if GNU ld supports shared libraries.
7476 case $host_os in
50e7d84b 7477 aix[3-9]*)
dabbade6
L
7478 # On AIX/PPC, the GNU linker is very broken
7479 if test "$host_cpu" != ia64; then
7480 ld_shlibs=no
7481 cat <<_LT_EOF 1>&2
d7040cdb 7482
dabbade6
L
7483*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7484*** to be unable to reliably create shared libraries on AIX.
7485*** Therefore, libtool is disabling shared libraries support. If you
7486*** really care for shared libraries, you may want to modify your PATH
7487*** so that a non-GNU linker is found, and then restart.
d7040cdb 7488
dabbade6
L
7489_LT_EOF
7490 fi
7491 ;;
d7040cdb 7492
dabbade6
L
7493 amigaos*)
7494 if test "$host_cpu" = m68k; then
7495 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)'
7496 hardcode_libdir_flag_spec='-L$libdir'
7497 hardcode_minus_L=yes
7498 fi
d7040cdb 7499
dabbade6
L
7500 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7501 # that the semantics of dynamic libraries on AmigaOS, at least up
7502 # to version 4, is to share data among multiple programs linked
7503 # with the same dynamic library. Since this doesn't match the
7504 # behavior of shared libraries on other platforms, we can't use
7505 # them.
7506 ld_shlibs=no
7507 ;;
d7040cdb 7508
dabbade6
L
7509 beos*)
7510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7511 allow_undefined_flag=unsupported
7512 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7513 # support --undefined. This deserves some investigation. FIXME
7514 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 else
7516 ld_shlibs=no
7517 fi
7518 ;;
d7040cdb 7519
dabbade6
L
7520 cygwin* | mingw* | pw32*)
7521 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7522 # as there is no search path for DLLs.
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 allow_undefined_flag=unsupported
7525 always_export_symbols=no
7526 enable_shared_with_static_runtimes=yes
7527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7528
dabbade6
L
7529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7531 # If the export-symbols file already is a .def file (1st line
7532 # is EXPORTS), use it as is; otherwise, prepend...
7533 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7534 cp $export_symbols $output_objdir/$soname.def;
7535 else
7536 echo EXPORTS > $output_objdir/$soname.def;
7537 cat $export_symbols >> $output_objdir/$soname.def;
7538 fi~
7539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7540 else
7541 ld_shlibs=no
7542 fi
7543 ;;
d7040cdb 7544
dabbade6
L
7545 interix[3-9]*)
7546 hardcode_direct=no
7547 hardcode_shlibpath_var=no
7548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7549 export_dynamic_flag_spec='${wl}-E'
7550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7551 # Instead, shared libraries are loaded at an image base (0x10000000 by
7552 # default) and relocated if they conflict, which is a slow very memory
7553 # consuming and fragmenting process. To avoid this, we pick a random,
7554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7557 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'
7558 ;;
d7040cdb 7559
dabbade6
L
7560 gnu* | linux* | tpf* | k*bsd*-gnu)
7561 tmp_diet=no
7562 if test "$host_os" = linux-dietlibc; then
7563 case $cc_basename in
7564 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7565 esac
7566 fi
7567 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7568 && test "$tmp_diet" = no
7569 then
7570 tmp_addflag=
7571 case $cc_basename,$host_cpu in
7572 pgcc*) # Portland Group C compiler
7573 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'
7574 tmp_addflag=' $pic_flag'
7575 ;;
7576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7577 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'
7578 tmp_addflag=' $pic_flag -Mnomain' ;;
7579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7580 tmp_addflag=' -i_dynamic' ;;
7581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7582 tmp_addflag=' -i_dynamic -nofor_main' ;;
7583 ifc* | ifort*) # Intel Fortran compiler
7584 tmp_addflag=' -nofor_main' ;;
7585 esac
7586 case `$CC -V 2>&1 | sed 5q` in
7587 *Sun\ C*) # Sun C 5.9
7588 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'
7589 compiler_needs_object=yes
7590 tmp_sharedflag='-G' ;;
7591 *Sun\ F*) # Sun Fortran 8.3
7592 tmp_sharedflag='-G' ;;
7593 *)
7594 tmp_sharedflag='-shared' ;;
7595 esac
7596 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7597
dabbade6
L
7598 if test "x$supports_anon_versioning" = xyes; then
7599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7601 echo "local: *; };" >> $output_objdir/$libname.ver~
7602 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7603 fi
7604 else
7605 ld_shlibs=no
7606 fi
7607 ;;
d7040cdb 7608
dabbade6
L
7609 netbsd*)
7610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7612 wlarc=
7613 else
7614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7616 fi
7617 ;;
d7040cdb 7618
dabbade6
L
7619 solaris*)
7620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7621 ld_shlibs=no
7622 cat <<_LT_EOF 1>&2
d7040cdb 7623
dabbade6
L
7624*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7625*** create shared libraries on Solaris systems. Therefore, libtool
7626*** is disabling shared libraries support. We urge you to upgrade GNU
7627*** binutils to release 2.9.1 or newer. Another option is to modify
7628*** your PATH or compiler configuration so that the native linker is
7629*** used, and then restart.
d7040cdb 7630
dabbade6
L
7631_LT_EOF
7632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7635 else
7636 ld_shlibs=no
7637 fi
7638 ;;
d7040cdb 7639
dabbade6
L
7640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7641 case `$LD -v 2>&1` in
7642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7643 ld_shlibs=no
7644 cat <<_LT_EOF 1>&2
d7040cdb 7645
dabbade6
L
7646*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7647*** reliably create shared libraries on SCO systems. Therefore, libtool
7648*** is disabling shared libraries support. We urge you to upgrade GNU
7649*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7650*** your PATH or compiler configuration so that the native linker is
7651*** used, and then restart.
d7040cdb 7652
dabbade6
L
7653_LT_EOF
7654 ;;
7655 *)
7656 # For security reasons, it is highly recommended that you always
7657 # use absolute paths for naming shared libraries, and exclude the
7658 # DT_RUNPATH tag from executables and libraries. But doing so
7659 # requires that you compile everything twice, which is a pain.
7660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668 esac
7669 ;;
d7040cdb 7670
dabbade6
L
7671 sunos4*)
7672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7673 wlarc=
7674 hardcode_direct=yes
7675 hardcode_shlibpath_var=no
7676 ;;
d7040cdb 7677
dabbade6
L
7678 *)
7679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7682 else
7683 ld_shlibs=no
7684 fi
7685 ;;
7686 esac
d7040cdb 7687
dabbade6
L
7688 if test "$ld_shlibs" = no; then
7689 runpath_var=
7690 hardcode_libdir_flag_spec=
7691 export_dynamic_flag_spec=
7692 whole_archive_flag_spec=
7693 fi
7694 else
7695 # PORTME fill in a description of your system's linker (not GNU ld)
7696 case $host_os in
7697 aix3*)
7698 allow_undefined_flag=unsupported
7699 always_export_symbols=yes
7700 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'
7701 # Note: this linker hardcodes the directories in LIBPATH if there
7702 # are no directories specified by -L.
7703 hardcode_minus_L=yes
7704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7705 # Neither direct hardcoding nor static linking is supported with a
7706 # broken collect2.
7707 hardcode_direct=unsupported
7708 fi
7709 ;;
d7040cdb 7710
50e7d84b 7711 aix[4-9]*)
dabbade6
L
7712 if test "$host_cpu" = ia64; then
7713 # On IA64, the linker does run time linking by default, so we don't
7714 # have to do anything special.
7715 aix_use_runtimelinking=no
7716 exp_sym_flag='-Bexport'
7717 no_entry_flag=""
7718 else
7719 # If we're using GNU nm, then we don't want the "-C" option.
7720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7722 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'
7723 else
7724 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'
7725 fi
7726 aix_use_runtimelinking=no
d7040cdb 7727
dabbade6
L
7728 # Test if we are trying to use run time linking or normal
7729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7730 # need to do runtime linking.
50e7d84b 7731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
7732 for ld_flag in $LDFLAGS; do
7733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7734 aix_use_runtimelinking=yes
7735 break
7736 fi
7737 done
7738 ;;
7739 esac
d7040cdb 7740
dabbade6
L
7741 exp_sym_flag='-bexport'
7742 no_entry_flag='-bnoentry'
7743 fi
d7040cdb 7744
dabbade6
L
7745 # When large executables or shared objects are built, AIX ld can
7746 # have problems creating the table of contents. If linking a library
7747 # or program results in "error TOC overflow" add -mminimal-toc to
7748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7750
dabbade6
L
7751 archive_cmds=''
7752 hardcode_direct=yes
7753 hardcode_direct_absolute=yes
7754 hardcode_libdir_separator=':'
7755 link_all_deplibs=yes
7756 file_list_spec='${wl}-f,'
d7040cdb 7757
dabbade6
L
7758 if test "$GCC" = yes; then
7759 case $host_os in aix4.[012]|aix4.[012].*)
7760 # We only want to do this on AIX 4.2 and lower, the check
7761 # below for broken collect2 doesn't work under 4.3+
7762 collect2name=`${CC} -print-prog-name=collect2`
7763 if test -f "$collect2name" &&
7764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7765 then
7766 # We have reworked collect2
7767 :
7768 else
7769 # We have old collect2
7770 hardcode_direct=unsupported
7771 # It fails to find uninstalled libraries when the uninstalled
7772 # path is not listed in the libpath. Setting hardcode_minus_L
7773 # to unsupported forces relinking
7774 hardcode_minus_L=yes
7775 hardcode_libdir_flag_spec='-L$libdir'
7776 hardcode_libdir_separator=
7777 fi
7778 ;;
7779 esac
7780 shared_flag='-shared'
7781 if test "$aix_use_runtimelinking" = yes; then
7782 shared_flag="$shared_flag "'${wl}-G'
7783 fi
7784 else
7785 # not using gcc
7786 if test "$host_cpu" = ia64; then
7787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7788 # chokes on -Wl,-G. The following line is correct:
7789 shared_flag='-G'
7790 else
7791 if test "$aix_use_runtimelinking" = yes; then
7792 shared_flag='${wl}-G'
7793 else
7794 shared_flag='${wl}-bM:SRE'
7795 fi
7796 fi
7797 fi
d7040cdb 7798
dabbade6
L
7799 # It seems that -bexpall does not export symbols beginning with
7800 # underscore (_), so it is better to generate a list of symbols to export.
7801 always_export_symbols=yes
7802 if test "$aix_use_runtimelinking" = yes; then
7803 # Warning - without using the other runtime loading flags (-brtl),
7804 # -berok will link without error, but may produce a broken library.
7805 allow_undefined_flag='-berok'
7806 # Determine the default libpath from the value encoded in an
7807 # empty executable.
7808 cat >conftest.$ac_ext <<_ACEOF
7809/* confdefs.h. */
7810_ACEOF
7811cat confdefs.h >>conftest.$ac_ext
7812cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h. */
d7040cdb 7814
dabbade6
L
7815int
7816main ()
7817{
d7040cdb 7818
dabbade6
L
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
7824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
d7040cdb 7845
dabbade6
L
7846lt_aix_libpath_sed='
7847 /Import File Strings/,/^$/ {
7848 /^0/ {
7849 s/^0 *\(.*\)$/\1/
7850 p
7851 }
7852 }'
7853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7854# Check for a 64-bit object if we didn't find anything.
7855if test -z "$aix_libpath"; then
7856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7857fi
7858else
7859 echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7861
dabbade6
L
7862fi
7863rm -f conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7865if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7866
dabbade6
L
7867 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7868 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"
7869 else
7870 if test "$host_cpu" = ia64; then
7871 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7872 allow_undefined_flag="-z nodefs"
7873 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"
7874 else
7875 # Determine the default libpath from the value encoded in an
7876 # empty executable.
7877 cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
d7040cdb 7883
dabbade6
L
7884int
7885main ()
7886{
d7040cdb 7887
dabbade6
L
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
d7040cdb 7914
dabbade6
L
7915lt_aix_libpath_sed='
7916 /Import File Strings/,/^$/ {
7917 /^0/ {
7918 s/^0 *\(.*\)$/\1/
7919 p
7920 }
7921 }'
7922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7923# Check for a 64-bit object if we didn't find anything.
7924if test -z "$aix_libpath"; then
7925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7926fi
7927else
7928 echo "$as_me: failed program was:" >&5
7929sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7930
dabbade6
L
7931fi
7932rm -f conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7935
dabbade6
L
7936 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7937 # Warning - without using the other run time loading flags,
7938 # -berok will link without error, but may produce a broken library.
7939 no_undefined_flag=' ${wl}-bernotok'
7940 allow_undefined_flag=' ${wl}-berok'
7941 # Exported symbols can be pulled into shared objects from archives
7942 whole_archive_flag_spec='$convenience'
7943 archive_cmds_need_lc=yes
7944 # This is similar to how AIX traditionally builds its shared libraries.
7945 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'
7946 fi
7947 fi
7948 ;;
d7040cdb 7949
dabbade6
L
7950 amigaos*)
7951 if test "$host_cpu" = m68k; then
7952 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)'
7953 hardcode_libdir_flag_spec='-L$libdir'
7954 hardcode_minus_L=yes
7955 fi
7956 # see comment about different semantics on the GNU ld section
7957 ld_shlibs=no
7958 ;;
d7040cdb 7959
dabbade6
L
7960 bsdi[45]*)
7961 export_dynamic_flag_spec=-rdynamic
7962 ;;
d7040cdb 7963
dabbade6
L
7964 cygwin* | mingw* | pw32*)
7965 # When not using gcc, we currently assume that we are using
7966 # Microsoft Visual C++.
7967 # hardcode_libdir_flag_spec is actually meaningless, as there is
7968 # no search path for DLLs.
7969 hardcode_libdir_flag_spec=' '
7970 allow_undefined_flag=unsupported
7971 # Tell ltmain to make .lib files, not .a files.
7972 libext=lib
7973 # Tell ltmain to make .dll files, not .so files.
7974 shrext_cmds=".dll"
7975 # FIXME: Setting linknames here is a bad hack.
7976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7977 # The linker will automatically build a .lib file if we build a DLL.
7978 old_archive_from_new_cmds='true'
7979 # FIXME: Should let the user specify the lib program.
7980 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7981 fix_srcfile_path='`cygpath -w "$srcfile"`'
7982 enable_shared_with_static_runtimes=yes
7983 ;;
d7040cdb 7984
dabbade6
L
7985 darwin* | rhapsody*)
7986 case $host_os in
7987 rhapsody* | darwin1.[012])
7988 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7989 ;;
7990 *) # Darwin 1.3 on
7991 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7992 10.[012])
7993 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7994 ;;
7995 10.*)
7996 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7997 ;;
7998 esac
7999 ;;
8000 esac
8001 archive_cmds_need_lc=no
8002 hardcode_direct=no
8003 hardcode_automatic=yes
8004 hardcode_shlibpath_var=unsupported
8005 whole_archive_flag_spec=''
8006 link_all_deplibs=yes
8007 if test "$GCC" = yes ; then
8008 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011 lt_cv_apple_cc_single_mod=no
8012 if test -z "${LT_MULTI_MODULE}"; then
8013 # By default we will add the -single_module flag. You can override
8014 # by either setting the environment variable LT_MULTI_MODULE
8015 # non-empty at configure time, or by adding -multi-module to the
8016 # link flags.
8017 echo "int foo(void){return 1;}" > conftest.c
8018 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8019 -dynamiclib ${wl}-single_module conftest.c
8020 if test -f libconftest.dylib; then
8021 lt_cv_apple_cc_single_mod=yes
8022 rm libconftest.dylib
8023 fi
8024 rm conftest.$ac_ext
8025 fi
8026fi
d7040cdb 8027
dabbade6
L
8028 output_verbose_link_cmd=echo
8029 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8030 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8031 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}'
8032 else
8033 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8034 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}'
8035 fi
8036 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8037 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}'
8038 else
8039 case $cc_basename in
8040 xlc*)
8041 output_verbose_link_cmd=echo
8042 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8043 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8045 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}'
8046 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}'
8047 ;;
8048 *)
8049 ld_shlibs=no
8050 ;;
8051 esac
8052 fi
8053 ;;
d7040cdb 8054
dabbade6
L
8055 dgux*)
8056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8057 hardcode_libdir_flag_spec='-L$libdir'
8058 hardcode_shlibpath_var=no
8059 ;;
d7040cdb 8060
dabbade6
L
8061 freebsd1*)
8062 ld_shlibs=no
8063 ;;
d7040cdb 8064
dabbade6
L
8065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8066 # support. Future versions do this automatically, but an explicit c++rt0.o
8067 # does not break anything, and helps significantly (at the cost of a little
8068 # extra space).
8069 freebsd2.2*)
8070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8071 hardcode_libdir_flag_spec='-R$libdir'
8072 hardcode_direct=yes
8073 hardcode_shlibpath_var=no
8074 ;;
d7040cdb 8075
dabbade6
L
8076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8077 freebsd2*)
8078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8079 hardcode_direct=yes
8080 hardcode_minus_L=yes
8081 hardcode_shlibpath_var=no
8082 ;;
d7040cdb 8083
dabbade6
L
8084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8085 freebsd* | dragonfly*)
8086 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8087 hardcode_libdir_flag_spec='-R$libdir'
8088 hardcode_direct=yes
8089 hardcode_shlibpath_var=no
8090 ;;
d7040cdb 8091
dabbade6
L
8092 hpux9*)
8093 if test "$GCC" = yes; then
8094 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'
8095 else
8096 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'
8097 fi
8098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8099 hardcode_libdir_separator=:
8100 hardcode_direct=yes
d7040cdb 8101
dabbade6
L
8102 # hardcode_minus_L: Not really in the search PATH,
8103 # but as the default location of the library.
8104 hardcode_minus_L=yes
8105 export_dynamic_flag_spec='${wl}-E'
8106 ;;
d7040cdb 8107
dabbade6
L
8108 hpux10*)
8109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8110 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8111 else
8112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8113 fi
8114 if test "$with_gnu_ld" = no; then
8115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8116 hardcode_libdir_flag_spec_ld='+b $libdir'
8117 hardcode_libdir_separator=:
8118 hardcode_direct=yes
8119 hardcode_direct_absolute=yes
8120 export_dynamic_flag_spec='${wl}-E'
8121 # hardcode_minus_L: Not really in the search PATH,
8122 # but as the default location of the library.
8123 hardcode_minus_L=yes
8124 fi
8125 ;;
d7040cdb 8126
dabbade6
L
8127 hpux11*)
8128 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8129 case $host_cpu in
8130 hppa*64*)
8131 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8132 ;;
8133 ia64*)
8134 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8135 ;;
8136 *)
8137 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8138 ;;
8139 esac
8140 else
8141 case $host_cpu in
8142 hppa*64*)
8143 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8144 ;;
8145 ia64*)
8146 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8147 ;;
8148 *)
8149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8150 ;;
8151 esac
8152 fi
8153 if test "$with_gnu_ld" = no; then
8154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8155 hardcode_libdir_separator=:
d7040cdb 8156
dabbade6
L
8157 case $host_cpu in
8158 hppa*64*|ia64*)
8159 hardcode_direct=no
8160 hardcode_shlibpath_var=no
8161 ;;
8162 *)
8163 hardcode_direct=yes
8164 hardcode_direct_absolute=yes
8165 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8166
dabbade6
L
8167 # hardcode_minus_L: Not really in the search PATH,
8168 # but as the default location of the library.
8169 hardcode_minus_L=yes
8170 ;;
8171 esac
8172 fi
8173 ;;
d7040cdb 8174
dabbade6
L
8175 irix5* | irix6* | nonstopux*)
8176 if test "$GCC" = yes; then
8177 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'
8178 # Try to use the -exported_symbol ld option, if it does not
8179 # work, assume that -exports_file does not work either and
8180 # implicitly export all symbols.
8181 save_LDFLAGS="$LDFLAGS"
8182 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8183 cat >conftest.$ac_ext <<_ACEOF
8184int foo(void) {}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
8187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 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'
d7040cdb 8209
d7040cdb 8210else
dabbade6
L
8211 echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
d7040cdb 8214fi
dabbade6
L
8215rm -f conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LDFLAGS="$save_LDFLAGS"
8218 else
8219 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'
8220 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'
8221 fi
8222 archive_cmds_need_lc='no'
8223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8224 hardcode_libdir_separator=:
8225 inherit_rpath=yes
8226 link_all_deplibs=yes
8227 ;;
d7040cdb 8228
dabbade6
L
8229 netbsd*)
8230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8232 else
8233 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8234 fi
8235 hardcode_libdir_flag_spec='-R$libdir'
8236 hardcode_direct=yes
8237 hardcode_shlibpath_var=no
8238 ;;
d7040cdb 8239
dabbade6
L
8240 newsos6)
8241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8242 hardcode_direct=yes
8243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8244 hardcode_libdir_separator=:
8245 hardcode_shlibpath_var=no
8246 ;;
d7040cdb 8247
dabbade6
L
8248 *nto* | *qnx*)
8249 ;;
d7040cdb 8250
dabbade6
L
8251 openbsd*)
8252 hardcode_direct=yes
8253 hardcode_shlibpath_var=no
8254 hardcode_direct_absolute=yes
8255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8257 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8259 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8260 else
dabbade6
L
8261 case $host_os in
8262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8264 hardcode_libdir_flag_spec='-R$libdir'
8265 ;;
8266 *)
8267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8269 ;;
8270 esac
d7040cdb
SE
8271 fi
8272 ;;
d7040cdb 8273
dabbade6
L
8274 os2*)
8275 hardcode_libdir_flag_spec='-L$libdir'
8276 hardcode_minus_L=yes
8277 allow_undefined_flag=unsupported
8278 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'
8279 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8280 ;;
d7040cdb 8281
dabbade6
L
8282 osf3*)
8283 if test "$GCC" = yes; then
8284 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8285 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'
8286 else
8287 allow_undefined_flag=' -expect_unresolved \*'
8288 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'
8289 fi
8290 archive_cmds_need_lc='no'
8291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292 hardcode_libdir_separator=:
8293 ;;
d7040cdb 8294
dabbade6
L
8295 osf4* | osf5*) # as osf3* with the addition of -msym flag
8296 if test "$GCC" = yes; then
8297 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8298 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'
8299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300 else
8301 allow_undefined_flag=' -expect_unresolved \*'
8302 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'
8303 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~
8304 $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'
d7040cdb 8305
dabbade6
L
8306 # Both c and cxx compiler support -rpath directly
8307 hardcode_libdir_flag_spec='-rpath $libdir'
8308 fi
8309 archive_cmds_need_lc='no'
8310 hardcode_libdir_separator=:
8311 ;;
d7040cdb 8312
dabbade6
L
8313 solaris*)
8314 no_undefined_flag=' -z defs'
8315 if test "$GCC" = yes; then
8316 wlarc='${wl}'
8317 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8319 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8320 else
8321 case `$CC -V 2>&1` in
8322 *"Compilers 5.0"*)
8323 wlarc=''
8324 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8326 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8327 ;;
8328 *)
8329 wlarc='${wl}'
8330 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8332 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8333 ;;
8334 esac
8335 fi
8336 hardcode_libdir_flag_spec='-R$libdir'
8337 hardcode_shlibpath_var=no
8338 case $host_os in
8339 solaris2.[0-5] | solaris2.[0-5].*) ;;
8340 *)
8341 # The compiler driver will combine and reorder linker options,
8342 # but understands `-z linker_flag'. GCC discards it without `$wl',
8343 # but is careful enough not to reorder.
8344 # Supported since Solaris 2.6 (maybe 2.5.1?)
8345 if test "$GCC" = yes; then
8346 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8347 else
8348 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8349 fi
8350 ;;
8351 esac
8352 link_all_deplibs=yes
d7040cdb 8353 ;;
dabbade6
L
8354
8355 sunos4*)
8356 if test "x$host_vendor" = xsequent; then
8357 # Use $CC to link under sequent, because it throws in some extra .o
8358 # files that make .init and .fini sections work.
8359 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8360 else
dabbade6 8361 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8362 fi
dabbade6
L
8363 hardcode_libdir_flag_spec='-L$libdir'
8364 hardcode_direct=yes
8365 hardcode_minus_L=yes
8366 hardcode_shlibpath_var=no
d7040cdb 8367 ;;
dabbade6
L
8368
8369 sysv4)
8370 case $host_vendor in
8371 sni)
8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_direct=yes # is this really true???
8374 ;;
8375 siemens)
8376 ## LD is ld it makes a PLAMLIB
8377 ## CC just makes a GrossModule.
8378 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8379 reload_cmds='$CC -r -o $output$reload_objs'
8380 hardcode_direct=no
8381 ;;
8382 motorola)
8383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8385 ;;
8386 esac
8387 runpath_var='LD_RUN_PATH'
8388 hardcode_shlibpath_var=no
d7040cdb 8389 ;;
d7040cdb 8390
dabbade6
L
8391 sysv4.3*)
8392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393 hardcode_shlibpath_var=no
8394 export_dynamic_flag_spec='-Bexport'
8395 ;;
d7040cdb 8396
dabbade6
L
8397 sysv4*MP*)
8398 if test -d /usr/nec; then
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_shlibpath_var=no
8401 runpath_var=LD_RUN_PATH
8402 hardcode_runpath_var=yes
8403 ld_shlibs=yes
8404 fi
8405 ;;
d7040cdb 8406
dabbade6
L
8407 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8408 no_undefined_flag='${wl}-z,text'
8409 archive_cmds_need_lc=no
8410 hardcode_shlibpath_var=no
8411 runpath_var='LD_RUN_PATH'
d7040cdb 8412
dabbade6
L
8413 if test "$GCC" = yes; then
8414 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 else
8417 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 fi
8420 ;;
d7040cdb 8421
dabbade6
L
8422 sysv5* | sco3.2v5* | sco5v6*)
8423 # Note: We can NOT use -z defs as we might desire, because we do not
8424 # link with -lc, and that would cause any symbols used from libc to
8425 # always be unresolved, which means just about no library would
8426 # ever link correctly. If we're not using GNU ld we use -z text
8427 # though, which does catch some bad symbols but isn't as heavy-handed
8428 # as -z defs.
8429 no_undefined_flag='${wl}-z,text'
8430 allow_undefined_flag='${wl}-z,nodefs'
8431 archive_cmds_need_lc=no
8432 hardcode_shlibpath_var=no
8433 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8434 hardcode_libdir_separator=':'
8435 link_all_deplibs=yes
8436 export_dynamic_flag_spec='${wl}-Bexport'
8437 runpath_var='LD_RUN_PATH'
d7040cdb 8438
dabbade6
L
8439 if test "$GCC" = yes; then
8440 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 else
8443 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 fi
d7040cdb 8446 ;;
d7040cdb 8447
dabbade6
L
8448 uts4*)
8449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_shlibpath_var=no
8452 ;;
d7040cdb 8453
dabbade6
L
8454 *)
8455 ld_shlibs=no
8456 ;;
8457 esac
8458
8459 if test x$host_vendor = xsni; then
8460 case $host in
8461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8462 export_dynamic_flag_spec='${wl}-Blargedynsym'
8463 ;;
8464 esac
d7040cdb 8465 fi
dabbade6 8466 fi
d7040cdb 8467
dabbade6
L
8468echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8469echo "${ECHO_T}$ld_shlibs" >&6
8470test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8471
dabbade6 8472with_gnu_ld=$with_gnu_ld
d7040cdb 8473
d7040cdb 8474
d7040cdb 8475
d7040cdb 8476
d7040cdb 8477
d7040cdb 8478
d7040cdb 8479
d7040cdb 8480
d7040cdb 8481
d7040cdb 8482
d7040cdb 8483
d7040cdb 8484
d7040cdb 8485
d7040cdb 8486
d7040cdb 8487
dabbade6
L
8488#
8489# Do we need to explicitly link libc?
8490#
8491case "x$archive_cmds_need_lc" in
8492x|xyes)
8493 # Assume -lc should be added
8494 archive_cmds_need_lc=yes
d7040cdb 8495
dabbade6
L
8496 if test "$enable_shared" = yes && test "$GCC" = yes; then
8497 case $archive_cmds in
8498 *'~'*)
8499 # FIXME: we may have to deal with multi-command sequences.
8500 ;;
8501 '$CC '*)
8502 # Test whether the compiler implicitly links with -lc since on some
8503 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8504 # to ld, don't add -lc before -lgcc.
8505 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8506echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8507 $RM conftest*
8508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8509
dabbade6
L
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } 2>conftest.err; then
8515 soname=conftest
8516 lib=conftest
8517 libobjs=conftest.$ac_objext
8518 deplibs=
8519 wl=$lt_prog_compiler_wl
8520 pic_flag=$lt_prog_compiler_pic
8521 compiler_flags=-v
8522 linker_flags=-v
8523 verstring=
8524 output_objdir=.
8525 libname=conftest
8526 lt_save_allow_undefined_flag=$allow_undefined_flag
8527 allow_undefined_flag=
8528 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8529 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }
8533 then
8534 archive_cmds_need_lc=no
8535 else
8536 archive_cmds_need_lc=yes
8537 fi
8538 allow_undefined_flag=$lt_save_allow_undefined_flag
8539 else
8540 cat conftest.err 1>&5
8541 fi
8542 $RM conftest*
8543 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8544echo "${ECHO_T}$archive_cmds_need_lc" >&6
8545 ;;
8546 esac
d7040cdb 8547 fi
d7040cdb 8548 ;;
dabbade6 8549esac
d7040cdb 8550
d7040cdb 8551
d7040cdb 8552
d7040cdb 8553
d7040cdb 8554
d7040cdb 8555
d7040cdb 8556
d7040cdb
SE
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
d7040cdb 8644
d7040cdb 8645
d7040cdb
SE
8646
8647
8648
8649
8650
8651
d7040cdb 8652
d7040cdb 8653
d7040cdb 8654
d7040cdb 8655
d7040cdb 8656
d7040cdb 8657
d7040cdb 8658
d7040cdb 8659
d7040cdb 8660
d7040cdb 8661
d7040cdb 8662
d7040cdb 8663
d7040cdb 8664
d7040cdb 8665
d7040cdb 8666
d7040cdb 8667
d7040cdb 8668
d7040cdb 8669
d7040cdb 8670
d7040cdb 8671
d7040cdb 8672
d7040cdb 8673
d7040cdb 8674
d7040cdb 8675
dabbade6
L
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8708echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8709withGCC=$GCC
8710if test "$withGCC" = yes; then
8711 case $host_os in
8712 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8713 *) lt_awk_arg="/^libraries:/" ;;
8714 esac
8715 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8716 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8717 # if the path contains ";" then we assume it to be the separator
8718 # otherwise default to the standard path separator (i.e. ":") - it is
8719 # assumed that no part of a normal pathname contains ";" but that should
8720 # okay in the real world where ";" in dirpaths is itself problematic.
8721 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8722 else
8723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8724 fi
8725 # Ok, now we have the path, separated by spaces, we can step through it
8726 # and add multilib dir if necessary.
8727 lt_tmp_lt_search_path_spec=
8728 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8729 for lt_sys_path in $lt_search_path_spec; do
8730 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8732 else
8733 test -d "$lt_sys_path" && \
8734 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8735 fi
8736 done
8737 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8738BEGIN {RS=" "; FS="/|\n";} {
8739 lt_foo="";
8740 lt_count=0;
8741 for (lt_i = NF; lt_i > 0; lt_i--) {
8742 if ($lt_i != "" && $lt_i != ".") {
8743 if ($lt_i == "..") {
8744 lt_count++;
8745 } else {
8746 if (lt_count == 0) {
8747 lt_foo="/" $lt_i lt_foo;
8748 } else {
8749 lt_count--;
8750 }
8751 }
8752 }
8753 }
8754 if (lt_foo != "") { lt_freq[lt_foo]++; }
8755 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8756}'`
8757 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8758else
dabbade6
L
8759 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8760fi
8761library_names_spec=
8762libname_spec='lib$name'
8763soname_spec=
8764shrext_cmds=".so"
8765postinstall_cmds=
8766postuninstall_cmds=
8767finish_cmds=
8768finish_eval=
8769shlibpath_var=
8770shlibpath_overrides_runpath=unknown
8771version_type=none
8772dynamic_linker="$host_os ld.so"
8773sys_lib_dlsearch_path_spec="/lib /usr/lib"
8774need_lib_prefix=unknown
8775hardcode_into_libs=no
8776
8777# when you set need_version to no, make sure it does not cause -set_version
8778# flags to be left without arguments
8779need_version=unknown
8780
8781case $host_os in
8782aix3*)
8783 version_type=linux
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785 shlibpath_var=LIBPATH
8786
8787 # AIX 3 has no versioning support, so we append a major version to the name.
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 ;;
8790
50e7d84b 8791aix[4-9]*)
dabbade6
L
8792 version_type=linux
8793 need_lib_prefix=no
8794 need_version=no
8795 hardcode_into_libs=yes
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 supports IA64
8798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 else
8801 # With GCC up to 2.95.x, collect2 would create an import file
8802 # for dependence libraries. The import file would start with
8803 # the line `#! .'. This would cause the generated library to
8804 # depend on `.', always an invalid library. This was fixed in
8805 # development snapshots of GCC prior to 3.0.
8806 case $host_os in
8807 aix4 | aix4.[01] | aix4.[01].*)
8808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809 echo ' yes '
8810 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8811 :
8812 else
8813 can_build_shared=no
8814 fi
8815 ;;
8816 esac
8817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818 # soname into executable. Probably we can add versioning support to
8819 # collect2, so additional links can be useful in future.
8820 if test "$aix_use_runtimelinking" = yes; then
8821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822 # instead of lib<name>.a to let people know that these are not
8823 # typical AIX shared libraries.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 else
8826 # We preserve .a as extension for shared libraries through AIX4.2
8827 # and later when we are not doing run time linking.
8828 library_names_spec='${libname}${release}.a $libname.a'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 fi
8831 shlibpath_var=LIBPATH
8832 fi
8833 ;;
8834
8835amigaos*)
8836 if test "$host_cpu" = m68k; then
8837 library_names_spec='$libname.ixlibrary $libname.a'
8838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8839 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'
8840 else
8841 dynamic_linker=no
8842 fi
8843 ;;
8844
8845beos*)
8846 library_names_spec='${libname}${shared_ext}'
8847 dynamic_linker="$host_os ld.so"
8848 shlibpath_var=LIBRARY_PATH
8849 ;;
8850
8851bsdi[45]*)
8852 version_type=linux
8853 need_version=no
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8860 # the default ld.so.conf also contains /usr/contrib/lib and
8861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8862 # libtool to hard-code these into programs
8863 ;;
8864
8865cygwin* | mingw* | pw32*)
8866 version_type=windows
8867 shrext_cmds=".dll"
8868 need_version=no
8869 need_lib_prefix=no
8870
8871 case $withGCC,$host_os in
8872 yes,cygwin* | yes,mingw* | yes,pw32*)
8873 library_names_spec='$libname.dll.a'
8874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8875 postinstall_cmds='base_file=`basename \${file}`~
8876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8877 dldir=$destdir/`dirname \$dlpath`~
8878 test -d \$dldir || mkdir -p \$dldir~
8879 $install_prog $dir/$dlname \$dldir/$dlname~
8880 chmod a+x \$dldir/$dlname~
8881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8883 fi'
8884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8885 dlpath=$dir/\$dldll~
8886 $RM \$dlpath'
8887 shlibpath_overrides_runpath=yes
8888
8889 case $host_os in
8890 cygwin*)
8891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8894 ;;
8895 mingw*)
8896 # MinGW DLLs use traditional 'lib' prefix
8897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8898 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8899 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8900 # It is most probably a Windows format PATH printed by
8901 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8902 # path with ; separators, and with drive letters. We can handle the
8903 # drive letters (cygwin fileutils understands them), so leave them,
8904 # especially as we might pass files found there to a mingw objdump,
8905 # which wouldn't understand a cygwinified path. Ahh.
8906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8907 else
8908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8909 fi
8910 ;;
8911 pw32*)
8912 # pw32 DLLs use 'pw' prefix rather than 'lib'
8913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8914 ;;
8915 esac
8916 ;;
8917
8918 *)
8919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8920 ;;
8921 esac
8922 dynamic_linker='Win32 ld.exe'
8923 # FIXME: first we should search . and the directory the executable is in
8924 shlibpath_var=PATH
8925 ;;
8926
8927darwin* | rhapsody*)
8928 dynamic_linker="$host_os dyld"
8929 version_type=darwin
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8933 soname_spec='${libname}${release}${major}$shared_ext'
8934 shlibpath_overrides_runpath=yes
8935 shlibpath_var=DYLD_LIBRARY_PATH
8936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8937
8938 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8940 ;;
8941
8942dgux*)
8943 version_type=linux
8944 need_lib_prefix=no
8945 need_version=no
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 ;;
8950
8951freebsd1*)
8952 dynamic_linker=no
8953 ;;
8954
8955freebsd* | dragonfly*)
8956 # DragonFly does not have aout. When/if they implement a new
8957 # versioning mechanism, adjust this.
8958 if test -x /usr/bin/objformat; then
8959 objformat=`/usr/bin/objformat`
8960 else
8961 case $host_os in
8962 freebsd[123]*) objformat=aout ;;
8963 *) objformat=elf ;;
8964 esac
8965 fi
8966 version_type=freebsd-$objformat
8967 case $version_type in
8968 freebsd-elf*)
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8970 need_version=no
8971 need_lib_prefix=no
8972 ;;
8973 freebsd-*)
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8975 need_version=yes
8976 ;;
8977 esac
8978 shlibpath_var=LD_LIBRARY_PATH
8979 case $host_os in
8980 freebsd2*)
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983 freebsd3.[01]* | freebsdelf3.[01]*)
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8986 ;;
8987 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8988 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8989 shlibpath_overrides_runpath=no
8990 hardcode_into_libs=yes
8991 ;;
8992 *) # from 4.6 on, and DragonFly
8993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
8995 ;;
8996 esac
8997 ;;
8998
8999gnu*)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 hardcode_into_libs=yes
9007 ;;
9008
9009hpux9* | hpux10* | hpux11*)
9010 # Give a soname corresponding to the major version so that dld.sl refuses to
9011 # link against other versions.
9012 version_type=sunos
9013 need_lib_prefix=no
9014 need_version=no
9015 case $host_cpu in
9016 ia64*)
9017 shrext_cmds='.so'
9018 hardcode_into_libs=yes
9019 dynamic_linker="$host_os dld.so"
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 if test "X$HPUX_IA64_MODE" = X32; then
9025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9026 else
9027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9028 fi
9029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9030 ;;
9031 hppa*64*)
9032 shrext_cmds='.sl'
9033 hardcode_into_libs=yes
9034 dynamic_linker="$host_os dld.sl"
9035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041 ;;
9042 *)
9043 shrext_cmds='.sl'
9044 dynamic_linker="$host_os dld.sl"
9045 shlibpath_var=SHLIB_PATH
9046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 ;;
9050 esac
9051 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9052 postinstall_cmds='chmod 555 $lib'
9053 ;;
9054
9055interix[3-9]*)
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 ;;
9066
9067irix5* | irix6* | nonstopux*)
9068 case $host_os in
9069 nonstopux*) version_type=nonstopux ;;
9070 *)
9071 if test "$lt_cv_prog_gnu_ld" = yes; then
9072 version_type=linux
9073 else
9074 version_type=irix
9075 fi ;;
9076 esac
9077 need_lib_prefix=no
9078 need_version=no
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9081 case $host_os in
9082 irix5* | nonstopux*)
9083 libsuff= shlibsuff=
9084 ;;
9085 *)
9086 case $LD in # libtool.m4 will add one of these switches to LD
9087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9088 libsuff= shlibsuff= libmagic=32-bit;;
9089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9090 libsuff=32 shlibsuff=N32 libmagic=N32;;
9091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9093 *) libsuff= shlibsuff= libmagic=never-match;;
9094 esac
9095 ;;
9096 esac
9097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9098 shlibpath_overrides_runpath=no
9099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9101 hardcode_into_libs=yes
9102 ;;
9103
9104# No shared lib support for Linux oldld, aout, or coff.
9105linux*oldld* | linux*aout* | linux*coff*)
9106 dynamic_linker=no
9107 ;;
9108
9109# This must be Linux ELF.
9110linux* | k*bsd*-gnu)
9111 version_type=linux
9112 need_lib_prefix=no
9113 need_version=no
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=no
9119 # Some binutils ld are patched to set DT_RUNPATH
9120 save_LDFLAGS=$LDFLAGS
9121 save_libdir=$libdir
9122 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9123 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9124 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9125/* confdefs.h. */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */
9130
d7040cdb
SE
9131int
9132main ()
9133{
dabbade6 9134
d7040cdb
SE
9135 ;
9136 return 0;
9137}
9138_ACEOF
9139rm -f conftest.$ac_objext conftest$ac_exeext
9140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag"
9149 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
dabbade6
L
9161 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9162 shlibpath_overrides_runpath=yes
9163fi
9164
d7040cdb
SE
9165else
9166 echo "$as_me: failed program was:" >&5
9167sed 's/^/| /' conftest.$ac_ext >&5
9168
d7040cdb
SE
9169fi
9170rm -f conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9172 LDFLAGS=$save_LDFLAGS
9173 libdir=$save_libdir
9174
9175 # This implies no fast_install, which is unacceptable.
9176 # Some rework will be needed to allow for fast_install
9177 # before this can be enabled.
9178 hardcode_into_libs=yes
9179
9180 # Append ld.so.conf contents to the search path
9181 if test -f /etc/ld.so.conf; then
9182 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' ' '`
9183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9184 fi
9185
9186 # We used to test for /lib/ld.so.1 and disable shared libraries on
9187 # powerpc, because MkLinux only supported shared libraries with the
9188 # GNU dynamic linker. Since this was broken with cross compilers,
9189 # most powerpc-linux boxes support dynamic linking these days and
9190 # people can always --disable-shared, the test was removed, and we
9191 # assume the GNU/Linux dynamic linker is in use.
9192 dynamic_linker='GNU/Linux ld.so'
9193 ;;
9194
9195netbsd*)
9196 version_type=sunos
9197 need_lib_prefix=no
9198 need_version=no
9199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9202 dynamic_linker='NetBSD (a.out) ld.so'
9203 else
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 dynamic_linker='NetBSD ld.elf_so'
9207 fi
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9210 hardcode_into_libs=yes
9211 ;;
9212
9213newsos6)
9214 version_type=linux
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9218 ;;
9219
9220*nto* | *qnx*)
9221 version_type=qnx
9222 need_lib_prefix=no
9223 need_version=no
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=no
9228 hardcode_into_libs=yes
9229 dynamic_linker='ldqnx.so'
9230 ;;
9231
9232openbsd*)
9233 version_type=sunos
9234 sys_lib_dlsearch_path_spec="/usr/lib"
9235 need_lib_prefix=no
9236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9237 case $host_os in
9238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9239 *) need_version=no ;;
9240 esac
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245 case $host_os in
9246 openbsd2.[89] | openbsd2.[89].*)
9247 shlibpath_overrides_runpath=no
9248 ;;
9249 *)
9250 shlibpath_overrides_runpath=yes
9251 ;;
9252 esac
9253 else
9254 shlibpath_overrides_runpath=yes
9255 fi
9256 ;;
9257
9258os2*)
9259 libname_spec='$name'
9260 shrext_cmds=".dll"
9261 need_lib_prefix=no
9262 library_names_spec='$libname${shared_ext} $libname.a'
9263 dynamic_linker='OS/2 ld.exe'
9264 shlibpath_var=LIBPATH
9265 ;;
9266
9267osf3* | osf4* | osf5*)
9268 version_type=osf
9269 need_lib_prefix=no
9270 need_version=no
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9276 ;;
9277
9278rdos*)
9279 dynamic_linker=no
9280 ;;
9281
9282solaris*)
9283 version_type=linux
9284 need_lib_prefix=no
9285 need_version=no
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath=yes
9290 hardcode_into_libs=yes
9291 # ldd complains unless libraries are executable
9292 postinstall_cmds='chmod +x $lib'
9293 ;;
9294
9295sunos4*)
9296 version_type=sunos
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 if test "$with_gnu_ld" = yes; then
9302 need_lib_prefix=no
9303 fi
9304 need_version=yes
9305 ;;
9306
9307sysv4 | sysv4.3*)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 case $host_vendor in
9313 sni)
9314 shlibpath_overrides_runpath=no
9315 need_lib_prefix=no
9316 runpath_var=LD_RUN_PATH
9317 ;;
9318 siemens)
9319 need_lib_prefix=no
9320 ;;
9321 motorola)
9322 need_lib_prefix=no
9323 need_version=no
9324 shlibpath_overrides_runpath=no
9325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9326 ;;
9327 esac
9328 ;;
9329
9330sysv4*MP*)
9331 if test -d /usr/nec ;then
9332 version_type=linux
9333 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9334 soname_spec='$libname${shared_ext}.$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 fi
9337 ;;
9338
9339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9340 version_type=freebsd-elf
9341 need_lib_prefix=no
9342 need_version=no
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=yes
9347 hardcode_into_libs=yes
9348 if test "$with_gnu_ld" = yes; then
9349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9350 else
9351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9352 case $host_os in
9353 sco3.2v5*)
9354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9355 ;;
9356 esac
9357 fi
9358 sys_lib_dlsearch_path_spec='/usr/lib'
9359 ;;
9360
9361tpf*)
9362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9363 version_type=linux
9364 need_lib_prefix=no
9365 need_version=no
9366 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=no
9369 hardcode_into_libs=yes
9370 ;;
9371
9372uts4*)
9373 version_type=linux
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 ;;
d7040cdb 9378
dabbade6
L
9379*)
9380 dynamic_linker=no
9381 ;;
9382esac
9383echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9384echo "${ECHO_T}$dynamic_linker" >&6
9385test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 9386
dabbade6
L
9387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9388if test "$GCC" = yes; then
9389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9390fi
d7040cdb 9391
d7040cdb 9392
d7040cdb
SE
9393
9394
d7040cdb
SE
9395
9396
d7040cdb
SE
9397
9398
d7040cdb
SE
9399
9400
d7040cdb
SE
9401
9402
d7040cdb 9403
d7040cdb 9404
d7040cdb 9405
d7040cdb 9406
d7040cdb 9407
d7040cdb 9408
d7040cdb 9409
d7040cdb 9410
d7040cdb 9411
d7040cdb 9412
d7040cdb 9413
d7040cdb 9414
d7040cdb 9415
d7040cdb 9416
d7040cdb
SE
9417
9418
d7040cdb 9419
d7040cdb 9420
d7040cdb 9421
d7040cdb 9422
d7040cdb 9423
d7040cdb 9424
d7040cdb 9425
d7040cdb 9426
d7040cdb 9427
d7040cdb
SE
9428
9429
d7040cdb 9430
d7040cdb 9431
d7040cdb 9432
d7040cdb
SE
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
d7040cdb
SE
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
d7040cdb 9462
d7040cdb 9463
dabbade6
L
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9479echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9480hardcode_action=
9481if test -n "$hardcode_libdir_flag_spec" ||
9482 test -n "$runpath_var" ||
9483 test "X$hardcode_automatic" = "Xyes" ; then
9484
9485 # We can hardcode non-existent directories.
9486 if test "$hardcode_direct" != no &&
9487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9488 # have to relink, otherwise we might link with an installed library
9489 # when we should be linking with a yet-to-be-installed one
9490 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9491 test "$hardcode_minus_L" != no; then
9492 # Linking always hardcodes the temporary library directory.
9493 hardcode_action=relink
9494 else
9495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9496 hardcode_action=immediate
9497 fi
9498else
9499 # We cannot hardcode anything, or else we can only hardcode existing
9500 # directories.
9501 hardcode_action=unsupported
9502fi
9503echo "$as_me:$LINENO: result: $hardcode_action" >&5
9504echo "${ECHO_T}$hardcode_action" >&6
9505
9506if test "$hardcode_action" = relink ||
9507 test "$inherit_rpath" = yes; then
9508 # Fast installation is not supported
9509 enable_fast_install=no
9510elif test "$shlibpath_overrides_runpath" = yes ||
9511 test "$enable_shared" = no; then
9512 # Fast installation is not necessary
9513 enable_fast_install=needless
9514fi
9515
9516
9517
9518
9519
9520
9521 if test "x$enable_dlopen" != xyes; then
9522 enable_dlopen=unknown
9523 enable_dlopen_self=unknown
9524 enable_dlopen_self_static=unknown
9525else
9526 lt_cv_dlopen=no
9527 lt_cv_dlopen_libs=
9528
d7040cdb 9529 case $host_os in
dabbade6
L
9530 beos*)
9531 lt_cv_dlopen="load_add_on"
9532 lt_cv_dlopen_libs=
9533 lt_cv_dlopen_self=yes
d7040cdb
SE
9534 ;;
9535
dabbade6
L
9536 mingw* | pw32*)
9537 lt_cv_dlopen="LoadLibrary"
9538 lt_cv_dlopen_libs=
d7040cdb 9539 ;;
d7040cdb 9540
dabbade6
L
9541 cygwin*)
9542 lt_cv_dlopen="dlopen"
9543 lt_cv_dlopen_libs=
9544 ;;
d7040cdb 9545
dabbade6
L
9546 darwin*)
9547 # if libdl is installed we need to link against it
9548 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9549echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9550if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 ac_check_lib_save_LIBS=$LIBS
9554LIBS="-ldl $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. */
d7040cdb 9561
dabbade6
L
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 dlopen ();
9569int
9570main ()
9571{
9572dlopen ();
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); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_lib_dl_dlopen=yes
9600else
9601 echo "$as_me: failed program was:" >&5
9602sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9603
dabbade6 9604ac_cv_lib_dl_dlopen=no
d7040cdb 9605fi
dabbade6
L
9606rm -f conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608LIBS=$ac_check_lib_save_LIBS
9609fi
9610echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9611echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9612if test $ac_cv_lib_dl_dlopen = yes; then
9613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9614else
d7040cdb 9615
dabbade6
L
9616 lt_cv_dlopen="dyld"
9617 lt_cv_dlopen_libs=
9618 lt_cv_dlopen_self=yes
d7040cdb 9619
dabbade6 9620fi
d7040cdb 9621
dabbade6 9622 ;;
d7040cdb 9623
dabbade6
L
9624 *)
9625 echo "$as_me:$LINENO: checking for shl_load" >&5
9626echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9627if test "${ac_cv_func_shl_load+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629else
9630 cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
9636/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9638#define shl_load innocuous_shl_load
d7040cdb 9639
dabbade6
L
9640/* System header to define __stub macros and hopefully few prototypes,
9641 which can conflict with char shl_load (); below.
9642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643 <limits.h> exists even on freestanding compilers. */
d7040cdb 9644
dabbade6
L
9645#ifdef __STDC__
9646# include <limits.h>
9647#else
9648# include <assert.h>
9649#endif
d7040cdb 9650
dabbade6 9651#undef shl_load
d7040cdb 9652
dabbade6
L
9653/* Override any gcc2 internal prototype to avoid an error. */
9654#ifdef __cplusplus
9655extern "C"
9656{
9657#endif
9658/* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9660char shl_load ();
9661/* The GNU C library defines this for functions which it implements
9662 to always fail with ENOSYS. Some functions are actually named
9663 something starting with __ and the normal name is an alias. */
9664#if defined (__stub_shl_load) || defined (__stub___shl_load)
9665choke me
9666#else
9667char (*f) () = shl_load;
9668#endif
9669#ifdef __cplusplus
9670}
9671#endif
d7040cdb 9672
dabbade6
L
9673int
9674main ()
9675{
9676return f != shl_load;
9677 ;
9678 return 0;
9679}
9680_ACEOF
9681rm -f conftest.$ac_objext conftest$ac_exeext
9682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -z "$ac_c_werror_flag"
9691 || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_cv_func_shl_load=yes
9704else
9705 echo "$as_me: failed program was:" >&5
9706sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9707
dabbade6
L
9708ac_cv_func_shl_load=no
9709fi
9710rm -f conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712fi
9713echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9714echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9715if test $ac_cv_func_shl_load = yes; then
9716 lt_cv_dlopen="shl_load"
9717else
9718 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9719echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9720if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 ac_check_lib_save_LIBS=$LIBS
9724LIBS="-ldld $LIBS"
9725cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
d7040cdb 9731
dabbade6
L
9732/* Override any gcc2 internal prototype to avoid an error. */
9733#ifdef __cplusplus
9734extern "C"
9735#endif
9736/* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738char shl_load ();
9739int
9740main ()
9741{
9742shl_load ();
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext conftest$ac_exeext
9748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749 (eval $ac_link) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_lib_dld_shl_load=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9773
dabbade6
L
9774ac_cv_lib_dld_shl_load=no
9775fi
9776rm -f conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778LIBS=$ac_check_lib_save_LIBS
9779fi
9780echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9781echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9782if test $ac_cv_lib_dld_shl_load = yes; then
9783 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9784else
9785 echo "$as_me:$LINENO: checking for dlopen" >&5
9786echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9787if test "${ac_cv_func_dlopen+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789else
9790 cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h. */
9796/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9798#define dlopen innocuous_dlopen
d7040cdb 9799
dabbade6
L
9800/* System header to define __stub macros and hopefully few prototypes,
9801 which can conflict with char dlopen (); below.
9802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9803 <limits.h> exists even on freestanding compilers. */
d7040cdb 9804
dabbade6
L
9805#ifdef __STDC__
9806# include <limits.h>
9807#else
9808# include <assert.h>
9809#endif
d7040cdb 9810
dabbade6 9811#undef dlopen
d7040cdb 9812
dabbade6
L
9813/* Override any gcc2 internal prototype to avoid an error. */
9814#ifdef __cplusplus
9815extern "C"
9816{
9817#endif
9818/* We use char because int might match the return type of a gcc2
9819 builtin and then its argument prototype would still apply. */
9820char dlopen ();
9821/* The GNU C library defines this for functions which it implements
9822 to always fail with ENOSYS. Some functions are actually named
9823 something starting with __ and the normal name is an alias. */
9824#if defined (__stub_dlopen) || defined (__stub___dlopen)
9825choke me
9826#else
9827char (*f) () = dlopen;
9828#endif
9829#ifdef __cplusplus
9830}
9831#endif
d7040cdb 9832
dabbade6
L
9833int
9834main ()
9835{
9836return f != dlopen;
9837 ;
9838 return 0;
9839}
9840_ACEOF
9841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_func_dlopen=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9867
dabbade6
L
9868ac_cv_func_dlopen=no
9869fi
9870rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872fi
9873echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9874echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9875if test $ac_cv_func_dlopen = yes; then
9876 lt_cv_dlopen="dlopen"
9877else
9878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882else
9883 ac_check_lib_save_LIBS=$LIBS
9884LIBS="-ldl $LIBS"
9885cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h. */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h. */
d7040cdb 9891
dabbade6
L
9892/* Override any gcc2 internal prototype to avoid an error. */
9893#ifdef __cplusplus
9894extern "C"
9895#endif
9896/* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898char dlopen ();
9899int
9900main ()
9901{
9902dlopen ();
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907rm -f conftest.$ac_objext conftest$ac_exeext
9908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909 (eval $ac_link) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag"
9917 || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_lib_dl_dlopen=yes
9930else
9931 echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9933
dabbade6
L
9934ac_cv_lib_dl_dlopen=no
9935fi
9936rm -f conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938LIBS=$ac_check_lib_save_LIBS
9939fi
9940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9942if test $ac_cv_lib_dl_dlopen = yes; then
9943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9944else
9945 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9946echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9947if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949else
9950 ac_check_lib_save_LIBS=$LIBS
9951LIBS="-lsvld $LIBS"
9952cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h. */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h. */
d7040cdb 9958
dabbade6
L
9959/* Override any gcc2 internal prototype to avoid an error. */
9960#ifdef __cplusplus
9961extern "C"
9962#endif
9963/* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9965char dlopen ();
9966int
9967main ()
9968{
9969dlopen ();
9970 ;
9971 return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext conftest$ac_exeext
9975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag"
9984 || test ! -s conftest.err'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 (eval $ac_try) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_lib_svld_dlopen=yes
9997else
9998 echo "$as_me: failed program was:" >&5
9999sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10000
dabbade6
L
10001ac_cv_lib_svld_dlopen=no
10002fi
10003rm -f conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005LIBS=$ac_check_lib_save_LIBS
10006fi
10007echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10008echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10009if test $ac_cv_lib_svld_dlopen = yes; then
10010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10011else
10012 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10013echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10014if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017 ac_check_lib_save_LIBS=$LIBS
10018LIBS="-ldld $LIBS"
10019cat >conftest.$ac_ext <<_ACEOF
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
d7040cdb 10025
dabbade6
L
10026/* Override any gcc2 internal prototype to avoid an error. */
10027#ifdef __cplusplus
10028extern "C"
10029#endif
10030/* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10032char dld_link ();
10033int
10034main ()
10035{
10036dld_link ();
10037 ;
10038 return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext conftest$ac_exeext
10042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_lib_dld_dld_link=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10067
dabbade6 10068ac_cv_lib_dld_dld_link=no
d7040cdb 10069fi
dabbade6
L
10070rm -f conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072LIBS=$ac_check_lib_save_LIBS
d7040cdb 10073fi
dabbade6
L
10074echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10075echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10076if test $ac_cv_lib_dld_dld_link = yes; then
10077 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
d7040cdb
SE
10078fi
10079
d7040cdb 10080
d7040cdb
SE
10081fi
10082
10083
dabbade6 10084fi
d7040cdb
SE
10085
10086
dabbade6 10087fi
d7040cdb
SE
10088
10089
d7040cdb
SE
10090fi
10091
979273e3 10092
252b5132 10093fi
252b5132 10094
dabbade6
L
10095 ;;
10096 esac
252b5132 10097
dabbade6
L
10098 if test "x$lt_cv_dlopen" != xno; then
10099 enable_dlopen=yes
10100 else
10101 enable_dlopen=no
10102 fi
1c0d3aa6 10103
dabbade6
L
10104 case $lt_cv_dlopen in
10105 dlopen)
10106 save_CPPFLAGS="$CPPFLAGS"
10107 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 10108
dabbade6
L
10109 save_LDFLAGS="$LDFLAGS"
10110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 10111
dabbade6
L
10112 save_LIBS="$LIBS"
10113 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 10114
dabbade6
L
10115 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10116echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10117if test "${lt_cv_dlopen_self+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10119else
dabbade6
L
10120 if test "$cross_compiling" = yes; then :
10121 lt_cv_dlopen_self=cross
d7040cdb 10122else
dabbade6
L
10123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10124 lt_status=$lt_dlunknown
10125 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10126#line 10126 "configure"
dabbade6 10127#include "confdefs.h"
20e95c23 10128
dabbade6
L
10129#if HAVE_DLFCN_H
10130#include <dlfcn.h>
10131#endif
20e95c23 10132
dabbade6 10133#include <stdio.h>
20e95c23 10134
dabbade6
L
10135#ifdef RTLD_GLOBAL
10136# define LT_DLGLOBAL RTLD_GLOBAL
10137#else
10138# ifdef DL_GLOBAL
10139# define LT_DLGLOBAL DL_GLOBAL
10140# else
10141# define LT_DLGLOBAL 0
10142# endif
10143#endif
20e95c23 10144
dabbade6
L
10145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10146 find out it does not work in some platform. */
10147#ifndef LT_DLLAZY_OR_NOW
10148# ifdef RTLD_LAZY
10149# define LT_DLLAZY_OR_NOW RTLD_LAZY
10150# else
10151# ifdef DL_LAZY
10152# define LT_DLLAZY_OR_NOW DL_LAZY
10153# else
10154# ifdef RTLD_NOW
10155# define LT_DLLAZY_OR_NOW RTLD_NOW
10156# else
10157# ifdef DL_NOW
10158# define LT_DLLAZY_OR_NOW DL_NOW
10159# else
10160# define LT_DLLAZY_OR_NOW 0
10161# endif
10162# endif
10163# endif
10164# endif
10165#endif
20e95c23 10166
dabbade6
L
10167#ifdef __cplusplus
10168extern "C" void exit (int);
10169#endif
979273e3 10170
dabbade6
L
10171void fnord() { int i=42;}
10172int main ()
10173{
10174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10175 int status = $lt_dlunknown;
20e95c23 10176
dabbade6
L
10177 if (self)
10178 {
10179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10181 /* dlclose (self); */
10182 }
10183 else
10184 puts (dlerror ());
d7040cdb 10185
dabbade6
L
10186 exit (status);
10187}
10188_LT_EOF
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10194 (./conftest; exit; ) >&5 2>/dev/null
10195 lt_status=$?
10196 case x$lt_status in
10197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10199 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10200 esac
10201 else :
10202 # compilation failed
10203 lt_cv_dlopen_self=no
10204 fi
d7040cdb 10205fi
dabbade6
L
10206rm -fr conftest*
10207
252b5132 10208
d7040cdb 10209fi
dabbade6
L
10210echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10211echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d7040cdb 10212
dabbade6
L
10213 if test "x$lt_cv_dlopen_self" = xyes; then
10214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10215 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10216echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10217if test "${lt_cv_dlopen_self_static+set}" = set; then
979273e3 10218 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10219else
dabbade6
L
10220 if test "$cross_compiling" = yes; then :
10221 lt_cv_dlopen_self_static=cross
d7040cdb 10222else
dabbade6
L
10223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10224 lt_status=$lt_dlunknown
10225 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10226#line 10226 "configure"
dabbade6 10227#include "confdefs.h"
252b5132 10228
dabbade6
L
10229#if HAVE_DLFCN_H
10230#include <dlfcn.h>
10231#endif
252b5132 10232
dabbade6 10233#include <stdio.h>
d7040cdb 10234
dabbade6
L
10235#ifdef RTLD_GLOBAL
10236# define LT_DLGLOBAL RTLD_GLOBAL
10237#else
10238# ifdef DL_GLOBAL
10239# define LT_DLGLOBAL DL_GLOBAL
10240# else
10241# define LT_DLGLOBAL 0
10242# endif
10243#endif
20e95c23 10244
dabbade6
L
10245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10246 find out it does not work in some platform. */
10247#ifndef LT_DLLAZY_OR_NOW
10248# ifdef RTLD_LAZY
10249# define LT_DLLAZY_OR_NOW RTLD_LAZY
10250# else
10251# ifdef DL_LAZY
10252# define LT_DLLAZY_OR_NOW DL_LAZY
10253# else
10254# ifdef RTLD_NOW
10255# define LT_DLLAZY_OR_NOW RTLD_NOW
10256# else
10257# ifdef DL_NOW
10258# define LT_DLLAZY_OR_NOW DL_NOW
10259# else
10260# define LT_DLLAZY_OR_NOW 0
10261# endif
10262# endif
10263# endif
10264# endif
10265#endif
979273e3 10266
dabbade6
L
10267#ifdef __cplusplus
10268extern "C" void exit (int);
10269#endif
20e95c23 10270
dabbade6
L
10271void fnord() { int i=42;}
10272int main ()
10273{
10274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10275 int status = $lt_dlunknown;
d7040cdb 10276
dabbade6
L
10277 if (self)
10278 {
10279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10280 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10281 /* dlclose (self); */
10282 }
10283 else
10284 puts (dlerror ());
d7040cdb 10285
dabbade6
L
10286 exit (status);
10287}
10288_LT_EOF
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10294 (./conftest; exit; ) >&5 2>/dev/null
10295 lt_status=$?
10296 case x$lt_status in
10297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10300 esac
10301 else :
10302 # compilation failed
10303 lt_cv_dlopen_self_static=no
10304 fi
20e95c23 10305fi
dabbade6 10306rm -fr conftest*
979273e3 10307
d7040cdb
SE
10308
10309fi
dabbade6
L
10310echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10311echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10312 fi
10313
10314 CPPFLAGS="$save_CPPFLAGS"
10315 LDFLAGS="$save_LDFLAGS"
10316 LIBS="$save_LIBS"
10317 ;;
10318 esac
10319
10320 case $lt_cv_dlopen_self in
10321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10322 *) enable_dlopen_self=unknown ;;
10323 esac
10324
10325 case $lt_cv_dlopen_self_static in
10326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10327 *) enable_dlopen_self_static=unknown ;;
10328 esac
d7040cdb 10329fi
dabbade6
L
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347striplib=
10348old_striplib=
10349echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10350echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10351if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10354 echo "$as_me:$LINENO: result: yes" >&5
10355echo "${ECHO_T}yes" >&6
d7040cdb 10356else
dabbade6
L
10357# FIXME - insert some real tests, host_os isn't really good enough
10358 case $host_os in
10359 darwin*)
10360 if test -n "$STRIP" ; then
10361 striplib="$STRIP -x"
10362 old_striplib="$STRIP -S"
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369 ;;
10370 *)
10371 echo "$as_me:$LINENO: result: no" >&5
d7040cdb 10372echo "${ECHO_T}no" >&6
dabbade6
L
10373 ;;
10374 esac
d7040cdb 10375fi
20e95c23 10376
979273e3 10377
dabbade6
L
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388 # Report which library types will actually be built
10389 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10390echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10391 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10392echo "${ECHO_T}$can_build_shared" >&6
10393
10394 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10395echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10396 test "$can_build_shared" = "no" && enable_shared=no
10397
10398 # On AIX, shared libraries and static libraries use the same namespace, and
10399 # are all built from PIC.
10400 case $host_os in
10401 aix3*)
10402 test "$enable_shared" = yes && enable_static=no
10403 if test -n "$RANLIB"; then
10404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10405 postinstall_cmds='$RANLIB $lib'
10406 fi
10407 ;;
10408
50e7d84b 10409 aix[4-9]*)
dabbade6
L
10410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10411 test "$enable_shared" = yes && enable_static=no
10412 fi
10413 ;;
10414 esac
10415 echo "$as_me:$LINENO: result: $enable_shared" >&5
10416echo "${ECHO_T}$enable_shared" >&6
10417
10418 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10419echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10420 # Make sure either enable_shared or enable_static is yes.
10421 test "$enable_shared" = yes || enable_static=yes
10422 echo "$as_me:$LINENO: result: $enable_static" >&5
10423echo "${ECHO_T}$enable_static" >&6
10424
10425
10426
d7040cdb 10427
252b5132 10428fi
dabbade6
L
10429ac_ext=c
10430ac_cpp='$CPP $CPPFLAGS'
10431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 10434
dabbade6 10435CC="$lt_save_CC"
20e95c23 10436
20e95c23 10437
d7040cdb 10438
d7040cdb 10439
d7040cdb 10440
20e95c23 10441
dabbade6
L
10442
10443
10444
10445
10446
10447
10448
10449 ac_config_commands="$ac_config_commands libtool"
10450
10451
10452
10453
10454# Only expand once:
10455
10456
10457
10458# Check whether --enable-targets or --disable-targets was given.
10459if test "${enable_targets+set}" = set; then
10460 enableval="$enable_targets"
10461 case "${enableval}" in
10462 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10463echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10464 { (exit 1); exit 1; }; }
10465 ;;
10466 no) enable_targets= ;;
10467 *) enable_targets=$enableval ;;
10468esac
10469fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10470if test "${enable_commonbfdlib+set}" = set; then
10471 enableval="$enable_commonbfdlib"
10472 case "${enableval}" in
10473 yes) commonbfdlib=true ;;
10474 no) commonbfdlib=false ;;
10475 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
10476echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
10477 { (exit 1); exit 1; }; } ;;
10478esac
10479fi;
10480
10481GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10482
10483# Check whether --enable-werror or --disable-werror was given.
10484if test "${enable_werror+set}" = set; then
10485 enableval="$enable_werror"
10486 case "${enableval}" in
10487 yes | y) ERROR_ON_WARNING="yes" ;;
10488 no | n) ERROR_ON_WARNING="no" ;;
10489 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10490echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10491 { (exit 1); exit 1; }; } ;;
10492 esac
10493fi;
10494
bb8541b9
L
10495# Enable -Wno-format by default when using gcc on mingw
10496case "${host}" in
10497 *-*-mingw32*)
10498 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10499 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10500 fi
10501 ;;
10502 *) ;;
10503esac
10504
dabbade6
L
10505# Enable -Werror by default when using gcc
10506if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10507 ERROR_ON_WARNING=yes
d7040cdb 10508fi
20e95c23 10509
dabbade6
L
10510NO_WERROR=
10511if test "${ERROR_ON_WARNING}" = yes ; then
10512 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10513 NO_WERROR="-Wno-error"
20e95c23 10514fi
d7040cdb 10515
dabbade6
L
10516if test "${GCC}" = yes ; then
10517 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10518fi
d7040cdb 10519
dabbade6
L
10520# Check whether --enable-build-warnings or --disable-build-warnings was given.
10521if test "${enable_build_warnings+set}" = set; then
10522 enableval="$enable_build_warnings"
10523 case "${enableval}" in
10524 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10525 no) if test "${GCC}" = yes ; then
10526 WARN_CFLAGS="-w"
10527 fi;;
10528 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10529 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10530 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10531 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10532 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10533esac
10534fi;
979273e3 10535
dabbade6
L
10536if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10537 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 10538fi
dabbade6
L
10539
10540
10541
10542
10543
10544 ac_config_headers="$ac_config_headers config.h:config.in"
10545
10546
10547if test -z "$target" ; then
10548 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10549echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10550 { (exit 1); exit 1; }; }
d7040cdb 10551fi
dabbade6
L
10552
10553echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10554echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10555 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10556if test "${enable_maintainer_mode+set}" = set; then
10557 enableval="$enable_maintainer_mode"
10558 USE_MAINTAINER_MODE=$enableval
d7040cdb 10559else
dabbade6
L
10560 USE_MAINTAINER_MODE=no
10561fi;
10562 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10563echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d7040cdb 10564
d7040cdb 10565
dabbade6
L
10566if test $USE_MAINTAINER_MODE = yes; then
10567 MAINTAINER_MODE_TRUE=
10568 MAINTAINER_MODE_FALSE='#'
252b5132 10569else
dabbade6
L
10570 MAINTAINER_MODE_TRUE='#'
10571 MAINTAINER_MODE_FALSE=
252b5132 10572fi
d7040cdb 10573
dabbade6
L
10574 MAINT=$MAINTAINER_MODE_TRUE
10575
10576
10577 case ${build_alias} in
10578 "") build_noncanonical=${build} ;;
10579 *) build_noncanonical=${build_alias} ;;
10580esac
10581
10582 case ${host_alias} in
10583 "") host_noncanonical=${build_noncanonical} ;;
10584 *) host_noncanonical=${host_alias} ;;
10585esac
979273e3 10586
dabbade6
L
10587 case ${target_alias} in
10588 "") target_noncanonical=${host_noncanonical} ;;
10589 *) target_noncanonical=${target_alias} ;;
d7040cdb 10590esac
252b5132 10591
dabbade6
L
10592echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10593echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10594 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10595if test "${enable_install_libbfd+set}" = set; then
10596 enableval="$enable_install_libbfd"
10597 install_libbfd_p=$enableval
979273e3 10598else
dabbade6
L
10599 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10600 install_libbfd_p=yes
10601 else
10602 install_libbfd_p=no
10603 fi
10604fi;
10605 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10606echo "${ECHO_T}$install_libbfd_p" >&6
979273e3 10607
d7040cdb 10608
dabbade6
L
10609if test $install_libbfd_p = yes; then
10610 INSTALL_LIBBFD_TRUE=
10611 INSTALL_LIBBFD_FALSE='#'
10612else
10613 INSTALL_LIBBFD_TRUE='#'
10614 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
10615fi
10616
dabbade6 10617 # Need _noncanonical variables for this.
979273e3 10618
d7040cdb
SE
10619
10620
dabbade6
L
10621
10622 # libbfd.a is a host library containing target dependent code
10623 bfdlibdir='$(libdir)'
10624 bfdincludedir='$(includedir)'
10625 if test "${host}" != "${target}"; then
10626 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10627 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10628 fi
10629
10630
10631
10632
10633
10634
10635# host-specific stuff:
10636
d7040cdb
SE
10637ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10638# If we haven't got the data from the intl directory,
10639# assume NLS is disabled.
10640USE_NLS=no
10641LIBINTL=
10642LIBINTL_DEP=
10643INCINTL=
10644XGETTEXT=
10645GMSGFMT=
10646POSUB=
10647
10648if test -f ../intl/config.intl; then
10649 . ../intl/config.intl
10650fi
10651echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10652echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10653if test x"$USE_NLS" != xyes; then
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656else
10657 echo "$as_me:$LINENO: result: yes" >&5
10658echo "${ECHO_T}yes" >&6
10659
10660cat >>confdefs.h <<\_ACEOF
10661#define ENABLE_NLS 1
10662_ACEOF
10663
10664
10665 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10666echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10667 # Look for .po and .gmo files in the source directory.
10668 CATALOGS=
10669 XLINGUAS=
10670 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10671 # If there aren't any .gmo files the shell will give us the
10672 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10673 # weeded out.
10674 case "$cat" in *\**)
10675 continue;;
10676 esac
10677 # The quadruple backslash is collapsed to a double backslash
10678 # by the backticks, then collapsed again by the double quotes,
10679 # leaving us with one backslash in the sed expression (right
10680 # before the dot that mustn't act as a wildcard).
10681 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10682 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10683 # The user is allowed to set LINGUAS to a list of languages to
10684 # install catalogs for. If it's empty that means "all of them."
10685 if test "x$LINGUAS" = x; then
10686 CATALOGS="$CATALOGS $cat"
10687 XLINGUAS="$XLINGUAS $lang"
10688 else
10689 case "$LINGUAS" in *$lang*)
10690 CATALOGS="$CATALOGS $cat"
10691 XLINGUAS="$XLINGUAS $lang"
10692 ;;
10693 esac
10694 fi
10695 done
10696 LINGUAS="$XLINGUAS"
10697 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10698echo "${ECHO_T}$LINGUAS" >&6
10699
10700
10701 DATADIRNAME=share
10702
10703 INSTOBJEXT=.mo
10704
10705 GENCAT=gencat
10706
10707 CATOBJEXT=.gmo
10708
10709fi
10710
10711 MKINSTALLDIRS=
10712 if test -n "$ac_aux_dir"; then
10713 case "$ac_aux_dir" in
10714 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10715 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10716 esac
10717 fi
10718 if test -z "$MKINSTALLDIRS"; then
10719 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10720 fi
10721
10722
10723
10724 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10725echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10726 # Check whether --enable-nls or --disable-nls was given.
10727if test "${enable_nls+set}" = set; then
10728 enableval="$enable_nls"
10729 USE_NLS=$enableval
10730else
10731 USE_NLS=yes
10732fi;
10733 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10734echo "${ECHO_T}$USE_NLS" >&6
10735
10736
10737
10738
10739
10740
10741# Prepare PATH_SEPARATOR.
10742# The user is always right.
10743if test "${PATH_SEPARATOR+set}" != set; then
10744 echo "#! /bin/sh" >conf$$.sh
10745 echo "exit 0" >>conf$$.sh
10746 chmod +x conf$$.sh
10747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10748 PATH_SEPARATOR=';'
10749 else
10750 PATH_SEPARATOR=:
10751 fi
10752 rm -f conf$$.sh
10753fi
979273e3 10754
d7040cdb
SE
10755# Find out how to test for executable files. Don't use a zero-byte file,
10756# as systems may use methods other than mode bits to determine executability.
10757cat >conf$$.file <<_ASEOF
10758#! /bin/sh
10759exit 0
10760_ASEOF
10761chmod +x conf$$.file
10762if test -x conf$$.file >/dev/null 2>&1; then
10763 ac_executable_p="test -x"
252b5132 10764else
d7040cdb 10765 ac_executable_p="test -f"
252b5132 10766fi
d7040cdb 10767rm -f conf$$.file
252b5132 10768
d7040cdb
SE
10769# Extract the first word of "msgfmt", so it can be a program name with args.
10770set dummy msgfmt; ac_word=$2
10771echo "$as_me:$LINENO: checking for $ac_word" >&5
10772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773if test "${ac_cv_path_MSGFMT+set}" = set; then
979273e3 10774 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10775else
d7040cdb
SE
10776 case "$MSGFMT" in
10777 [\\/]* | ?:[\\/]*)
10778 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10779 ;;
10780 *)
10781 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10782 for ac_dir in $PATH; do
10783 IFS="$ac_save_IFS"
10784 test -z "$ac_dir" && ac_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10787 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10788 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10789 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10790 break 2
10791 fi
10792 fi
10793 done
10794 done
10795 IFS="$ac_save_IFS"
10796 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10797 ;;
10798esac
10799fi
10800MSGFMT="$ac_cv_path_MSGFMT"
10801if test "$MSGFMT" != ":"; then
10802 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10803echo "${ECHO_T}$MSGFMT" >&6
10804else
10805 echo "$as_me:$LINENO: result: no" >&5
10806echo "${ECHO_T}no" >&6
252b5132
RH
10807fi
10808
d7040cdb
SE
10809 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10810set dummy gmsgfmt; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_path_GMSGFMT+set}" = set; then
20e95c23
DJ
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
d7040cdb
SE
10816 case $GMSGFMT in
10817 [\\/]* | ?:[\\/]*)
10818 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10819 ;;
10820 *)
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822for as_dir in $PATH
10823do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10831 fi
10832done
10833done
252b5132 10834
d7040cdb
SE
10835 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10836 ;;
10837esac
10838fi
10839GMSGFMT=$ac_cv_path_GMSGFMT
20e95c23 10840
d7040cdb
SE
10841if test -n "$GMSGFMT"; then
10842 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10843echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10844else
d7040cdb
SE
10845 echo "$as_me:$LINENO: result: no" >&5
10846echo "${ECHO_T}no" >&6
252b5132
RH
10847fi
10848
10849
20e95c23 10850
d7040cdb
SE
10851# Prepare PATH_SEPARATOR.
10852# The user is always right.
10853if test "${PATH_SEPARATOR+set}" != set; then
10854 echo "#! /bin/sh" >conf$$.sh
10855 echo "exit 0" >>conf$$.sh
10856 chmod +x conf$$.sh
10857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10858 PATH_SEPARATOR=';'
10859 else
10860 PATH_SEPARATOR=:
10861 fi
10862 rm -f conf$$.sh
252b5132
RH
10863fi
10864
d7040cdb
SE
10865# Find out how to test for executable files. Don't use a zero-byte file,
10866# as systems may use methods other than mode bits to determine executability.
10867cat >conf$$.file <<_ASEOF
10868#! /bin/sh
10869exit 0
10870_ASEOF
10871chmod +x conf$$.file
10872if test -x conf$$.file >/dev/null 2>&1; then
10873 ac_executable_p="test -x"
10874else
10875 ac_executable_p="test -f"
10876fi
10877rm -f conf$$.file
20e95c23 10878
d7040cdb
SE
10879# Extract the first word of "xgettext", so it can be a program name with args.
10880set dummy xgettext; ac_word=$2
10881echo "$as_me:$LINENO: checking for $ac_word" >&5
10882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883if test "${ac_cv_path_XGETTEXT+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10885else
d7040cdb
SE
10886 case "$XGETTEXT" in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10889 ;;
10890 *)
10891 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10892 for ac_dir in $PATH; do
10893 IFS="$ac_save_IFS"
10894 test -z "$ac_dir" && ac_dir=.
10895 for ac_exec_ext in '' $ac_executable_extensions; do
10896 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10897 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10898 (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
10899 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10900 break 2
10901 fi
10902 fi
10903 done
10904 done
10905 IFS="$ac_save_IFS"
10906 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10907 ;;
10908esac
20e95c23 10909fi
d7040cdb
SE
10910XGETTEXT="$ac_cv_path_XGETTEXT"
10911if test "$XGETTEXT" != ":"; then
10912 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10913echo "${ECHO_T}$XGETTEXT" >&6
10914else
10915 echo "$as_me:$LINENO: result: no" >&5
10916echo "${ECHO_T}no" >&6
10917fi
10918
10919 rm -f messages.po
10920
979273e3 10921
d7040cdb
SE
10922# Prepare PATH_SEPARATOR.
10923# The user is always right.
10924if test "${PATH_SEPARATOR+set}" != set; then
10925 echo "#! /bin/sh" >conf$$.sh
10926 echo "exit 0" >>conf$$.sh
10927 chmod +x conf$$.sh
10928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10929 PATH_SEPARATOR=';'
10930 else
10931 PATH_SEPARATOR=:
10932 fi
10933 rm -f conf$$.sh
252b5132 10934fi
979273e3 10935
d7040cdb
SE
10936# Find out how to test for executable files. Don't use a zero-byte file,
10937# as systems may use methods other than mode bits to determine executability.
10938cat >conf$$.file <<_ASEOF
10939#! /bin/sh
10940exit 0
10941_ASEOF
10942chmod +x conf$$.file
10943if test -x conf$$.file >/dev/null 2>&1; then
10944 ac_executable_p="test -x"
252b5132 10945else
d7040cdb
SE
10946 ac_executable_p="test -f"
10947fi
10948rm -f conf$$.file
252b5132 10949
d7040cdb
SE
10950# Extract the first word of "msgmerge", so it can be a program name with args.
10951set dummy msgmerge; ac_word=$2
10952echo "$as_me:$LINENO: checking for $ac_word" >&5
10953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10954if test "${ac_cv_path_MSGMERGE+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10956else
d7040cdb
SE
10957 case "$MSGMERGE" in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10960 ;;
10961 *)
10962 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10963 for ac_dir in $PATH; do
10964 IFS="$ac_save_IFS"
10965 test -z "$ac_dir" && ac_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10968 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10969 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10970 break 2
10971 fi
10972 fi
10973 done
10974 done
10975 IFS="$ac_save_IFS"
10976 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10977 ;;
10978esac
20e95c23 10979fi
d7040cdb
SE
10980MSGMERGE="$ac_cv_path_MSGMERGE"
10981if test "$MSGMERGE" != ":"; then
10982 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10983echo "${ECHO_T}$MSGMERGE" >&6
10984else
10985 echo "$as_me:$LINENO: result: no" >&5
10986echo "${ECHO_T}no" >&6
20e95c23 10987fi
252b5132 10988
979273e3 10989
d7040cdb
SE
10990 if test "$GMSGFMT" != ":"; then
10991 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10992 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10993 : ;
10994 else
10995 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10996 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10997echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10998 GMSGFMT=":"
10999 fi
11000 fi
979273e3 11001
d7040cdb
SE
11002 if test "$XGETTEXT" != ":"; then
11003 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11004 (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
11005 : ;
11006 else
11007 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11008echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11009 XGETTEXT=":"
11010 fi
11011 rm -f messages.po
11012 fi
979273e3 11013
d7040cdb 11014 ac_config_commands="$ac_config_commands default-1"
c46f8c51 11015
c46f8c51 11016
979273e3 11017
d7040cdb 11018. ${srcdir}/../bfd/configure.host
252b5132 11019
d7040cdb
SE
11020# Put a plausible default for CC_FOR_BUILD in Makefile.
11021if test -z "$CC_FOR_BUILD"; then
11022 if test "x$cross_compiling" = "xno"; then
11023 CC_FOR_BUILD='$(CC)'
11024 else
11025 CC_FOR_BUILD=gcc
11026 fi
11027fi
252b5132 11028
d7040cdb
SE
11029# Also set EXEEXT_FOR_BUILD.
11030if test "x$cross_compiling" = "xno"; then
11031 EXEEXT_FOR_BUILD='$(EXEEXT)'
11032else
11033 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11034echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11035if test "${bfd_cv_build_exeext+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 rm -f conftest*
11039 echo 'int main () { return 0; }' > conftest.c
11040 bfd_cv_build_exeext=
11041 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11042 for file in conftest.*; do
11043 case $file in
11044 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11045 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11046 esac
11047 done
11048 rm -f conftest*
11049 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11050fi
11051echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11052echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11053 EXEEXT_FOR_BUILD=""
11054 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11055fi
252b5132 11056
979273e3 11057
252b5132 11058
d7040cdb
SE
11059# Find a good install program. We prefer a C program (faster),
11060# so one script is as good as another. But avoid the broken or
11061# incompatible versions:
11062# SysV /etc/install, /usr/sbin/install
11063# SunOS /usr/etc/install
11064# IRIX /sbin/install
11065# AIX /bin/install
11066# AmigaOS /C/install, which installs bootblocks on floppy discs
11067# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11068# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11069# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11070# OS/2's system install, which has a completely different semantic
11071# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11072# Reject install programs that cannot install multiple files.
d7040cdb
SE
11073echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11074echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11075if test -z "$INSTALL"; then
11076if test "${ac_cv_path_install+set}" = set; then
979273e3 11077 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 11078else
d7040cdb
SE
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 # Account for people who put trailing slashes in PATH elements.
11085case $as_dir/ in
11086 ./ | .// | /cC/* | \
11087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11089 /usr/ucb/* ) ;;
11090 *)
11091 # OSF1 and SCO ODT 3.0 have their own names for install.
11092 # Don't use installbsd from OSF since it installs stuff as root
11093 # by default.
11094 for ac_prog in ginstall scoinst install; do
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11097 if test $ac_prog = install &&
11098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11099 # AIX install. It has an incompatible calling convention.
11100 :
11101 elif test $ac_prog = install &&
11102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11103 # program-specific install script used by HP pwplus--don't use.
11104 :
11105 else
58c85be7
RW
11106 rm -rf conftest.one conftest.two conftest.dir
11107 echo one > conftest.one
11108 echo two > conftest.two
11109 mkdir conftest.dir
11110 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11111 test -s conftest.one && test -s conftest.two &&
11112 test -s conftest.dir/conftest.one &&
11113 test -s conftest.dir/conftest.two
11114 then
11115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11116 break 3
11117 fi
d7040cdb
SE
11118 fi
11119 fi
11120 done
11121 done
11122 ;;
11123esac
11124done
11125
58c85be7 11126rm -rf conftest.one conftest.two conftest.dir
979273e3 11127
979273e3 11128fi
d7040cdb
SE
11129 if test "${ac_cv_path_install+set}" = set; then
11130 INSTALL=$ac_cv_path_install
11131 else
58c85be7
RW
11132 # As a last resort, use the slow shell script. Don't cache a
11133 # value for INSTALL within a source directory, because that will
d7040cdb 11134 # break other packages using the cache if that directory is
58c85be7 11135 # removed, or if the value is a relative name.
d7040cdb
SE
11136 INSTALL=$ac_install_sh
11137 fi
b6849f55 11138fi
d7040cdb
SE
11139echo "$as_me:$LINENO: result: $INSTALL" >&5
11140echo "${ECHO_T}$INSTALL" >&6
b6849f55 11141
d7040cdb
SE
11142# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11143# It thinks the first close brace ends the variable substitution.
11144test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b6849f55 11145
d7040cdb
SE
11146test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11147
11148test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
979273e3 11149
252b5132 11150
979273e3
NN
11151
11152
11153
40fb9820
L
11154
11155for ac_header in string.h strings.h stdlib.h limits.h
252b5132 11156do
979273e3
NN
11157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158if eval "test \"\${$as_ac_Header+set}\" = set"; then
11159 echo "$as_me:$LINENO: checking for $ac_header" >&5
11160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11161if eval "test \"\${$as_ac_Header+set}\" = set"; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163fi
11164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11166else
11167 # Is the header compilable?
11168echo "$as_me:$LINENO: checking $ac_header usability" >&5
11169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11170cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176$ac_includes_default
11177#include <$ac_header>
11178_ACEOF
11179rm -f conftest.$ac_objext
11180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181 (eval $ac_compile) 2>conftest.er1
11182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
8ae85421
AM
11188 { ac_try='test -z "$ac_c_werror_flag"
11189 || test ! -s conftest.err'
979273e3
NN
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_header_compiler=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206ac_header_compiler=no
11207fi
11208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11210echo "${ECHO_T}$ac_header_compiler" >&6
11211
11212# Is the header present?
11213echo "$as_me:$LINENO: checking $ac_header presence" >&5
11214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11215cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
11221#include <$ac_header>
11222_ACEOF
11223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } >/dev/null; then
11231 if test -s conftest.err; then
11232 ac_cpp_err=$ac_c_preproc_warn_flag
11233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11234 else
11235 ac_cpp_err=
11236 fi
252b5132 11237else
979273e3 11238 ac_cpp_err=yes
252b5132 11239fi
979273e3
NN
11240if test -z "$ac_cpp_err"; then
11241 ac_header_preproc=yes
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 ac_header_preproc=no
252b5132 11247fi
979273e3
NN
11248rm -f conftest.err conftest.$ac_ext
11249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11250echo "${ECHO_T}$ac_header_preproc" >&6
11251
11252# So? What about this header?
11253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11254 yes:no: )
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11259 ac_header_preproc=yes
11260 ;;
11261 no:yes:* )
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11274 (
11275 cat <<\_ASBOX
11276## ------------------------------------------ ##
11277## Report this to the AC_PACKAGE_NAME lists. ##
11278## ------------------------------------------ ##
11279_ASBOX
11280 ) |
11281 sed "s/^/$as_me: WARNING: /" >&2
11282 ;;
11283esac
11284echo "$as_me:$LINENO: checking for $ac_header" >&5
11285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11286if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11288else
979273e3
NN
11289 eval "$as_ac_Header=\$ac_header_preproc"
11290fi
11291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11293
11294fi
11295if test `eval echo '${'$as_ac_Header'}'` = yes; then
11296 cat >>confdefs.h <<_ACEOF
11297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298_ACEOF
11299
252b5132 11300fi
979273e3 11301
252b5132
RH
11302done
11303
11304
4bd60896
JG
11305echo "$as_me:$LINENO: checking whether basename is declared" >&5
11306echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11307if test "${ac_cv_have_decl_basename+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309else
11310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
db5152b4 11316$ac_includes_default
4bd60896
JG
11317int
11318main ()
11319{
11320#ifndef basename
11321 char *p = (char *) basename;
11322#endif
11323
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 ac_cv_have_decl_basename=yes
11351else
11352 echo "$as_me: failed program was:" >&5
11353sed 's/^/| /' conftest.$ac_ext >&5
11354
11355ac_cv_have_decl_basename=no
11356fi
11357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11360echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11361if test $ac_cv_have_decl_basename = yes; then
11362
11363cat >>confdefs.h <<_ACEOF
11364#define HAVE_DECL_BASENAME 1
11365_ACEOF
11366
11367
11368else
11369 cat >>confdefs.h <<_ACEOF
11370#define HAVE_DECL_BASENAME 0
11371_ACEOF
11372
11373
dabbade6
L
11374fi
11375echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11376echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11377if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386$ac_includes_default
11387int
11388main ()
11389{
11390#ifndef stpcpy
11391 char *p = (char *) stpcpy;
11392#endif
11393
11394 ;
11395 return 0;
11396}
11397_ACEOF
11398rm -f conftest.$ac_objext
11399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>conftest.er1
11401 ac_status=$?
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try='test -z "$ac_c_werror_flag"
11408 || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest.$ac_objext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_have_decl_stpcpy=yes
11421else
11422 echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425ac_cv_have_decl_stpcpy=no
11426fi
11427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428fi
11429echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11430echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11431if test $ac_cv_have_decl_stpcpy = yes; then
11432
11433cat >>confdefs.h <<_ACEOF
11434#define HAVE_DECL_STPCPY 1
11435_ACEOF
11436
11437
11438else
11439 cat >>confdefs.h <<_ACEOF
11440#define HAVE_DECL_STPCPY 0
11441_ACEOF
11442
11443
4bd60896
JG
11444fi
11445
11446
11447
6e31aea3
BE
11448cgen_maint=no
11449cgendir='$(srcdir)/../cgen'
11450
11451# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11452if test "${enable_cgen_maint+set}" = set; then
11453 enableval="$enable_cgen_maint"
11454 case "${enableval}" in
11455 yes) cgen_maint=yes ;;
11456 no) cgen_maint=no ;;
11457 *)
11458 # argument is cgen install directory (not implemented yet).
11459 # Having a `share' directory might be more appropriate for the .scm,
11460 # .cpu, etc. files.
11461 cgen_maint=yes
11462 cgendir=${cgen_maint}/lib/cgen
11463 ;;
11464esac
979273e3 11465fi;
6e31aea3
BE
11466
11467if test x${cgen_maint} = xyes; then
11468 CGEN_MAINT_TRUE=
11469 CGEN_MAINT_FALSE='#'
11470else
11471 CGEN_MAINT_TRUE='#'
11472 CGEN_MAINT_FALSE=
11473fi
11474
252b5132 11475
8ae85421 11476
252b5132
RH
11477using_cgen=no
11478
45d42143
NC
11479# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
11480SHARED_LDFLAGS=
11481SHARED_LIBADD=
11482SHARED_DEPENDENCIES=
11483if test "$enable_shared" = "yes"; then
11484 case "${host}" in
11485 *-*-cygwin*)
11486 SHARED_LDFLAGS="-no-undefined"
11487 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11488 ;;
0e336180
NC
11489 *-*-darwin*)
11490 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
11491 SHARED_DEPENDENCIES="../bfd/libbfd.la"
11492 ;;
45d42143 11493 *)
0e336180
NC
11494 case "$host_vendor" in
11495 hp)
11496 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
11497 ;;
11498 *)
11499 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
11500 ;;
11501 esac
defeac73 11502 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
11503 ;;
11504 esac
11505fi
11506
252b5132
RH
11507
11508
11509
11510# target-specific stuff:
11511
11512# Canonicalize the secondary target names.
11513if test -n "$enable_targets" ; then
11514 for targ in `echo $enable_targets | sed 's/,/ /g'`
11515 do
6d83c84b 11516 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11517 if test -n "$result" ; then
11518 canon_targets="$canon_targets $result"
11519 else
11520 # Allow targets that config.sub doesn't recognize, like "all".
11521 canon_targets="$canon_targets $targ"
11522 fi
11523 done
11524fi
11525
11526all_targets=false
11527selarchs=
11528for targ in $target $canon_targets
11529do
11530 if test "x$targ" = "xall" ; then
11531 all_targets=true
11532 else
11533 . $srcdir/../bfd/config.bfd
11534 selarchs="$selarchs $targ_archs"
11535 fi
979273e3 11536done
252b5132
RH
11537
11538# Utility var, documents generic cgen support files.
11539
3609e0fe 11540cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
11541
11542# We don't do any links based on the target system, just makefile config.
11543
11544if test x${all_targets} = xfalse ; then
11545
11546 # Target architecture .o files.
11547 ta=
11548
11549 for arch in $selarchs
11550 do
11551 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11552 archdefs="$archdefs -DARCH_$ad"
11553 case "$arch" in
252b5132 11554 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 11555 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 11556 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 11557 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 11558 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3d3d428f 11559 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 11560 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 11561 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
11562 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11563 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 11564 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 11565 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 11566 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
252b5132
RH
11567 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
11568 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
11569 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 11570 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
0b1cf022 11571 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 11572 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 11573 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 11574 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 11575 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 11576 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
c5f5f1f4 11577 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 11578 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
11579 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11580 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
11581 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11582 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 11583 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 11584 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 11585 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
252b5132 11586 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 11587 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
11588 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11589 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 11590 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 11591 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 11592 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 11593 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 11594 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 11595 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 11596 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 11597 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 11598 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 11599 bfd_pyramid_arch) ;;
252b5132
RH
11600 bfd_romp_arch) ;;
11601 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 11602 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
1c0d3aa6 11603 bfd_score_arch) ta="$ta score-dis.lo" ;;
09919455 11604 bfd_sh_arch)
d28847ce 11605 # We can't decide what we want just from the CPU family.
e8b872bb
AO
11606 # We want SH5 support unless a specific version of sh is
11607 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
11608 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11609 for t in $target $canon_targets; do
11610 case $t in
5b0e55b6 11611 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 11612 sh-*-linux* | shl-*-linux*)
d28847ce 11613 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
11614 archdefs="$archdefs -DINCLUDE_SHMEDIA"
11615 break;;
11616 esac;
11617 done
d3f1a427 11618 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 11619 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 11620 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
11621 bfd_tahoe_arch) ;;
11622 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 11623 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 11624 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
11625 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11626 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11627 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11628 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11629 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
11630 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
11631 bfd_we32k_arch) ;;
d70c5fc7 11632 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 11633 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 11634 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 11635 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
11636 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
11637
11638 "") ;;
979273e3
NN
11639 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11640echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11641 { (exit 1); exit 1; }; } ;;
252b5132
RH
11642 esac
11643 done
11644
11645 if test $using_cgen = yes ; then
11646 ta="$ta $cgen_files"
11647 fi
11648
11649 # Weed out duplicate .o files.
11650 f=""
11651 for i in $ta ; do
11652 case " $f " in
11653 *" $i "*) ;;
11654 *) f="$f $i" ;;
11655 esac
11656 done
11657 ta="$f"
11658
11659 # And duplicate -D flags.
11660 f=""
11661 for i in $archdefs ; do
11662 case " $f " in
11663 *" $i "*) ;;
11664 *) f="$f $i" ;;
11665 esac
11666 done
11667 archdefs="$f"
11668
11669 BFD_MACHINES="$ta"
11670
11671else # all_targets is true
11672 archdefs=-DARCH_all
11673 BFD_MACHINES='$(ALL_MACHINES)'
11674fi
11675
11676
11677
11678
979273e3
NN
11679 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11680
979273e3 11681cat >confcache <<\_ACEOF
252b5132
RH
11682# This file is a shell script that caches the results of configure
11683# tests run on this system so they can be shared between configure
979273e3
NN
11684# scripts and configure runs, see configure's option --config-cache.
11685# It is not useful on other systems. If it contains results you don't
11686# want to keep, you may remove or edit it.
252b5132 11687#
979273e3
NN
11688# config.status only pays attention to the cache file if you give it
11689# the --recheck option to rerun configure.
252b5132 11690#
979273e3
NN
11691# `ac_cv_env_foo' variables (set or unset) will be overridden when
11692# loading this file, other *unset* `ac_cv_foo' will be assigned the
11693# following values.
11694
11695_ACEOF
11696
252b5132
RH
11697# The following way of writing the cache mishandles newlines in values,
11698# but we know of no workaround that is simple, portable, and efficient.
11699# So, don't put newlines in cache variables' values.
11700# Ultrix sh set writes to stderr and can't be redirected directly,
11701# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
11702{
11703 (set) 2>&1 |
11704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11705 *ac_space=\ *)
11706 # `set' does not quote correctly, so add quotes (double-quote
11707 # substitution turns \\\\ into \\, and sed turns \\ into \).
11708 sed -n \
11709 "s/'/'\\\\''/g;
11710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11711 ;;
11712 *)
11713 # `set' quotes correctly as required by POSIX, so do not add quotes.
11714 sed -n \
11715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11716 ;;
11717 esac;
11718} |
11719 sed '
11720 t clear
11721 : clear
11722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11723 t end
11724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11725 : end' >>confcache
11726if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 11727 if test -w $cache_file; then
979273e3
NN
11728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11729 cat confcache >$cache_file
252b5132
RH
11730 else
11731 echo "not updating unwritable cache $cache_file"
11732 fi
11733fi
11734rm -f confcache
11735
252b5132
RH
11736test "x$prefix" = xNONE && prefix=$ac_default_prefix
11737# Let make expand exec_prefix.
11738test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11739
979273e3
NN
11740# VPATH may cause trouble with some makes, so we remove $(srcdir),
11741# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11742# trailing colons and then remove the whole line if VPATH becomes empty
11743# (actually we leave an empty line to preserve line numbers).
252b5132 11744if test "x$srcdir" = x.; then
979273e3
NN
11745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11746s/:*\$(srcdir):*/:/;
11747s/:*\${srcdir}:*/:/;
11748s/:*@srcdir@:*/:/;
11749s/^\([^=]*=[ ]*\):*/\1/;
11750s/:*$//;
11751s/^[^=]*=[ ]*$//;
11752}'
252b5132
RH
11753fi
11754
252b5132
RH
11755DEFS=-DHAVE_CONFIG_H
11756
979273e3
NN
11757ac_libobjs=
11758ac_ltlibobjs=
11759for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11760 # 1. Remove the extension, and $U if already installed.
11761 ac_i=`echo "$ac_i" |
11762 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11763 # 2. Add them.
11764 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11765 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11766done
11767LIBOBJS=$ac_libobjs
252b5132 11768
979273e3
NN
11769LTLIBOBJS=$ac_ltlibobjs
11770
11771
8ae85421
AM
11772if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11773 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11774Usually this means the macro was only invoked conditionally." >&5
11775echo "$as_me: error: conditional \"AMDEP\" was never defined.
11776Usually this means the macro was only invoked conditionally." >&2;}
11777 { (exit 1); exit 1; }; }
11778fi
11779if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11780 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11781Usually this means the macro was only invoked conditionally." >&5
11782echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11783Usually this means the macro was only invoked conditionally." >&2;}
11784 { (exit 1); exit 1; }; }
11785fi
11786if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11787 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11788Usually this means the macro was only invoked conditionally." >&5
11789echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11790Usually this means the macro was only invoked conditionally." >&2;}
11791 { (exit 1); exit 1; }; }
11792fi
11793if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11794 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11795Usually this means the macro was only invoked conditionally." >&5
11796echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11797Usually this means the macro was only invoked conditionally." >&2;}
11798 { (exit 1); exit 1; }; }
11799fi
11800if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11801 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11802Usually this means the macro was only invoked conditionally." >&5
11803echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11804Usually this means the macro was only invoked conditionally." >&2;}
11805 { (exit 1); exit 1; }; }
11806fi
979273e3
NN
11807
11808: ${CONFIG_STATUS=./config.status}
11809ac_clean_files_save=$ac_clean_files
11810ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11811{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11812echo "$as_me: creating $CONFIG_STATUS" >&6;}
11813cat >$CONFIG_STATUS <<_ACEOF
11814#! $SHELL
11815# Generated by $as_me.
252b5132 11816# Run this file to recreate the current configuration.
252b5132 11817# Compiler output produced by configure, useful for debugging
979273e3 11818# configure, is in config.log if it exists.
252b5132 11819
979273e3
NN
11820debug=false
11821ac_cs_recheck=false
11822ac_cs_silent=false
11823SHELL=\${CONFIG_SHELL-$SHELL}
11824_ACEOF
11825
11826cat >>$CONFIG_STATUS <<\_ACEOF
11827## --------------------- ##
11828## M4sh Initialization. ##
11829## --------------------- ##
11830
11831# Be Bourne compatible
11832if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11833 emulate sh
11834 NULLCMD=:
11835 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11836 # is contrary to our usage. Disable this feature.
11837 alias -g '${1+"$@"}'='"$@"'
11838elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11839 set -o posix
11840fi
11841DUALCASE=1; export DUALCASE # for MKS sh
11842
11843# Support unset when possible.
11844if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11845 as_unset=unset
11846else
11847 as_unset=false
11848fi
11849
11850
11851# Work around bugs in pre-3.0 UWIN ksh.
11852$as_unset ENV MAIL MAILPATH
11853PS1='$ '
11854PS2='> '
11855PS4='+ '
11856
11857# NLS nuisances.
11858for as_var in \
11859 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11860 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11861 LC_TELEPHONE LC_TIME
252b5132 11862do
979273e3
NN
11863 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11864 eval $as_var=C; export $as_var
11865 else
11866 $as_unset $as_var
11867 fi
252b5132
RH
11868done
11869
979273e3
NN
11870# Required to use basename.
11871if expr a : '\(a\)' >/dev/null 2>&1; then
11872 as_expr=expr
11873else
11874 as_expr=false
11875fi
11876
11877if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11878 as_basename=basename
11879else
11880 as_basename=false
11881fi
252b5132 11882
252b5132 11883
979273e3
NN
11884# Name of the executable.
11885as_me=`$as_basename "$0" ||
11886$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11887 X"$0" : 'X\(//\)$' \| \
11888 X"$0" : 'X\(/\)$' \| \
11889 . : '\(.\)' 2>/dev/null ||
11890echo X/"$0" |
11891 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11892 /^X\/\(\/\/\)$/{ s//\1/; q; }
11893 /^X\/\(\/\).*/{ s//\1/; q; }
11894 s/.*/./; q'`
252b5132 11895
252b5132 11896
979273e3
NN
11897# PATH needs CR, and LINENO needs CR and PATH.
11898# Avoid depending upon Character Ranges.
11899as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11900as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11901as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11902as_cr_digits='0123456789'
11903as_cr_alnum=$as_cr_Letters$as_cr_digits
11904
11905# The user is always right.
11906if test "${PATH_SEPARATOR+set}" != set; then
11907 echo "#! /bin/sh" >conf$$.sh
11908 echo "exit 0" >>conf$$.sh
11909 chmod +x conf$$.sh
11910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11911 PATH_SEPARATOR=';'
252b5132 11912 else
979273e3
NN
11913 PATH_SEPARATOR=:
11914 fi
11915 rm -f conf$$.sh
11916fi
11917
11918
11919 as_lineno_1=$LINENO
11920 as_lineno_2=$LINENO
11921 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11922 test "x$as_lineno_1" != "x$as_lineno_2" &&
11923 test "x$as_lineno_3" = "x$as_lineno_2" || {
11924 # Find who we are. Look in the path if we contain no path at all
11925 # relative or not.
11926 case $0 in
11927 *[\\/]* ) as_myself=$0 ;;
11928 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929for as_dir in $PATH
11930do
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11934done
11935
11936 ;;
11937 esac
11938 # We did not find ourselves, most probably we were run as `sh COMMAND'
11939 # in which case we are not to be found in the path.
11940 if test "x$as_myself" = x; then
11941 as_myself=$0
11942 fi
11943 if test ! -f "$as_myself"; then
11944 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11945echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11946 { (exit 1); exit 1; }; }
252b5132 11947 fi
979273e3
NN
11948 case $CONFIG_SHELL in
11949 '')
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for as_base in sh bash ksh sh5; do
11956 case $as_dir in
11957 /*)
11958 if ("$as_dir/$as_base" -c '
11959 as_lineno_1=$LINENO
11960 as_lineno_2=$LINENO
11961 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11962 test "x$as_lineno_1" != "x$as_lineno_2" &&
11963 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11964 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11965 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11966 CONFIG_SHELL=$as_dir/$as_base
11967 export CONFIG_SHELL
11968 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11969 fi;;
11970 esac
11971 done
11972done
11973;;
11974 esac
11975
11976 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11977 # uniformly replaced by the line number. The first 'sed' inserts a
11978 # line-number line before each line; the second 'sed' does the real
11979 # work. The second script uses 'N' to pair each line-number line
11980 # with the numbered line, and appends trailing '-' during
11981 # substitution so that $LINENO is not a special case at line end.
11982 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11983 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11984 sed '=' <$as_myself |
11985 sed '
11986 N
11987 s,$,-,
11988 : loop
11989 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11990 t loop
11991 s,-$,,
11992 s,^['$as_cr_digits']*\n,,
11993 ' >$as_me.lineno &&
11994 chmod +x $as_me.lineno ||
11995 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11996echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11997 { (exit 1); exit 1; }; }
11998
11999 # Don't try to exec as it changes $[0], causing all sort of problems
12000 # (the dirname of $[0] is not the place where we might find the
12001 # original and so on. Autoconf is especially sensible to this).
12002 . ./$as_me.lineno
12003 # Exit status is that of the last command.
12004 exit
12005}
12006
12007
12008case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12009 *c*,-n*) ECHO_N= ECHO_C='
12010' ECHO_T=' ' ;;
12011 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12012 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12013esac
12014
12015if expr a : '\(a\)' >/dev/null 2>&1; then
12016 as_expr=expr
12017else
12018 as_expr=false
12019fi
12020
12021rm -f conf$$ conf$$.exe conf$$.file
12022echo >conf$$.file
12023if ln -s conf$$.file conf$$ 2>/dev/null; then
12024 # We could just check for DJGPP; but this test a) works b) is more generic
12025 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12026 if test -f conf$$.exe; then
12027 # Don't use ln at all; we don't have any links
12028 as_ln_s='cp -p'
252b5132 12029 else
979273e3 12030 as_ln_s='ln -s'
252b5132 12031 fi
979273e3
NN
12032elif ln conf$$.file conf$$ 2>/dev/null; then
12033 as_ln_s=ln
12034else
12035 as_ln_s='cp -p'
12036fi
12037rm -f conf$$ conf$$.exe conf$$.file
12038
12039if mkdir -p . 2>/dev/null; then
12040 as_mkdir_p=:
12041else
12042 test -d ./-p && rmdir ./-p
12043 as_mkdir_p=false
12044fi
12045
12046as_executable_p="test -f"
12047
12048# Sed expression to map a string onto a valid CPP name.
12049as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12050
12051# Sed expression to map a string onto a valid variable name.
12052as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12053
12054
12055# IFS
12056# We need space, tab and new line, in precisely that order.
12057as_nl='
12058'
12059IFS=" $as_nl"
12060
12061# CDPATH.
12062$as_unset CDPATH
12063
12064exec 6>&1
12065
12066# Open the log real soon, to keep \$[0] and so on meaningful, and to
12067# report actual input values of CONFIG_FILES etc. instead of their
12068# values after options handling. Logging --version etc. is OK.
12069exec 5>>config.log
12070{
12071 echo
12072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12073## Running $as_me. ##
12074_ASBOX
12075} >&5
12076cat >&5 <<_CSEOF
12077
12078This file was extended by $as_me, which was
12079generated by GNU Autoconf 2.59. Invocation command line was
12080
12081 CONFIG_FILES = $CONFIG_FILES
12082 CONFIG_HEADERS = $CONFIG_HEADERS
12083 CONFIG_LINKS = $CONFIG_LINKS
12084 CONFIG_COMMANDS = $CONFIG_COMMANDS
12085 $ $0 $@
12086
12087_CSEOF
12088echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12089echo >&5
12090_ACEOF
12091
12092# Files that config.status was made for.
12093if test -n "$ac_config_files"; then
12094 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12095fi
12096
12097if test -n "$ac_config_headers"; then
12098 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12099fi
12100
12101if test -n "$ac_config_links"; then
12102 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12103fi
12104
12105if test -n "$ac_config_commands"; then
12106 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12107fi
12108
12109cat >>$CONFIG_STATUS <<\_ACEOF
12110
12111ac_cs_usage="\
12112\`$as_me' instantiates files from templates according to the
12113current configuration.
12114
12115Usage: $0 [OPTIONS] [FILE]...
12116
12117 -h, --help print this help, then exit
12118 -V, --version print version number, then exit
12119 -q, --quiet do not print progress messages
12120 -d, --debug don't remove temporary files
12121 --recheck update $as_me by reconfiguring in the same conditions
12122 --file=FILE[:TEMPLATE]
12123 instantiate the configuration file FILE
12124 --header=FILE[:TEMPLATE]
12125 instantiate the configuration header FILE
12126
12127Configuration files:
12128$config_files
12129
12130Configuration headers:
12131$config_headers
12132
12133Configuration commands:
12134$config_commands
12135
12136Report bugs to <bug-autoconf@gnu.org>."
12137_ACEOF
12138
12139cat >>$CONFIG_STATUS <<_ACEOF
12140ac_cs_version="\\
12141config.status
12142configured by $0, generated by GNU Autoconf 2.59,
12143 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12144
12145Copyright (C) 2003 Free Software Foundation, Inc.
12146This config.status script is free software; the Free Software Foundation
12147gives unlimited permission to copy, distribute and modify it."
12148srcdir=$srcdir
12149INSTALL="$INSTALL"
12150_ACEOF
12151
12152cat >>$CONFIG_STATUS <<\_ACEOF
12153# If no file are specified by the user, then we need to provide default
12154# value. By we need to know if files were specified by the user.
12155ac_need_defaults=:
12156while test $# != 0
12157do
12158 case $1 in
12159 --*=*)
12160 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12161 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12162 ac_shift=:
12163 ;;
12164 -*)
12165 ac_option=$1
12166 ac_optarg=$2
12167 ac_shift=shift
12168 ;;
12169 *) # This is not an option, so the user has probably given explicit
12170 # arguments.
12171 ac_option=$1
12172 ac_need_defaults=false;;
12173 esac
12174
12175 case $ac_option in
12176 # Handling of the options.
12177_ACEOF
12178cat >>$CONFIG_STATUS <<\_ACEOF
12179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12180 ac_cs_recheck=: ;;
12181 --version | --vers* | -V )
12182 echo "$ac_cs_version"; exit 0 ;;
12183 --he | --h)
12184 # Conflict between --help and --header
12185 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12186Try \`$0 --help' for more information." >&5
12187echo "$as_me: error: ambiguous option: $1
12188Try \`$0 --help' for more information." >&2;}
12189 { (exit 1); exit 1; }; };;
12190 --help | --hel | -h )
12191 echo "$ac_cs_usage"; exit 0 ;;
12192 --debug | --d* | -d )
12193 debug=: ;;
12194 --file | --fil | --fi | --f )
12195 $ac_shift
12196 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12197 ac_need_defaults=false;;
12198 --header | --heade | --head | --hea )
12199 $ac_shift
12200 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12201 ac_need_defaults=false;;
12202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12203 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12204 ac_cs_silent=: ;;
12205
12206 # This is an error.
12207 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12208Try \`$0 --help' for more information." >&5
12209echo "$as_me: error: unrecognized option: $1
12210Try \`$0 --help' for more information." >&2;}
12211 { (exit 1); exit 1; }; } ;;
12212
12213 *) ac_config_targets="$ac_config_targets $1" ;;
12214
12215 esac
12216 shift
252b5132 12217done
979273e3
NN
12218
12219ac_configure_extra_args=
12220
12221if $ac_cs_silent; then
12222 exec 6>/dev/null
12223 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 12224fi
252b5132 12225
979273e3
NN
12226_ACEOF
12227cat >>$CONFIG_STATUS <<_ACEOF
12228if \$ac_cs_recheck; then
12229 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12230 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12231fi
252b5132 12232
979273e3
NN
12233_ACEOF
12234
12235cat >>$CONFIG_STATUS <<_ACEOF
12236#
12237# INIT-COMMANDS section.
12238#
12239
8ae85421 12240AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12241
12242
12243# The HP-UX ksh and POSIX shell print the target directory to stdout
12244# if CDPATH is set.
12245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12246
12247sed_quote_subst='$sed_quote_subst'
12248double_quote_subst='$double_quote_subst'
12249delay_variable_subst='$delay_variable_subst'
12250enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12251macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12252macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12253enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12254pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12255enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12256host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12257host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12258host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12259build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12260build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12261build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12262SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12263Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12264GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12265EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12266FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12267LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12268NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12269LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12270max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12271ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12272exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12273lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12274lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12275lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12276reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12277reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12278deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12279file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12280AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12281AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12282STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12283RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12284old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12286old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12287CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12288CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12289compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12290GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12291lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12292lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12293lt_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"`'
12294objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12295SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12296ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12297MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12298lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12299lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12300lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12301lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12302lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12303need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12304libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12305shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12306extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12307archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12308enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12309export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12310whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12311compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12312old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12313old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12314archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12315archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12316module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12317module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12318with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12319allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12320no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12321hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12322hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12323hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12324hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12325hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12326hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12327hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12328hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12329inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12330link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12331fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12332always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12333export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12334exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12335include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12336prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12338variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12339need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12340need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12341version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12342runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12343shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12344shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12345libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12346library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12347soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12348postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12349postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12350finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12351finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12352hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12353sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12354sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12355hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12356enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12357enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12358enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12359old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12360striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12361
12362LTCC='$LTCC'
12363LTCFLAGS='$LTCFLAGS'
12364compiler='$compiler_DEFAULT'
12365
12366# Quote evaled strings.
12367for var in SED \
12368GREP \
12369EGREP \
12370FGREP \
12371LD \
12372NM \
12373LN_S \
12374lt_SP2NL \
12375lt_NL2SP \
12376reload_flag \
12377deplibs_check_method \
12378file_magic_cmd \
12379AR \
12380AR_FLAGS \
12381STRIP \
12382RANLIB \
12383CC \
12384CFLAGS \
12385compiler \
12386lt_cv_sys_global_symbol_pipe \
12387lt_cv_sys_global_symbol_to_cdecl \
12388lt_cv_sys_global_symbol_to_c_name_address \
12389SHELL \
12390ECHO \
12391lt_prog_compiler_no_builtin_flag \
12392lt_prog_compiler_wl \
12393lt_prog_compiler_pic \
12394lt_prog_compiler_static \
12395lt_cv_prog_compiler_c_o \
12396need_locks \
12397shrext_cmds \
12398export_dynamic_flag_spec \
12399whole_archive_flag_spec \
12400compiler_needs_object \
12401with_gnu_ld \
12402allow_undefined_flag \
12403no_undefined_flag \
12404hardcode_libdir_flag_spec \
12405hardcode_libdir_flag_spec_ld \
12406hardcode_libdir_separator \
12407fix_srcfile_path \
12408exclude_expsyms \
12409include_expsyms \
12410file_list_spec \
12411variables_saved_for_relink \
12412libname_spec \
12413library_names_spec \
12414soname_spec \
12415finish_eval \
12416old_striplib \
12417striplib; do
12418 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12419 *[\\\\\\\`\\"\\\$]*)
12420 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12421 ;;
12422 *)
12423 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12424 ;;
12425 esac
12426done
12427
12428# Double-quote double-evaled strings.
12429for var in reload_cmds \
12430old_postinstall_cmds \
12431old_postuninstall_cmds \
12432old_archive_cmds \
12433extract_expsyms_cmds \
12434old_archive_from_new_cmds \
12435old_archive_from_expsyms_cmds \
12436archive_cmds \
12437archive_expsym_cmds \
12438module_cmds \
12439module_expsym_cmds \
12440export_symbols_cmds \
12441prelink_cmds \
12442postinstall_cmds \
12443postuninstall_cmds \
12444finish_cmds \
12445sys_lib_search_path_spec \
12446sys_lib_dlsearch_path_spec; do
12447 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12448 *[\\\\\\\`\\"\\\$]*)
12449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12450 ;;
12451 *)
12452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12453 ;;
12454 esac
12455done
12456
12457# Fix-up fallback echo if it was mangled by the above quoting rules.
12458case \$lt_ECHO in
12459*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12460 ;;
12461esac
12462
12463ac_aux_dir='$ac_aux_dir'
12464xsi_shell='$xsi_shell'
12465lt_shell_append='$lt_shell_append'
12466
12467# See if we are running on zsh, and set the options which allow our
12468# commands through without removal of \ escapes INIT.
12469if test -n "\${ZSH_VERSION+set}" ; then
12470 setopt NO_GLOB_SUBST
12471fi
12472
12473
12474 PACKAGE='$PACKAGE'
12475 VERSION='$VERSION'
12476 TIMESTAMP='$TIMESTAMP'
12477 RM='$RM'
12478 ofile='$ofile'
12479
12480
12481
20e95c23
DJ
12482# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12483 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12484 # from automake.
12485 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12486 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12487 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
12488
12489
12490_ACEOF
12491
12492
12493
12494cat >>$CONFIG_STATUS <<\_ACEOF
12495for ac_config_target in $ac_config_targets
12496do
12497 case "$ac_config_target" in
12498 # Handling of arguments.
12499 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12500 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 12501 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 12502 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 12503 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
979273e3
NN
12504 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12506echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12507 { (exit 1); exit 1; }; };;
252b5132 12508 esac
979273e3 12509done
252b5132 12510
979273e3
NN
12511# If the user did not use the arguments to specify the items to instantiate,
12512# then the envvar interface is used. Set only those that are not.
12513# We use the long form for the default assignment because of an extremely
12514# bizarre bug on SunOS 4.1.3.
12515if $ac_need_defaults; then
12516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12519fi
12520
12521# Have a temporary directory for convenience. Make it in the build tree
12522# simply because there is no reason to put it here, and in addition,
12523# creating and moving files from /tmp can sometimes cause problems.
12524# Create a temporary directory, and hook for its removal unless debugging.
12525$debug ||
12526{
12527 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12528 trap '{ (exit 1); exit 1; }' 1 2 13 15
12529}
252b5132 12530
979273e3
NN
12531# Create a (secure) tmp directory for tmp files.
12532
12533{
12534 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12535 test -n "$tmp" && test -d "$tmp"
12536} ||
12537{
12538 tmp=./confstat$$-$RANDOM
12539 (umask 077 && mkdir $tmp)
12540} ||
12541{
12542 echo "$me: cannot create a temporary directory in ." >&2
12543 { (exit 1); exit 1; }
12544}
12545
12546_ACEOF
12547
12548cat >>$CONFIG_STATUS <<_ACEOF
12549
12550#
12551# CONFIG_FILES section.
12552#
12553
12554# No need to generate the scripts if there are no CONFIG_FILES.
12555# This happens for instance when ./config.status config.h
12556if test -n "\$CONFIG_FILES"; then
12557 # Protect against being on the right side of a sed subst in config.status.
12558 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12559 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12560s,@SHELL@,$SHELL,;t t
12561s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12562s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12563s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12564s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12565s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12566s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12567s,@exec_prefix@,$exec_prefix,;t t
12568s,@prefix@,$prefix,;t t
12569s,@program_transform_name@,$program_transform_name,;t t
12570s,@bindir@,$bindir,;t t
12571s,@sbindir@,$sbindir,;t t
12572s,@libexecdir@,$libexecdir,;t t
12573s,@datadir@,$datadir,;t t
12574s,@sysconfdir@,$sysconfdir,;t t
12575s,@sharedstatedir@,$sharedstatedir,;t t
12576s,@localstatedir@,$localstatedir,;t t
12577s,@libdir@,$libdir,;t t
12578s,@includedir@,$includedir,;t t
12579s,@oldincludedir@,$oldincludedir,;t t
12580s,@infodir@,$infodir,;t t
12581s,@mandir@,$mandir,;t t
12582s,@build_alias@,$build_alias,;t t
12583s,@host_alias@,$host_alias,;t t
12584s,@target_alias@,$target_alias,;t t
12585s,@DEFS@,$DEFS,;t t
12586s,@ECHO_C@,$ECHO_C,;t t
12587s,@ECHO_N@,$ECHO_N,;t t
12588s,@ECHO_T@,$ECHO_T,;t t
12589s,@LIBS@,$LIBS,;t t
12590s,@build@,$build,;t t
12591s,@build_cpu@,$build_cpu,;t t
12592s,@build_vendor@,$build_vendor,;t t
12593s,@build_os@,$build_os,;t t
12594s,@host@,$host,;t t
12595s,@host_cpu@,$host_cpu,;t t
12596s,@host_vendor@,$host_vendor,;t t
12597s,@host_os@,$host_os,;t t
12598s,@target@,$target,;t t
12599s,@target_cpu@,$target_cpu,;t t
12600s,@target_vendor@,$target_vendor,;t t
12601s,@target_os@,$target_os,;t t
12602s,@CC@,$CC,;t t
12603s,@CFLAGS@,$CFLAGS,;t t
12604s,@LDFLAGS@,$LDFLAGS,;t t
12605s,@CPPFLAGS@,$CPPFLAGS,;t t
12606s,@ac_ct_CC@,$ac_ct_CC,;t t
12607s,@EXEEXT@,$EXEEXT,;t t
12608s,@OBJEXT@,$OBJEXT,;t t
12609s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12610s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12611s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 12612s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
12613s,@PACKAGE@,$PACKAGE,;t t
12614s,@VERSION@,$VERSION,;t t
12615s,@ACLOCAL@,$ACLOCAL,;t t
12616s,@AUTOCONF@,$AUTOCONF,;t t
12617s,@AUTOMAKE@,$AUTOMAKE,;t t
12618s,@AUTOHEADER@,$AUTOHEADER,;t t
12619s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
12620s,@install_sh@,$install_sh,;t t
12621s,@STRIP@,$STRIP,;t t
12622s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12623s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12624s,@mkdir_p@,$mkdir_p,;t t
12625s,@AWK@,$AWK,;t t
979273e3 12626s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
12627s,@am__leading_dot@,$am__leading_dot,;t t
12628s,@AMTAR@,$AMTAR,;t t
12629s,@am__tar@,$am__tar,;t t
12630s,@am__untar@,$am__untar,;t t
12631s,@DEPDIR@,$DEPDIR,;t t
12632s,@am__include@,$am__include,;t t
12633s,@am__quote@,$am__quote,;t t
12634s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12635s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12636s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12637s,@CCDEPMODE@,$CCDEPMODE,;t t
12638s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12639s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
979273e3
NN
12640s,@AR@,$AR,;t t
12641s,@ac_ct_AR@,$ac_ct_AR,;t t
12642s,@RANLIB@,$RANLIB,;t t
12643s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
979273e3 12644s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
12645s,@SED@,$SED,;t t
12646s,@EGREP@,$EGREP,;t t
12647s,@FGREP@,$FGREP,;t t
12648s,@GREP@,$GREP,;t t
12649s,@LD@,$LD,;t t
12650s,@DUMPBIN@,$DUMPBIN,;t t
12651s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12652s,@NM@,$NM,;t t
12653s,@LN_S@,$LN_S,;t t
12654s,@lt_ECHO@,$lt_ECHO,;t t
12655s,@CPP@,$CPP,;t t
979273e3 12656s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 12657s,@NO_WERROR@,$NO_WERROR,;t t
979273e3
NN
12658s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12659s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12660s,@MAINT@,$MAINT,;t t
12661s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12662s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
12663s,@host_noncanonical@,$host_noncanonical,;t t
12664s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
12665s,@bfdlibdir@,$bfdlibdir,;t t
12666s,@bfdincludedir@,$bfdincludedir,;t t
979273e3 12667s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
12668s,@LIBINTL@,$LIBINTL,;t t
12669s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12670s,@INCINTL@,$INCINTL,;t t
979273e3 12671s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
12672s,@GMSGFMT@,$GMSGFMT,;t t
12673s,@POSUB@,$POSUB,;t t
979273e3 12674s,@CATALOGS@,$CATALOGS,;t t
979273e3 12675s,@DATADIRNAME@,$DATADIRNAME,;t t
979273e3 12676s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
12677s,@GENCAT@,$GENCAT,;t t
12678s,@CATOBJEXT@,$CATOBJEXT,;t t
979273e3 12679s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
12680s,@MSGFMT@,$MSGFMT,;t t
12681s,@MSGMERGE@,$MSGMERGE,;t t
979273e3
NN
12682s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12683s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12684s,@HDEFINES@,$HDEFINES,;t t
12685s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12686s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12687s,@cgendir@,$cgendir,;t t
45d42143
NC
12688s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
12689s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
12690s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
979273e3
NN
12691s,@archdefs@,$archdefs,;t t
12692s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12693s,@LIBOBJS@,$LIBOBJS,;t t
12694s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12695CEOF
12696
12697_ACEOF
12698
12699 cat >>$CONFIG_STATUS <<\_ACEOF
12700 # Split the substitutions into bite-sized pieces for seds with
12701 # small command number limits, like on Digital OSF/1 and HP-UX.
12702 ac_max_sed_lines=48
12703 ac_sed_frag=1 # Number of current file.
12704 ac_beg=1 # First line for current file.
12705 ac_end=$ac_max_sed_lines # Line after last line for current file.
12706 ac_more_lines=:
12707 ac_sed_cmds=
12708 while $ac_more_lines; do
12709 if test $ac_beg -gt 1; then
12710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12711 else
12712 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12713 fi
12714 if test ! -s $tmp/subs.frag; then
12715 ac_more_lines=false
12716 else
12717 # The purpose of the label and of the branching condition is to
12718 # speed up the sed processing (if there are no `@' at all, there
12719 # is no need to browse any of the substitutions).
12720 # These are the two extra sed commands mentioned above.
12721 (echo ':t
12722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12723 if test -z "$ac_sed_cmds"; then
12724 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12725 else
12726 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12727 fi
12728 ac_sed_frag=`expr $ac_sed_frag + 1`
12729 ac_beg=$ac_end
12730 ac_end=`expr $ac_end + $ac_max_sed_lines`
12731 fi
12732 done
12733 if test -z "$ac_sed_cmds"; then
12734 ac_sed_cmds=cat
252b5132 12735 fi
979273e3 12736fi # test -n "$CONFIG_FILES"
252b5132 12737
979273e3
NN
12738_ACEOF
12739cat >>$CONFIG_STATUS <<\_ACEOF
12740for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12742 case $ac_file in
12743 - | *:- | *:-:* ) # input from stdin
12744 cat >$tmp/stdin
12745 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12747 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12749 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12750 esac
12751
979273e3
NN
12752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12755 X"$ac_file" : 'X\(//\)[^/]' \| \
12756 X"$ac_file" : 'X\(//\)$' \| \
12757 X"$ac_file" : 'X\(/\)' \| \
12758 . : '\(.\)' 2>/dev/null ||
12759echo X"$ac_file" |
12760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12762 /^X\(\/\/\)$/{ s//\1/; q; }
12763 /^X\(\/\).*/{ s//\1/; q; }
12764 s/.*/./; q'`
12765 { if $as_mkdir_p; then
12766 mkdir -p "$ac_dir"
12767 else
12768 as_dir="$ac_dir"
12769 as_dirs=
12770 while test ! -d "$as_dir"; do
12771 as_dirs="$as_dir $as_dirs"
12772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12774 X"$as_dir" : 'X\(//\)[^/]' \| \
12775 X"$as_dir" : 'X\(//\)$' \| \
12776 X"$as_dir" : 'X\(/\)' \| \
12777 . : '\(.\)' 2>/dev/null ||
12778echo X"$as_dir" |
12779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12781 /^X\(\/\/\)$/{ s//\1/; q; }
12782 /^X\(\/\).*/{ s//\1/; q; }
12783 s/.*/./; q'`
12784 done
12785 test ! -n "$as_dirs" || mkdir $as_dirs
12786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12788 { (exit 1); exit 1; }; }; }
12789
12790 ac_builddir=.
12791
12792if test "$ac_dir" != .; then
12793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12794 # A "../" for each directory in $ac_dir_suffix.
12795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12796else
12797 ac_dir_suffix= ac_top_builddir=
12798fi
12799
12800case $srcdir in
12801 .) # No --srcdir option. We are building in place.
12802 ac_srcdir=.
12803 if test -z "$ac_top_builddir"; then
12804 ac_top_srcdir=.
12805 else
12806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12807 fi ;;
12808 [\\/]* | ?:[\\/]* ) # Absolute path.
12809 ac_srcdir=$srcdir$ac_dir_suffix;
12810 ac_top_srcdir=$srcdir ;;
12811 *) # Relative path.
12812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12814esac
12815
12816# Do not use `cd foo && pwd` to compute absolute paths, because
12817# the directories may not exist.
12818case `pwd` in
12819.) ac_abs_builddir="$ac_dir";;
12820*)
12821 case "$ac_dir" in
12822 .) ac_abs_builddir=`pwd`;;
12823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12825 esac;;
12826esac
12827case $ac_abs_builddir in
12828.) ac_abs_top_builddir=${ac_top_builddir}.;;
12829*)
12830 case ${ac_top_builddir}. in
12831 .) ac_abs_top_builddir=$ac_abs_builddir;;
12832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12834 esac;;
12835esac
12836case $ac_abs_builddir in
12837.) ac_abs_srcdir=$ac_srcdir;;
12838*)
12839 case $ac_srcdir in
12840 .) ac_abs_srcdir=$ac_abs_builddir;;
12841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12843 esac;;
12844esac
12845case $ac_abs_builddir in
12846.) ac_abs_top_srcdir=$ac_top_srcdir;;
12847*)
12848 case $ac_top_srcdir in
12849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12852 esac;;
12853esac
252b5132 12854
979273e3
NN
12855
12856 case $INSTALL in
12857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12858 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
12859 esac
12860
8ae85421
AM
12861 if test x"$ac_file" != x-; then
12862 { echo "$as_me:$LINENO: creating $ac_file" >&5
12863echo "$as_me: creating $ac_file" >&6;}
12864 rm -f "$ac_file"
12865 fi
979273e3
NN
12866 # Let's still pretend it is `configure' which instantiates (i.e., don't
12867 # use $as_me), people would be surprised to read:
12868 # /* config.h. Generated by config.status. */
12869 if test x"$ac_file" = x-; then
12870 configure_input=
12871 else
12872 configure_input="$ac_file. "
12873 fi
12874 configure_input=$configure_input"Generated from `echo $ac_file_in |
12875 sed 's,.*/,,'` by configure."
12876
12877 # First look for the input files in the build tree, otherwise in the
12878 # src tree.
12879 ac_file_inputs=`IFS=:
12880 for f in $ac_file_in; do
12881 case $f in
12882 -) echo $tmp/stdin ;;
12883 [\\/$]*)
12884 # Absolute (can't be DOS-style, as IFS=:)
12885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12886echo "$as_me: error: cannot find input file: $f" >&2;}
12887 { (exit 1); exit 1; }; }
12888 echo "$f";;
12889 *) # Relative
12890 if test -f "$f"; then
12891 # Build tree
12892 echo "$f"
12893 elif test -f "$srcdir/$f"; then
12894 # Source tree
12895 echo "$srcdir/$f"
12896 else
12897 # /dev/null tree
12898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12899echo "$as_me: error: cannot find input file: $f" >&2;}
12900 { (exit 1); exit 1; }; }
12901 fi;;
12902 esac
12903 done` || { (exit 1); exit 1; }
979273e3
NN
12904_ACEOF
12905cat >>$CONFIG_STATUS <<_ACEOF
12906 sed "$ac_vpsub
12907$extrasub
12908_ACEOF
12909cat >>$CONFIG_STATUS <<\_ACEOF
12910:t
12911/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12912s,@configure_input@,$configure_input,;t t
12913s,@srcdir@,$ac_srcdir,;t t
12914s,@abs_srcdir@,$ac_abs_srcdir,;t t
12915s,@top_srcdir@,$ac_top_srcdir,;t t
12916s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12917s,@builddir@,$ac_builddir,;t t
12918s,@abs_builddir@,$ac_abs_builddir,;t t
12919s,@top_builddir@,$ac_top_builddir,;t t
12920s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12921s,@INSTALL@,$ac_INSTALL,;t t
12922" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12923 rm -f $tmp/stdin
12924 if test x"$ac_file" != x-; then
12925 mv $tmp/out $ac_file
12926 else
12927 cat $tmp/out
12928 rm -f $tmp/out
12929 fi
12930
12931done
12932_ACEOF
12933cat >>$CONFIG_STATUS <<\_ACEOF
12934
12935#
12936# CONFIG_HEADER section.
12937#
252b5132
RH
12938
12939# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12940# NAME is the cpp macro being defined and VALUE is the value it is being given.
12941#
12942# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
12943ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12944ac_dB='[ ].*$,\1#\2'
12945ac_dC=' '
12946ac_dD=',;t'
12947# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12948ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12949ac_uB='$,\1#\2define\3'
252b5132 12950ac_uC=' '
979273e3
NN
12951ac_uD=',;t'
12952
12953for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 12954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
12955 case $ac_file in
12956 - | *:- | *:-:* ) # input from stdin
12957 cat >$tmp/stdin
12958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12962 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12963 esac
12964
979273e3
NN
12965 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12966echo "$as_me: creating $ac_file" >&6;}
12967
12968 # First look for the input files in the build tree, otherwise in the
12969 # src tree.
12970 ac_file_inputs=`IFS=:
12971 for f in $ac_file_in; do
12972 case $f in
12973 -) echo $tmp/stdin ;;
12974 [\\/$]*)
12975 # Absolute (can't be DOS-style, as IFS=:)
12976 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12977echo "$as_me: error: cannot find input file: $f" >&2;}
12978 { (exit 1); exit 1; }; }
12979 # Do quote $f, to prevent DOS paths from being IFS'd.
12980 echo "$f";;
12981 *) # Relative
12982 if test -f "$f"; then
12983 # Build tree
12984 echo "$f"
12985 elif test -f "$srcdir/$f"; then
12986 # Source tree
12987 echo "$srcdir/$f"
12988 else
12989 # /dev/null tree
12990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12991echo "$as_me: error: cannot find input file: $f" >&2;}
12992 { (exit 1); exit 1; }; }
12993 fi;;
12994 esac
12995 done` || { (exit 1); exit 1; }
12996 # Remove the trailing spaces.
12997 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12998
12999_ACEOF
13000
13001# Transform confdefs.h into two sed scripts, `conftest.defines' and
13002# `conftest.undefs', that substitutes the proper values into
13003# config.h.in to produce config.h. The first handles `#define'
13004# templates, and the second `#undef' templates.
13005# And first: Protect against being on the right side of a sed subst in
13006# config.status. Protect against being in an unquoted here document
13007# in config.status.
13008rm -f conftest.defines conftest.undefs
13009# Using a here document instead of a string reduces the quoting nightmare.
13010# Putting comments in sed scripts is not portable.
13011#
13012# `end' is used to avoid that the second main sed command (meant for
13013# 0-ary CPP macros) applies to n-ary macro definitions.
13014# See the Autoconf documentation for `clear'.
13015cat >confdef2sed.sed <<\_ACEOF
13016s/[\\&,]/\\&/g
13017s,[\\$`],\\&,g
13018t clear
13019: clear
13020s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13021t end
13022s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13023: end
13024_ACEOF
13025# If some macros were called several times there might be several times
13026# the same #defines, which is useless. Nevertheless, we may not want to
13027# sort them, since we want the *last* AC-DEFINE to be honored.
13028uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13029sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13030rm -f confdef2sed.sed
252b5132
RH
13031
13032# This sed command replaces #undef with comments. This is necessary, for
13033# example, in the case of _POSIX_SOURCE, which is predefined and required
13034# on some systems where configure will not decide to define it.
979273e3
NN
13035cat >>conftest.undefs <<\_ACEOF
13036s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13037_ACEOF
13038
13039# Break up conftest.defines because some shells have a limit on the size
13040# of here documents, and old seds have small limits too (100 cmds).
13041echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13042echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13043echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13044echo ' :' >>$CONFIG_STATUS
13045rm -f conftest.tail
13046while grep . conftest.defines >/dev/null
13047do
13048 # Write a limited-size here document to $tmp/defines.sed.
13049 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13050 # Speed up: don't consider the non `#define' lines.
13051 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13052 # Work around the forget-to-reset-the-flag bug.
13053 echo 't clr' >>$CONFIG_STATUS
13054 echo ': clr' >>$CONFIG_STATUS
13055 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13056 echo 'CEOF
13057 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13058 rm -f $tmp/in
13059 mv $tmp/out $tmp/in
13060' >>$CONFIG_STATUS
13061 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13062 rm -f conftest.defines
13063 mv conftest.tail conftest.defines
13064done
13065rm -f conftest.defines
13066echo ' fi # grep' >>$CONFIG_STATUS
13067echo >>$CONFIG_STATUS
252b5132 13068
979273e3
NN
13069# Break up conftest.undefs because some shells have a limit on the size
13070# of here documents, and old seds have small limits too (100 cmds).
13071echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13072rm -f conftest.tail
979273e3 13073while grep . conftest.undefs >/dev/null
252b5132 13074do
979273e3
NN
13075 # Write a limited-size here document to $tmp/undefs.sed.
13076 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13077 # Speed up: don't consider the non `#undef'
13078 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13079 # Work around the forget-to-reset-the-flag bug.
13080 echo 't clr' >>$CONFIG_STATUS
13081 echo ': clr' >>$CONFIG_STATUS
13082 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13083 echo 'CEOF
979273e3
NN
13084 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13085 rm -f $tmp/in
13086 mv $tmp/out $tmp/in
13087' >>$CONFIG_STATUS
13088 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13089 rm -f conftest.undefs
13090 mv conftest.tail conftest.undefs
252b5132 13091done
979273e3
NN
13092rm -f conftest.undefs
13093
13094cat >>$CONFIG_STATUS <<\_ACEOF
13095 # Let's still pretend it is `configure' which instantiates (i.e., don't
13096 # use $as_me), people would be surprised to read:
13097 # /* config.h. Generated by config.status. */
13098 if test x"$ac_file" = x-; then
13099 echo "/* Generated by configure. */" >$tmp/config.h
13100 else
13101 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13102 fi
13103 cat $tmp/in >>$tmp/config.h
13104 rm -f $tmp/in
13105 if test x"$ac_file" != x-; then
13106 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13108echo "$as_me: $ac_file is unchanged" >&6;}
13109 else
13110 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13111$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112 X"$ac_file" : 'X\(//\)[^/]' \| \
13113 X"$ac_file" : 'X\(//\)$' \| \
13114 X"$ac_file" : 'X\(/\)' \| \
13115 . : '\(.\)' 2>/dev/null ||
13116echo X"$ac_file" |
13117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13119 /^X\(\/\/\)$/{ s//\1/; q; }
13120 /^X\(\/\).*/{ s//\1/; q; }
13121 s/.*/./; q'`
13122 { if $as_mkdir_p; then
13123 mkdir -p "$ac_dir"
252b5132 13124 else
979273e3
NN
13125 as_dir="$ac_dir"
13126 as_dirs=
13127 while test ! -d "$as_dir"; do
13128 as_dirs="$as_dir $as_dirs"
13129 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13131 X"$as_dir" : 'X\(//\)[^/]' \| \
13132 X"$as_dir" : 'X\(//\)$' \| \
13133 X"$as_dir" : 'X\(/\)' \| \
13134 . : '\(.\)' 2>/dev/null ||
13135echo X"$as_dir" |
13136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13138 /^X\(\/\/\)$/{ s//\1/; q; }
13139 /^X\(\/\).*/{ s//\1/; q; }
13140 s/.*/./; q'`
13141 done
13142 test ! -n "$as_dirs" || mkdir $as_dirs
13143 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13144echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13145 { (exit 1); exit 1; }; }; }
13146
13147 rm -f $ac_file
13148 mv $tmp/config.h $ac_file
252b5132 13149 fi
979273e3
NN
13150 else
13151 cat $tmp/config.h
13152 rm -f $tmp/config.h
252b5132 13153 fi
8ae85421
AM
13154# Compute $ac_file's index in $config_headers.
13155_am_stamp_count=1
13156for _am_header in $config_headers :; do
13157 case $_am_header in
13158 $ac_file | $ac_file:* )
13159 break ;;
13160 * )
13161 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13162 esac
13163done
13164echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13165$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13166 X$ac_file : 'X\(//\)[^/]' \| \
13167 X$ac_file : 'X\(//\)$' \| \
13168 X$ac_file : 'X\(/\)' \| \
13169 . : '\(.\)' 2>/dev/null ||
13170echo X$ac_file |
13171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13173 /^X\(\/\/\)$/{ s//\1/; q; }
13174 /^X\(\/\).*/{ s//\1/; q; }
13175 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
13176done
13177_ACEOF
13178cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13179
979273e3
NN
13180#
13181# CONFIG_COMMANDS section.
13182#
13183for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13184 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13185 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13186 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13187$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13188 X"$ac_dest" : 'X\(//\)[^/]' \| \
13189 X"$ac_dest" : 'X\(//\)$' \| \
13190 X"$ac_dest" : 'X\(/\)' \| \
13191 . : '\(.\)' 2>/dev/null ||
13192echo X"$ac_dest" |
13193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13195 /^X\(\/\/\)$/{ s//\1/; q; }
13196 /^X\(\/\).*/{ s//\1/; q; }
13197 s/.*/./; q'`
13198 { if $as_mkdir_p; then
13199 mkdir -p "$ac_dir"
13200 else
13201 as_dir="$ac_dir"
13202 as_dirs=
13203 while test ! -d "$as_dir"; do
13204 as_dirs="$as_dir $as_dirs"
13205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13207 X"$as_dir" : 'X\(//\)[^/]' \| \
13208 X"$as_dir" : 'X\(//\)$' \| \
13209 X"$as_dir" : 'X\(/\)' \| \
13210 . : '\(.\)' 2>/dev/null ||
13211echo X"$as_dir" |
13212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13214 /^X\(\/\/\)$/{ s//\1/; q; }
13215 /^X\(\/\).*/{ s//\1/; q; }
13216 s/.*/./; q'`
13217 done
13218 test ! -n "$as_dirs" || mkdir $as_dirs
13219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13221 { (exit 1); exit 1; }; }; }
252b5132 13222
979273e3 13223 ac_builddir=.
252b5132 13224
979273e3
NN
13225if test "$ac_dir" != .; then
13226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13227 # A "../" for each directory in $ac_dir_suffix.
13228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13229else
13230 ac_dir_suffix= ac_top_builddir=
13231fi
13232
13233case $srcdir in
13234 .) # No --srcdir option. We are building in place.
13235 ac_srcdir=.
13236 if test -z "$ac_top_builddir"; then
13237 ac_top_srcdir=.
13238 else
13239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13240 fi ;;
13241 [\\/]* | ?:[\\/]* ) # Absolute path.
13242 ac_srcdir=$srcdir$ac_dir_suffix;
13243 ac_top_srcdir=$srcdir ;;
13244 *) # Relative path.
13245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13247esac
13248
13249# Do not use `cd foo && pwd` to compute absolute paths, because
13250# the directories may not exist.
13251case `pwd` in
13252.) ac_abs_builddir="$ac_dir";;
13253*)
13254 case "$ac_dir" in
13255 .) ac_abs_builddir=`pwd`;;
13256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13258 esac;;
13259esac
13260case $ac_abs_builddir in
13261.) ac_abs_top_builddir=${ac_top_builddir}.;;
13262*)
13263 case ${ac_top_builddir}. in
13264 .) ac_abs_top_builddir=$ac_abs_builddir;;
13265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13267 esac;;
13268esac
13269case $ac_abs_builddir in
13270.) ac_abs_srcdir=$ac_srcdir;;
13271*)
13272 case $ac_srcdir in
13273 .) ac_abs_srcdir=$ac_abs_builddir;;
13274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13276 esac;;
13277esac
13278case $ac_abs_builddir in
13279.) ac_abs_top_srcdir=$ac_top_srcdir;;
13280*)
13281 case $ac_top_srcdir in
13282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13285 esac;;
13286esac
13287
13288
13289 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13290echo "$as_me: executing $ac_dest commands" >&6;}
13291 case $ac_dest in
8ae85421
AM
13292 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13293 # Strip MF so we end up with the name of the file.
13294 mf=`echo "$mf" | sed -e 's/:.*$//'`
13295 # Check whether this is an Automake generated Makefile or not.
13296 # We used to match only the files named `Makefile.in', but
13297 # some people rename them; so instead we look at the file content.
13298 # Grep'ing the first line is not enough: some people post-process
13299 # each Makefile.in and add a new line on top of each file to say so.
13300 # So let's grep whole file.
13301 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13302 dirpart=`(dirname "$mf") 2>/dev/null ||
13303$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304 X"$mf" : 'X\(//\)[^/]' \| \
13305 X"$mf" : 'X\(//\)$' \| \
13306 X"$mf" : 'X\(/\)' \| \
13307 . : '\(.\)' 2>/dev/null ||
13308echo X"$mf" |
13309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13311 /^X\(\/\/\)$/{ s//\1/; q; }
13312 /^X\(\/\).*/{ s//\1/; q; }
13313 s/.*/./; q'`
13314 else
13315 continue
13316 fi
13317 # Extract the definition of DEPDIR, am__include, and am__quote
13318 # from the Makefile without running `make'.
13319 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13320 test -z "$DEPDIR" && continue
13321 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13322 test -z "am__include" && continue
13323 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13324 # When using ansi2knr, U may be empty or an underscore; expand it
13325 U=`sed -n 's/^U = //p' < "$mf"`
13326 # Find all dependency output files, they are included files with
13327 # $(DEPDIR) in their names. We invoke sed twice because it is the
13328 # simplest approach to changing $(DEPDIR) to its actual value in the
13329 # expansion.
13330 for file in `sed -n "
13331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13333 # Make sure the directory exists.
13334 test -f "$dirpart/$file" && continue
13335 fdir=`(dirname "$file") 2>/dev/null ||
13336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13337 X"$file" : 'X\(//\)[^/]' \| \
13338 X"$file" : 'X\(//\)$' \| \
13339 X"$file" : 'X\(/\)' \| \
13340 . : '\(.\)' 2>/dev/null ||
13341echo X"$file" |
13342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13344 /^X\(\/\/\)$/{ s//\1/; q; }
13345 /^X\(\/\).*/{ s//\1/; q; }
13346 s/.*/./; q'`
13347 { if $as_mkdir_p; then
13348 mkdir -p $dirpart/$fdir
13349 else
13350 as_dir=$dirpart/$fdir
13351 as_dirs=
13352 while test ! -d "$as_dir"; do
13353 as_dirs="$as_dir $as_dirs"
13354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13356 X"$as_dir" : 'X\(//\)[^/]' \| \
13357 X"$as_dir" : 'X\(//\)$' \| \
13358 X"$as_dir" : 'X\(/\)' \| \
13359 . : '\(.\)' 2>/dev/null ||
13360echo X"$as_dir" |
13361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13363 /^X\(\/\/\)$/{ s//\1/; q; }
13364 /^X\(\/\).*/{ s//\1/; q; }
13365 s/.*/./; q'`
13366 done
13367 test ! -n "$as_dirs" || mkdir $as_dirs
13368 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13369echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13370 { (exit 1); exit 1; }; }; }
13371
13372 # echo "creating $dirpart/$file"
13373 echo '# dummy' > "$dirpart/$file"
13374 done
13375done
d7040cdb
SE
13376 ;;
13377 libtool )
13378
13379 # See if we are running on zsh, and set the options which allow our
13380 # commands through without removal of \ escapes.
13381 if test -n "${ZSH_VERSION+set}" ; then
13382 setopt NO_GLOB_SUBST
13383 fi
13384
13385 cfgfile="${ofile}T"
13386 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13387 $RM "$cfgfile"
13388
13389 cat <<_LT_EOF >> "$cfgfile"
13390#! $SHELL
13391
13392# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13393# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13394# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13395# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13396#
13397# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13398# 2006, 2007 Free Software Foundation, Inc.
13399#
13400# This file is part of GNU Libtool:
13401# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13402#
13403# This program is free software; you can redistribute it and/or modify
13404# it under the terms of the GNU General Public License as published by
dabbade6 13405# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
13406# (at your option) any later version.
13407#
13408# This program is distributed in the hope that it will be useful, but
13409# WITHOUT ANY WARRANTY; without even the implied warranty of
13410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13411# General Public License for more details.
13412#
13413# You should have received a copy of the GNU General Public License
13414# along with this program; if not, a copy can be downloaded from
13415# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13416# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13417# MA 02110-1301, USA.
13418#
13419# As a special exception to the GNU General Public License, if you
13420# distribute this file as part of a program that contains a
13421# configuration script generated by Autoconf, you may include it under
13422# the same distribution terms that you use for the rest of that program.
13423
13424
13425# The names of the tagged configurations supported by this script.
13426available_tags=""
13427
13428# ### BEGIN LIBTOOL CONFIG
13429
13430# Whether or not to build shared libraries.
13431build_libtool_libs=$enable_shared
13432
13433# Which release of libtool.m4 was used?
13434macro_version=$macro_version
13435macro_revision=$macro_revision
13436
13437# Whether or not to build static libraries.
13438build_old_libs=$enable_static
13439
13440# What type of objects to build.
13441pic_mode=$pic_mode
13442
13443# Whether or not to optimize for fast installation.
13444fast_install=$enable_fast_install
13445
13446# The host system.
13447host_alias=$host_alias
13448host=$host
13449host_os=$host_os
13450
13451# The build system.
13452build_alias=$build_alias
13453build=$build
13454build_os=$build_os
13455
13456# A sed program that does not truncate output.
13457SED=$lt_SED
13458
13459# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13460Xsed="\$SED -e 1s/^X//"
13461
13462# A grep program that handles long lines.
13463GREP=$lt_GREP
13464
13465# An ERE matcher.
13466EGREP=$lt_EGREP
13467
13468# A literal string matcher.
13469FGREP=$lt_FGREP
13470
13471# A BSD- or MS-compatible name lister.
13472NM=$lt_NM
13473
13474# Whether we need soft or hard links.
13475LN_S=$lt_LN_S
13476
13477# What is the maximum length of a command?
13478max_cmd_len=$max_cmd_len
13479
13480# Object file suffix (normally "o").
13481objext=$ac_objext
13482
13483# Executable file suffix (normally "").
13484exeext=$exeext
13485
13486# whether the shell understands "unset".
13487lt_unset=$lt_unset
13488
13489# turn spaces into newlines.
13490SP2NL=$lt_lt_SP2NL
13491
13492# turn newlines into spaces.
13493NL2SP=$lt_lt_NL2SP
13494
13495# How to create reloadable object files.
13496reload_flag=$lt_reload_flag
13497reload_cmds=$lt_reload_cmds
13498
13499# Method to check whether dependent libraries are shared objects.
13500deplibs_check_method=$lt_deplibs_check_method
13501
13502# Command to use when deplibs_check_method == "file_magic".
13503file_magic_cmd=$lt_file_magic_cmd
13504
13505# The archiver.
13506AR=$lt_AR
13507AR_FLAGS=$lt_AR_FLAGS
13508
13509# A symbol stripping program.
13510STRIP=$lt_STRIP
13511
13512# Commands used to install an old-style archive.
13513RANLIB=$lt_RANLIB
13514old_postinstall_cmds=$lt_old_postinstall_cmds
13515old_postuninstall_cmds=$lt_old_postuninstall_cmds
13516
13517# A C compiler.
13518LTCC=$lt_CC
13519
13520# LTCC compiler flags.
13521LTCFLAGS=$lt_CFLAGS
13522
13523# Take the output of nm and produce a listing of raw symbols and C names.
13524global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13525
13526# Transform the output of nm in a proper C declaration.
13527global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13528
13529# Transform the output of nm in a C name address pair.
13530global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13531
13532# The name of the directory that contains temporary libtool files.
13533objdir=$objdir
13534
13535# Shell to use when invoking shell scripts.
13536SHELL=$lt_SHELL
13537
13538# An echo program that does not interpret backslashes.
13539ECHO=$lt_ECHO
13540
13541# Used to examine libraries when file_magic_cmd begins with "file".
13542MAGIC_CMD=$MAGIC_CMD
13543
13544# Must we lock files when doing compilation?
13545need_locks=$lt_need_locks
13546
13547# Old archive suffix (normally "a").
13548libext=$libext
13549
13550# Shared library suffix (normally ".so").
13551shrext_cmds=$lt_shrext_cmds
13552
13553# The commands to extract the exported symbol list from a shared archive.
13554extract_expsyms_cmds=$lt_extract_expsyms_cmds
13555
13556# Variables whose values should be saved in libtool wrapper scripts and
13557# restored at link time.
13558variables_saved_for_relink=$lt_variables_saved_for_relink
13559
13560# Do we need the "lib" prefix for modules?
13561need_lib_prefix=$need_lib_prefix
13562
13563# Do we need a version for libraries?
13564need_version=$need_version
13565
13566# Library versioning type.
13567version_type=$version_type
13568
13569# Shared library runtime path variable.
13570runpath_var=$runpath_var
13571
13572# Shared library path variable.
13573shlibpath_var=$shlibpath_var
13574
13575# Is shlibpath searched before the hard-coded library search path?
13576shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13577
13578# Format of library name prefix.
13579libname_spec=$lt_libname_spec
13580
13581# List of archive names. First name is the real one, the rest are links.
13582# The last name is the one that the linker finds with -lNAME
13583library_names_spec=$lt_library_names_spec
13584
13585# The coded name of the library, if different from the real name.
13586soname_spec=$lt_soname_spec
13587
13588# Command to use after installation of a shared archive.
13589postinstall_cmds=$lt_postinstall_cmds
13590
13591# Command to use after uninstallation of a shared archive.
13592postuninstall_cmds=$lt_postuninstall_cmds
13593
13594# Commands used to finish a libtool library installation in a directory.
13595finish_cmds=$lt_finish_cmds
13596
13597# As "finish_cmds", except a single script fragment to be evaled but
13598# not shown.
13599finish_eval=$lt_finish_eval
13600
13601# Whether we should hardcode library paths into libraries.
13602hardcode_into_libs=$hardcode_into_libs
13603
13604# Compile-time system search path for libraries.
13605sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13606
13607# Run-time system search path for libraries.
13608sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13609
13610# Whether dlopen is supported.
13611dlopen_support=$enable_dlopen
13612
13613# Whether dlopen of programs is supported.
13614dlopen_self=$enable_dlopen_self
13615
13616# Whether dlopen of statically linked programs is supported.
13617dlopen_self_static=$enable_dlopen_self_static
13618
13619# Commands to strip libraries.
13620old_striplib=$lt_old_striplib
13621striplib=$lt_striplib
13622
13623
13624# The linker used to build libraries.
13625LD=$lt_LD
13626
13627# Commands used to build an old-style archive.
13628old_archive_cmds=$lt_old_archive_cmds
13629
13630# A language specific compiler.
13631CC=$lt_compiler
13632
13633# Is the compiler the GNU compiler?
13634with_gcc=$GCC
13635
13636# Compiler flag to turn off builtin functions.
13637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13638
13639# How to pass a linker flag through the compiler.
13640wl=$lt_lt_prog_compiler_wl
13641
13642# Additional compiler flags for building library objects.
13643pic_flag=$lt_lt_prog_compiler_pic
13644
13645# Compiler flag to prevent dynamic linking.
13646link_static_flag=$lt_lt_prog_compiler_static
13647
13648# Does compiler simultaneously support -c and -o options?
13649compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13650
13651# Whether or not to add -lc for building shared libraries.
13652build_libtool_need_lc=$archive_cmds_need_lc
13653
13654# Whether or not to disallow shared libs when runtime libs are static.
13655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13656
13657# Compiler flag to allow reflexive dlopens.
13658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13659
13660# Compiler flag to generate shared objects directly from archives.
13661whole_archive_flag_spec=$lt_whole_archive_flag_spec
13662
13663# Whether the compiler copes with passing no objects directly.
13664compiler_needs_object=$lt_compiler_needs_object
13665
13666# Create an old-style archive from a shared archive.
13667old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13668
13669# Create a temporary old-style archive to link instead of a shared archive.
13670old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13671
13672# Commands used to build a shared archive.
13673archive_cmds=$lt_archive_cmds
13674archive_expsym_cmds=$lt_archive_expsym_cmds
13675
13676# Commands used to build a loadable module if different from building
13677# a shared archive.
13678module_cmds=$lt_module_cmds
13679module_expsym_cmds=$lt_module_expsym_cmds
13680
13681# Whether we are building with GNU ld or not.
13682with_gnu_ld=$lt_with_gnu_ld
13683
13684# Flag that allows shared libraries with undefined symbols to be built.
13685allow_undefined_flag=$lt_allow_undefined_flag
13686
13687# Flag that enforces no undefined symbols.
13688no_undefined_flag=$lt_no_undefined_flag
13689
13690# Flag to hardcode \$libdir into a binary during linking.
13691# This must work even if \$libdir does not exist
13692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13693
13694# If ld is used when linking, flag to hardcode \$libdir into a binary
13695# during linking. This must work even if \$libdir does not exist.
13696hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13697
13698# Whether we need a single "-rpath" flag with a separated argument.
13699hardcode_libdir_separator=$lt_hardcode_libdir_separator
13700
13701# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13702# DIR into the resulting binary.
13703hardcode_direct=$hardcode_direct
13704
13705# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13706# DIR into the resulting binary and the resulting library dependency is
13707# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13708# library is relocated.
13709hardcode_direct_absolute=$hardcode_direct_absolute
13710
13711# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13712# into the resulting binary.
13713hardcode_minus_L=$hardcode_minus_L
13714
13715# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13716# into the resulting binary.
13717hardcode_shlibpath_var=$hardcode_shlibpath_var
13718
13719# Set to "yes" if building a shared library automatically hardcodes DIR
13720# into the library and all subsequent libraries and executables linked
13721# against it.
13722hardcode_automatic=$hardcode_automatic
13723
13724# Set to yes if linker adds runtime paths of dependent libraries
13725# to runtime path list.
13726inherit_rpath=$inherit_rpath
13727
13728# Whether libtool must link a program against all its dependency libraries.
13729link_all_deplibs=$link_all_deplibs
13730
13731# Fix the shell variable \$srcfile for the compiler.
13732fix_srcfile_path=$lt_fix_srcfile_path
13733
13734# Set to "yes" if exported symbols are required.
13735always_export_symbols=$always_export_symbols
13736
13737# The commands to list exported symbols.
13738export_symbols_cmds=$lt_export_symbols_cmds
13739
13740# Symbols that should not be listed in the preloaded symbols.
13741exclude_expsyms=$lt_exclude_expsyms
13742
13743# Symbols that must always be exported.
13744include_expsyms=$lt_include_expsyms
13745
13746# Commands necessary for linking programs (against libraries) with templates.
13747prelink_cmds=$lt_prelink_cmds
13748
13749# Specify filename containing input files.
13750file_list_spec=$lt_file_list_spec
13751
13752# How to hardcode a shared library path into an executable.
13753hardcode_action=$hardcode_action
13754
13755# ### END LIBTOOL CONFIG
13756
13757_LT_EOF
13758
13759 case $host_os in
13760 aix3*)
13761 cat <<\_LT_EOF >> "$cfgfile"
13762# AIX sometimes has problems with the GCC collect2 program. For some
13763# reason, if we set the COLLECT_NAMES environment variable, the problems
13764# vanish in a puff of smoke.
13765if test "X${COLLECT_NAMES+set}" != Xset; then
13766 COLLECT_NAMES=
13767 export COLLECT_NAMES
13768fi
13769_LT_EOF
13770 ;;
13771 esac
13772
13773
13774ltmain="$ac_aux_dir/ltmain.sh"
13775
13776
13777 # We use sed instead of cat because bash on DJGPP gets confused if
13778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13779 # text mode, it properly converts lines to CR/LF. This bash problem
13780 # is reportedly fixed, but why not run on old versions too?
13781 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13782 || (rm -f "$cfgfile"; exit 1)
13783
13784 case $xsi_shell in
13785 yes)
13786 cat << \_LT_EOF >> "$cfgfile"
13787# func_dirname file append nondir_replacement
13788# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13789# otherwise set result to NONDIR_REPLACEMENT.
13790func_dirname ()
13791{
13792 case ${1} in
13793 */*) func_dirname_result="${1%/*}${2}" ;;
13794 * ) func_dirname_result="${3}" ;;
13795 esac
13796}
13797
13798# func_basename file
13799func_basename ()
13800{
13801 func_basename_result="${1##*/}"
13802}
13803
13804# func_stripname prefix suffix name
13805# strip PREFIX and SUFFIX off of NAME.
13806# PREFIX and SUFFIX must not contain globbing or regex special
13807# characters, hashes, percent signs, but SUFFIX may contain a leading
13808# dot (in which case that matches only a dot).
13809func_stripname ()
13810{
13811 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13812 # positional parameters, so assign one to ordinary parameter first.
13813 func_stripname_result=${3}
13814 func_stripname_result=${func_stripname_result#"${1}"}
13815 func_stripname_result=${func_stripname_result%"${2}"}
13816}
13817
13818# func_opt_split
13819func_opt_split ()
13820{
13821 func_opt_split_opt=${1%%=*}
13822 func_opt_split_arg=${1#*=}
13823}
13824
13825# func_lo2o object
13826func_lo2o ()
13827{
13828 case ${1} in
13829 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13830 *) func_lo2o_result=${1} ;;
13831 esac
13832}
13833_LT_EOF
13834 ;;
13835 *) # Bourne compatible functions.
13836 cat << \_LT_EOF >> "$cfgfile"
13837# func_dirname file append nondir_replacement
13838# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13839# otherwise set result to NONDIR_REPLACEMENT.
13840func_dirname ()
13841{
13842 # Extract subdirectory from the argument.
13843 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13844 if test "X$func_dirname_result" = "X${1}"; then
13845 func_dirname_result="${3}"
13846 else
13847 func_dirname_result="$func_dirname_result${2}"
13848 fi
13849}
13850
13851# func_basename file
13852func_basename ()
13853{
13854 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13855}
13856
13857# func_stripname prefix suffix name
13858# strip PREFIX and SUFFIX off of NAME.
13859# PREFIX and SUFFIX must not contain globbing or regex special
13860# characters, hashes, percent signs, but SUFFIX may contain a leading
13861# dot (in which case that matches only a dot).
13862# func_strip_suffix prefix name
13863func_stripname ()
13864{
13865 case ${2} in
13866 .*) func_stripname_result=`$ECHO "X${3}" \
13867 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13868 *) func_stripname_result=`$ECHO "X${3}" \
13869 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13870 esac
13871}
13872
13873# sed scripts:
13874my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13875my_sed_long_arg='1s/^-[^=]*=//'
13876
13877# func_opt_split
13878func_opt_split ()
13879{
13880 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13881 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13882}
13883
13884# func_lo2o object
13885func_lo2o ()
13886{
13887 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13888}
13889_LT_EOF
13890esac
13891
13892case $lt_shell_append in
13893 yes)
13894 cat << \_LT_EOF >> "$cfgfile"
13895
13896# func_append var value
13897# Append VALUE to the end of shell variable VAR.
13898func_append ()
13899{
13900 eval "$1+=\$2"
13901}
13902_LT_EOF
13903 ;;
13904 *)
13905 cat << \_LT_EOF >> "$cfgfile"
13906
13907# func_append var value
13908# Append VALUE to the end of shell variable VAR.
13909func_append ()
13910{
13911 eval "$1=\$$1\$2"
13912}
13913_LT_EOF
13914 ;;
13915 esac
13916
13917
13918 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13919 || (rm -f "$cfgfile"; exit 1)
13920
13921 mv -f "$cfgfile" "$ofile" ||
13922 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13923 chmod +x "$ofile"
13924
8ae85421 13925 ;;
20e95c23
DJ
13926 default-1 )
13927 for ac_file in $CONFIG_FILES; do
13928 # Support "outfile[:infile[:infile...]]"
13929 case "$ac_file" in
13930 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13931 esac
13932 # PO directories have a Makefile.in generated from Makefile.in.in.
13933 case "$ac_file" in */Makefile.in)
13934 # Adjust a relative srcdir.
13935 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13936 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13937 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13938 # In autoconf-2.13 it is called $ac_given_srcdir.
13939 # In autoconf-2.50 it is called $srcdir.
13940 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13941 case "$ac_given_srcdir" in
13942 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13943 /*) top_srcdir="$ac_given_srcdir" ;;
13944 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13945 esac
13946 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13947 rm -f "$ac_dir/POTFILES"
13948 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13949 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13950 POMAKEFILEDEPS="POTFILES.in"
13951 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13952 # on $ac_dir but don't depend on user-specified configuration
13953 # parameters.
13954 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13955 # The LINGUAS file contains the set of available languages.
13956 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13957 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13958 fi
13959 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13960 # Hide the ALL_LINGUAS assigment from automake.
13961 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13962 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13963 else
13964 # The set of available languages was given in configure.in.
13965 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13966 fi
13967 case "$ac_given_srcdir" in
13968 .) srcdirpre= ;;
13969 *) srcdirpre='$(srcdir)/' ;;
13970 esac
13971 POFILES=
13972 GMOFILES=
13973 UPDATEPOFILES=
13974 DUMMYPOFILES=
13975 for lang in $ALL_LINGUAS; do
13976 POFILES="$POFILES $srcdirpre$lang.po"
13977 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13978 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13979 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13980 done
13981 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13982 # environment variable.
13983 INST_LINGUAS=
13984 if test -n "$ALL_LINGUAS"; then
13985 for presentlang in $ALL_LINGUAS; do
13986 useit=no
13987 if test "%UNSET%" != "$LINGUAS"; then
13988 desiredlanguages="$LINGUAS"
13989 else
13990 desiredlanguages="$ALL_LINGUAS"
13991 fi
13992 for desiredlang in $desiredlanguages; do
13993 # Use the presentlang catalog if desiredlang is
13994 # a. equal to presentlang, or
13995 # b. a variant of presentlang (because in this case,
13996 # presentlang can be used as a fallback for messages
13997 # which are not translated in the desiredlang catalog).
13998 case "$desiredlang" in
13999 "$presentlang"*) useit=yes;;
14000 esac
14001 done
14002 if test $useit = yes; then
14003 INST_LINGUAS="$INST_LINGUAS $presentlang"
14004 fi
14005 done
14006 fi
14007 CATALOGS=
14008 if test -n "$INST_LINGUAS"; then
14009 for lang in $INST_LINGUAS; do
14010 CATALOGS="$CATALOGS $lang.gmo"
14011 done
14012 fi
14013 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14014 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"
14015 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14016 if test -f "$f"; then
14017 case "$f" in
14018 *.orig | *.bak | *~) ;;
14019 *) cat "$f" >> "$ac_dir/Makefile" ;;
14020 esac
14021 fi
14022 done
14023 fi
14024 ;;
14025 esac
14026 done ;;
979273e3
NN
14027 esac
14028done
14029_ACEOF
14030
14031cat >>$CONFIG_STATUS <<\_ACEOF
14032
14033{ (exit 0); exit 0; }
14034_ACEOF
252b5132 14035chmod +x $CONFIG_STATUS
979273e3
NN
14036ac_clean_files=$ac_clean_files_save
14037
14038
14039# configure is writing to config.log, and then calls config.status.
14040# config.status does its own redirection, appending to config.log.
14041# Unfortunately, on DOS this fails, as config.log is still kept open
14042# by configure, so config.status won't be able to write to it; its
14043# output is simply discarded. So we exec the FD to /dev/null,
14044# effectively closing config.log, so it can be properly (re)opened and
14045# appended to by config.status. When coming back to configure, we
14046# need to make the FD available again.
14047if test "$no_create" != yes; then
14048 ac_cs_success=:
14049 ac_config_status_args=
14050 test "$silent" = yes &&
14051 ac_config_status_args="$ac_config_status_args --quiet"
14052 exec 5>/dev/null
14053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14054 exec 5>>config.log
14055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14056 # would make configure fail if this is the last instruction.
14057 $ac_cs_success || { (exit 1); exit 1; }
14058fi
252b5132 14059
This page took 1.760115 seconds and 4 git commands to generate.