]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5464f5a1 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
5464f5a1 | 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. | |
5464f5a1 NN |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if 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+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for 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 | |
43 | do | |
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 | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo 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. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if 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 | |
97 | fi | |
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 | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
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 | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
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 | |
152 | done | |
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 | ||
187 | case `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= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if 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 | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_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. | |
231 | as_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. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
d7040cdb SE |
244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if 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 | |
277 | fi | |
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 | ||
283 | if 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 | |
381 | fi | |
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. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
5464f5a1 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. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 397 | |
5464f5a1 NN |
398 | exec 6>&1 |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
252b5132 | 403 | ac_default_prefix=/usr/local |
5464f5a1 NN |
404 | ac_config_libobj_dir=. |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${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. | |
417 | PACKAGE_NAME= | |
418 | PACKAGE_TARNAME= | |
419 | PACKAGE_VERSION= | |
420 | PACKAGE_STRING= | |
421 | PACKAGE_BUGREPORT= | |
422 | ||
423 | ac_unique_file="libbfd.c" | |
424 | # Factoring default headers for most tests. | |
425 | ac_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 | ||
bce5e5c9 | 461 | ac_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 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE 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 HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
5464f5a1 | 462 | ac_subst_files='' |
7a283e07 | 463 | ac_pwd=`pwd` |
252b5132 RH |
464 | |
465 | # Initialize some variables set by options. | |
5464f5a1 NN |
466 | ac_init_help= |
467 | ac_init_version=false | |
252b5132 RH |
468 | # The variables have the same names as the options, with |
469 | # dashes changed to underlines. | |
5464f5a1 | 470 | cache_file=/dev/null |
252b5132 | 471 | exec_prefix=NONE |
252b5132 | 472 | no_create= |
252b5132 RH |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
252b5132 RH |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
5464f5a1 NN |
484 | |
485 | # Installation directory options. | |
486 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
487 | # and all the variables that are supposed to be based on exec_prefix | |
488 | # by default will actually change. | |
489 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
490 | bindir='${exec_prefix}/bin' |
491 | sbindir='${exec_prefix}/sbin' | |
492 | libexecdir='${exec_prefix}/libexec' | |
493 | datadir='${prefix}/share' | |
494 | sysconfdir='${prefix}/etc' | |
495 | sharedstatedir='${prefix}/com' | |
496 | localstatedir='${prefix}/var' | |
497 | libdir='${exec_prefix}/lib' | |
498 | includedir='${prefix}/include' | |
499 | oldincludedir='/usr/include' | |
500 | infodir='${prefix}/info' | |
501 | mandir='${prefix}/man' | |
502 | ||
252b5132 RH |
503 | ac_prev= |
504 | for ac_option | |
505 | do | |
252b5132 RH |
506 | # If the previous option needs an argument, assign it. |
507 | if test -n "$ac_prev"; then | |
508 | eval "$ac_prev=\$ac_option" | |
509 | ac_prev= | |
510 | continue | |
511 | fi | |
512 | ||
5464f5a1 | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
5464f5a1 | 517 | case $ac_option in |
252b5132 RH |
518 | |
519 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
520 | ac_prev=bindir ;; | |
521 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
5464f5a1 | 522 | bindir=$ac_optarg ;; |
252b5132 RH |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 525 | ac_prev=build_alias ;; |
252b5132 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 527 | build_alias=$ac_optarg ;; |
252b5132 RH |
528 | |
529 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
530 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
531 | ac_prev=cache_file ;; | |
532 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
533 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5464f5a1 NN |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
252b5132 RH |
538 | |
539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
540 | ac_prev=datadir ;; | |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
542 | | --da=*) | |
5464f5a1 | 543 | datadir=$ac_optarg ;; |
252b5132 RH |
544 | |
545 | -disable-* | --disable-*) | |
5464f5a1 | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 547 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
550 | { (exit 1); exit 1; }; } | |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
552 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
553 | |
554 | -enable-* | --enable-*) | |
5464f5a1 | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 556 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
559 | { (exit 1); exit 1; }; } | |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
563 | *) ac_optarg=yes ;; |
564 | esac | |
5464f5a1 | 565 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
566 | |
567 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
568 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
569 | | --exec | --exe | --ex) | |
570 | ac_prev=exec_prefix ;; | |
571 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
572 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
573 | | --exec=* | --exe=* | --ex=*) | |
5464f5a1 | 574 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
5464f5a1 NN |
580 | -help | --help | --hel | --he | -h) |
581 | ac_init_help=long ;; | |
582 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
583 | ac_init_help=recursive ;; | |
584 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
585 | ac_init_help=short ;; | |
252b5132 RH |
586 | |
587 | -host | --host | --hos | --ho) | |
5464f5a1 | 588 | ac_prev=host_alias ;; |
252b5132 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 590 | host_alias=$ac_optarg ;; |
252b5132 RH |
591 | |
592 | -includedir | --includedir | --includedi | --included | --include \ | |
593 | | --includ | --inclu | --incl | --inc) | |
594 | ac_prev=includedir ;; | |
595 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
596 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
5464f5a1 | 597 | includedir=$ac_optarg ;; |
252b5132 RH |
598 | |
599 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
600 | ac_prev=infodir ;; | |
601 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
5464f5a1 | 602 | infodir=$ac_optarg ;; |
252b5132 RH |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 607 | libdir=$ac_optarg ;; |
252b5132 RH |
608 | |
609 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
610 | | --libexe | --libex | --libe) | |
611 | ac_prev=libexecdir ;; | |
612 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
613 | | --libexe=* | --libex=* | --libe=*) | |
5464f5a1 | 614 | libexecdir=$ac_optarg ;; |
252b5132 RH |
615 | |
616 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
617 | | --localstate | --localstat | --localsta | --localst \ | |
618 | | --locals | --local | --loca | --loc | --lo) | |
619 | ac_prev=localstatedir ;; | |
620 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
621 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
622 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
5464f5a1 | 623 | localstatedir=$ac_optarg ;; |
252b5132 RH |
624 | |
625 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
626 | ac_prev=mandir ;; | |
627 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
5464f5a1 | 628 | mandir=$ac_optarg ;; |
252b5132 RH |
629 | |
630 | -nfp | --nfp | --nf) | |
631 | # Obsolete; use --without-fp. | |
632 | with_fp=no ;; | |
633 | ||
634 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
5464f5a1 | 635 | | --no-cr | --no-c | -n) |
252b5132 RH |
636 | no_create=yes ;; |
637 | ||
638 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
639 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
640 | no_recursion=yes ;; | |
641 | ||
642 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
643 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
644 | | --oldin | --oldi | --old | --ol | --o) | |
645 | ac_prev=oldincludedir ;; | |
646 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
647 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
648 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
5464f5a1 | 649 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
650 | |
651 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
652 | ac_prev=prefix ;; | |
653 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5464f5a1 | 654 | prefix=$ac_optarg ;; |
252b5132 RH |
655 | |
656 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
657 | | --program-pre | --program-pr | --program-p) | |
658 | ac_prev=program_prefix ;; | |
659 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
660 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
5464f5a1 | 661 | program_prefix=$ac_optarg ;; |
252b5132 RH |
662 | |
663 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
664 | | --program-suf | --program-su | --program-s) | |
665 | ac_prev=program_suffix ;; | |
666 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
667 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
5464f5a1 | 668 | program_suffix=$ac_optarg ;; |
252b5132 RH |
669 | |
670 | -program-transform-name | --program-transform-name \ | |
671 | | --program-transform-nam | --program-transform-na \ | |
672 | | --program-transform-n | --program-transform- \ | |
673 | | --program-transform | --program-transfor \ | |
674 | | --program-transfo | --program-transf \ | |
675 | | --program-trans | --program-tran \ | |
676 | | --progr-tra | --program-tr | --program-t) | |
677 | ac_prev=program_transform_name ;; | |
678 | -program-transform-name=* | --program-transform-name=* \ | |
679 | | --program-transform-nam=* | --program-transform-na=* \ | |
680 | | --program-transform-n=* | --program-transform-=* \ | |
681 | | --program-transform=* | --program-transfor=* \ | |
682 | | --program-transfo=* | --program-transf=* \ | |
683 | | --program-trans=* | --program-tran=* \ | |
684 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
5464f5a1 | 685 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
686 | |
687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
688 | | -silent | --silent | --silen | --sile | --sil) | |
689 | silent=yes ;; | |
690 | ||
691 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
692 | ac_prev=sbindir ;; | |
693 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
694 | | --sbi=* | --sb=*) | |
5464f5a1 | 695 | sbindir=$ac_optarg ;; |
252b5132 RH |
696 | |
697 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
698 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
699 | | --sharedst | --shareds | --shared | --share | --shar \ | |
700 | | --sha | --sh) | |
701 | ac_prev=sharedstatedir ;; | |
702 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
703 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
704 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
705 | | --sha=* | --sh=*) | |
5464f5a1 | 706 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 711 | site=$ac_optarg ;; |
6be7c12c | 712 | |
252b5132 RH |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 716 | srcdir=$ac_optarg ;; |
252b5132 RH |
717 | |
718 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
719 | | --syscon | --sysco | --sysc | --sys | --sy) | |
720 | ac_prev=sysconfdir ;; | |
721 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
722 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
5464f5a1 | 723 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 726 | ac_prev=target_alias ;; |
252b5132 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 728 | target_alias=$ac_optarg ;; |
252b5132 RH |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
5464f5a1 NN |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
252b5132 RH |
735 | |
736 | -with-* | --with-*) | |
5464f5a1 | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 738 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
741 | { (exit 1); exit 1; }; } | |
252b5132 | 742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
5464f5a1 NN |
743 | case $ac_option in |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
745 | *) ac_optarg=yes ;; |
746 | esac | |
5464f5a1 | 747 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
748 | |
749 | -without-* | --without-*) | |
5464f5a1 | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 751 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
754 | { (exit 1); exit 1; }; } | |
755 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
756 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
757 | |
758 | --x) | |
759 | # Obsolete; use --with-x. | |
760 | with_x=yes ;; | |
761 | ||
762 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
763 | | --x-incl | --x-inc | --x-in | --x-i) | |
764 | ac_prev=x_includes ;; | |
765 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
766 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
5464f5a1 | 767 | x_includes=$ac_optarg ;; |
252b5132 RH |
768 | |
769 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
770 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
771 | ac_prev=x_libraries ;; | |
772 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
773 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
5464f5a1 | 774 | x_libraries=$ac_optarg ;; |
252b5132 | 775 | |
5464f5a1 NN |
776 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
777 | Try \`$0 --help' for more information." >&2 | |
778 | { (exit 1); exit 1; }; } | |
252b5132 RH |
779 | ;; |
780 | ||
5464f5a1 NN |
781 | *=*) |
782 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
783 | # Reject names that are not valid shell variable names. | |
784 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
785 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
786 | { (exit 1); exit 1; }; } | |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
788 | eval "$ac_envvar='$ac_optarg'" | |
789 | export $ac_envvar ;; | |
790 | ||
252b5132 | 791 | *) |
5464f5a1 NN |
792 | # FIXME: should be removed in autoconf 3.0. |
793 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
794 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
795 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
796 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
797 | ;; |
798 | ||
799 | esac | |
800 | done | |
801 | ||
802 | if test -n "$ac_prev"; then | |
5464f5a1 NN |
803 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
804 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
805 | { (exit 1); exit 1; }; } | |
252b5132 | 806 | fi |
252b5132 | 807 | |
5464f5a1 NN |
808 | # Be sure to have absolute paths. |
809 | for ac_var in exec_prefix prefix | |
810 | do | |
811 | eval ac_val=$`echo $ac_var` | |
812 | case $ac_val in | |
813 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
814 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
815 | { (exit 1); exit 1; }; };; | |
816 | esac | |
817 | done | |
6be7c12c | 818 | |
5464f5a1 NN |
819 | # Be sure to have absolute paths. |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
821 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 822 | do |
5464f5a1 NN |
823 | eval ac_val=$`echo $ac_var` |
824 | case $ac_val in | |
825 | [\\/$]* | ?:[\\/]* ) ;; | |
826 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
827 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
828 | esac |
829 | done | |
830 | ||
5464f5a1 NN |
831 | # There might be people who depend on the old broken behavior: `$host' |
832 | # used to hold the argument of --host etc. | |
833 | # FIXME: To remove some day. | |
834 | build=$build_alias | |
835 | host=$host_alias | |
836 | target=$target_alias | |
837 | ||
838 | # FIXME: To remove some day. | |
839 | if test "x$host_alias" != x; then | |
840 | if test "x$build_alias" = x; then | |
841 | cross_compiling=maybe | |
842 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
843 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
844 | elif test "x$build_alias" != "x$host_alias"; then | |
845 | cross_compiling=yes | |
846 | fi | |
847 | fi | |
252b5132 | 848 | |
5464f5a1 NN |
849 | ac_tool_prefix= |
850 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
851 | ||
852 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 853 | |
252b5132 RH |
854 | |
855 | # Find the source files, if location was not specified. | |
856 | if test -z "$srcdir"; then | |
857 | ac_srcdir_defaulted=yes | |
858 | # Try the directory containing this script, then its parent. | |
5464f5a1 NN |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
861 | X"$0" : 'X\(//\)[^/]' \| \ | |
862 | X"$0" : 'X\(//\)$' \| \ | |
863 | X"$0" : 'X\(/\)' \| \ | |
864 | . : '\(.\)' 2>/dev/null || | |
865 | echo X"$0" | | |
866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
867 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
868 | /^X\(\/\/\)$/{ s//\1/; q; } | |
869 | /^X\(\/\).*/{ s//\1/; q; } | |
870 | s/.*/./; q'` | |
252b5132 RH |
871 | srcdir=$ac_confdir |
872 | if test ! -r $srcdir/$ac_unique_file; then | |
873 | srcdir=.. | |
874 | fi | |
875 | else | |
876 | ac_srcdir_defaulted=no | |
877 | fi | |
878 | if test ! -r $srcdir/$ac_unique_file; then | |
879 | if test "$ac_srcdir_defaulted" = yes; then | |
5464f5a1 NN |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
881 | { (exit 1); exit 1; }; } | |
252b5132 | 882 | else |
5464f5a1 NN |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
884 | { (exit 1); exit 1; }; } | |
252b5132 RH |
885 | fi |
886 | fi | |
5464f5a1 NN |
887 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
888 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
889 | { (exit 1); exit 1; }; } | |
890 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
891 | ac_env_build_alias_set=${build_alias+set} | |
892 | ac_env_build_alias_value=$build_alias | |
893 | ac_cv_env_build_alias_set=${build_alias+set} | |
894 | ac_cv_env_build_alias_value=$build_alias | |
895 | ac_env_host_alias_set=${host_alias+set} | |
896 | ac_env_host_alias_value=$host_alias | |
897 | ac_cv_env_host_alias_set=${host_alias+set} | |
898 | ac_cv_env_host_alias_value=$host_alias | |
899 | ac_env_target_alias_set=${target_alias+set} | |
900 | ac_env_target_alias_value=$target_alias | |
901 | ac_cv_env_target_alias_set=${target_alias+set} | |
902 | ac_cv_env_target_alias_value=$target_alias | |
903 | ac_env_CC_set=${CC+set} | |
904 | ac_env_CC_value=$CC | |
905 | ac_cv_env_CC_set=${CC+set} | |
906 | ac_cv_env_CC_value=$CC | |
907 | ac_env_CFLAGS_set=${CFLAGS+set} | |
908 | ac_env_CFLAGS_value=$CFLAGS | |
909 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
910 | ac_cv_env_CFLAGS_value=$CFLAGS | |
911 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
912 | ac_env_LDFLAGS_value=$LDFLAGS | |
913 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
914 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
915 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
916 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
917 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
918 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
919 | ac_env_CPP_set=${CPP+set} | |
920 | ac_env_CPP_value=$CPP | |
921 | ac_cv_env_CPP_set=${CPP+set} | |
922 | ac_cv_env_CPP_value=$CPP | |
b3baf5d0 | 923 | |
5464f5a1 NN |
924 | # |
925 | # Report the --help message. | |
926 | # | |
927 | if test "$ac_init_help" = "long"; then | |
928 | # Omit some internal or obsolete options to make the list less imposing. | |
929 | # This message is too long to be a string in the A/UX 3.1 sh. | |
930 | cat <<_ACEOF | |
931 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 932 | |
5464f5a1 | 933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 934 | |
5464f5a1 NN |
935 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
936 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
6be7c12c | 937 | |
5464f5a1 | 938 | Defaults for the options are specified in brackets. |
6be7c12c | 939 | |
5464f5a1 NN |
940 | Configuration: |
941 | -h, --help display this help and exit | |
942 | --help=short display options specific to this package | |
943 | --help=recursive display the short help of all the included packages | |
944 | -V, --version display version information and exit | |
945 | -q, --quiet, --silent do not print \`checking...' messages | |
946 | --cache-file=FILE cache test results in FILE [disabled] | |
947 | -C, --config-cache alias for \`--cache-file=config.cache' | |
948 | -n, --no-create do not create output files | |
949 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
950 | ||
951 | _ACEOF | |
952 | ||
953 | cat <<_ACEOF | |
954 | Installation directories: | |
955 | --prefix=PREFIX install architecture-independent files in PREFIX | |
956 | [$ac_default_prefix] | |
957 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
958 | [PREFIX] | |
6be7c12c | 959 | |
5464f5a1 NN |
960 | By default, \`make install' will install all the files in |
961 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
962 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
963 | for instance \`--prefix=\$HOME'. | |
6be7c12c | 964 | |
5464f5a1 | 965 | For better control, use the options below. |
6be7c12c | 966 | |
5464f5a1 NN |
967 | Fine tuning of the installation directories: |
968 | --bindir=DIR user executables [EPREFIX/bin] | |
969 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
970 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
971 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
972 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
973 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
974 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
975 | --libdir=DIR object code libraries [EPREFIX/lib] | |
976 | --includedir=DIR C header files [PREFIX/include] | |
977 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
978 | --infodir=DIR info documentation [PREFIX/info] | |
979 | --mandir=DIR man documentation [PREFIX/man] | |
980 | _ACEOF | |
6be7c12c | 981 | |
5464f5a1 | 982 | cat <<\_ACEOF |
6be7c12c | 983 | |
5464f5a1 NN |
984 | Program names: |
985 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
986 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
987 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 988 | |
5464f5a1 NN |
989 | System types: |
990 | --build=BUILD configure for building on BUILD [guessed] | |
991 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
992 | --target=TARGET configure for building compilers for TARGET [HOST] | |
993 | _ACEOF | |
252b5132 | 994 | fi |
252b5132 | 995 | |
5464f5a1 | 996 | if test -n "$ac_init_help"; then |
6be7c12c | 997 | |
5464f5a1 | 998 | cat <<\_ACEOF |
252b5132 | 999 | |
5464f5a1 NN |
1000 | Optional Features: |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f5385ebf AM |
1003 | --disable-dependency-tracking speeds up one-time build |
1004 | --enable-dependency-tracking do not reject slow dependency extractors | |
d7040cdb SE |
1005 | --enable-shared[=PKGS] |
1006 | build shared libraries [default=no] | |
1007 | --enable-static[=PKGS] | |
1008 | build static libraries [default=yes] | |
1009 | --enable-fast-install[=PKGS] | |
1010 | optimize for fast installation [default=yes] | |
5464f5a1 NN |
1011 | --disable-libtool-lock avoid locking (might break parallel builds) |
1012 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
1013 | --enable-targets alternative target configurations | |
1014 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
6ec7057a | 1015 | --enable-secureplt Default to creating read-only plt entries |
504b7d20 | 1016 | --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type |
241a6c40 AM |
1017 | --enable-werror treat compile warnings as errors |
1018 | --enable-build-warnings enable build-time compiler warnings | |
f5385ebf AM |
1019 | --enable-maintainer-mode enable make rules and dependencies not useful |
1020 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
1021 | --enable-install-libbfd controls installation of libbfd and related headers |
1022 | --disable-nls do not use Native Language Support | |
1023 | ||
1024 | Optional Packages: | |
1025 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1026 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1027 | --with-pic try to use only PIC/non-PIC objects [default=use |
1028 | both] | |
1029 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
5464f5a1 | 1030 | --with-mmap try using mmap for BFD input files if available |
0d4a1476 AS |
1031 | --with-separate-debug-dir=DIR |
1032 | Look for global separate debug info in DIR | |
1033 | [default=LIBDIR/debug] | |
a1ac8190 JM |
1034 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU |
1035 | Binutils" | |
c428fa83 | 1036 | --with-bugurl=URL Direct users to URL to report a bug |
5464f5a1 NN |
1037 | |
1038 | Some influential environment variables: | |
1039 | CC C compiler command | |
1040 | CFLAGS C compiler flags | |
1041 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1042 | nonstandard directory <lib dir> | |
1043 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1044 | headers in a nonstandard directory <include dir> | |
1045 | CPP C preprocessor | |
1046 | ||
1047 | Use these variables to override the choices made by `configure' or to help | |
1048 | it to find libraries and programs with nonstandard names/locations. | |
1049 | ||
1050 | _ACEOF | |
1051 | fi | |
1052 | ||
1053 | if test "$ac_init_help" = "recursive"; then | |
1054 | # If there are subdirs, report their specific --help. | |
1055 | ac_popdir=`pwd` | |
1056 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1057 | test -d $ac_dir || continue | |
1058 | ac_builddir=. | |
1059 | ||
1060 | if test "$ac_dir" != .; then | |
1061 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1062 | # A "../" for each directory in $ac_dir_suffix. | |
1063 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1064 | else | |
1065 | ac_dir_suffix= ac_top_builddir= | |
1066 | fi | |
1067 | ||
1068 | case $srcdir in | |
1069 | .) # No --srcdir option. We are building in place. | |
1070 | ac_srcdir=. | |
1071 | if test -z "$ac_top_builddir"; then | |
1072 | ac_top_srcdir=. | |
1073 | else | |
1074 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1075 | fi ;; | |
1076 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1077 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1078 | ac_top_srcdir=$srcdir ;; | |
1079 | *) # Relative path. | |
1080 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1081 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
1082 | esac |
1083 | ||
5464f5a1 NN |
1084 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1085 | # the directories may not exist. | |
1086 | case `pwd` in | |
1087 | .) ac_abs_builddir="$ac_dir";; | |
1088 | *) | |
1089 | case "$ac_dir" in | |
1090 | .) ac_abs_builddir=`pwd`;; | |
1091 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1092 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1093 | esac;; | |
1094 | esac | |
1095 | case $ac_abs_builddir in | |
1096 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1097 | *) | |
1098 | case ${ac_top_builddir}. in | |
1099 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1100 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1101 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1102 | esac;; | |
1103 | esac | |
1104 | case $ac_abs_builddir in | |
1105 | .) ac_abs_srcdir=$ac_srcdir;; | |
1106 | *) | |
1107 | case $ac_srcdir in | |
1108 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1109 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1110 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1111 | esac;; | |
1112 | esac | |
1113 | case $ac_abs_builddir in | |
1114 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1115 | *) | |
1116 | case $ac_top_srcdir in | |
1117 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1118 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1119 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1120 | esac;; | |
1121 | esac | |
6be7c12c | 1122 | |
5464f5a1 NN |
1123 | cd $ac_dir |
1124 | # Check for guested configure; otherwise get Cygnus style configure. | |
1125 | if test -f $ac_srcdir/configure.gnu; then | |
1126 | echo | |
1127 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1128 | elif test -f $ac_srcdir/configure; then | |
1129 | echo | |
1130 | $SHELL $ac_srcdir/configure --help=recursive | |
1131 | elif test -f $ac_srcdir/configure.ac || | |
1132 | test -f $ac_srcdir/configure.in; then | |
1133 | echo | |
1134 | $ac_configure --help | |
1135 | else | |
1136 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1137 | fi | |
49c96104 | 1138 | cd $ac_popdir |
5464f5a1 | 1139 | done |
6be7c12c AO |
1140 | fi |
1141 | ||
5464f5a1 NN |
1142 | test -n "$ac_init_help" && exit 0 |
1143 | if $ac_init_version; then | |
1144 | cat <<\_ACEOF | |
6be7c12c | 1145 | |
5464f5a1 NN |
1146 | Copyright (C) 2003 Free Software Foundation, Inc. |
1147 | This configure script is free software; the Free Software Foundation | |
1148 | gives unlimited permission to copy, distribute and modify it. | |
1149 | _ACEOF | |
1150 | exit 0 | |
1151 | fi | |
1152 | exec 5>config.log | |
1153 | cat >&5 <<_ACEOF | |
1154 | This file contains any messages produced by compilers while | |
1155 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 1156 | |
5464f5a1 NN |
1157 | It was created by $as_me, which was |
1158 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 1159 | |
5464f5a1 | 1160 | $ $0 $@ |
6be7c12c | 1161 | |
5464f5a1 NN |
1162 | _ACEOF |
1163 | { | |
1164 | cat <<_ASUNAME | |
1165 | ## --------- ## | |
1166 | ## Platform. ## | |
1167 | ## --------- ## | |
1168 | ||
1169 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1170 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1171 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1172 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1173 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1174 | ||
1175 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1176 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1179 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1180 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1181 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1182 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1183 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1184 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1185 | ||
1186 | _ASUNAME | |
1187 | ||
1188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1189 | for as_dir in $PATH | |
1190 | do | |
1191 | IFS=$as_save_IFS | |
1192 | test -z "$as_dir" && as_dir=. | |
1193 | echo "PATH: $as_dir" | |
1194 | done | |
6be7c12c | 1195 | |
5464f5a1 | 1196 | } >&5 |
66e25bab | 1197 | |
5464f5a1 | 1198 | cat >&5 <<_ACEOF |
b3baf5d0 | 1199 | |
6be7c12c | 1200 | |
5464f5a1 NN |
1201 | ## ----------- ## |
1202 | ## Core tests. ## | |
1203 | ## ----------- ## | |
252b5132 | 1204 | |
5464f5a1 | 1205 | _ACEOF |
c5d1701e | 1206 | |
6be7c12c | 1207 | |
5464f5a1 NN |
1208 | # Keep a trace of the command line. |
1209 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1210 | # Strip out --silent because we don't want to record it for future runs. | |
1211 | # Also quote any args containing shell meta-characters. | |
1212 | # Make two passes to allow for proper duplicate-argument suppression. | |
1213 | ac_configure_args= | |
1214 | ac_configure_args0= | |
1215 | ac_configure_args1= | |
1216 | ac_sep= | |
1217 | ac_must_keep_next=false | |
1218 | for ac_pass in 1 2 | |
1219 | do | |
1220 | for ac_arg | |
1221 | do | |
1222 | case $ac_arg in | |
1223 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1224 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1225 | | -silent | --silent | --silen | --sile | --sil) | |
1226 | continue ;; | |
1227 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1228 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1229 | esac | |
1230 | case $ac_pass in | |
1231 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1232 | 2) | |
1233 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1234 | if test $ac_must_keep_next = true; then | |
1235 | ac_must_keep_next=false # Got value, back to normal. | |
1236 | else | |
1237 | case $ac_arg in | |
1238 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1239 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1240 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1241 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1242 | case "$ac_configure_args0 " in | |
1243 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1244 | esac | |
1245 | ;; | |
1246 | -* ) ac_must_keep_next=true ;; | |
1247 | esac | |
1248 | fi | |
1249 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1250 | # Get rid of the leading space. | |
1251 | ac_sep=" " | |
1252 | ;; | |
1253 | esac | |
1254 | done | |
1255 | done | |
1256 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1257 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1258 | ||
1259 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1260 | # config.log. We remove comments because anyway the quotes in there | |
1261 | # would cause problems or look ugly. | |
1262 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1263 | # such as our DU 5.0 friend, will then `close' the trap. | |
1264 | trap 'exit_status=$? | |
1265 | # Save into config.log some information that might help in debugging. | |
1266 | { | |
1267 | echo | |
1268 | ||
1269 | cat <<\_ASBOX | |
1270 | ## ---------------- ## | |
1271 | ## Cache variables. ## | |
1272 | ## ---------------- ## | |
1273 | _ASBOX | |
1274 | echo | |
1275 | # The following way of writing the cache mishandles newlines in values, | |
1276 | { | |
1277 | (set) 2>&1 | | |
1278 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1279 | *ac_space=\ *) | |
1280 | sed -n \ | |
1281 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1282 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1283 | ;; | |
1284 | *) | |
1285 | sed -n \ | |
1286 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1287 | ;; | |
1288 | esac; | |
1289 | } | |
1290 | echo | |
1291 | ||
1292 | cat <<\_ASBOX | |
1293 | ## ----------------- ## | |
1294 | ## Output variables. ## | |
1295 | ## ----------------- ## | |
1296 | _ASBOX | |
1297 | echo | |
1298 | for ac_var in $ac_subst_vars | |
1299 | do | |
1300 | eval ac_val=$`echo $ac_var` | |
1301 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1302 | done | sort | |
1303 | echo | |
1304 | ||
1305 | if test -n "$ac_subst_files"; then | |
1306 | cat <<\_ASBOX | |
1307 | ## ------------- ## | |
1308 | ## Output files. ## | |
1309 | ## ------------- ## | |
1310 | _ASBOX | |
1311 | echo | |
1312 | for ac_var in $ac_subst_files | |
1313 | do | |
1314 | eval ac_val=$`echo $ac_var` | |
1315 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1316 | done | sort | |
1317 | echo | |
1318 | fi | |
1319 | ||
1320 | if test -s confdefs.h; then | |
1321 | cat <<\_ASBOX | |
1322 | ## ----------- ## | |
1323 | ## confdefs.h. ## | |
1324 | ## ----------- ## | |
1325 | _ASBOX | |
1326 | echo | |
1327 | sed "/^$/d" confdefs.h | sort | |
1328 | echo | |
1329 | fi | |
1330 | test "$ac_signal" != 0 && | |
1331 | echo "$as_me: caught signal $ac_signal" | |
1332 | echo "$as_me: exit $exit_status" | |
1333 | } >&5 | |
1334 | rm -f core *.core && | |
1335 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1336 | exit $exit_status | |
1337 | ' 0 | |
1338 | for ac_signal in 1 2 13 15; do | |
1339 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1340 | done | |
1341 | ac_signal=0 | |
1342 | ||
1343 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1344 | rm -rf conftest* confdefs.h | |
1345 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1346 | echo >confdefs.h | |
1347 | ||
1348 | # Predefined preprocessor variables. | |
1349 | ||
1350 | cat >>confdefs.h <<_ACEOF | |
1351 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1352 | _ACEOF | |
1353 | ||
1354 | ||
1355 | cat >>confdefs.h <<_ACEOF | |
1356 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1357 | _ACEOF | |
1358 | ||
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | cat >>confdefs.h <<_ACEOF | |
1366 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1367 | _ACEOF | |
1368 | ||
1369 | ||
1370 | cat >>confdefs.h <<_ACEOF | |
1371 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1372 | _ACEOF | |
1373 | ||
1374 | ||
1375 | # Let the site file select an alternate cache file if it wants to. | |
1376 | # Prefer explicitly selected file to automatically selected ones. | |
1377 | if test -z "$CONFIG_SITE"; then | |
1378 | if test "x$prefix" != xNONE; then | |
1379 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1380 | else | |
1381 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1382 | fi | |
1383 | fi | |
1384 | for ac_site_file in $CONFIG_SITE; do | |
1385 | if test -r "$ac_site_file"; then | |
1386 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1387 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1388 | sed 's/^/| /' "$ac_site_file" >&5 | |
1389 | . "$ac_site_file" | |
1390 | fi | |
1391 | done | |
1392 | ||
1393 | if test -r "$cache_file"; then | |
1394 | # Some versions of bash will fail to source /dev/null (special | |
1395 | # files actually), so we avoid doing that. | |
1396 | if test -f "$cache_file"; then | |
1397 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1398 | echo "$as_me: loading cache $cache_file" >&6;} | |
1399 | case $cache_file in | |
1400 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1401 | *) . ./$cache_file;; | |
1402 | esac | |
1403 | fi | |
1404 | else | |
1405 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1406 | echo "$as_me: creating cache $cache_file" >&6;} | |
1407 | >$cache_file | |
1408 | fi | |
1409 | ||
1410 | # Check that the precious variables saved in the cache have kept the same | |
1411 | # value. | |
1412 | ac_cache_corrupted=false | |
1413 | for ac_var in `(set) 2>&1 | | |
1414 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1415 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1416 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1417 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1418 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1419 | case $ac_old_set,$ac_new_set in | |
1420 | set,) | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1423 | ac_cache_corrupted=: ;; | |
1424 | ,set) | |
1425 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1426 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1427 | ac_cache_corrupted=: ;; | |
1428 | ,);; | |
1429 | *) | |
1430 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1431 | # differences in whitespace do not lead to failure. |
1432 | ac_old_val_w=`echo x $ac_old_val` | |
1433 | ac_new_val_w=`echo x $ac_new_val` | |
1434 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1435 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
5464f5a1 | 1436 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1437 | ac_cache_corrupted=: |
1438 | else | |
1439 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1440 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1441 | eval $ac_var=\$ac_old_val | |
1442 | fi | |
1443 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1444 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1445 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1446 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
5464f5a1 NN |
1447 | fi;; |
1448 | esac | |
1449 | # Pass precious variables to config.status. | |
1450 | if test "$ac_new_set" = set; then | |
1451 | case $ac_new_val in | |
1452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1453 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1454 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1455 | esac | |
1456 | case " $ac_configure_args " in | |
1457 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1458 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1459 | esac | |
1460 | fi | |
1461 | done | |
1462 | if $ac_cache_corrupted; then | |
7a283e07 RW |
1463 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1464 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464f5a1 NN |
1465 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1466 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1467 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1468 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1469 | { (exit 1); exit 1; }; } | |
1470 | fi | |
1471 | ||
1472 | ac_ext=c | |
1473 | ac_cpp='$CPP $CPPFLAGS' | |
1474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
7a283e07 RW |
1494 | |
1495 | ||
1496 | ||
5464f5a1 NN |
1497 | |
1498 | ||
1499 | ||
1500 | ||
1501 | ac_aux_dir= | |
1502 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1503 | if test -f $ac_dir/install-sh; then | |
1504 | ac_aux_dir=$ac_dir | |
1505 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1506 | break | |
1507 | elif test -f $ac_dir/install.sh; then | |
1508 | ac_aux_dir=$ac_dir | |
1509 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1510 | break | |
1511 | elif test -f $ac_dir/shtool; then | |
1512 | ac_aux_dir=$ac_dir | |
1513 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1514 | break | |
1515 | fi | |
1516 | done | |
1517 | if test -z "$ac_aux_dir"; then | |
1518 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1519 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1520 | { (exit 1); exit 1; }; } | |
1521 | fi | |
1522 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1523 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1524 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1525 | ||
1526 | # Make sure we can run config.sub. | |
1527 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1528 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1529 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | ||
1532 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1533 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1534 | if test "${ac_cv_build+set}" = set; then | |
1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1536 | else | |
1537 | ac_cv_build_alias=$build_alias | |
1538 | test -z "$ac_cv_build_alias" && | |
1539 | ac_cv_build_alias=`$ac_config_guess` | |
1540 | test -z "$ac_cv_build_alias" && | |
1541 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1542 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1543 | { (exit 1); exit 1; }; } | |
1544 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1545 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1546 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1547 | { (exit 1); exit 1; }; } | |
1548 | ||
1549 | fi | |
1550 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1551 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1552 | build=$ac_cv_build | |
1553 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1554 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1555 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1556 | ||
1557 | ||
1558 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1559 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1560 | if test "${ac_cv_host+set}" = set; then | |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1562 | else | |
1563 | ac_cv_host_alias=$host_alias | |
1564 | test -z "$ac_cv_host_alias" && | |
1565 | ac_cv_host_alias=$ac_cv_build_alias | |
1566 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1567 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1568 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
1571 | fi | |
1572 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1573 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1574 | host=$ac_cv_host | |
1575 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1576 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1577 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1578 | ||
1579 | ||
1580 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1581 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_target+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_target_alias=$target_alias | |
1586 | test "x$ac_cv_target_alias" = "x" && | |
1587 | ac_cv_target_alias=$ac_cv_host_alias | |
1588 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1589 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1590 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ||
1593 | fi | |
1594 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1595 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1596 | target=$ac_cv_target | |
1597 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1598 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1599 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1600 | ||
1601 | ||
1602 | # The aliases save the names the user supplied, while $host etc. | |
1603 | # will get canonicalized. | |
1604 | test -n "$target_alias" && | |
1605 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1606 | NONENONEs,x,x, && | |
1607 | program_prefix=${target_alias}- | |
1608 | ac_ext=c | |
1609 | ac_cpp='$CPP $CPPFLAGS' | |
1610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1613 | if test -n "$ac_tool_prefix"; then | |
1614 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1615 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_prog_CC+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | if test -n "$CC"; then | |
1622 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1623 | else | |
1624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1625 | for as_dir in $PATH | |
1626 | do | |
1627 | IFS=$as_save_IFS | |
1628 | test -z "$as_dir" && as_dir=. | |
1629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1631 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1633 | break 2 | |
1634 | fi | |
1635 | done | |
1636 | done | |
1637 | ||
1638 | fi | |
1639 | fi | |
1640 | CC=$ac_cv_prog_CC | |
1641 | if test -n "$CC"; then | |
1642 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1643 | echo "${ECHO_T}$CC" >&6 | |
1644 | else | |
1645 | echo "$as_me:$LINENO: result: no" >&5 | |
1646 | echo "${ECHO_T}no" >&6 | |
1647 | fi | |
1648 | ||
1649 | fi | |
1650 | if test -z "$ac_cv_prog_CC"; then | |
1651 | ac_ct_CC=$CC | |
1652 | # Extract the first word of "gcc", so it can be a program name with args. | |
1653 | set dummy gcc; ac_word=$2 | |
1654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1656 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1658 | else | |
1659 | if test -n "$ac_ct_CC"; then | |
1660 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1661 | else | |
1662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1663 | for as_dir in $PATH | |
1664 | do | |
1665 | IFS=$as_save_IFS | |
1666 | test -z "$as_dir" && as_dir=. | |
1667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1669 | ac_cv_prog_ac_ct_CC="gcc" | |
1670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1671 | break 2 | |
1672 | fi | |
1673 | done | |
1674 | done | |
1675 | ||
1676 | fi | |
1677 | fi | |
1678 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1679 | if test -n "$ac_ct_CC"; then | |
1680 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1681 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1682 | else | |
1683 | echo "$as_me:$LINENO: result: no" >&5 | |
1684 | echo "${ECHO_T}no" >&6 | |
1685 | fi | |
1686 | ||
1687 | CC=$ac_ct_CC | |
1688 | else | |
1689 | CC="$ac_cv_prog_CC" | |
1690 | fi | |
1691 | ||
1692 | if test -z "$CC"; then | |
1693 | if test -n "$ac_tool_prefix"; then | |
1694 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1695 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1696 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1698 | if test "${ac_cv_prog_CC+set}" = set; then | |
1699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1700 | else | |
1701 | if test -n "$CC"; then | |
1702 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1703 | else | |
1704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1705 | for as_dir in $PATH | |
1706 | do | |
1707 | IFS=$as_save_IFS | |
1708 | test -z "$as_dir" && as_dir=. | |
1709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1711 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1713 | break 2 | |
1714 | fi | |
1715 | done | |
1716 | done | |
1717 | ||
1718 | fi | |
1719 | fi | |
1720 | CC=$ac_cv_prog_CC | |
1721 | if test -n "$CC"; then | |
1722 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1723 | echo "${ECHO_T}$CC" >&6 | |
1724 | else | |
1725 | echo "$as_me:$LINENO: result: no" >&5 | |
1726 | echo "${ECHO_T}no" >&6 | |
1727 | fi | |
1728 | ||
1729 | fi | |
1730 | if test -z "$ac_cv_prog_CC"; then | |
1731 | ac_ct_CC=$CC | |
1732 | # Extract the first word of "cc", so it can be a program name with args. | |
1733 | set dummy cc; ac_word=$2 | |
1734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1738 | else | |
1739 | if test -n "$ac_ct_CC"; then | |
1740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1741 | else | |
1742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1743 | for as_dir in $PATH | |
1744 | do | |
1745 | IFS=$as_save_IFS | |
1746 | test -z "$as_dir" && as_dir=. | |
1747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1749 | ac_cv_prog_ac_ct_CC="cc" | |
1750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1751 | break 2 | |
1752 | fi | |
1753 | done | |
1754 | done | |
1755 | ||
1756 | fi | |
1757 | fi | |
1758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1759 | if test -n "$ac_ct_CC"; then | |
1760 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1761 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1762 | else | |
1763 | echo "$as_me:$LINENO: result: no" >&5 | |
1764 | echo "${ECHO_T}no" >&6 | |
1765 | fi | |
1766 | ||
1767 | CC=$ac_ct_CC | |
1768 | else | |
1769 | CC="$ac_cv_prog_CC" | |
1770 | fi | |
1771 | ||
1772 | fi | |
1773 | if test -z "$CC"; then | |
1774 | # Extract the first word of "cc", so it can be a program name with args. | |
1775 | set dummy cc; ac_word=$2 | |
1776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1778 | if test "${ac_cv_prog_CC+set}" = set; then | |
1779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1780 | else | |
1781 | if test -n "$CC"; then | |
1782 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1783 | else | |
1784 | ac_prog_rejected=no | |
1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1786 | for as_dir in $PATH | |
1787 | do | |
1788 | IFS=$as_save_IFS | |
1789 | test -z "$as_dir" && as_dir=. | |
1790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1792 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1793 | ac_prog_rejected=yes | |
1794 | continue | |
1795 | fi | |
1796 | ac_cv_prog_CC="cc" | |
1797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1798 | break 2 | |
1799 | fi | |
1800 | done | |
1801 | done | |
1802 | ||
1803 | if test $ac_prog_rejected = yes; then | |
1804 | # We found a bogon in the path, so make sure we never use it. | |
1805 | set dummy $ac_cv_prog_CC | |
1806 | shift | |
1807 | if test $# != 0; then | |
1808 | # We chose a different compiler from the bogus one. | |
1809 | # However, it has the same basename, so the bogon will be chosen | |
1810 | # first if we set CC to just the basename; use the full file name. | |
1811 | shift | |
1812 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1813 | fi | |
1814 | fi | |
1815 | fi | |
1816 | fi | |
1817 | CC=$ac_cv_prog_CC | |
1818 | if test -n "$CC"; then | |
1819 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1820 | echo "${ECHO_T}$CC" >&6 | |
1821 | else | |
1822 | echo "$as_me:$LINENO: result: no" >&5 | |
1823 | echo "${ECHO_T}no" >&6 | |
1824 | fi | |
1825 | ||
1826 | fi | |
1827 | if test -z "$CC"; then | |
1828 | if test -n "$ac_tool_prefix"; then | |
1829 | for ac_prog in cl | |
1830 | do | |
1831 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1832 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1833 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1835 | if test "${ac_cv_prog_CC+set}" = set; then | |
1836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1837 | else | |
1838 | if test -n "$CC"; then | |
1839 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1840 | else | |
1841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1842 | for as_dir in $PATH | |
1843 | do | |
1844 | IFS=$as_save_IFS | |
1845 | test -z "$as_dir" && as_dir=. | |
1846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1847 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1848 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1850 | break 2 | |
1851 | fi | |
1852 | done | |
1853 | done | |
1854 | ||
1855 | fi | |
1856 | fi | |
1857 | CC=$ac_cv_prog_CC | |
1858 | if test -n "$CC"; then | |
1859 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1860 | echo "${ECHO_T}$CC" >&6 | |
1861 | else | |
1862 | echo "$as_me:$LINENO: result: no" >&5 | |
1863 | echo "${ECHO_T}no" >&6 | |
1864 | fi | |
1865 | ||
1866 | test -n "$CC" && break | |
1867 | done | |
1868 | fi | |
1869 | if test -z "$CC"; then | |
1870 | ac_ct_CC=$CC | |
1871 | for ac_prog in cl | |
1872 | do | |
1873 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1874 | set dummy $ac_prog; ac_word=$2 | |
1875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1877 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1879 | else | |
1880 | if test -n "$ac_ct_CC"; then | |
1881 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1882 | else | |
1883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1884 | for as_dir in $PATH | |
1885 | do | |
1886 | IFS=$as_save_IFS | |
1887 | test -z "$as_dir" && as_dir=. | |
1888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1890 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1892 | break 2 | |
1893 | fi | |
1894 | done | |
1895 | done | |
1896 | ||
1897 | fi | |
1898 | fi | |
1899 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1900 | if test -n "$ac_ct_CC"; then | |
1901 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1902 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1903 | else | |
1904 | echo "$as_me:$LINENO: result: no" >&5 | |
1905 | echo "${ECHO_T}no" >&6 | |
1906 | fi | |
1907 | ||
1908 | test -n "$ac_ct_CC" && break | |
1909 | done | |
1910 | ||
1911 | CC=$ac_ct_CC | |
1912 | fi | |
1913 | ||
1914 | fi | |
1915 | ||
1916 | ||
7a283e07 RW |
1917 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1918 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1919 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
5464f5a1 NN |
1920 | See \`config.log' for more details." >&5 |
1921 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1922 | See \`config.log' for more details." >&2;} | |
7a283e07 | 1923 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
1924 | |
1925 | # Provide some information about the compiler. | |
1926 | echo "$as_me:$LINENO:" \ | |
1927 | "checking for C compiler version" >&5 | |
1928 | ac_compiler=`set X $ac_compile; echo $2` | |
1929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1930 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1931 | ac_status=$? | |
1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1933 | (exit $ac_status); } | |
1934 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1935 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1936 | ac_status=$? | |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1938 | (exit $ac_status); } | |
1939 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1940 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1941 | ac_status=$? | |
1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1943 | (exit $ac_status); } | |
1944 | ||
1945 | cat >conftest.$ac_ext <<_ACEOF | |
1946 | /* confdefs.h. */ | |
1947 | _ACEOF | |
1948 | cat confdefs.h >>conftest.$ac_ext | |
1949 | cat >>conftest.$ac_ext <<_ACEOF | |
1950 | /* end confdefs.h. */ | |
1951 | ||
1952 | int | |
1953 | main () | |
1954 | { | |
1955 | ||
1956 | ; | |
1957 | return 0; | |
1958 | } | |
1959 | _ACEOF | |
1960 | ac_clean_files_save=$ac_clean_files | |
1961 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1962 | # Try to create an executable without -o first, disregard a.out. | |
1963 | # It will help us diagnose broken compilers, and finding out an intuition | |
1964 | # of exeext. | |
1965 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1966 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1967 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1968 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1969 | (eval $ac_link_default) 2>&5 | |
1970 | ac_status=$? | |
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1972 | (exit $ac_status); }; then | |
1973 | # Find the output, starting from the most likely. This scheme is | |
1974 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1975 | # resort. | |
1976 | ||
1977 | # Be careful to initialize this variable, since it used to be cached. | |
1978 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1979 | ac_cv_exeext= | |
1980 | # b.out is created by i960 compilers. | |
1981 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1982 | do | |
1983 | test -f "$ac_file" || continue | |
1984 | case $ac_file in | |
1985 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1986 | ;; | |
1987 | conftest.$ac_ext ) | |
1988 | # This is the source file. | |
1989 | ;; | |
1990 | [ab].out ) | |
1991 | # We found the default executable, but exeext='' is most | |
1992 | # certainly right. | |
1993 | break;; | |
1994 | *.* ) | |
1995 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1996 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1997 | # but it would be cool to find out if it's true. Does anybody | |
1998 | # maintain Libtool? --akim. | |
1999 | export ac_cv_exeext | |
2000 | break;; | |
2001 | * ) | |
2002 | break;; | |
2003 | esac | |
2004 | done | |
2005 | else | |
2006 | echo "$as_me: failed program was:" >&5 | |
2007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2008 | ||
7a283e07 RW |
2009 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2010 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464f5a1 NN |
2011 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2012 | See \`config.log' for more details." >&5 | |
2013 | echo "$as_me: error: C compiler cannot create executables | |
2014 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2015 | { (exit 77); exit 77; }; }; } |
5464f5a1 NN |
2016 | fi |
2017 | ||
2018 | ac_exeext=$ac_cv_exeext | |
2019 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2020 | echo "${ECHO_T}$ac_file" >&6 | |
2021 | ||
2022 | # Check the compiler produces executables we can run. If not, either | |
2023 | # the compiler is broken, or we cross compile. | |
2024 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2025 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2026 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2027 | # If not cross compiling, check that we can run a simple program. | |
2028 | if test "$cross_compiling" != yes; then | |
2029 | if { ac_try='./$ac_file' | |
2030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2031 | (eval $ac_try) 2>&5 | |
2032 | ac_status=$? | |
2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2034 | (exit $ac_status); }; }; then | |
2035 | cross_compiling=no | |
2036 | else | |
2037 | if test "$cross_compiling" = maybe; then | |
2038 | cross_compiling=yes | |
2039 | else | |
7a283e07 RW |
2040 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2041 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2042 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
5464f5a1 NN |
2043 | If you meant to cross compile, use \`--host'. |
2044 | See \`config.log' for more details." >&5 | |
2045 | echo "$as_me: error: cannot run C compiled programs. | |
2046 | If you meant to cross compile, use \`--host'. | |
2047 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2048 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
2049 | fi |
2050 | fi | |
2051 | fi | |
2052 | echo "$as_me:$LINENO: result: yes" >&5 | |
2053 | echo "${ECHO_T}yes" >&6 | |
2054 | ||
2055 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2056 | ac_clean_files=$ac_clean_files_save | |
2057 | # Check the compiler produces executables we can run. If not, either | |
2058 | # the compiler is broken, or we cross compile. | |
2059 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2060 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2061 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2062 | echo "${ECHO_T}$cross_compiling" >&6 | |
2063 | ||
2064 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2065 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2067 | (eval $ac_link) 2>&5 | |
2068 | ac_status=$? | |
2069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2070 | (exit $ac_status); }; then | |
2071 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2072 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2073 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2074 | # `rm'. | |
2075 | for ac_file in conftest.exe conftest conftest.*; do | |
2076 | test -f "$ac_file" || continue | |
2077 | case $ac_file in | |
2078 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2079 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2080 | export ac_cv_exeext | |
2081 | break;; | |
2082 | * ) break;; | |
2083 | esac | |
2084 | done | |
2085 | else | |
7a283e07 RW |
2086 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2087 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2088 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
5464f5a1 NN |
2089 | See \`config.log' for more details." >&5 |
2090 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2091 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2092 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
2093 | fi |
2094 | ||
2095 | rm -f conftest$ac_cv_exeext | |
2096 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2097 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2098 | ||
2099 | rm -f conftest.$ac_ext | |
2100 | EXEEXT=$ac_cv_exeext | |
2101 | ac_exeext=$EXEEXT | |
2102 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2103 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2104 | if test "${ac_cv_objext+set}" = set; then | |
2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2106 | else | |
2107 | cat >conftest.$ac_ext <<_ACEOF | |
2108 | /* confdefs.h. */ | |
2109 | _ACEOF | |
2110 | cat confdefs.h >>conftest.$ac_ext | |
2111 | cat >>conftest.$ac_ext <<_ACEOF | |
2112 | /* end confdefs.h. */ | |
2113 | ||
2114 | int | |
2115 | main () | |
2116 | { | |
2117 | ||
2118 | ; | |
2119 | return 0; | |
2120 | } | |
2121 | _ACEOF | |
2122 | rm -f conftest.o conftest.obj | |
2123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2124 | (eval $ac_compile) 2>&5 | |
2125 | ac_status=$? | |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2127 | (exit $ac_status); }; then | |
2128 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2129 | case $ac_file in | |
2130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2131 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2132 | break;; | |
2133 | esac | |
2134 | done | |
2135 | else | |
2136 | echo "$as_me: failed program was:" >&5 | |
2137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2138 | ||
7a283e07 RW |
2139 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2140 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464f5a1 NN |
2141 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2142 | See \`config.log' for more details." >&5 | |
2143 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2144 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2145 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
2146 | fi |
2147 | ||
2148 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2149 | fi | |
2150 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2151 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2152 | OBJEXT=$ac_cv_objext | |
2153 | ac_objext=$OBJEXT | |
2154 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2155 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2156 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2158 | else | |
2159 | cat >conftest.$ac_ext <<_ACEOF | |
2160 | /* confdefs.h. */ | |
2161 | _ACEOF | |
2162 | cat confdefs.h >>conftest.$ac_ext | |
2163 | cat >>conftest.$ac_ext <<_ACEOF | |
2164 | /* end confdefs.h. */ | |
2165 | ||
2166 | int | |
2167 | main () | |
2168 | { | |
2169 | #ifndef __GNUC__ | |
2170 | choke me | |
2171 | #endif | |
2172 | ||
2173 | ; | |
2174 | return 0; | |
2175 | } | |
2176 | _ACEOF | |
2177 | rm -f conftest.$ac_objext | |
2178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2179 | (eval $ac_compile) 2>conftest.er1 | |
2180 | ac_status=$? | |
2181 | grep -v '^ *+' conftest.er1 >conftest.err | |
2182 | rm -f conftest.er1 | |
2183 | cat conftest.err >&5 | |
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2185 | (exit $ac_status); } && | |
49c96104 SE |
2186 | { ac_try='test -z "$ac_c_werror_flag" |
2187 | || test ! -s conftest.err' | |
5464f5a1 NN |
2188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2189 | (eval $ac_try) 2>&5 | |
2190 | ac_status=$? | |
2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2192 | (exit $ac_status); }; } && | |
2193 | { ac_try='test -s conftest.$ac_objext' | |
2194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2195 | (eval $ac_try) 2>&5 | |
2196 | ac_status=$? | |
2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2198 | (exit $ac_status); }; }; then | |
2199 | ac_compiler_gnu=yes | |
2200 | else | |
2201 | echo "$as_me: failed program was:" >&5 | |
2202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2203 | ||
2204 | ac_compiler_gnu=no | |
2205 | fi | |
2206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2207 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2208 | ||
2209 | fi | |
2210 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2211 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2212 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2213 | ac_test_CFLAGS=${CFLAGS+set} | |
2214 | ac_save_CFLAGS=$CFLAGS | |
2215 | CFLAGS="-g" | |
2216 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2217 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2218 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2220 | else | |
2221 | cat >conftest.$ac_ext <<_ACEOF | |
2222 | /* confdefs.h. */ | |
2223 | _ACEOF | |
2224 | cat confdefs.h >>conftest.$ac_ext | |
2225 | cat >>conftest.$ac_ext <<_ACEOF | |
2226 | /* end confdefs.h. */ | |
2227 | ||
2228 | int | |
2229 | main () | |
2230 | { | |
2231 | ||
2232 | ; | |
2233 | return 0; | |
2234 | } | |
2235 | _ACEOF | |
2236 | rm -f conftest.$ac_objext | |
2237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2238 | (eval $ac_compile) 2>conftest.er1 | |
2239 | ac_status=$? | |
2240 | grep -v '^ *+' conftest.er1 >conftest.err | |
2241 | rm -f conftest.er1 | |
2242 | cat conftest.err >&5 | |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); } && | |
49c96104 SE |
2245 | { ac_try='test -z "$ac_c_werror_flag" |
2246 | || test ! -s conftest.err' | |
5464f5a1 NN |
2247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2248 | (eval $ac_try) 2>&5 | |
2249 | ac_status=$? | |
2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2251 | (exit $ac_status); }; } && | |
2252 | { ac_try='test -s conftest.$ac_objext' | |
2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2254 | (eval $ac_try) 2>&5 | |
2255 | ac_status=$? | |
2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2257 | (exit $ac_status); }; }; then | |
2258 | ac_cv_prog_cc_g=yes | |
2259 | else | |
2260 | echo "$as_me: failed program was:" >&5 | |
2261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2262 | ||
2263 | ac_cv_prog_cc_g=no | |
2264 | fi | |
2265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2266 | fi | |
2267 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2268 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2269 | if test "$ac_test_CFLAGS" = set; then | |
2270 | CFLAGS=$ac_save_CFLAGS | |
2271 | elif test $ac_cv_prog_cc_g = yes; then | |
2272 | if test "$GCC" = yes; then | |
2273 | CFLAGS="-g -O2" | |
2274 | else | |
2275 | CFLAGS="-g" | |
2276 | fi | |
2277 | else | |
2278 | if test "$GCC" = yes; then | |
2279 | CFLAGS="-O2" | |
2280 | else | |
2281 | CFLAGS= | |
2282 | fi | |
2283 | fi | |
2284 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2285 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2286 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2288 | else | |
2289 | ac_cv_prog_cc_stdc=no | |
2290 | ac_save_CC=$CC | |
2291 | cat >conftest.$ac_ext <<_ACEOF | |
2292 | /* confdefs.h. */ | |
2293 | _ACEOF | |
2294 | cat confdefs.h >>conftest.$ac_ext | |
2295 | cat >>conftest.$ac_ext <<_ACEOF | |
2296 | /* end confdefs.h. */ | |
2297 | #include <stdarg.h> | |
2298 | #include <stdio.h> | |
2299 | #include <sys/types.h> | |
2300 | #include <sys/stat.h> | |
2301 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2302 | struct buf { int x; }; | |
2303 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2304 | static char *e (p, i) | |
2305 | char **p; | |
2306 | int i; | |
2307 | { | |
2308 | return p[i]; | |
2309 | } | |
2310 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2311 | { | |
2312 | char *s; | |
2313 | va_list v; | |
2314 | va_start (v,p); | |
2315 | s = g (p, va_arg (v,int)); | |
2316 | va_end (v); | |
2317 | return s; | |
2318 | } | |
2319 | ||
2320 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2321 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2322 | These don't provoke an error unfortunately, instead are silently treated | |
2323 | as 'x'. The following induces an error, until -std1 is added to get | |
2324 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2325 | array size at least. It's necessary to write '\x00'==0 to get something | |
2326 | that's true only with -std1. */ | |
2327 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2328 | ||
2329 | int test (int i, double x); | |
2330 | struct s1 {int (*f) (int a);}; | |
2331 | struct s2 {int (*f) (double a);}; | |
2332 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2333 | int argc; | |
2334 | char **argv; | |
2335 | int | |
2336 | main () | |
2337 | { | |
2338 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2339 | ; | |
2340 | return 0; | |
2341 | } | |
2342 | _ACEOF | |
2343 | # Don't try gcc -ansi; that turns off useful extensions and | |
2344 | # breaks some systems' header files. | |
2345 | # AIX -qlanglvl=ansi | |
2346 | # Ultrix and OSF/1 -std1 | |
2347 | # HP-UX 10.20 and later -Ae | |
2348 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2349 | # SVR4 -Xc -D__EXTENSIONS__ | |
2350 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2351 | do | |
2352 | CC="$ac_save_CC $ac_arg" | |
2353 | rm -f conftest.$ac_objext | |
2354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2355 | (eval $ac_compile) 2>conftest.er1 | |
2356 | ac_status=$? | |
2357 | grep -v '^ *+' conftest.er1 >conftest.err | |
2358 | rm -f conftest.er1 | |
2359 | cat conftest.err >&5 | |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2361 | (exit $ac_status); } && | |
49c96104 SE |
2362 | { ac_try='test -z "$ac_c_werror_flag" |
2363 | || test ! -s conftest.err' | |
5464f5a1 NN |
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2365 | (eval $ac_try) 2>&5 | |
2366 | ac_status=$? | |
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2368 | (exit $ac_status); }; } && | |
2369 | { ac_try='test -s conftest.$ac_objext' | |
2370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2371 | (eval $ac_try) 2>&5 | |
2372 | ac_status=$? | |
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2374 | (exit $ac_status); }; }; then | |
2375 | ac_cv_prog_cc_stdc=$ac_arg | |
2376 | break | |
2377 | else | |
2378 | echo "$as_me: failed program was:" >&5 | |
2379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2380 | ||
2381 | fi | |
2382 | rm -f conftest.err conftest.$ac_objext | |
2383 | done | |
2384 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2385 | CC=$ac_save_CC | |
2386 | ||
2387 | fi | |
2388 | ||
2389 | case "x$ac_cv_prog_cc_stdc" in | |
2390 | x|xno) | |
2391 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2392 | echo "${ECHO_T}none needed" >&6 ;; | |
2393 | *) | |
2394 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2395 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2396 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2397 | esac | |
2398 | ||
2399 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2400 | # in C++ we need to declare it. In case someone uses the same compiler | |
2401 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2402 | # the declaration of exit, since it's the most demanding environment. | |
2403 | cat >conftest.$ac_ext <<_ACEOF | |
2404 | #ifndef __cplusplus | |
2405 | choke me | |
2406 | #endif | |
2407 | _ACEOF | |
2408 | rm -f conftest.$ac_objext | |
2409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2410 | (eval $ac_compile) 2>conftest.er1 | |
2411 | ac_status=$? | |
2412 | grep -v '^ *+' conftest.er1 >conftest.err | |
2413 | rm -f conftest.er1 | |
2414 | cat conftest.err >&5 | |
2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2416 | (exit $ac_status); } && | |
49c96104 SE |
2417 | { ac_try='test -z "$ac_c_werror_flag" |
2418 | || test ! -s conftest.err' | |
5464f5a1 NN |
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2420 | (eval $ac_try) 2>&5 | |
2421 | ac_status=$? | |
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2423 | (exit $ac_status); }; } && | |
2424 | { ac_try='test -s conftest.$ac_objext' | |
2425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2426 | (eval $ac_try) 2>&5 | |
2427 | ac_status=$? | |
2428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2429 | (exit $ac_status); }; }; then | |
2430 | for ac_declaration in \ | |
2431 | '' \ | |
2432 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2433 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2434 | 'extern "C" void exit (int) throw ();' \ | |
2435 | 'extern "C" void exit (int);' \ | |
2436 | 'void exit (int);' | |
2437 | do | |
2438 | cat >conftest.$ac_ext <<_ACEOF | |
2439 | /* confdefs.h. */ | |
2440 | _ACEOF | |
2441 | cat confdefs.h >>conftest.$ac_ext | |
2442 | cat >>conftest.$ac_ext <<_ACEOF | |
2443 | /* end confdefs.h. */ | |
2444 | $ac_declaration | |
2445 | #include <stdlib.h> | |
2446 | int | |
2447 | main () | |
2448 | { | |
2449 | exit (42); | |
2450 | ; | |
2451 | return 0; | |
2452 | } | |
2453 | _ACEOF | |
2454 | rm -f conftest.$ac_objext | |
2455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2456 | (eval $ac_compile) 2>conftest.er1 | |
2457 | ac_status=$? | |
2458 | grep -v '^ *+' conftest.er1 >conftest.err | |
2459 | rm -f conftest.er1 | |
2460 | cat conftest.err >&5 | |
2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2462 | (exit $ac_status); } && | |
49c96104 SE |
2463 | { ac_try='test -z "$ac_c_werror_flag" |
2464 | || test ! -s conftest.err' | |
5464f5a1 NN |
2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2466 | (eval $ac_try) 2>&5 | |
2467 | ac_status=$? | |
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2469 | (exit $ac_status); }; } && | |
2470 | { ac_try='test -s conftest.$ac_objext' | |
2471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2472 | (eval $ac_try) 2>&5 | |
2473 | ac_status=$? | |
2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2475 | (exit $ac_status); }; }; then | |
2476 | : | |
2477 | else | |
2478 | echo "$as_me: failed program was:" >&5 | |
2479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2480 | ||
2481 | continue | |
2482 | fi | |
2483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2484 | cat >conftest.$ac_ext <<_ACEOF | |
2485 | /* confdefs.h. */ | |
2486 | _ACEOF | |
2487 | cat confdefs.h >>conftest.$ac_ext | |
2488 | cat >>conftest.$ac_ext <<_ACEOF | |
2489 | /* end confdefs.h. */ | |
2490 | $ac_declaration | |
2491 | int | |
2492 | main () | |
2493 | { | |
2494 | exit (42); | |
2495 | ; | |
2496 | return 0; | |
2497 | } | |
2498 | _ACEOF | |
2499 | rm -f conftest.$ac_objext | |
2500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2501 | (eval $ac_compile) 2>conftest.er1 | |
2502 | ac_status=$? | |
2503 | grep -v '^ *+' conftest.er1 >conftest.err | |
2504 | rm -f conftest.er1 | |
2505 | cat conftest.err >&5 | |
2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2507 | (exit $ac_status); } && | |
49c96104 SE |
2508 | { ac_try='test -z "$ac_c_werror_flag" |
2509 | || test ! -s conftest.err' | |
5464f5a1 NN |
2510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2511 | (eval $ac_try) 2>&5 | |
2512 | ac_status=$? | |
2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2514 | (exit $ac_status); }; } && | |
2515 | { ac_try='test -s conftest.$ac_objext' | |
2516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2517 | (eval $ac_try) 2>&5 | |
2518 | ac_status=$? | |
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2520 | (exit $ac_status); }; }; then | |
2521 | break | |
2522 | else | |
2523 | echo "$as_me: failed program was:" >&5 | |
2524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2525 | ||
2526 | fi | |
2527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2528 | done | |
2529 | rm -f conftest* | |
2530 | if test -n "$ac_declaration"; then | |
2531 | echo '#ifdef __cplusplus' >>confdefs.h | |
2532 | echo $ac_declaration >>confdefs.h | |
2533 | echo '#endif' >>confdefs.h | |
2534 | fi | |
2535 | ||
2536 | else | |
2537 | echo "$as_me: failed program was:" >&5 | |
2538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2539 | ||
2540 | fi | |
2541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2542 | ac_ext=c | |
2543 | ac_cpp='$CPP $CPPFLAGS' | |
2544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2547 | ||
2548 | ||
f5385ebf AM |
2549 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2550 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2551 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2553 | else | |
f5385ebf AM |
2554 | ac_func_search_save_LIBS=$LIBS |
2555 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2556 | cat >conftest.$ac_ext <<_ACEOF |
2557 | /* confdefs.h. */ | |
2558 | _ACEOF | |
2559 | cat confdefs.h >>conftest.$ac_ext | |
2560 | cat >>conftest.$ac_ext <<_ACEOF | |
2561 | /* end confdefs.h. */ | |
2562 | ||
2563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2564 | #ifdef __cplusplus | |
2565 | extern "C" | |
2566 | #endif | |
2567 | /* We use char because int might match the return type of a gcc2 | |
2568 | builtin and then its argument prototype would still apply. */ | |
2569 | char strerror (); | |
2570 | int | |
2571 | main () | |
2572 | { | |
2573 | strerror (); | |
2574 | ; | |
2575 | return 0; | |
2576 | } | |
2577 | _ACEOF | |
2578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2580 | (eval $ac_link) 2>conftest.er1 | |
2581 | ac_status=$? | |
2582 | grep -v '^ *+' conftest.er1 >conftest.err | |
2583 | rm -f conftest.er1 | |
2584 | cat conftest.err >&5 | |
2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2586 | (exit $ac_status); } && | |
49c96104 SE |
2587 | { ac_try='test -z "$ac_c_werror_flag" |
2588 | || test ! -s conftest.err' | |
5464f5a1 NN |
2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2590 | (eval $ac_try) 2>&5 | |
2591 | ac_status=$? | |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2593 | (exit $ac_status); }; } && | |
2594 | { ac_try='test -s conftest$ac_exeext' | |
2595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2596 | (eval $ac_try) 2>&5 | |
2597 | ac_status=$? | |
2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2599 | (exit $ac_status); }; }; then | |
f5385ebf | 2600 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2601 | else |
2602 | echo "$as_me: failed program was:" >&5 | |
2603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2604 | ||
5464f5a1 NN |
2605 | fi |
2606 | rm -f conftest.err conftest.$ac_objext \ | |
2607 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2608 | if test "$ac_cv_search_strerror" = no; then |
2609 | for ac_lib in cposix; do | |
2610 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2611 | cat >conftest.$ac_ext <<_ACEOF | |
2612 | /* confdefs.h. */ | |
2613 | _ACEOF | |
2614 | cat confdefs.h >>conftest.$ac_ext | |
2615 | cat >>conftest.$ac_ext <<_ACEOF | |
2616 | /* end confdefs.h. */ | |
2617 | ||
2618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2619 | #ifdef __cplusplus | |
2620 | extern "C" | |
2621 | #endif | |
2622 | /* We use char because int might match the return type of a gcc2 | |
2623 | builtin and then its argument prototype would still apply. */ | |
2624 | char strerror (); | |
2625 | int | |
2626 | main () | |
2627 | { | |
2628 | strerror (); | |
2629 | ; | |
2630 | return 0; | |
2631 | } | |
2632 | _ACEOF | |
2633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2635 | (eval $ac_link) 2>conftest.er1 | |
2636 | ac_status=$? | |
2637 | grep -v '^ *+' conftest.er1 >conftest.err | |
2638 | rm -f conftest.er1 | |
2639 | cat conftest.err >&5 | |
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); } && | |
49c96104 SE |
2642 | { ac_try='test -z "$ac_c_werror_flag" |
2643 | || test ! -s conftest.err' | |
f5385ebf AM |
2644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2645 | (eval $ac_try) 2>&5 | |
2646 | ac_status=$? | |
2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2648 | (exit $ac_status); }; } && | |
2649 | { ac_try='test -s conftest$ac_exeext' | |
2650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2651 | (eval $ac_try) 2>&5 | |
2652 | ac_status=$? | |
2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2654 | (exit $ac_status); }; }; then | |
2655 | ac_cv_search_strerror="-l$ac_lib" | |
2656 | break | |
2657 | else | |
2658 | echo "$as_me: failed program was:" >&5 | |
2659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2660 | ||
5464f5a1 | 2661 | fi |
f5385ebf AM |
2662 | rm -f conftest.err conftest.$ac_objext \ |
2663 | conftest$ac_exeext conftest.$ac_ext | |
2664 | done | |
5464f5a1 | 2665 | fi |
f5385ebf AM |
2666 | LIBS=$ac_func_search_save_LIBS |
2667 | fi | |
2668 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2669 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2670 | if test "$ac_cv_search_strerror" != no; then | |
2671 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2672 | |
f5385ebf | 2673 | fi |
5464f5a1 NN |
2674 | |
2675 | ||
f5385ebf | 2676 | am__api_version="1.9" |
5464f5a1 NN |
2677 | # Find a good install program. We prefer a C program (faster), |
2678 | # so one script is as good as another. But avoid the broken or | |
2679 | # incompatible versions: | |
2680 | # SysV /etc/install, /usr/sbin/install | |
2681 | # SunOS /usr/etc/install | |
2682 | # IRIX /sbin/install | |
2683 | # AIX /bin/install | |
2684 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2685 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2686 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2687 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2688 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2689 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2690 | # Reject install programs that cannot install multiple files. |
5464f5a1 NN |
2691 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2692 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2693 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2694 | if test "${ac_cv_path_install+set}" = set; then |
2695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2696 | else |
5464f5a1 NN |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2698 | for as_dir in $PATH | |
2699 | do | |
2700 | IFS=$as_save_IFS | |
2701 | test -z "$as_dir" && as_dir=. | |
2702 | # Account for people who put trailing slashes in PATH elements. | |
2703 | case $as_dir/ in | |
2704 | ./ | .// | /cC/* | \ | |
2705 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2706 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2707 | /usr/ucb/* ) ;; | |
2708 | *) | |
2709 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2710 | # Don't use installbsd from OSF since it installs stuff as root | |
2711 | # by default. | |
2712 | for ac_prog in ginstall scoinst install; do | |
2713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2714 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2715 | if test $ac_prog = install && |
5464f5a1 | 2716 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2717 | # AIX install. It has an incompatible calling convention. |
2718 | : | |
5464f5a1 NN |
2719 | elif test $ac_prog = install && |
2720 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2721 | # program-specific install script used by HP pwplus--don't use. | |
2722 | : | |
252b5132 | 2723 | else |
58c85be7 RW |
2724 | rm -rf conftest.one conftest.two conftest.dir |
2725 | echo one > conftest.one | |
2726 | echo two > conftest.two | |
2727 | mkdir conftest.dir | |
2728 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2729 | test -s conftest.one && test -s conftest.two && | |
2730 | test -s conftest.dir/conftest.one && | |
2731 | test -s conftest.dir/conftest.two | |
2732 | then | |
2733 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2734 | break 3 | |
2735 | fi | |
252b5132 RH |
2736 | fi |
2737 | fi | |
2738 | done | |
5464f5a1 NN |
2739 | done |
2740 | ;; | |
2741 | esac | |
2742 | done | |
2743 | ||
58c85be7 | 2744 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2745 | |
2746 | fi | |
2747 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2748 | INSTALL=$ac_cv_path_install |
252b5132 | 2749 | else |
58c85be7 RW |
2750 | # As a last resort, use the slow shell script. Don't cache a |
2751 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2752 | # break other packages using the cache if that directory is |
58c85be7 | 2753 | # removed, or if the value is a relative name. |
5464f5a1 | 2754 | INSTALL=$ac_install_sh |
252b5132 RH |
2755 | fi |
2756 | fi | |
5464f5a1 NN |
2757 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2758 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2759 | |
2760 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2761 | # It thinks the first close brace ends the variable substitution. | |
2762 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2763 | ||
5464f5a1 | 2764 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2765 | |
2766 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2767 | ||
5464f5a1 NN |
2768 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2769 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2770 | # Just in case |
2771 | sleep 1 | |
f5385ebf | 2772 | echo timestamp > conftest.file |
252b5132 RH |
2773 | # Do `set' in a subshell so we don't clobber the current shell's |
2774 | # arguments. Must try -L first in case configure is actually a | |
2775 | # symlink; some systems play weird games with the mod time of symlinks | |
2776 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2777 | # directory). | |
2778 | if ( | |
f5385ebf | 2779 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2780 | if test "$*" = "X"; then |
2781 | # -L didn't work. | |
f5385ebf | 2782 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2783 | fi |
f5385ebf AM |
2784 | rm -f conftest.file |
2785 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2786 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2787 | |
2788 | # If neither matched, then we have a broken ls. This can happen | |
2789 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2790 | # broken ls alias from the environment. This has actually | |
2791 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2792 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2793 | alias in your environment" >&5 | |
2794 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2795 | alias in your environment" >&2;} | |
2796 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2797 | fi |
2798 | ||
f5385ebf | 2799 | test "$2" = conftest.file |
252b5132 RH |
2800 | ) |
2801 | then | |
2802 | # Ok. | |
2803 | : | |
2804 | else | |
5464f5a1 NN |
2805 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2806 | Check your system clock" >&5 | |
2807 | echo "$as_me: error: newly created file is older than distributed files! | |
2808 | Check your system clock" >&2;} | |
2809 | { (exit 1); exit 1; }; } | |
252b5132 | 2810 | fi |
5464f5a1 NN |
2811 | echo "$as_me:$LINENO: result: yes" >&5 |
2812 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2813 | test "$program_prefix" != NONE && |
5464f5a1 | 2814 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2815 | # Use a double $ so make ignores it. |
2816 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2817 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2818 | # Double any \ or $. echo might interpret backslashes. | |
2819 | # By default was `s,x,x', remove it if useless. | |
2820 | cat <<\_ACEOF >conftest.sed | |
2821 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2822 | _ACEOF | |
2823 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2824 | rm conftest.sed | |
2825 | ||
f5385ebf AM |
2826 | # expand $ac_aux_dir to an absolute path |
2827 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2828 | ||
2829 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2830 | # Use eval to expand $SHELL | |
2831 | if eval "$MISSING --run true"; then | |
2832 | am_missing_run="$MISSING --run " | |
2833 | else | |
2834 | am_missing_run= | |
2835 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2836 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2837 | fi | |
2838 | ||
2839 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2840 | # We used to keeping the `.' as first argument, in order to | |
2841 | # allow $(mkdir_p) to be used without argument. As in | |
2842 | # $(mkdir_p) $(somedir) | |
2843 | # where $(somedir) is conditionally defined. However this is wrong | |
2844 | # for two reasons: | |
2845 | # 1. if the package is installed by a user who cannot write `.' | |
2846 | # make install will fail, | |
2847 | # 2. the above comment should most certainly read | |
2848 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2849 | # so it does not work when $(somedir) is undefined and | |
2850 | # $(DESTDIR) is not. | |
2851 | # To support the latter case, we have to write | |
2852 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2853 | # so the `.' trick is pointless. | |
2854 | mkdir_p='mkdir -p --' | |
2855 | else | |
2856 | # On NextStep and OpenStep, the `mkdir' command does not | |
2857 | # recognize any option. It will interpret all options as | |
2858 | # directories to create, and then abort because `.' already | |
2859 | # exists. | |
2860 | for d in ./-p ./--version; | |
2861 | do | |
2862 | test -d $d && rmdir $d | |
2863 | done | |
2864 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2865 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2866 | mkdir_p='$(mkinstalldirs)' | |
2867 | else | |
2868 | mkdir_p='$(install_sh) -d' | |
2869 | fi | |
2870 | fi | |
2871 | ||
2872 | for ac_prog in gawk mawk nawk awk | |
2873 | do | |
2874 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2875 | set dummy $ac_prog; ac_word=$2 | |
2876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2878 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2880 | else | |
2881 | if test -n "$AWK"; then | |
2882 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2883 | else | |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2891 | ac_cv_prog_AWK="$ac_prog" | |
2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2893 | break 2 | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | ||
2898 | fi | |
2899 | fi | |
2900 | AWK=$ac_cv_prog_AWK | |
2901 | if test -n "$AWK"; then | |
2902 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2903 | echo "${ECHO_T}$AWK" >&6 | |
2904 | else | |
2905 | echo "$as_me:$LINENO: result: no" >&5 | |
2906 | echo "${ECHO_T}no" >&6 | |
2907 | fi | |
2908 | ||
2909 | test -n "$AWK" && break | |
2910 | done | |
2911 | ||
5464f5a1 NN |
2912 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2913 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2914 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2915 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2917 | else | |
2918 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2919 | all: |
5464f5a1 NN |
2920 | @echo 'ac_maketemp="$(MAKE)"' |
2921 | _ACEOF | |
252b5132 | 2922 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2923 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2924 | if test -n "$ac_maketemp"; then |
2925 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2926 | else | |
2927 | eval ac_cv_prog_make_${ac_make}_set=no | |
2928 | fi | |
5464f5a1 | 2929 | rm -f conftest.make |
252b5132 RH |
2930 | fi |
2931 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2932 | echo "$as_me:$LINENO: result: yes" >&5 |
2933 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2934 | SET_MAKE= |
2935 | else | |
5464f5a1 NN |
2936 | echo "$as_me:$LINENO: result: no" >&5 |
2937 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2938 | SET_MAKE="MAKE=${MAKE-make}" |
2939 | fi | |
2940 | ||
f5385ebf AM |
2941 | rm -rf .tst 2>/dev/null |
2942 | mkdir .tst 2>/dev/null | |
2943 | if test -d .tst; then | |
2944 | am__leading_dot=. | |
2945 | else | |
2946 | am__leading_dot=_ | |
2947 | fi | |
2948 | rmdir .tst 2>/dev/null | |
2949 | ||
2950 | DEPDIR="${am__leading_dot}deps" | |
2951 | ||
2952 | ac_config_commands="$ac_config_commands depfiles" | |
2953 | ||
2954 | ||
2955 | am_make=${MAKE-make} | |
2956 | cat > confinc << 'END' | |
2957 | am__doit: | |
2958 | @echo done | |
2959 | .PHONY: am__doit | |
2960 | END | |
2961 | # If we don't find an include directive, just comment out the code. | |
2962 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2963 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2964 | am__include="#" | |
2965 | am__quote= | |
2966 | _am_result=none | |
2967 | # First try GNU make style include. | |
2968 | echo "include confinc" > confmf | |
2969 | # We grep out `Entering directory' and `Leaving directory' | |
2970 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2971 | # In particular we don't look at `^make:' because GNU make might | |
2972 | # be invoked under some other name (usually "gmake"), in which | |
2973 | # case it prints its new name instead of `make'. | |
2974 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2975 | am__include=include | |
2976 | am__quote= | |
2977 | _am_result=GNU | |
2978 | fi | |
2979 | # Now try BSD make style include. | |
2980 | if test "$am__include" = "#"; then | |
2981 | echo '.include "confinc"' > confmf | |
2982 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2983 | am__include=.include | |
2984 | am__quote="\"" | |
2985 | _am_result=BSD | |
2986 | fi | |
2987 | fi | |
2988 | ||
2989 | ||
2990 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2991 | echo "${ECHO_T}$_am_result" >&6 | |
2992 | rm -f confinc confmf | |
2993 | ||
2994 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2995 | if test "${enable_dependency_tracking+set}" = set; then | |
2996 | enableval="$enable_dependency_tracking" | |
2997 | ||
2998 | fi; | |
2999 | if test "x$enable_dependency_tracking" != xno; then | |
3000 | am_depcomp="$ac_aux_dir/depcomp" | |
3001 | AMDEPBACKSLASH='\' | |
3002 | fi | |
3003 | ||
3004 | ||
3005 | if test "x$enable_dependency_tracking" != xno; then | |
3006 | AMDEP_TRUE= | |
3007 | AMDEP_FALSE='#' | |
3008 | else | |
3009 | AMDEP_TRUE='#' | |
3010 | AMDEP_FALSE= | |
3011 | fi | |
6be7c12c | 3012 | |
252b5132 | 3013 | |
252b5132 | 3014 | |
f5385ebf AM |
3015 | # test to see if srcdir already configured |
3016 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
3017 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
3018 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
3019 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3020 | { (exit 1); exit 1; }; } | |
252b5132 | 3021 | fi |
5464f5a1 | 3022 | |
f5385ebf AM |
3023 | # test whether we have cygpath |
3024 | if test -z "$CYGPATH_W"; then | |
3025 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3026 | CYGPATH_W='cygpath -w' | |
3027 | else | |
3028 | CYGPATH_W=echo | |
3029 | fi | |
3030 | fi | |
3031 | ||
3032 | ||
3033 | # Define the identity of the package. | |
3034 | PACKAGE=bfd | |
be118e79 | 3035 | VERSION=2.18.50 |
f5385ebf AM |
3036 | |
3037 | ||
5464f5a1 | 3038 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3039 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 3040 | _ACEOF |
252b5132 | 3041 | |
5464f5a1 NN |
3042 | |
3043 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3044 | #define VERSION "$VERSION" |
5464f5a1 | 3045 | _ACEOF |
252b5132 | 3046 | |
f5385ebf AM |
3047 | # Some tools Automake needs. |
3048 | ||
3049 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3050 | ||
3051 | ||
3052 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3053 | ||
3054 | ||
3055 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3056 | ||
3057 | ||
3058 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3059 | ||
3060 | ||
3061 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 3062 | |
f5385ebf | 3063 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 3064 | |
f5385ebf AM |
3065 | # Installed binaries are usually stripped using `strip' when the user |
3066 | # run `make install-strip'. However `strip' might not be the right | |
3067 | # tool to use in cross-compilation environments, therefore Automake | |
3068 | # will honor the `STRIP' environment variable to overrule this program. | |
3069 | if test "$cross_compiling" != no; then | |
3070 | if test -n "$ac_tool_prefix"; then | |
3071 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3072 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3075 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3077 | else | |
3078 | if test -n "$STRIP"; then | |
3079 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 3080 | else |
f5385ebf AM |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3088 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3090 | break 2 | |
3091 | fi | |
3092 | done | |
3093 | done | |
3094 | ||
3095 | fi | |
3096 | fi | |
3097 | STRIP=$ac_cv_prog_STRIP | |
3098 | if test -n "$STRIP"; then | |
3099 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3100 | echo "${ECHO_T}$STRIP" >&6 | |
3101 | else | |
3102 | echo "$as_me:$LINENO: result: no" >&5 | |
3103 | echo "${ECHO_T}no" >&6 | |
3104 | fi | |
3105 | ||
252b5132 | 3106 | fi |
f5385ebf AM |
3107 | if test -z "$ac_cv_prog_STRIP"; then |
3108 | ac_ct_STRIP=$STRIP | |
3109 | # Extract the first word of "strip", so it can be a program name with args. | |
3110 | set dummy strip; ac_word=$2 | |
3111 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3113 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3115 | else | |
3116 | if test -n "$ac_ct_STRIP"; then | |
3117 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3118 | else | |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
3124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3126 | ac_cv_prog_ac_ct_STRIP="strip" | |
3127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3128 | break 2 | |
3129 | fi | |
3130 | done | |
3131 | done | |
252b5132 | 3132 | |
f5385ebf AM |
3133 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
3134 | fi | |
3135 | fi | |
3136 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3137 | if test -n "$ac_ct_STRIP"; then | |
3138 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3139 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3140 | else |
f5385ebf AM |
3141 | echo "$as_me:$LINENO: result: no" >&5 |
3142 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3143 | fi |
3144 | ||
f5385ebf | 3145 | STRIP=$ac_ct_STRIP |
252b5132 | 3146 | else |
f5385ebf AM |
3147 | STRIP="$ac_cv_prog_STRIP" |
3148 | fi | |
3149 | ||
252b5132 | 3150 | fi |
f5385ebf AM |
3151 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
3152 | ||
3153 | # We need awk for the "check" target. The system "awk" is bad on | |
3154 | # some platforms. | |
3155 | # Always define AMTAR for backward compatibility. | |
3156 | ||
3157 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3158 | ||
3159 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3160 | ||
252b5132 | 3161 | |
f5385ebf AM |
3162 | |
3163 | ||
3164 | depcc="$CC" am_compiler_list= | |
3165 | ||
3166 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3167 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3168 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3170 | else |
f5385ebf AM |
3171 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3172 | # We make a subdir and do the tests there. Otherwise we can end up | |
3173 | # making bogus files that we don't know about and never remove. For | |
3174 | # instance it was reported that on HP-UX the gcc test will end up | |
3175 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3176 | # in D'. | |
3177 | mkdir conftest.dir | |
3178 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3179 | # using a relative directory. | |
3180 | cp "$am_depcomp" conftest.dir | |
3181 | cd conftest.dir | |
3182 | # We will build objects and dependencies in a subdirectory because | |
3183 | # it helps to detect inapplicable dependency modes. For instance | |
3184 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3185 | # side effect of compilation, but ICC will put the dependencies in | |
3186 | # the current directory while Tru64 will put them in the object | |
3187 | # directory. | |
3188 | mkdir sub | |
3189 | ||
3190 | am_cv_CC_dependencies_compiler_type=none | |
3191 | if test "$am_compiler_list" = ""; then | |
3192 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3193 | fi | |
3194 | for depmode in $am_compiler_list; do | |
3195 | # Setup a source with many dependencies, because some compilers | |
3196 | # like to wrap large dependency lists on column 80 (with \), and | |
3197 | # we should not choose a depcomp mode which is confused by this. | |
3198 | # | |
3199 | # We need to recreate these files for each test, as the compiler may | |
3200 | # overwrite some of them when testing with obscure command lines. | |
3201 | # This happens at least with the AIX C compiler. | |
3202 | : > sub/conftest.c | |
3203 | for i in 1 2 3 4 5 6; do | |
3204 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3205 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3206 | # Solaris 8's {/usr,}/bin/sh. | |
3207 | touch sub/conftst$i.h | |
3208 | done | |
3209 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3210 | ||
3211 | case $depmode in | |
3212 | nosideeffect) | |
3213 | # after this tag, mechanisms are not by side-effect, so they'll | |
3214 | # only be used when explicitly requested | |
3215 | if test "x$enable_dependency_tracking" = xyes; then | |
3216 | continue | |
3217 | else | |
3218 | break | |
3219 | fi | |
3220 | ;; | |
3221 | none) break ;; | |
3222 | esac | |
3223 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3224 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3225 | # handle `-M -o', and we need to detect this. | |
3226 | if depmode=$depmode \ | |
3227 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3228 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3229 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3230 | >/dev/null 2>conftest.err && | |
3231 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3232 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3233 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3234 | # icc doesn't choke on unknown options, it will just issue warnings | |
3235 | # or remarks (even with -Werror). So we grep stderr for any message | |
3236 | # that says an option was ignored or not supported. | |
3237 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3238 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3239 | # The diagnosis changed in icc 8.0: | |
3240 | # icc: Command line remark: option '-MP' not supported | |
3241 | if (grep 'ignoring option' conftest.err || | |
3242 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3243 | am_cv_CC_dependencies_compiler_type=$depmode | |
3244 | break | |
3245 | fi | |
3246 | fi | |
3247 | done | |
3248 | ||
3249 | cd .. | |
3250 | rm -rf conftest.dir | |
3251 | else | |
3252 | am_cv_CC_dependencies_compiler_type=none | |
3253 | fi | |
3254 | ||
252b5132 | 3255 | fi |
f5385ebf AM |
3256 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3257 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3258 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3259 | |
f5385ebf AM |
3260 | |
3261 | ||
3262 | if | |
3263 | test "x$enable_dependency_tracking" != xno \ | |
3264 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3265 | am__fastdepCC_TRUE= | |
3266 | am__fastdepCC_FALSE='#' | |
252b5132 | 3267 | else |
f5385ebf AM |
3268 | am__fastdepCC_TRUE='#' |
3269 | am__fastdepCC_FALSE= | |
252b5132 RH |
3270 | fi |
3271 | ||
6be7c12c | 3272 | |
e43d48cc | 3273 | |
f5385ebf | 3274 | |
5464f5a1 NN |
3275 | if test -n "$ac_tool_prefix"; then |
3276 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3277 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3280 | if test "${ac_cv_prog_AR+set}" = set; then | |
3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3282 | else |
3283 | if test -n "$AR"; then | |
3284 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3285 | else | |
5464f5a1 NN |
3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3287 | for as_dir in $PATH | |
3288 | do | |
3289 | IFS=$as_save_IFS | |
3290 | test -z "$as_dir" && as_dir=. | |
3291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3293 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3295 | break 2 | |
3296 | fi | |
3297 | done | |
3298 | done | |
3299 | ||
252b5132 RH |
3300 | fi |
3301 | fi | |
5464f5a1 | 3302 | AR=$ac_cv_prog_AR |
252b5132 | 3303 | if test -n "$AR"; then |
5464f5a1 NN |
3304 | echo "$as_me:$LINENO: result: $AR" >&5 |
3305 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3306 | else |
5464f5a1 NN |
3307 | echo "$as_me:$LINENO: result: no" >&5 |
3308 | echo "${ECHO_T}no" >&6 | |
3309 | fi | |
3310 | ||
252b5132 | 3311 | fi |
5464f5a1 NN |
3312 | if test -z "$ac_cv_prog_AR"; then |
3313 | ac_ct_AR=$AR | |
3314 | # Extract the first word of "ar", so it can be a program name with args. | |
3315 | set dummy ar; ac_word=$2 | |
3316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3318 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3320 | else | |
3321 | if test -n "$ac_ct_AR"; then | |
3322 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3323 | else | |
3324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3325 | for as_dir in $PATH | |
3326 | do | |
3327 | IFS=$as_save_IFS | |
3328 | test -z "$as_dir" && as_dir=. | |
3329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3331 | ac_cv_prog_ac_ct_AR="ar" | |
3332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3333 | break 2 | |
3334 | fi | |
3335 | done | |
3336 | done | |
252b5132 | 3337 | |
5464f5a1 NN |
3338 | fi |
3339 | fi | |
3340 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3341 | if test -n "$ac_ct_AR"; then | |
3342 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3343 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3344 | else | |
3345 | echo "$as_me:$LINENO: result: no" >&5 | |
3346 | echo "${ECHO_T}no" >&6 | |
3347 | fi | |
252b5132 | 3348 | |
5464f5a1 NN |
3349 | AR=$ac_ct_AR |
3350 | else | |
3351 | AR="$ac_cv_prog_AR" | |
3352 | fi | |
6be7c12c | 3353 | |
5464f5a1 NN |
3354 | if test -n "$ac_tool_prefix"; then |
3355 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3356 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3359 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3361 | else |
3362 | if test -n "$RANLIB"; then | |
3363 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3364 | else | |
5464f5a1 NN |
3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3366 | for as_dir in $PATH | |
3367 | do | |
3368 | IFS=$as_save_IFS | |
3369 | test -z "$as_dir" && as_dir=. | |
3370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3372 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3374 | break 2 | |
3375 | fi | |
3376 | done | |
3377 | done | |
3378 | ||
252b5132 RH |
3379 | fi |
3380 | fi | |
5464f5a1 | 3381 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3382 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3383 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3384 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3385 | else |
5464f5a1 NN |
3386 | echo "$as_me:$LINENO: result: no" >&5 |
3387 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3388 | fi |
3389 | ||
5464f5a1 | 3390 | fi |
252b5132 | 3391 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3392 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3393 | # Extract the first word of "ranlib", so it can be a program name with args. |
3394 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3397 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3399 | else |
5464f5a1 NN |
3400 | if test -n "$ac_ct_RANLIB"; then |
3401 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3402 | else |
5464f5a1 NN |
3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3404 | for as_dir in $PATH | |
3405 | do | |
3406 | IFS=$as_save_IFS | |
3407 | test -z "$as_dir" && as_dir=. | |
3408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3410 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3412 | break 2 | |
3413 | fi | |
3414 | done | |
3415 | done | |
3416 | ||
3417 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3418 | fi |
3419 | fi | |
5464f5a1 NN |
3420 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3421 | if test -n "$ac_ct_RANLIB"; then | |
3422 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3423 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3424 | else |
5464f5a1 NN |
3425 | echo "$as_me:$LINENO: result: no" >&5 |
3426 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3427 | fi |
3428 | ||
5464f5a1 | 3429 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3430 | else |
5464f5a1 | 3431 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3432 | fi |
3433 | ||
252b5132 RH |
3434 | |
3435 | # Check whether --enable-shared or --disable-shared was given. | |
3436 | if test "${enable_shared+set}" = set; then | |
3437 | enableval="$enable_shared" | |
3438 | p=${PACKAGE-default} | |
d7040cdb SE |
3439 | case $enableval in |
3440 | yes) enable_shared=yes ;; | |
3441 | no) enable_shared=no ;; | |
3442 | *) | |
3443 | enable_shared=no | |
3444 | # Look at the argument we got. We use all the common list separators. | |
3445 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3446 | for pkg in $enableval; do | |
3447 | IFS="$lt_save_ifs" | |
3448 | if test "X$pkg" = "X$p"; then | |
3449 | enable_shared=yes | |
3450 | fi | |
3451 | done | |
3452 | IFS="$lt_save_ifs" | |
3453 | ;; | |
3454 | esac | |
252b5132 RH |
3455 | else |
3456 | enable_shared=no | |
5464f5a1 | 3457 | fi; |
252b5132 | 3458 | |
d7040cdb SE |
3459 | |
3460 | ||
3461 | ||
3462 | ||
3463 | ||
3464 | ||
3465 | ||
3466 | ||
cfbc9945 SE |
3467 | ac_ext=c |
3468 | ac_cpp='$CPP $CPPFLAGS' | |
3469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3472 | if test -n "$ac_tool_prefix"; then | |
3473 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3474 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3477 | if test "${ac_cv_prog_CC+set}" = set; then | |
3478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3479 | else |
cfbc9945 SE |
3480 | if test -n "$CC"; then |
3481 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2ef150d | 3482 | else |
cfbc9945 SE |
3483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3484 | for as_dir in $PATH | |
3485 | do | |
3486 | IFS=$as_save_IFS | |
3487 | test -z "$as_dir" && as_dir=. | |
3488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3490 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3492 | break 2 | |
3493 | fi | |
3494 | done | |
3495 | done | |
c5d1701e | 3496 | |
cfbc9945 SE |
3497 | fi |
3498 | fi | |
3499 | CC=$ac_cv_prog_CC | |
3500 | if test -n "$CC"; then | |
3501 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3502 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3503 | else |
cfbc9945 SE |
3504 | echo "$as_me:$LINENO: result: no" >&5 |
3505 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3506 | fi |
cfbc9945 SE |
3507 | |
3508 | fi | |
3509 | if test -z "$ac_cv_prog_CC"; then | |
3510 | ac_ct_CC=$CC | |
3511 | # Extract the first word of "gcc", so it can be a program name with args. | |
3512 | set dummy gcc; ac_word=$2 | |
3513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3515 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5464f5a1 | 3516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3517 | else |
cfbc9945 SE |
3518 | if test -n "$ac_ct_CC"; then |
3519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3520 | else |
cfbc9945 SE |
3521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3522 | for as_dir in $PATH | |
3523 | do | |
3524 | IFS=$as_save_IFS | |
3525 | test -z "$as_dir" && as_dir=. | |
3526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3528 | ac_cv_prog_ac_ct_CC="gcc" | |
3529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3530 | break 2 | |
3531 | fi | |
3532 | done | |
3533 | done | |
3534 | ||
252b5132 RH |
3535 | fi |
3536 | fi | |
cfbc9945 SE |
3537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3538 | if test -n "$ac_ct_CC"; then | |
3539 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3540 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 3541 | else |
5464f5a1 NN |
3542 | echo "$as_me:$LINENO: result: no" >&5 |
3543 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3544 | fi |
cfbc9945 SE |
3545 | |
3546 | CC=$ac_ct_CC | |
3547 | else | |
3548 | CC="$ac_cv_prog_CC" | |
3549 | fi | |
3550 | ||
3551 | if test -z "$CC"; then | |
3552 | if test -n "$ac_tool_prefix"; then | |
3553 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3554 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3557 | if test "${ac_cv_prog_CC+set}" = set; then | |
5464f5a1 | 3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3559 | else |
cfbc9945 SE |
3560 | if test -n "$CC"; then |
3561 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3562 | else |
cfbc9945 SE |
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3564 | for as_dir in $PATH | |
3565 | do | |
3566 | IFS=$as_save_IFS | |
3567 | test -z "$as_dir" && as_dir=. | |
3568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3570 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3572 | break 2 | |
3573 | fi | |
3574 | done | |
3575 | done | |
3576 | ||
252b5132 RH |
3577 | fi |
3578 | fi | |
cfbc9945 SE |
3579 | CC=$ac_cv_prog_CC |
3580 | if test -n "$CC"; then | |
3581 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3582 | echo "${ECHO_T}$CC" >&6 | |
ac48eca1 | 3583 | else |
cfbc9945 SE |
3584 | echo "$as_me:$LINENO: result: no" >&5 |
3585 | echo "${ECHO_T}no" >&6 | |
ac48eca1 | 3586 | fi |
ac48eca1 | 3587 | |
cfbc9945 SE |
3588 | fi |
3589 | if test -z "$ac_cv_prog_CC"; then | |
3590 | ac_ct_CC=$CC | |
3591 | # Extract the first word of "cc", so it can be a program name with args. | |
3592 | set dummy cc; ac_word=$2 | |
3593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3595 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5464f5a1 | 3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3597 | else |
cfbc9945 SE |
3598 | if test -n "$ac_ct_CC"; then |
3599 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3600 | else |
cfbc9945 SE |
3601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3602 | for as_dir in $PATH | |
3603 | do | |
3604 | IFS=$as_save_IFS | |
3605 | test -z "$as_dir" && as_dir=. | |
3606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3608 | ac_cv_prog_ac_ct_CC="cc" | |
3609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3610 | break 2 | |
3611 | fi | |
3612 | done | |
3613 | done | |
3614 | ||
252b5132 | 3615 | fi |
cfbc9945 SE |
3616 | fi |
3617 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3618 | if test -n "$ac_ct_CC"; then | |
3619 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3620 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3621 | else | |
3622 | echo "$as_me:$LINENO: result: no" >&5 | |
3623 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3624 | fi |
3625 | ||
cfbc9945 SE |
3626 | CC=$ac_ct_CC |
3627 | else | |
3628 | CC="$ac_cv_prog_CC" | |
3629 | fi | |
252b5132 | 3630 | |
cfbc9945 SE |
3631 | fi |
3632 | if test -z "$CC"; then | |
3633 | # Extract the first word of "cc", so it can be a program name with args. | |
3634 | set dummy cc; ac_word=$2 | |
3635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3637 | if test "${ac_cv_prog_CC+set}" = set; then | |
3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3639 | else |
cfbc9945 SE |
3640 | if test -n "$CC"; then |
3641 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3642 | else | |
3643 | ac_prog_rejected=no | |
3644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3645 | for as_dir in $PATH | |
3646 | do | |
3647 | IFS=$as_save_IFS | |
3648 | test -z "$as_dir" && as_dir=. | |
3649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3652 | ac_prog_rejected=yes | |
3653 | continue | |
3654 | fi | |
3655 | ac_cv_prog_CC="cc" | |
3656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3657 | break 2 | |
3658 | fi | |
3659 | done | |
3660 | done | |
3661 | ||
3662 | if test $ac_prog_rejected = yes; then | |
3663 | # We found a bogon in the path, so make sure we never use it. | |
3664 | set dummy $ac_cv_prog_CC | |
3665 | shift | |
3666 | if test $# != 0; then | |
3667 | # We chose a different compiler from the bogus one. | |
3668 | # However, it has the same basename, so the bogon will be chosen | |
3669 | # first if we set CC to just the basename; use the full file name. | |
3670 | shift | |
3671 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3672 | fi | |
3673 | fi | |
3674 | fi | |
3675 | fi | |
3676 | CC=$ac_cv_prog_CC | |
3677 | if test -n "$CC"; then | |
3678 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3679 | echo "${ECHO_T}$CC" >&6 | |
3680 | else | |
3681 | echo "$as_me:$LINENO: result: no" >&5 | |
3682 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3683 | fi |
3684 | ||
cfbc9945 SE |
3685 | fi |
3686 | if test -z "$CC"; then | |
3687 | if test -n "$ac_tool_prefix"; then | |
3688 | for ac_prog in cl | |
3689 | do | |
3690 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3691 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3694 | if test "${ac_cv_prog_CC+set}" = set; then | |
5464f5a1 | 3695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3696 | else |
cfbc9945 SE |
3697 | if test -n "$CC"; then |
3698 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3699 | else | |
3700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3701 | for as_dir in $PATH | |
3702 | do | |
3703 | IFS=$as_save_IFS | |
3704 | test -z "$as_dir" && as_dir=. | |
3705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3707 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3709 | break 2 | |
3710 | fi | |
3711 | done | |
3712 | done | |
ac48eca1 | 3713 | |
cfbc9945 SE |
3714 | fi |
3715 | fi | |
3716 | CC=$ac_cv_prog_CC | |
3717 | if test -n "$CC"; then | |
3718 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3719 | echo "${ECHO_T}$CC" >&6 | |
3720 | else | |
3721 | echo "$as_me:$LINENO: result: no" >&5 | |
3722 | echo "${ECHO_T}no" >&6 | |
3723 | fi | |
ac48eca1 | 3724 | |
cfbc9945 SE |
3725 | test -n "$CC" && break |
3726 | done | |
3727 | fi | |
3728 | if test -z "$CC"; then | |
3729 | ac_ct_CC=$CC | |
3730 | for ac_prog in cl | |
3731 | do | |
3732 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3733 | set dummy $ac_prog; ac_word=$2 | |
3734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3738 | else | |
3739 | if test -n "$ac_ct_CC"; then | |
3740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3741 | else | |
3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3743 | for as_dir in $PATH | |
3744 | do | |
3745 | IFS=$as_save_IFS | |
3746 | test -z "$as_dir" && as_dir=. | |
3747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3749 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3751 | break 2 | |
3752 | fi | |
3753 | done | |
3754 | done | |
ac48eca1 | 3755 | |
cfbc9945 SE |
3756 | fi |
3757 | fi | |
3758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3759 | if test -n "$ac_ct_CC"; then | |
3760 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3761 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3762 | else | |
3763 | echo "$as_me:$LINENO: result: no" >&5 | |
3764 | echo "${ECHO_T}no" >&6 | |
3765 | fi | |
ac48eca1 | 3766 | |
cfbc9945 SE |
3767 | test -n "$ac_ct_CC" && break |
3768 | done | |
ac48eca1 | 3769 | |
cfbc9945 SE |
3770 | CC=$ac_ct_CC |
3771 | fi | |
55c80943 | 3772 | |
cfbc9945 | 3773 | fi |
ac48eca1 | 3774 | |
ac48eca1 | 3775 | |
7a283e07 RW |
3776 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3777 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3778 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
cfbc9945 SE |
3779 | See \`config.log' for more details." >&5 |
3780 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3781 | See \`config.log' for more details." >&2;} | |
7a283e07 | 3782 | { (exit 1); exit 1; }; }; } |
ac48eca1 | 3783 | |
cfbc9945 SE |
3784 | # Provide some information about the compiler. |
3785 | echo "$as_me:$LINENO:" \ | |
3786 | "checking for C compiler version" >&5 | |
3787 | ac_compiler=`set X $ac_compile; echo $2` | |
3788 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3789 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3790 | ac_status=$? | |
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3792 | (exit $ac_status); } | |
3793 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3794 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3795 | ac_status=$? | |
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3797 | (exit $ac_status); } | |
3798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3799 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3800 | ac_status=$? | |
3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3802 | (exit $ac_status); } | |
ac48eca1 | 3803 | |
cfbc9945 SE |
3804 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3805 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3806 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
5464f5a1 | 3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3808 | else |
cfbc9945 SE |
3809 | cat >conftest.$ac_ext <<_ACEOF |
3810 | /* confdefs.h. */ | |
3811 | _ACEOF | |
3812 | cat confdefs.h >>conftest.$ac_ext | |
3813 | cat >>conftest.$ac_ext <<_ACEOF | |
3814 | /* end confdefs.h. */ | |
ac48eca1 | 3815 | |
cfbc9945 SE |
3816 | int |
3817 | main () | |
3818 | { | |
3819 | #ifndef __GNUC__ | |
3820 | choke me | |
3821 | #endif | |
5464f5a1 | 3822 | |
cfbc9945 SE |
3823 | ; |
3824 | return 0; | |
3825 | } | |
3826 | _ACEOF | |
3827 | rm -f conftest.$ac_objext | |
3828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3829 | (eval $ac_compile) 2>conftest.er1 | |
3830 | ac_status=$? | |
3831 | grep -v '^ *+' conftest.er1 >conftest.err | |
3832 | rm -f conftest.er1 | |
3833 | cat conftest.err >&5 | |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3835 | (exit $ac_status); } && | |
3836 | { ac_try='test -z "$ac_c_werror_flag" | |
3837 | || test ! -s conftest.err' | |
3838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3839 | (eval $ac_try) 2>&5 | |
3840 | ac_status=$? | |
3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3842 | (exit $ac_status); }; } && | |
3843 | { ac_try='test -s conftest.$ac_objext' | |
3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3845 | (eval $ac_try) 2>&5 | |
3846 | ac_status=$? | |
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3848 | (exit $ac_status); }; }; then | |
3849 | ac_compiler_gnu=yes | |
ac48eca1 | 3850 | else |
cfbc9945 SE |
3851 | echo "$as_me: failed program was:" >&5 |
3852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3853 | ||
3854 | ac_compiler_gnu=no | |
ac48eca1 | 3855 | fi |
cfbc9945 SE |
3856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3857 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3858 | |
5464f5a1 | 3859 | fi |
cfbc9945 SE |
3860 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3861 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3862 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3863 | ac_test_CFLAGS=${CFLAGS+set} | |
3864 | ac_save_CFLAGS=$CFLAGS | |
3865 | CFLAGS="-g" | |
3866 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3867 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3868 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
5464f5a1 | 3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6be7c12c | 3870 | else |
cfbc9945 SE |
3871 | cat >conftest.$ac_ext <<_ACEOF |
3872 | /* confdefs.h. */ | |
3873 | _ACEOF | |
3874 | cat confdefs.h >>conftest.$ac_ext | |
3875 | cat >>conftest.$ac_ext <<_ACEOF | |
3876 | /* end confdefs.h. */ | |
3877 | ||
3878 | int | |
3879 | main () | |
3880 | { | |
3881 | ||
3882 | ; | |
3883 | return 0; | |
3884 | } | |
3885 | _ACEOF | |
3886 | rm -f conftest.$ac_objext | |
3887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3888 | (eval $ac_compile) 2>conftest.er1 | |
3889 | ac_status=$? | |
3890 | grep -v '^ *+' conftest.er1 >conftest.err | |
3891 | rm -f conftest.er1 | |
3892 | cat conftest.err >&5 | |
3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3894 | (exit $ac_status); } && | |
3895 | { ac_try='test -z "$ac_c_werror_flag" | |
3896 | || test ! -s conftest.err' | |
3897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3898 | (eval $ac_try) 2>&5 | |
3899 | ac_status=$? | |
3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3901 | (exit $ac_status); }; } && | |
3902 | { ac_try='test -s conftest.$ac_objext' | |
3903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3904 | (eval $ac_try) 2>&5 | |
3905 | ac_status=$? | |
3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3907 | (exit $ac_status); }; }; then | |
3908 | ac_cv_prog_cc_g=yes | |
6be7c12c | 3909 | else |
cfbc9945 SE |
3910 | echo "$as_me: failed program was:" >&5 |
3911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 3912 | |
cfbc9945 | 3913 | ac_cv_prog_cc_g=no |
ac48eca1 | 3914 | fi |
cfbc9945 | 3915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ac48eca1 | 3916 | fi |
cfbc9945 SE |
3917 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3918 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3919 | if test "$ac_test_CFLAGS" = set; then | |
3920 | CFLAGS=$ac_save_CFLAGS | |
3921 | elif test $ac_cv_prog_cc_g = yes; then | |
3922 | if test "$GCC" = yes; then | |
3923 | CFLAGS="-g -O2" | |
3924 | else | |
3925 | CFLAGS="-g" | |
3926 | fi | |
ac48eca1 | 3927 | else |
cfbc9945 SE |
3928 | if test "$GCC" = yes; then |
3929 | CFLAGS="-O2" | |
3930 | else | |
3931 | CFLAGS= | |
3932 | fi | |
ac48eca1 | 3933 | fi |
cfbc9945 SE |
3934 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3935 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3936 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
5464f5a1 | 3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3938 | else |
cfbc9945 SE |
3939 | ac_cv_prog_cc_stdc=no |
3940 | ac_save_CC=$CC | |
3941 | cat >conftest.$ac_ext <<_ACEOF | |
3942 | /* confdefs.h. */ | |
3943 | _ACEOF | |
3944 | cat confdefs.h >>conftest.$ac_ext | |
3945 | cat >>conftest.$ac_ext <<_ACEOF | |
3946 | /* end confdefs.h. */ | |
3947 | #include <stdarg.h> | |
3948 | #include <stdio.h> | |
3949 | #include <sys/types.h> | |
3950 | #include <sys/stat.h> | |
3951 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3952 | struct buf { int x; }; | |
3953 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3954 | static char *e (p, i) | |
3955 | char **p; | |
3956 | int i; | |
3957 | { | |
3958 | return p[i]; | |
3959 | } | |
3960 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3961 | { | |
3962 | char *s; | |
3963 | va_list v; | |
3964 | va_start (v,p); | |
3965 | s = g (p, va_arg (v,int)); | |
3966 | va_end (v); | |
3967 | return s; | |
3968 | } | |
5464f5a1 | 3969 | |
cfbc9945 SE |
3970 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3971 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3972 | These don't provoke an error unfortunately, instead are silently treated | |
3973 | as 'x'. The following induces an error, until -std1 is added to get | |
3974 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3975 | array size at least. It's necessary to write '\x00'==0 to get something | |
3976 | that's true only with -std1. */ | |
3977 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3978 | ||
3979 | int test (int i, double x); | |
3980 | struct s1 {int (*f) (int a);}; | |
3981 | struct s2 {int (*f) (double a);}; | |
3982 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3983 | int argc; | |
3984 | char **argv; | |
3985 | int | |
3986 | main () | |
3987 | { | |
3988 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3989 | ; | |
3990 | return 0; | |
3991 | } | |
3992 | _ACEOF | |
3993 | # Don't try gcc -ansi; that turns off useful extensions and | |
3994 | # breaks some systems' header files. | |
3995 | # AIX -qlanglvl=ansi | |
3996 | # Ultrix and OSF/1 -std1 | |
3997 | # HP-UX 10.20 and later -Ae | |
3998 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3999 | # SVR4 -Xc -D__EXTENSIONS__ | |
4000 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4001 | do | |
4002 | CC="$ac_save_CC $ac_arg" | |
4003 | rm -f conftest.$ac_objext | |
4004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4005 | (eval $ac_compile) 2>conftest.er1 | |
4006 | ac_status=$? | |
4007 | grep -v '^ *+' conftest.er1 >conftest.err | |
4008 | rm -f conftest.er1 | |
4009 | cat conftest.err >&5 | |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4011 | (exit $ac_status); } && | |
4012 | { ac_try='test -z "$ac_c_werror_flag" | |
4013 | || test ! -s conftest.err' | |
4014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4015 | (eval $ac_try) 2>&5 | |
4016 | ac_status=$? | |
4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4018 | (exit $ac_status); }; } && | |
4019 | { ac_try='test -s conftest.$ac_objext' | |
4020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4021 | (eval $ac_try) 2>&5 | |
4022 | ac_status=$? | |
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4024 | (exit $ac_status); }; }; then | |
4025 | ac_cv_prog_cc_stdc=$ac_arg | |
4026 | break | |
ac48eca1 | 4027 | else |
cfbc9945 SE |
4028 | echo "$as_me: failed program was:" >&5 |
4029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 4030 | |
5464f5a1 | 4031 | fi |
cfbc9945 | 4032 | rm -f conftest.err conftest.$ac_objext |
5464f5a1 | 4033 | done |
cfbc9945 SE |
4034 | rm -f conftest.$ac_ext conftest.$ac_objext |
4035 | CC=$ac_save_CC | |
5464f5a1 | 4036 | |
ac48eca1 | 4037 | fi |
252b5132 | 4038 | |
cfbc9945 SE |
4039 | case "x$ac_cv_prog_cc_stdc" in |
4040 | x|xno) | |
4041 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4042 | echo "${ECHO_T}none needed" >&6 ;; | |
4043 | *) | |
4044 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4045 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4046 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4047 | esac | |
6be7c12c | 4048 | |
cfbc9945 SE |
4049 | # Some people use a C++ compiler to compile C. Since we use `exit', |
4050 | # in C++ we need to declare it. In case someone uses the same compiler | |
4051 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4052 | # the declaration of exit, since it's the most demanding environment. | |
4053 | cat >conftest.$ac_ext <<_ACEOF | |
4054 | #ifndef __cplusplus | |
4055 | choke me | |
4056 | #endif | |
4057 | _ACEOF | |
4058 | rm -f conftest.$ac_objext | |
4059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4060 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 | 4061 | ac_status=$? |
cfbc9945 SE |
4062 | grep -v '^ *+' conftest.er1 >conftest.err |
4063 | rm -f conftest.er1 | |
4064 | cat conftest.err >&5 | |
5464f5a1 | 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cfbc9945 SE |
4066 | (exit $ac_status); } && |
4067 | { ac_try='test -z "$ac_c_werror_flag" | |
4068 | || test ! -s conftest.err' | |
4069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4070 | (eval $ac_try) 2>&5 | |
5464f5a1 NN |
4071 | ac_status=$? |
4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cfbc9945 SE |
4073 | (exit $ac_status); }; } && |
4074 | { ac_try='test -s conftest.$ac_objext' | |
4075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4076 | (eval $ac_try) 2>&5 | |
d70c5fc7 NC |
4077 | ac_status=$? |
4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cfbc9945 SE |
4079 | (exit $ac_status); }; }; then |
4080 | for ac_declaration in \ | |
4081 | '' \ | |
4082 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4083 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4084 | 'extern "C" void exit (int) throw ();' \ | |
4085 | 'extern "C" void exit (int);' \ | |
4086 | 'void exit (int);' | |
4087 | do | |
4088 | cat >conftest.$ac_ext <<_ACEOF | |
4089 | /* confdefs.h. */ | |
4090 | _ACEOF | |
4091 | cat confdefs.h >>conftest.$ac_ext | |
4092 | cat >>conftest.$ac_ext <<_ACEOF | |
4093 | /* end confdefs.h. */ | |
4094 | $ac_declaration | |
4095 | #include <stdlib.h> | |
4096 | int | |
4097 | main () | |
4098 | { | |
4099 | exit (42); | |
4100 | ; | |
4101 | return 0; | |
4102 | } | |
4103 | _ACEOF | |
4104 | rm -f conftest.$ac_objext | |
4105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4106 | (eval $ac_compile) 2>conftest.er1 | |
4107 | ac_status=$? | |
4108 | grep -v '^ *+' conftest.er1 >conftest.err | |
4109 | rm -f conftest.er1 | |
4110 | cat conftest.err >&5 | |
4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4112 | (exit $ac_status); } && | |
4113 | { ac_try='test -z "$ac_c_werror_flag" | |
4114 | || test ! -s conftest.err' | |
4115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4116 | (eval $ac_try) 2>&5 | |
4117 | ac_status=$? | |
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4119 | (exit $ac_status); }; } && | |
4120 | { ac_try='test -s conftest.$ac_objext' | |
4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4122 | (eval $ac_try) 2>&5 | |
4123 | ac_status=$? | |
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4125 | (exit $ac_status); }; }; then | |
4126 | : | |
b2ef150d | 4127 | else |
cfbc9945 SE |
4128 | echo "$as_me: failed program was:" >&5 |
4129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 4130 | |
cfbc9945 SE |
4131 | continue |
4132 | fi | |
4133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4134 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
4135 | /* confdefs.h. */ |
4136 | _ACEOF | |
4137 | cat confdefs.h >>conftest.$ac_ext | |
4138 | cat >>conftest.$ac_ext <<_ACEOF | |
4139 | /* end confdefs.h. */ | |
cfbc9945 | 4140 | $ac_declaration |
5464f5a1 NN |
4141 | int |
4142 | main () | |
4143 | { | |
cfbc9945 | 4144 | exit (42); |
5464f5a1 NN |
4145 | ; |
4146 | return 0; | |
4147 | } | |
4148 | _ACEOF | |
cfbc9945 SE |
4149 | rm -f conftest.$ac_objext |
4150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4151 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
4152 | ac_status=$? |
4153 | grep -v '^ *+' conftest.er1 >conftest.err | |
4154 | rm -f conftest.er1 | |
4155 | cat conftest.err >&5 | |
4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4157 | (exit $ac_status); } && | |
49c96104 SE |
4158 | { ac_try='test -z "$ac_c_werror_flag" |
4159 | || test ! -s conftest.err' | |
5464f5a1 NN |
4160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4161 | (eval $ac_try) 2>&5 | |
4162 | ac_status=$? | |
4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4164 | (exit $ac_status); }; } && | |
cfbc9945 | 4165 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
4166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4167 | (eval $ac_try) 2>&5 | |
4168 | ac_status=$? | |
4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4170 | (exit $ac_status); }; }; then | |
cfbc9945 | 4171 | break |
b2ef150d | 4172 | else |
5464f5a1 NN |
4173 | echo "$as_me: failed program was:" >&5 |
4174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4175 | ||
b2ef150d | 4176 | fi |
cfbc9945 SE |
4177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4178 | done | |
4179 | rm -f conftest* | |
4180 | if test -n "$ac_declaration"; then | |
4181 | echo '#ifdef __cplusplus' >>confdefs.h | |
4182 | echo $ac_declaration >>confdefs.h | |
4183 | echo '#endif' >>confdefs.h | |
6ec7057a | 4184 | fi |
cfbc9945 | 4185 | |
92f01d61 | 4186 | else |
cfbc9945 SE |
4187 | echo "$as_me: failed program was:" >&5 |
4188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
92f01d61 | 4189 | |
cfbc9945 SE |
4190 | fi |
4191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4192 | ac_ext=c | |
4193 | ac_cpp='$CPP $CPPFLAGS' | |
4194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
92f01d61 JM |
4197 | |
4198 | ||
cfbc9945 SE |
4199 | cat >>confdefs.h <<\_ACEOF |
4200 | #define _GNU_SOURCE 1 | |
4201 | _ACEOF | |
a1ac8190 | 4202 | |
c428fa83 | 4203 | |
cfbc9945 | 4204 | |
d7040cdb SE |
4205 | |
4206 | ||
4207 | macro_version='2.1a' | |
4208 | macro_revision='1.2435' | |
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | ||
4218 | ||
4219 | ||
4220 | ||
4221 | ltmain="$ac_aux_dir/ltmain.sh" | |
4222 | ||
4223 | # Set options | |
4224 | ||
4225 | enable_dlopen=no | |
4226 | ||
4227 | ||
4228 | enable_win32_dll=no | |
4229 | ||
4230 | ||
4231 | ||
cfbc9945 SE |
4232 | # Check whether --enable-static or --disable-static was given. |
4233 | if test "${enable_static+set}" = set; then | |
4234 | enableval="$enable_static" | |
4235 | p=${PACKAGE-default} | |
d7040cdb SE |
4236 | case $enableval in |
4237 | yes) enable_static=yes ;; | |
4238 | no) enable_static=no ;; | |
4239 | *) | |
4240 | enable_static=no | |
4241 | # Look at the argument we got. We use all the common list separators. | |
4242 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4243 | for pkg in $enableval; do | |
4244 | IFS="$lt_save_ifs" | |
4245 | if test "X$pkg" = "X$p"; then | |
4246 | enable_static=yes | |
4247 | fi | |
4248 | done | |
4249 | IFS="$lt_save_ifs" | |
4250 | ;; | |
4251 | esac | |
c428fa83 | 4252 | else |
cfbc9945 SE |
4253 | enable_static=yes |
4254 | fi; | |
d7040cdb SE |
4255 | |
4256 | ||
4257 | ||
4258 | ||
4259 | ||
4260 | ||
4261 | ||
4262 | ||
4263 | ||
4264 | # Check whether --with-pic or --without-pic was given. | |
4265 | if test "${with_pic+set}" = set; then | |
4266 | withval="$with_pic" | |
4267 | pic_mode="$withval" | |
4268 | else | |
4269 | pic_mode=default | |
4270 | fi; | |
4271 | ||
4272 | test -z "$pic_mode" && pic_mode=default | |
4273 | ||
4274 | ||
4275 | ||
4276 | ||
4277 | ||
4278 | ||
4279 | ||
cfbc9945 SE |
4280 | # Check whether --enable-fast-install or --disable-fast-install was given. |
4281 | if test "${enable_fast_install+set}" = set; then | |
4282 | enableval="$enable_fast_install" | |
4283 | p=${PACKAGE-default} | |
d7040cdb SE |
4284 | case $enableval in |
4285 | yes) enable_fast_install=yes ;; | |
4286 | no) enable_fast_install=no ;; | |
4287 | *) | |
4288 | enable_fast_install=no | |
4289 | # Look at the argument we got. We use all the common list separators. | |
4290 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4291 | for pkg in $enableval; do | |
4292 | IFS="$lt_save_ifs" | |
4293 | if test "X$pkg" = "X$p"; then | |
4294 | enable_fast_install=yes | |
4295 | fi | |
4296 | done | |
4297 | IFS="$lt_save_ifs" | |
4298 | ;; | |
4299 | esac | |
cfbc9945 SE |
4300 | else |
4301 | enable_fast_install=yes | |
4302 | fi; | |
c428fa83 | 4303 | |
d7040cdb SE |
4304 | |
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4312 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4313 | if test "${lt_cv_path_SED+set}" = set; then | |
4314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4315 | else | |
4316 | # Loop through the user's path and test for sed and gsed. | |
4317 | # Then use that list of sed's as ones to test for truncation. | |
4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4319 | for as_dir in $PATH | |
4320 | do | |
4321 | IFS=$as_save_IFS | |
4322 | test -z "$as_dir" && as_dir=. | |
4323 | for lt_ac_prog in sed gsed; do | |
4324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4325 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4326 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4327 | fi | |
4328 | done | |
4329 | done | |
4330 | done | |
4331 | IFS=$as_save_IFS | |
4332 | lt_ac_max=0 | |
4333 | lt_ac_count=0 | |
4334 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4335 | # along with /bin/sed that truncates output. | |
4336 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
4337 | test ! -f $lt_ac_sed && continue | |
4338 | cat /dev/null > conftest.in | |
4339 | lt_ac_count=0 | |
4340 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4341 | # Check for GNU sed and select it if it is found. | |
4342 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4343 | lt_cv_path_SED=$lt_ac_sed | |
4344 | break | |
4345 | fi | |
4346 | while true; do | |
4347 | cat conftest.in conftest.in >conftest.tmp | |
4348 | mv conftest.tmp conftest.in | |
4349 | cp conftest.in conftest.nl | |
4350 | echo >>conftest.nl | |
4351 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4352 | cmp -s conftest.out conftest.nl || break | |
4353 | # 10000 chars as input seems more than enough | |
4354 | test $lt_ac_count -gt 10 && break | |
4355 | lt_ac_count=`expr $lt_ac_count + 1` | |
4356 | if test $lt_ac_count -gt $lt_ac_max; then | |
4357 | lt_ac_max=$lt_ac_count | |
4358 | lt_cv_path_SED=$lt_ac_sed | |
4359 | fi | |
4360 | done | |
4361 | done | |
4362 | ||
4363 | fi | |
4364 | ||
4365 | SED=$lt_cv_path_SED | |
4366 | ||
4367 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4368 | echo "${ECHO_T}$SED" >&6 | |
4369 | ||
4370 | test -z "$SED" && SED=sed | |
4371 | Xsed="$SED -e 1s/^X//" | |
4372 | ||
4373 | ||
4374 | ||
4375 | ||
4376 | ||
4377 | ||
4378 | ||
4379 | ||
4380 | ||
4381 | ||
4382 | ||
4383 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4384 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4385 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4387 | else | |
4388 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4389 | then ac_cv_prog_egrep='grep -E' | |
4390 | else ac_cv_prog_egrep='egrep' | |
4391 | fi | |
4392 | fi | |
4393 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4394 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4395 | EGREP=$ac_cv_prog_egrep | |
4396 | ||
4397 | ||
4398 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4399 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4400 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4402 | else | |
4403 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4404 | then ac_cv_prog_fgrep='grep -F' | |
4405 | else ac_cv_prog_fgrep='fgrep' | |
4406 | fi | |
4407 | fi | |
4408 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4409 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4410 | FGREP=$ac_cv_prog_fgrep | |
4411 | ||
4412 | ||
4413 | test -z "$GREP" && GREP=grep | |
4414 | ||
4415 | ||
4416 | ||
4417 | ||
4418 | ||
4419 | ||
4420 | ||
4421 | ||
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
4432 | ||
cfbc9945 SE |
4433 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4434 | if test "${with_gnu_ld+set}" = set; then | |
4435 | withval="$with_gnu_ld" | |
4436 | test "$withval" = no || with_gnu_ld=yes | |
4437 | else | |
4438 | with_gnu_ld=no | |
c428fa83 | 4439 | fi; |
cfbc9945 SE |
4440 | ac_prog=ld |
4441 | if test "$GCC" = yes; then | |
4442 | # Check if gcc -print-prog-name=ld gives a path. | |
d7040cdb SE |
4443 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4444 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
cfbc9945 SE |
4445 | case $host in |
4446 | *-*-mingw*) | |
4447 | # gcc leaves a trailing carriage return which upsets mingw | |
4448 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4449 | *) | |
4450 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4451 | esac | |
4452 | case $ac_prog in | |
4453 | # Accept absolute paths. | |
d7040cdb | 4454 | [\\/]* | ?:[\\/]*) |
cfbc9945 | 4455 | re_direlt='/[^/][^/]*/\.\./' |
d7040cdb SE |
4456 | # Canonicalize the pathname of ld |
4457 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4458 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4459 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
cfbc9945 SE |
4460 | done |
4461 | test -z "$LD" && LD="$ac_prog" | |
4462 | ;; | |
5bd8253d | 4463 | "") |
cfbc9945 SE |
4464 | # If it fails, then pretend we aren't using GCC. |
4465 | ac_prog=ld | |
5bd8253d L |
4466 | ;; |
4467 | *) | |
cfbc9945 SE |
4468 | # If it is relative, then search for the first ld in PATH. |
4469 | with_gnu_ld=unknown | |
5bd8253d | 4470 | ;; |
cfbc9945 SE |
4471 | esac |
4472 | elif test "$with_gnu_ld" = yes; then | |
4473 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4474 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4475 | else | |
4476 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4477 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4478 | fi | |
4479 | if test "${lt_cv_path_LD+set}" = set; then | |
4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4481 | else | |
4482 | if test -z "$LD"; then | |
d7040cdb | 4483 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
cfbc9945 | 4484 | for ac_dir in $PATH; do |
d7040cdb | 4485 | IFS="$lt_save_ifs" |
cfbc9945 SE |
4486 | test -z "$ac_dir" && ac_dir=. |
4487 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4488 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4489 | # Check to see if the program is GNU ld. I'd rather use --version, | |
d7040cdb | 4490 | # but apparently some variants of GNU ld only accept -v. |
cfbc9945 | 4491 | # Break only if it was the GNU/non-GNU ld that we prefer. |
d7040cdb SE |
4492 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4493 | *GNU* | *'with BFD'*) | |
cfbc9945 | 4494 | test "$with_gnu_ld" != no && break |
d7040cdb SE |
4495 | ;; |
4496 | *) | |
cfbc9945 | 4497 | test "$with_gnu_ld" != yes && break |
d7040cdb SE |
4498 | ;; |
4499 | esac | |
cfbc9945 SE |
4500 | fi |
4501 | done | |
d7040cdb | 4502 | IFS="$lt_save_ifs" |
cfbc9945 SE |
4503 | else |
4504 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9e9b66a9 | 4505 | fi |
1ad12f97 NC |
4506 | fi |
4507 | ||
cfbc9945 SE |
4508 | LD="$lt_cv_path_LD" |
4509 | if test -n "$LD"; then | |
4510 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4511 | echo "${ECHO_T}$LD" >&6 | |
4512 | else | |
4513 | echo "$as_me:$LINENO: result: no" >&5 | |
4514 | echo "${ECHO_T}no" >&6 | |
4515 | fi | |
4516 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4517 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4518 | { (exit 1); exit 1; }; } | |
4519 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4520 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4521 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4523 | else | |
d7040cdb SE |
4524 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4525 | case `$LD -v 2>&1 </dev/null` in | |
4526 | *GNU* | *'with BFD'*) | |
cfbc9945 | 4527 | lt_cv_prog_gnu_ld=yes |
d7040cdb SE |
4528 | ;; |
4529 | *) | |
cfbc9945 | 4530 | lt_cv_prog_gnu_ld=no |
d7040cdb SE |
4531 | ;; |
4532 | esac | |
49c96104 | 4533 | fi |
cfbc9945 SE |
4534 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4535 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4536 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
49c96104 | 4537 | |
9e9b66a9 | 4538 | |
cfbc9945 | 4539 | |
d7040cdb SE |
4540 | |
4541 | ||
4542 | ||
4543 | ||
4544 | ||
4545 | ||
4546 | ||
4547 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4548 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
cfbc9945 SE |
4549 | if test "${lt_cv_path_NM+set}" = set; then |
4550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4551 | else | |
4552 | if test -n "$NM"; then | |
4553 | # Let the user override the test. | |
4554 | lt_cv_path_NM="$NM" | |
4555 | else | |
d7040cdb SE |
4556 | lt_nm_to_check="${ac_tool_prefix}nm" |
4557 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4558 | lt_nm_to_check="$lt_nm_to_check nm" | |
4559 | fi | |
4560 | for lt_tmp_nm in $lt_nm_to_check; do | |
4561 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4562 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4563 | IFS="$lt_save_ifs" | |
4564 | test -z "$ac_dir" && ac_dir=. | |
4565 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4566 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4567 | # Check to see if the nm accepts a BSD-compat flag. | |
4568 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4569 | # nm: unknown option "B" ignored | |
4570 | # Tru64's nm complains that /dev/null is an invalid object file | |
4571 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4572 | */dev/null* | *'Invalid file or object type'*) | |
4573 | lt_cv_path_NM="$tmp_nm -B" | |
4574 | break | |
4575 | ;; | |
4576 | *) | |
4577 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4578 | */dev/null*) | |
4579 | lt_cv_path_NM="$tmp_nm -p" | |
4580 | break | |
4581 | ;; | |
4582 | *) | |
4583 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4584 | continue # so that we can try to find one that supports BSD flags | |
4585 | ;; | |
4586 | esac | |
4587 | ;; | |
4588 | esac | |
cfbc9945 | 4589 | fi |
d7040cdb SE |
4590 | done |
4591 | IFS="$lt_save_ifs" | |
cfbc9945 | 4592 | done |
d7040cdb | 4593 | : ${lt_cv_path_NM=no} |
cfbc9945 | 4594 | fi |
a2d91340 | 4595 | fi |
d7040cdb SE |
4596 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4597 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4598 | if test "$lt_cv_path_NM" != "no"; then | |
4599 | NM="$lt_cv_path_NM" | |
cfbc9945 | 4600 | else |
d7040cdb SE |
4601 | # Didn't find any BSD compatible name lister, look for dumpbin. |
4602 | if test -n "$ac_tool_prefix"; then | |
4603 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4604 | do | |
4605 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4606 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4609 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
cfbc9945 | 4610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 4611 | else |
d7040cdb SE |
4612 | if test -n "$DUMPBIN"; then |
4613 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4614 | else | |
4615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4616 | for as_dir in $PATH | |
4617 | do | |
4618 | IFS=$as_save_IFS | |
4619 | test -z "$as_dir" && as_dir=. | |
4620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4622 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4624 | break 2 | |
4625 | fi | |
4626 | done | |
4627 | done | |
5464f5a1 | 4628 | |
d7040cdb SE |
4629 | fi |
4630 | fi | |
4631 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4632 | if test -n "$DUMPBIN"; then | |
4633 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4634 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4635 | else | |
4636 | echo "$as_me:$LINENO: result: no" >&5 | |
4637 | echo "${ECHO_T}no" >&6 | |
4638 | fi | |
d5fbea21 | 4639 | |
d7040cdb SE |
4640 | test -n "$DUMPBIN" && break |
4641 | done | |
4642 | fi | |
4643 | if test -z "$DUMPBIN"; then | |
4644 | ac_ct_DUMPBIN=$DUMPBIN | |
4645 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4646 | do | |
4647 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4648 | set dummy $ac_prog; ac_word=$2 | |
4649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4651 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4653 | else | |
4654 | if test -n "$ac_ct_DUMPBIN"; then | |
4655 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4656 | else | |
4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4658 | for as_dir in $PATH | |
4659 | do | |
4660 | IFS=$as_save_IFS | |
4661 | test -z "$as_dir" && as_dir=. | |
4662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4664 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4666 | break 2 | |
cfbc9945 | 4667 | fi |
d7040cdb SE |
4668 | done |
4669 | done | |
d5fbea21 | 4670 | |
d7040cdb SE |
4671 | fi |
4672 | fi | |
4673 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4674 | if test -n "$ac_ct_DUMPBIN"; then | |
4675 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4676 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4677 | else | |
4678 | echo "$as_me:$LINENO: result: no" >&5 | |
4679 | echo "${ECHO_T}no" >&6 | |
4680 | fi | |
d5fbea21 | 4681 | |
d7040cdb SE |
4682 | test -n "$ac_ct_DUMPBIN" && break |
4683 | done | |
4684 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
24443139 | 4685 | |
d7040cdb SE |
4686 | DUMPBIN=$ac_ct_DUMPBIN |
4687 | fi | |
24443139 | 4688 | |
24443139 | 4689 | |
d7040cdb SE |
4690 | if test "$DUMPBIN" != ":"; then |
4691 | NM="$DUMPBIN" | |
cfbc9945 | 4692 | fi |
d7040cdb SE |
4693 | fi |
4694 | test -z "$NM" && NM=nm | |
a703a6ea | 4695 | |
f5385ebf | 4696 | |
cfbc9945 | 4697 | |
24443139 AS |
4698 | |
4699 | ||
4700 | ||
d7040cdb SE |
4701 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4702 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4703 | if test "${lt_cv_nm_interface+set}" = set; then | |
4704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4705 | else | |
4706 | lt_cv_nm_interface="BSD nm" | |
4707 | echo "int some_variable = 0;" > conftest.$ac_ext | |
7a283e07 | 4708 | (eval echo "\"\$as_me:4708: $ac_compile\"" >&5) |
d7040cdb SE |
4709 | (eval "$ac_compile" 2>conftest.err) |
4710 | cat conftest.err >&5 | |
7a283e07 | 4711 | (eval echo "\"\$as_me:4711: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
d7040cdb SE |
4712 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4713 | cat conftest.err >&5 | |
7a283e07 | 4714 | (eval echo "\"\$as_me:4714: output\"" >&5) |
d7040cdb SE |
4715 | cat conftest.out >&5 |
4716 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4717 | lt_cv_nm_interface="MS dumpbin" | |
4718 | fi | |
4719 | rm -f conftest* | |
cfbc9945 | 4720 | fi |
d7040cdb SE |
4721 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
4722 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
a703a6ea | 4723 | |
d7040cdb SE |
4724 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4725 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4726 | LN_S=$as_ln_s | |
4727 | if test "$LN_S" = "ln -s"; then | |
4728 | echo "$as_me:$LINENO: result: yes" >&5 | |
4729 | echo "${ECHO_T}yes" >&6 | |
4730 | else | |
4731 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4732 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4733 | fi | |
252b5132 | 4734 | |
cfbc9945 SE |
4735 | # find the maximum length of command line arguments |
4736 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4737 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4738 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4740 | else | |
4741 | i=0 | |
4742 | teststring="ABCD" | |
5464f5a1 | 4743 | |
cfbc9945 SE |
4744 | case $build_os in |
4745 | msdosdjgpp*) | |
4746 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4747 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4748 | # during glob expansion). Even if it were fixed, the result of this | |
4749 | # check would be larger than it should be. | |
4750 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4751 | ;; | |
5464f5a1 | 4752 | |
d7040cdb SE |
4753 | gnu*) |
4754 | # Under GNU Hurd, this test is not required because there is | |
4755 | # no limit to the length of command line arguments. | |
4756 | # Libtool will interpret -1 as no limit whatsoever | |
4757 | lt_cv_sys_max_cmd_len=-1; | |
4758 | ;; | |
4759 | ||
cfbc9945 SE |
4760 | cygwin* | mingw*) |
4761 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4762 | # about 5 minutes as the teststring grows exponentially. | |
4763 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4764 | # you end up with a "frozen" computer, even though with patience | |
4765 | # the test eventually succeeds (with a max line length of 256k). | |
4766 | # Instead, let's just punt: use the minimum linelength reported by | |
4767 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4768 | lt_cv_sys_max_cmd_len=8192; | |
4769 | ;; | |
5464f5a1 | 4770 | |
cfbc9945 SE |
4771 | amigaos*) |
4772 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4773 | # So we just punt and use a minimum line length of 8192. | |
4774 | lt_cv_sys_max_cmd_len=8192; | |
4775 | ;; | |
5464f5a1 | 4776 | |
cfbc9945 SE |
4777 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4778 | # This has been around since 386BSD, at least. Likely further. | |
4779 | if test -x /sbin/sysctl; then | |
4780 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4781 | elif test -x /usr/sbin/sysctl; then | |
4782 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4783 | else | |
d7040cdb | 4784 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
cfbc9945 SE |
4785 | fi |
4786 | # And add a safety zone | |
4787 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4788 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4789 | ;; | |
d7040cdb SE |
4790 | |
4791 | interix*) | |
4792 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4793 | lt_cv_sys_max_cmd_len=196608 | |
4794 | ;; | |
4795 | ||
4796 | osf*) | |
4797 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4798 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4799 | # nice to cause kernel panics so lets avoid the loop below. | |
4800 | # First set a reasonable default. | |
4801 | lt_cv_sys_max_cmd_len=16384 | |
4802 | # | |
4803 | if test -x /sbin/sysconfig; then | |
4804 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4805 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4806 | esac | |
4807 | fi | |
4808 | ;; | |
4809 | sco3.2v5*) | |
4810 | lt_cv_sys_max_cmd_len=102400 | |
4811 | ;; | |
4812 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4813 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4814 | if test -n "$kargmax"; then | |
4815 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4816 | else | |
4817 | lt_cv_sys_max_cmd_len=32768 | |
4818 | fi | |
4819 | ;; | |
4820 | *) | |
79887925 L |
4821 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
4822 | if test -n $lt_cv_sys_max_cmd_len; then | |
4823 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4824 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4825 | else | |
4826 | # Make teststring a little bigger before we do anything with it. | |
4827 | # a 1K string should be a reasonable start. | |
4828 | for i in 1 2 3 4 5 6 7 8 ; do | |
4829 | teststring=$teststring$teststring | |
4830 | done | |
4831 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4832 | # If test is not a shell built-in, we'll probably end up computing a | |
4833 | # maximum length that is only half of the actual maximum length, but | |
4834 | # we can't tell. | |
4835 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4836 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4837 | test $i != 17 # 1/2 MB should be enough | |
4838 | do | |
4839 | i=`expr $i + 1` | |
4840 | teststring=$teststring$teststring | |
4841 | done | |
4842 | # Only check the string length outside the loop. | |
4843 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4844 | teststring= | |
4845 | # Add a significant safety factor because C++ compilers can tack on | |
4846 | # massive amounts of additional arguments before passing them to the | |
4847 | # linker. It appears as though 1/2 is a usable value. | |
4848 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4849 | fi | |
d7040cdb | 4850 | ;; |
cfbc9945 | 4851 | esac |
5464f5a1 | 4852 | |
252b5132 | 4853 | fi |
cfbc9945 | 4854 | |
d7040cdb | 4855 | if test -n $lt_cv_sys_max_cmd_len ; then |
cfbc9945 SE |
4856 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
4857 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5464f5a1 | 4858 | else |
cfbc9945 SE |
4859 | echo "$as_me:$LINENO: result: none" >&5 |
4860 | echo "${ECHO_T}none" >&6 | |
5464f5a1 | 4861 | fi |
d7040cdb | 4862 | max_cmd_len=$lt_cv_sys_max_cmd_len |
252b5132 | 4863 | |
cfbc9945 | 4864 | |
252b5132 | 4865 | |
cfbc9945 | 4866 | |
cfbc9945 | 4867 | |
d7040cdb SE |
4868 | |
4869 | ||
4870 | : ${CP="cp -f"} | |
4871 | : ${MV="mv -f"} | |
4872 | : ${RM="rm -f"} | |
4873 | ||
4874 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4875 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4876 | # Try some XSI features | |
4877 | xsi_shell=no | |
4878 | ( _lt_dummy="a/b/c" | |
4879 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4880 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4881 | && xsi_shell=yes | |
4882 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4883 | echo "${ECHO_T}$xsi_shell" >&6 | |
4884 | ||
4885 | ||
4886 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4887 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4888 | lt_shell_append=no | |
4889 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4890 | >/dev/null 2>&1 \ | |
4891 | && lt_shell_append=yes | |
4892 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4893 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4894 | ||
4895 | ||
4896 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4897 | lt_unset=unset | |
5464f5a1 | 4898 | else |
d7040cdb | 4899 | lt_unset=false |
5464f5a1 | 4900 | fi |
252b5132 | 4901 | |
d7040cdb SE |
4902 | |
4903 | ||
4904 | ||
4905 | ||
4906 | # test EBCDIC or ASCII | |
4907 | case `echo X|tr X '\101'` in | |
4908 | A) # ASCII based system | |
4909 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4910 | lt_SP2NL='tr \040 \012' | |
4911 | lt_NL2SP='tr \015\012 \040\040' | |
4912 | ;; | |
4913 | *) # EBCDIC based system | |
4914 | lt_SP2NL='tr \100 \n' | |
4915 | lt_NL2SP='tr \r\n \100\100' | |
4916 | ;; | |
4917 | esac | |
4918 | ||
4919 | ||
4920 | ||
4921 | ||
4922 | ||
4923 | ||
4924 | ||
4925 | ||
4926 | ||
4927 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4928 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4929 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5464f5a1 NN |
4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4931 | else | |
d7040cdb SE |
4932 | lt_cv_ld_reload_flag='-r' |
4933 | fi | |
4934 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4935 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4936 | reload_flag=$lt_cv_ld_reload_flag | |
4937 | case $reload_flag in | |
4938 | "" | " "*) ;; | |
4939 | *) reload_flag=" $reload_flag" ;; | |
4940 | esac | |
4941 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4942 | case $host_os in | |
4943 | darwin*) | |
4944 | if test "$GCC" = yes; then | |
4945 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4946 | else | |
4947 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4948 | fi | |
4949 | ;; | |
4950 | esac | |
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4962 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
4963 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4965 | else | |
4966 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4967 | lt_cv_file_magic_test_file= | |
4968 | lt_cv_deplibs_check_method='unknown' | |
4969 | # Need to set the preceding variable on all platforms that support | |
4970 | # interlibrary dependencies. | |
4971 | # 'none' -- dependencies not supported. | |
4972 | # `unknown' -- same as none, but documents that we really don't know. | |
4973 | # 'pass_all' -- all dependencies passed with no checks. | |
4974 | # 'test_compile' -- check by making test program. | |
4975 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4976 | # which responds to the $file_magic_cmd with a given extended regex. | |
4977 | # If you have `file' or equivalent on your system and you're not sure | |
4978 | # whether `pass_all' will *always* work, you probably want this one. | |
4979 | ||
4980 | case $host_os in | |
e81819a5 | 4981 | aix[4-9]*) |
d7040cdb SE |
4982 | lt_cv_deplibs_check_method=pass_all |
4983 | ;; | |
4984 | ||
4985 | beos*) | |
4986 | lt_cv_deplibs_check_method=pass_all | |
4987 | ;; | |
4988 | ||
4989 | bsdi[45]*) | |
4990 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4991 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4992 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4993 | ;; | |
4994 | ||
4995 | cygwin*) | |
4996 | # func_win32_libid is a shell function defined in ltmain.sh | |
4997 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4998 | lt_cv_file_magic_cmd='func_win32_libid' | |
4999 | ;; | |
5000 | ||
5001 | mingw* | pw32*) | |
5002 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5003 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5004 | # unless we find 'file', for example because we are cross-compiling. | |
5005 | if ( file / ) >/dev/null 2>&1; then | |
5006 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5007 | lt_cv_file_magic_cmd='func_win32_libid' | |
5008 | else | |
5009 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5010 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5011 | fi | |
5012 | ;; | |
5013 | ||
5014 | darwin* | rhapsody*) | |
5015 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5016 | ;; |
d7040cdb SE |
5017 | |
5018 | freebsd* | dragonfly*) | |
5019 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5020 | case $host_cpu in | |
5021 | i*86 ) | |
5022 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5023 | # Let's accept both of them until this is cleared up. | |
5024 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5025 | lt_cv_file_magic_cmd=/usr/bin/file | |
5026 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5027 | ;; | |
5028 | esac | |
5029 | else | |
5030 | lt_cv_deplibs_check_method=pass_all | |
5031 | fi | |
5032 | ;; | |
5033 | ||
5034 | gnu*) | |
5035 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5036 | ;; |
d7040cdb SE |
5037 | |
5038 | hpux10.20* | hpux11*) | |
5039 | lt_cv_file_magic_cmd=/usr/bin/file | |
5040 | case $host_cpu in | |
5041 | ia64*) | |
5042 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5043 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5044 | ;; | |
5045 | hppa*64*) | |
5046 | 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]' | |
5047 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5048 | ;; | |
cfbc9945 | 5049 | *) |
d7040cdb SE |
5050 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5051 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5052 | ;; | |
5053 | esac | |
5054 | ;; | |
6be7c12c | 5055 | |
d7040cdb SE |
5056 | interix[3-9]*) |
5057 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5058 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5059 | ;; | |
cfbc9945 | 5060 | |
d7040cdb SE |
5061 | irix5* | irix6* | nonstopux*) |
5062 | case $LD in | |
5063 | *-32|*"-32 ") libmagic=32-bit;; | |
5064 | *-n32|*"-n32 ") libmagic=N32;; | |
5065 | *-64|*"-64 ") libmagic=64-bit;; | |
5066 | *) libmagic=never-match;; | |
5067 | esac | |
5068 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5069 | ;; |
cfbc9945 | 5070 | |
d7040cdb SE |
5071 | # This must be Linux ELF. |
5072 | linux* | k*bsd*-gnu) | |
5073 | lt_cv_deplibs_check_method=pass_all | |
5074 | ;; | |
5464f5a1 | 5075 | |
d7040cdb SE |
5076 | netbsd*) |
5077 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5078 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 | 5079 | else |
d7040cdb | 5080 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
cfbc9945 | 5081 | fi |
d7040cdb SE |
5082 | ;; |
5083 | ||
5084 | newos6*) | |
5085 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5086 | lt_cv_file_magic_cmd=/usr/bin/file | |
5087 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5088 | ;; | |
5089 | ||
5090 | *nto* | *qnx*) | |
5091 | lt_cv_deplibs_check_method=pass_all | |
5092 | ;; | |
cfbc9945 | 5093 | |
d7040cdb SE |
5094 | openbsd*) |
5095 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5096 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5097 | else | |
5098 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 SE |
5099 | fi |
5100 | ;; | |
d7040cdb SE |
5101 | |
5102 | osf3* | osf4* | osf5*) | |
5103 | lt_cv_deplibs_check_method=pass_all | |
5104 | ;; | |
5105 | ||
5106 | rdos*) | |
5107 | lt_cv_deplibs_check_method=pass_all | |
5108 | ;; | |
5109 | ||
5110 | solaris*) | |
5111 | lt_cv_deplibs_check_method=pass_all | |
5112 | ;; | |
5113 | ||
5114 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5115 | lt_cv_deplibs_check_method=pass_all | |
5116 | ;; | |
5117 | ||
5118 | sysv4 | sysv4.3*) | |
5119 | case $host_vendor in | |
5120 | motorola) | |
5121 | 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]' | |
5122 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5123 | ;; | |
5124 | ncr) | |
5125 | lt_cv_deplibs_check_method=pass_all | |
5126 | ;; | |
5127 | sequent) | |
5128 | lt_cv_file_magic_cmd='/bin/file' | |
5129 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5130 | ;; | |
5131 | sni) | |
5132 | lt_cv_file_magic_cmd='/bin/file' | |
5133 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5134 | lt_cv_file_magic_test_file=/lib/libc.so | |
5135 | ;; | |
5136 | siemens) | |
5137 | lt_cv_deplibs_check_method=pass_all | |
5138 | ;; | |
5139 | pc) | |
5140 | lt_cv_deplibs_check_method=pass_all | |
5141 | ;; | |
5142 | esac | |
5143 | ;; | |
5144 | ||
5145 | tpf*) | |
5146 | lt_cv_deplibs_check_method=pass_all | |
5147 | ;; | |
cfbc9945 SE |
5148 | esac |
5149 | ||
d7040cdb SE |
5150 | fi |
5151 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5152 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
5153 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5154 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5155 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5156 | ||
5157 | ||
5158 | ||
5159 | ||
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | ||
5167 | ||
cfbc9945 | 5168 | if test -n "$ac_tool_prefix"; then |
d7040cdb SE |
5169 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5170 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5464f5a1 NN |
5171 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 5173 | if test "${ac_cv_prog_AR+set}" = set; then |
5464f5a1 NN |
5174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5175 | else | |
d7040cdb SE |
5176 | if test -n "$AR"; then |
5177 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5464f5a1 NN |
5178 | else |
5179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5180 | for as_dir in $PATH | |
5181 | do | |
5182 | IFS=$as_save_IFS | |
5183 | test -z "$as_dir" && as_dir=. | |
5184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 5186 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5464f5a1 NN |
5187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5188 | break 2 | |
5189 | fi | |
5190 | done | |
5191 | done | |
5192 | ||
5193 | fi | |
5194 | fi | |
d7040cdb SE |
5195 | AR=$ac_cv_prog_AR |
5196 | if test -n "$AR"; then | |
5197 | echo "$as_me:$LINENO: result: $AR" >&5 | |
5198 | echo "${ECHO_T}$AR" >&6 | |
5464f5a1 NN |
5199 | else |
5200 | echo "$as_me:$LINENO: result: no" >&5 | |
5201 | echo "${ECHO_T}no" >&6 | |
5202 | fi | |
5203 | ||
5464f5a1 | 5204 | fi |
d7040cdb SE |
5205 | if test -z "$ac_cv_prog_AR"; then |
5206 | ac_ct_AR=$AR | |
5207 | # Extract the first word of "ar", so it can be a program name with args. | |
5208 | set dummy ar; ac_word=$2 | |
5464f5a1 NN |
5209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 5211 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5464f5a1 | 5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 5213 | else |
d7040cdb SE |
5214 | if test -n "$ac_ct_AR"; then |
5215 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
252b5132 | 5216 | else |
5464f5a1 NN |
5217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5218 | for as_dir in $PATH | |
5219 | do | |
5220 | IFS=$as_save_IFS | |
5221 | test -z "$as_dir" && as_dir=. | |
5222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 5224 | ac_cv_prog_ac_ct_AR="ar" |
5464f5a1 NN |
5225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5226 | break 2 | |
5227 | fi | |
5228 | done | |
5229 | done | |
5230 | ||
d7040cdb | 5231 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
5464f5a1 NN |
5232 | fi |
5233 | fi | |
d7040cdb SE |
5234 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5235 | if test -n "$ac_ct_AR"; then | |
5236 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5237 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
5238 | else | |
5239 | echo "$as_me:$LINENO: result: no" >&5 | |
5464f5a1 NN |
5240 | echo "${ECHO_T}no" >&6 |
5241 | fi | |
5242 | ||
d7040cdb | 5243 | AR=$ac_ct_AR |
cfbc9945 | 5244 | else |
d7040cdb | 5245 | AR="$ac_cv_prog_AR" |
5464f5a1 | 5246 | fi |
cfbc9945 | 5247 | |
d7040cdb SE |
5248 | test -z "$AR" && AR=ar |
5249 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | ||
cfbc9945 SE |
5261 | if test -n "$ac_tool_prefix"; then |
5262 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5263 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5464f5a1 NN |
5264 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
cfbc9945 | 5266 | if test "${ac_cv_prog_STRIP+set}" = set; then |
5464f5a1 NN |
5267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5268 | else | |
cfbc9945 SE |
5269 | if test -n "$STRIP"; then |
5270 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5464f5a1 NN |
5271 | else |
5272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5273 | for as_dir in $PATH | |
5274 | do | |
5275 | IFS=$as_save_IFS | |
5276 | test -z "$as_dir" && as_dir=. | |
5277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cfbc9945 | 5279 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5464f5a1 NN |
5280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5281 | break 2 | |
5282 | fi | |
5283 | done | |
5284 | done | |
5285 | ||
5286 | fi | |
5287 | fi | |
cfbc9945 SE |
5288 | STRIP=$ac_cv_prog_STRIP |
5289 | if test -n "$STRIP"; then | |
5290 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5291 | echo "${ECHO_T}$STRIP" >&6 | |
5464f5a1 NN |
5292 | else |
5293 | echo "$as_me:$LINENO: result: no" >&5 | |
5294 | echo "${ECHO_T}no" >&6 | |
5295 | fi | |
5296 | ||
252b5132 | 5297 | fi |
cfbc9945 SE |
5298 | if test -z "$ac_cv_prog_STRIP"; then |
5299 | ac_ct_STRIP=$STRIP | |
5300 | # Extract the first word of "strip", so it can be a program name with args. | |
5301 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
5302 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
cfbc9945 | 5304 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5464f5a1 NN |
5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5306 | else | |
cfbc9945 SE |
5307 | if test -n "$ac_ct_STRIP"; then |
5308 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5464f5a1 NN |
5309 | else |
5310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5311 | for as_dir in $PATH | |
5312 | do | |
5313 | IFS=$as_save_IFS | |
5314 | test -z "$as_dir" && as_dir=. | |
5315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cfbc9945 | 5317 | ac_cv_prog_ac_ct_STRIP="strip" |
5464f5a1 NN |
5318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5319 | break 2 | |
5320 | fi | |
5321 | done | |
5322 | done | |
5323 | ||
cfbc9945 | 5324 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
5464f5a1 NN |
5325 | fi |
5326 | fi | |
cfbc9945 SE |
5327 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5328 | if test -n "$ac_ct_STRIP"; then | |
5329 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5330 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5464f5a1 NN |
5331 | else |
5332 | echo "$as_me:$LINENO: result: no" >&5 | |
5333 | echo "${ECHO_T}no" >&6 | |
5334 | fi | |
5335 | ||
cfbc9945 SE |
5336 | STRIP=$ac_ct_STRIP |
5337 | else | |
5338 | STRIP="$ac_cv_prog_STRIP" | |
5464f5a1 NN |
5339 | fi |
5340 | ||
d7040cdb | 5341 | test -z "$STRIP" && STRIP=: |
5464f5a1 | 5342 | |
cfbc9945 SE |
5343 | |
5344 | ||
cfbc9945 | 5345 | |
cfbc9945 SE |
5346 | |
5347 | ||
d7040cdb SE |
5348 | if test -n "$ac_tool_prefix"; then |
5349 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5350 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5353 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cfbc9945 | 5355 | else |
d7040cdb SE |
5356 | if test -n "$RANLIB"; then |
5357 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5358 | else | |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5360 | for as_dir in $PATH | |
5361 | do | |
5362 | IFS=$as_save_IFS | |
5363 | test -z "$as_dir" && as_dir=. | |
5364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5366 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5368 | break 2 | |
cfbc9945 | 5369 | fi |
d7040cdb SE |
5370 | done |
5371 | done | |
cfbc9945 | 5372 | |
d7040cdb SE |
5373 | fi |
5374 | fi | |
5375 | RANLIB=$ac_cv_prog_RANLIB | |
5376 | if test -n "$RANLIB"; then | |
5377 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5378 | echo "${ECHO_T}$RANLIB" >&6 | |
5379 | else | |
5380 | echo "$as_me:$LINENO: result: no" >&5 | |
5381 | echo "${ECHO_T}no" >&6 | |
5382 | fi | |
cfbc9945 | 5383 | |
d7040cdb SE |
5384 | fi |
5385 | if test -z "$ac_cv_prog_RANLIB"; then | |
5386 | ac_ct_RANLIB=$RANLIB | |
5387 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5388 | set dummy ranlib; ac_word=$2 | |
5389 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5391 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5393 | else | |
5394 | if test -n "$ac_ct_RANLIB"; then | |
5395 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5396 | else | |
5397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5398 | for as_dir in $PATH | |
5399 | do | |
5400 | IFS=$as_save_IFS | |
5401 | test -z "$as_dir" && as_dir=. | |
5402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5403 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5404 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5406 | break 2 | |
cfbc9945 | 5407 | fi |
d7040cdb SE |
5408 | done |
5409 | done | |
cfbc9945 | 5410 | |
d7040cdb SE |
5411 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5412 | fi | |
5413 | fi | |
5414 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5415 | if test -n "$ac_ct_RANLIB"; then | |
5416 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5417 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
cfbc9945 | 5418 | else |
d7040cdb SE |
5419 | echo "$as_me:$LINENO: result: no" >&5 |
5420 | echo "${ECHO_T}no" >&6 | |
5421 | fi | |
5464f5a1 | 5422 | |
d7040cdb SE |
5423 | RANLIB=$ac_ct_RANLIB |
5424 | else | |
5425 | RANLIB="$ac_cv_prog_RANLIB" | |
5426 | fi | |
5464f5a1 | 5427 | |
d7040cdb | 5428 | test -z "$RANLIB" && RANLIB=: |
5464f5a1 | 5429 | |
5464f5a1 | 5430 | |
5464f5a1 | 5431 | |
cfbc9945 | 5432 | |
cfbc9945 | 5433 | |
d7040cdb SE |
5434 | |
5435 | # Determine commands to create old-style static archives. | |
5436 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5437 | old_postinstall_cmds='chmod 644 $oldlib' | |
5438 | old_postuninstall_cmds= | |
5439 | ||
5440 | if test -n "$RANLIB"; then | |
5441 | case $host_os in | |
5442 | openbsd*) | |
5443 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5444 | ;; | |
5445 | *) | |
5446 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5447 | ;; | |
5448 | esac | |
5449 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
cfbc9945 | 5450 | fi |
cfbc9945 SE |
5451 | |
5452 | ||
cfbc9945 SE |
5453 | |
5454 | ||
cfbc9945 | 5455 | |
cfbc9945 | 5456 | |
cfbc9945 | 5457 | |
cfbc9945 | 5458 | |
cfbc9945 SE |
5459 | |
5460 | ||
cfbc9945 | 5461 | |
cfbc9945 | 5462 | |
cfbc9945 SE |
5463 | |
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | ||
5469 | ||
5464f5a1 | 5470 | |
5464f5a1 | 5471 | |
cfbc9945 SE |
5472 | |
5473 | ||
5474 | ||
5464f5a1 | 5475 | |
5464f5a1 | 5476 | |
cfbc9945 SE |
5477 | |
5478 | ||
5479 | ||
5464f5a1 | 5480 | |
cfbc9945 SE |
5481 | |
5482 | ||
5483 | ||
5484 | ||
d7040cdb SE |
5485 | # If no C compiler was specified, use CC. |
5486 | LTCC=${LTCC-"$CC"} | |
cfbc9945 | 5487 | |
d7040cdb SE |
5488 | # If no C compiler flags were specified, use CFLAGS. |
5489 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
cfbc9945 | 5490 | |
d7040cdb SE |
5491 | # Allow CC to be a program name with arguments. |
5492 | compiler=$CC | |
cfbc9945 | 5493 | |
cfbc9945 | 5494 | |
d7040cdb SE |
5495 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5496 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5497 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5498 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5500 | else | |
5464f5a1 | 5501 | |
d7040cdb SE |
5502 | # These are sane defaults that work on at least a few old systems. |
5503 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5464f5a1 | 5504 | |
d7040cdb SE |
5505 | # Character class describing NM global symbol codes. |
5506 | symcode='[BCDEGRST]' | |
5507 | ||
5508 | # Regexp to match symbols that can be accessed directly from C. | |
5509 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5510 | ||
5511 | # Define system-specific variables. | |
5512 | case $host_os in | |
5513 | aix*) | |
5514 | symcode='[BCDT]' | |
5515 | ;; | |
5516 | cygwin* | mingw* | pw32*) | |
5517 | symcode='[ABCDGISTW]' | |
5518 | ;; | |
5519 | hpux*) | |
5520 | if test "$host_cpu" = ia64; then | |
5521 | symcode='[ABCDEGRST]' | |
5522 | fi | |
5523 | ;; | |
5524 | irix* | nonstopux*) | |
5525 | symcode='[BCDEGRST]' | |
5526 | ;; | |
5527 | osf*) | |
5528 | symcode='[BCDEGQRST]' | |
5529 | ;; | |
5530 | solaris*) | |
5531 | symcode='[BDRT]' | |
5532 | ;; | |
5533 | sco3.2v5*) | |
5534 | symcode='[DT]' | |
5535 | ;; | |
5536 | sysv4.2uw2*) | |
5537 | symcode='[DT]' | |
5538 | ;; | |
5539 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5540 | symcode='[ABDT]' | |
5541 | ;; | |
5542 | sysv4) | |
5543 | symcode='[DFNSTU]' | |
5544 | ;; | |
cfbc9945 | 5545 | esac |
5464f5a1 | 5546 | |
d7040cdb SE |
5547 | # If we're using GNU nm, then use its standard symbol codes. |
5548 | case `$NM -V 2>&1` in | |
5549 | *GNU* | *'with BFD'*) | |
5550 | symcode='[ABCDGIRSTW]' ;; | |
5551 | esac | |
5464f5a1 | 5552 | |
d7040cdb SE |
5553 | # Transform an extracted symbol line into a proper C declaration. |
5554 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5555 | # so use this general approach. | |
5556 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5464f5a1 | 5557 | |
d7040cdb SE |
5558 | # Transform an extracted symbol line into symbol name and symbol address |
5559 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5464f5a1 | 5560 | |
d7040cdb SE |
5561 | # Handle CRLF in mingw tool chain |
5562 | opt_cr= | |
5563 | case $build_os in | |
5564 | mingw*) | |
5565 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5566 | ;; | |
5567 | esac | |
5464f5a1 | 5568 | |
d7040cdb SE |
5569 | # Try without a prefix underscore, then with it. |
5570 | for ac_symprfx in "" "_"; do | |
5571 | ||
5572 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5573 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5574 | ||
5575 | # Write the raw and C identifiers. | |
5576 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5577 | # Fake it for dumpbin and say T for any non-static function | |
5578 | # and D for any global variable. | |
5579 | # Also find C++ and __fastcall symbols from MSVC++, | |
5580 | # which start with @ or ?. | |
5581 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5582 | " {last_section=section; section=\$ 3};"\ | |
5583 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5584 | " \$ 0!~/External *\|/{next};"\ | |
5585 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5586 | " {if(hide[section]) next};"\ | |
5587 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5588 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5589 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5590 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5591 | " ' prfx=^$ac_symprfx" | |
5592 | else | |
5593 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5594 | fi | |
cfbc9945 | 5595 | |
d7040cdb SE |
5596 | # Check to see that the pipe works correctly. |
5597 | pipe_works=no | |
cfbc9945 | 5598 | |
d7040cdb SE |
5599 | rm -f conftest* |
5600 | cat > conftest.$ac_ext <<_LT_EOF | |
5601 | #ifdef __cplusplus | |
5602 | extern "C" { | |
5603 | #endif | |
5604 | char nm_test_var; | |
5605 | void nm_test_func(void); | |
5606 | void nm_test_func(void){} | |
5607 | #ifdef __cplusplus | |
5608 | } | |
5609 | #endif | |
5610 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5611 | _LT_EOF | |
cfbc9945 | 5612 | |
d7040cdb SE |
5613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5614 | (eval $ac_compile) 2>&5 | |
5615 | ac_status=$? | |
5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5617 | (exit $ac_status); }; then | |
5618 | # Now try to grab the symbols. | |
5619 | nlist=conftest.nm | |
5620 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5621 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5622 | ac_status=$? | |
5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5624 | (exit $ac_status); } && test -s "$nlist"; then | |
5625 | # Try sorting and uniquifying the output. | |
5626 | if sort "$nlist" | uniq > "$nlist"T; then | |
5627 | mv -f "$nlist"T "$nlist" | |
5628 | else | |
5629 | rm -f "$nlist"T | |
5630 | fi | |
cfbc9945 | 5631 | |
d7040cdb SE |
5632 | # Make sure that we snagged all the symbols we need. |
5633 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5634 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5635 | cat <<_LT_EOF > conftest.$ac_ext | |
5636 | #ifdef __cplusplus | |
5637 | extern "C" { | |
5638 | #endif | |
cfbc9945 | 5639 | |
d7040cdb SE |
5640 | _LT_EOF |
5641 | # Now generate the symbol file. | |
5642 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5464f5a1 | 5643 | |
d7040cdb | 5644 | cat <<_LT_EOF >> conftest.$ac_ext |
cfbc9945 | 5645 | |
d7040cdb SE |
5646 | /* The mapping between symbol names and symbols. */ |
5647 | const struct { | |
5648 | const char *name; | |
5649 | void *address; | |
5650 | } | |
5651 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5652 | { | |
5653 | { "@PROGRAM@", (void *) 0 }, | |
5654 | _LT_EOF | |
5655 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5656 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5657 | {0, (void *) 0} | |
5658 | }; | |
5659 | ||
5660 | /* This works around a problem in FreeBSD linker */ | |
5661 | #ifdef FREEBSD_WORKAROUND | |
5662 | static const void *lt_preloaded_setup() { | |
5663 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5664 | } | |
5665 | #endif | |
cfbc9945 | 5666 | |
d7040cdb SE |
5667 | #ifdef __cplusplus |
5668 | } | |
5669 | #endif | |
5670 | _LT_EOF | |
5671 | # Now try linking the two files. | |
5672 | mv conftest.$ac_objext conftstm.$ac_objext | |
5673 | lt_save_LIBS="$LIBS" | |
5674 | lt_save_CFLAGS="$CFLAGS" | |
5675 | LIBS="conftstm.$ac_objext" | |
5676 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5678 | (eval $ac_link) 2>&5 | |
5679 | ac_status=$? | |
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5681 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5682 | pipe_works=yes | |
5683 | fi | |
5684 | LIBS="$lt_save_LIBS" | |
5685 | CFLAGS="$lt_save_CFLAGS" | |
5686 | else | |
5687 | echo "cannot find nm_test_func in $nlist" >&5 | |
5688 | fi | |
5689 | else | |
5690 | echo "cannot find nm_test_var in $nlist" >&5 | |
5691 | fi | |
5692 | else | |
5693 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5694 | fi | |
5695 | else | |
5696 | echo "$progname: failed program was:" >&5 | |
5697 | cat conftest.$ac_ext >&5 | |
5698 | fi | |
5699 | rm -f conftest* conftst* | |
cfbc9945 | 5700 | |
d7040cdb SE |
5701 | # Do not use the global_symbol_pipe unless it works. |
5702 | if test "$pipe_works" = yes; then | |
5703 | break | |
5704 | else | |
5705 | lt_cv_sys_global_symbol_pipe= | |
5706 | fi | |
5707 | done | |
cfbc9945 | 5708 | |
252b5132 | 5709 | fi |
5464f5a1 | 5710 | |
d7040cdb SE |
5711 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5712 | lt_cv_sys_global_symbol_to_cdecl= | |
5713 | fi | |
5714 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5715 | echo "$as_me:$LINENO: result: failed" >&5 | |
5716 | echo "${ECHO_T}failed" >&6 | |
b3baf5d0 | 5717 | else |
d7040cdb SE |
5718 | echo "$as_me:$LINENO: result: ok" >&5 |
5719 | echo "${ECHO_T}ok" >&6 | |
5720 | fi | |
5464f5a1 | 5721 | |
cfbc9945 | 5722 | |
b3baf5d0 | 5723 | |
cfbc9945 SE |
5724 | |
5725 | ||
5726 | ||
5727 | ||
5464f5a1 | 5728 | |
4a2a2686 HPN |
5729 | |
5730 | ||
5731 | ||
cfbc9945 SE |
5732 | |
5733 | ||
cfbc9945 | 5734 | |
cfbc9945 | 5735 | |
9d7cbccd | 5736 | |
20e95c23 | 5737 | |
d7040cdb SE |
5738 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5739 | if test "${enable_libtool_lock+set}" = set; then | |
5740 | enableval="$enable_libtool_lock" | |
20e95c23 | 5741 | |
d7040cdb SE |
5742 | fi; |
5743 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
20e95c23 | 5744 | |
d7040cdb SE |
5745 | # Some flags need to be propagated to the compiler or linker for good |
5746 | # libtool support. | |
5747 | case $host in | |
5748 | ia64-*-hpux*) | |
5749 | # Find out which ABI we are using. | |
5750 | echo 'int i;' > conftest.$ac_ext | |
5751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5752 | (eval $ac_compile) 2>&5 | |
5753 | ac_status=$? | |
5754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5755 | (exit $ac_status); }; then | |
5756 | case `/usr/bin/file conftest.$ac_objext` in | |
5757 | *ELF-32*) | |
5758 | HPUX_IA64_MODE="32" | |
5759 | ;; | |
5760 | *ELF-64*) | |
5761 | HPUX_IA64_MODE="64" | |
5762 | ;; | |
20e95c23 | 5763 | esac |
d7040cdb SE |
5764 | fi |
5765 | rm -rf conftest* | |
5766 | ;; | |
5767 | *-*-irix6*) | |
5768 | # Find out which ABI we are using. | |
7a283e07 | 5769 | echo '#line 5769 "configure"' > conftest.$ac_ext |
d7040cdb SE |
5770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5771 | (eval $ac_compile) 2>&5 | |
5772 | ac_status=$? | |
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5774 | (exit $ac_status); }; then | |
5775 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5776 | case `/usr/bin/file conftest.$ac_objext` in | |
5777 | *32-bit*) | |
5778 | LD="${LD-ld} -melf32bsmip" | |
5779 | ;; | |
5780 | *N32*) | |
5781 | LD="${LD-ld} -melf32bmipn32" | |
5782 | ;; | |
5783 | *64-bit*) | |
5784 | LD="${LD-ld} -melf64bmip" | |
5785 | ;; | |
5786 | esac | |
20e95c23 | 5787 | else |
d7040cdb SE |
5788 | case `/usr/bin/file conftest.$ac_objext` in |
5789 | *32-bit*) | |
5790 | LD="${LD-ld} -32" | |
5791 | ;; | |
5792 | *N32*) | |
5793 | LD="${LD-ld} -n32" | |
5794 | ;; | |
5795 | *64-bit*) | |
5796 | LD="${LD-ld} -64" | |
5797 | ;; | |
20e95c23 DJ |
5798 | esac |
5799 | fi | |
d7040cdb SE |
5800 | fi |
5801 | rm -rf conftest* | |
5802 | ;; | |
20e95c23 | 5803 | |
d7040cdb SE |
5804 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5805 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5806 | # Find out which ABI we are using. | |
5807 | echo 'int i;' > conftest.$ac_ext | |
5808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5809 | (eval $ac_compile) 2>&5 | |
5810 | ac_status=$? | |
5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5812 | (exit $ac_status); }; then | |
5813 | case `/usr/bin/file conftest.o` in | |
5814 | *32-bit*) | |
5815 | case $host in | |
5816 | x86_64-*kfreebsd*-gnu) | |
5817 | LD="${LD-ld} -m elf_i386_fbsd" | |
5818 | ;; | |
5819 | x86_64-*linux*) | |
5820 | LD="${LD-ld} -m elf_i386" | |
5821 | ;; | |
5822 | ppc64-*linux*|powerpc64-*linux*) | |
5823 | LD="${LD-ld} -m elf32ppclinux" | |
5824 | ;; | |
5825 | s390x-*linux*) | |
5826 | LD="${LD-ld} -m elf_s390" | |
5827 | ;; | |
5828 | sparc64-*linux*) | |
5829 | LD="${LD-ld} -m elf32_sparc" | |
5830 | ;; | |
5831 | esac | |
5832 | ;; | |
5833 | *64-bit*) | |
5834 | case $host in | |
5835 | x86_64-*kfreebsd*-gnu) | |
5836 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5837 | ;; | |
5838 | x86_64-*linux*) | |
5839 | LD="${LD-ld} -m elf_x86_64" | |
5840 | ;; | |
5841 | ppc*-*linux*|powerpc*-*linux*) | |
5842 | LD="${LD-ld} -m elf64ppc" | |
5843 | ;; | |
5844 | s390*-*linux*|s390*-*tpf*) | |
5845 | LD="${LD-ld} -m elf64_s390" | |
5846 | ;; | |
5847 | sparc*-*linux*) | |
5848 | LD="${LD-ld} -m elf64_sparc" | |
5849 | ;; | |
5850 | esac | |
5851 | ;; | |
20e95c23 DJ |
5852 | esac |
5853 | fi | |
d7040cdb SE |
5854 | rm -rf conftest* |
5855 | ;; | |
20e95c23 | 5856 | |
d7040cdb SE |
5857 | *-*-sco3.2v5*) |
5858 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5859 | SAVE_CFLAGS="$CFLAGS" | |
5860 | CFLAGS="$CFLAGS -belf" | |
5861 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5862 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5863 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5865 | else |
d7040cdb SE |
5866 | ac_ext=c |
5867 | ac_cpp='$CPP $CPPFLAGS' | |
5868 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5869 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5870 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 5871 | |
d7040cdb SE |
5872 | cat >conftest.$ac_ext <<_ACEOF |
5873 | /* confdefs.h. */ | |
5874 | _ACEOF | |
5875 | cat confdefs.h >>conftest.$ac_ext | |
5876 | cat >>conftest.$ac_ext <<_ACEOF | |
5877 | /* end confdefs.h. */ | |
20e95c23 | 5878 | |
d7040cdb SE |
5879 | int |
5880 | main () | |
5881 | { | |
20e95c23 | 5882 | |
d7040cdb SE |
5883 | ; |
5884 | return 0; | |
5885 | } | |
5886 | _ACEOF | |
5887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5889 | (eval $ac_link) 2>conftest.er1 | |
5890 | ac_status=$? | |
5891 | grep -v '^ *+' conftest.er1 >conftest.err | |
5892 | rm -f conftest.er1 | |
5893 | cat conftest.err >&5 | |
5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5895 | (exit $ac_status); } && | |
5896 | { ac_try='test -z "$ac_c_werror_flag" | |
5897 | || test ! -s conftest.err' | |
5898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5899 | (eval $ac_try) 2>&5 | |
5900 | ac_status=$? | |
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5902 | (exit $ac_status); }; } && | |
5903 | { ac_try='test -s conftest$ac_exeext' | |
5904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5905 | (eval $ac_try) 2>&5 | |
5906 | ac_status=$? | |
5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5908 | (exit $ac_status); }; }; then | |
5909 | lt_cv_cc_needs_belf=yes | |
5910 | else | |
5911 | echo "$as_me: failed program was:" >&5 | |
5912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5913 | ||
5914 | lt_cv_cc_needs_belf=no | |
5915 | fi | |
5916 | rm -f conftest.err conftest.$ac_objext \ | |
5917 | conftest$ac_exeext conftest.$ac_ext | |
5918 | ac_ext=c | |
5919 | ac_cpp='$CPP $CPPFLAGS' | |
5920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5923 | ||
5924 | fi | |
5925 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5926 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
5927 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5928 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5929 | CFLAGS="$SAVE_CFLAGS" | |
5930 | fi | |
5931 | ;; | |
5932 | sparc*-*solaris*) | |
5933 | # Find out which ABI we are using. | |
5934 | echo 'int i;' > conftest.$ac_ext | |
5935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5936 | (eval $ac_compile) 2>&5 | |
5937 | ac_status=$? | |
5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5939 | (exit $ac_status); }; then | |
5940 | case `/usr/bin/file conftest.o` in | |
5941 | *64-bit*) | |
5942 | case $lt_cv_prog_gnu_ld in | |
5943 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5944 | *) LD="${LD-ld} -64" ;; | |
5945 | esac | |
5946 | ;; | |
5947 | esac | |
5948 | fi | |
5949 | rm -rf conftest* | |
5950 | ;; | |
5951 | esac | |
5952 | ||
5953 | need_locks="$enable_libtool_lock" | |
5954 | ||
5955 | ac_ext=c | |
5956 | ac_cpp='$CPP $CPPFLAGS' | |
5957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5960 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5961 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5962 | # On Suns, sometimes $CPP names a directory. | |
5963 | if test -n "$CPP" && test -d "$CPP"; then | |
5964 | CPP= | |
5965 | fi | |
5966 | if test -z "$CPP"; then | |
5967 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5969 | else | |
5970 | # Double quotes because CPP needs to be expanded | |
5971 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5972 | do | |
5973 | ac_preproc_ok=false | |
5974 | for ac_c_preproc_warn_flag in '' yes | |
5975 | do | |
5976 | # Use a header file that comes with gcc, so configuring glibc | |
5977 | # with a fresh cross-compiler works. | |
5978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5979 | # <limits.h> exists even on freestanding compilers. | |
5980 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5981 | # not just through cpp. "Syntax error" is here to catch this case. | |
5982 | cat >conftest.$ac_ext <<_ACEOF | |
5983 | /* confdefs.h. */ | |
5984 | _ACEOF | |
5985 | cat confdefs.h >>conftest.$ac_ext | |
5986 | cat >>conftest.$ac_ext <<_ACEOF | |
5987 | /* end confdefs.h. */ | |
5988 | #ifdef __STDC__ | |
5989 | # include <limits.h> | |
5990 | #else | |
5991 | # include <assert.h> | |
5992 | #endif | |
5993 | Syntax error | |
5994 | _ACEOF | |
5995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5997 | ac_status=$? | |
5998 | grep -v '^ *+' conftest.er1 >conftest.err | |
5999 | rm -f conftest.er1 | |
6000 | cat conftest.err >&5 | |
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6002 | (exit $ac_status); } >/dev/null; then | |
6003 | if test -s conftest.err; then | |
6004 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6006 | else | |
6007 | ac_cpp_err= | |
6008 | fi | |
6009 | else | |
6010 | ac_cpp_err=yes | |
6011 | fi | |
6012 | if test -z "$ac_cpp_err"; then | |
6013 | : | |
6014 | else | |
6015 | echo "$as_me: failed program was:" >&5 | |
6016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6017 | ||
6018 | # Broken: fails on valid input. | |
6019 | continue | |
6020 | fi | |
6021 | rm -f conftest.err conftest.$ac_ext | |
6022 | ||
6023 | # OK, works on sane cases. Now check whether non-existent headers | |
6024 | # can be detected and how. | |
6025 | cat >conftest.$ac_ext <<_ACEOF | |
6026 | /* confdefs.h. */ | |
6027 | _ACEOF | |
6028 | cat confdefs.h >>conftest.$ac_ext | |
6029 | cat >>conftest.$ac_ext <<_ACEOF | |
6030 | /* end confdefs.h. */ | |
6031 | #include <ac_nonexistent.h> | |
6032 | _ACEOF | |
6033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6035 | ac_status=$? | |
6036 | grep -v '^ *+' conftest.er1 >conftest.err | |
6037 | rm -f conftest.er1 | |
6038 | cat conftest.err >&5 | |
6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6040 | (exit $ac_status); } >/dev/null; then | |
6041 | if test -s conftest.err; then | |
6042 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6044 | else | |
6045 | ac_cpp_err= | |
6046 | fi | |
6047 | else | |
6048 | ac_cpp_err=yes | |
6049 | fi | |
6050 | if test -z "$ac_cpp_err"; then | |
6051 | # Broken: success on invalid input. | |
6052 | continue | |
6053 | else | |
6054 | echo "$as_me: failed program was:" >&5 | |
6055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6056 | ||
6057 | # Passes both tests. | |
6058 | ac_preproc_ok=: | |
6059 | break | |
6060 | fi | |
6061 | rm -f conftest.err conftest.$ac_ext | |
6062 | ||
6063 | done | |
6064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6065 | rm -f conftest.err conftest.$ac_ext | |
6066 | if $ac_preproc_ok; then | |
6067 | break | |
6068 | fi | |
6069 | ||
6070 | done | |
6071 | ac_cv_prog_CPP=$CPP | |
6072 | ||
6073 | fi | |
6074 | CPP=$ac_cv_prog_CPP | |
6075 | else | |
6076 | ac_cv_prog_CPP=$CPP | |
6077 | fi | |
6078 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
6079 | echo "${ECHO_T}$CPP" >&6 | |
6080 | ac_preproc_ok=false | |
6081 | for ac_c_preproc_warn_flag in '' yes | |
6082 | do | |
6083 | # Use a header file that comes with gcc, so configuring glibc | |
6084 | # with a fresh cross-compiler works. | |
6085 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6086 | # <limits.h> exists even on freestanding compilers. | |
6087 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6088 | # not just through cpp. "Syntax error" is here to catch this case. | |
6089 | cat >conftest.$ac_ext <<_ACEOF | |
6090 | /* confdefs.h. */ | |
6091 | _ACEOF | |
6092 | cat confdefs.h >>conftest.$ac_ext | |
6093 | cat >>conftest.$ac_ext <<_ACEOF | |
6094 | /* end confdefs.h. */ | |
6095 | #ifdef __STDC__ | |
6096 | # include <limits.h> | |
6097 | #else | |
6098 | # include <assert.h> | |
6099 | #endif | |
6100 | Syntax error | |
6101 | _ACEOF | |
6102 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6104 | ac_status=$? | |
6105 | grep -v '^ *+' conftest.er1 >conftest.err | |
6106 | rm -f conftest.er1 | |
6107 | cat conftest.err >&5 | |
6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6109 | (exit $ac_status); } >/dev/null; then | |
6110 | if test -s conftest.err; then | |
6111 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6112 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6113 | else | |
6114 | ac_cpp_err= | |
6115 | fi | |
6116 | else | |
6117 | ac_cpp_err=yes | |
6118 | fi | |
6119 | if test -z "$ac_cpp_err"; then | |
6120 | : | |
6121 | else | |
6122 | echo "$as_me: failed program was:" >&5 | |
6123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6124 | ||
6125 | # Broken: fails on valid input. | |
6126 | continue | |
6127 | fi | |
6128 | rm -f conftest.err conftest.$ac_ext | |
6129 | ||
6130 | # OK, works on sane cases. Now check whether non-existent headers | |
6131 | # can be detected and how. | |
6132 | cat >conftest.$ac_ext <<_ACEOF | |
6133 | /* confdefs.h. */ | |
6134 | _ACEOF | |
6135 | cat confdefs.h >>conftest.$ac_ext | |
6136 | cat >>conftest.$ac_ext <<_ACEOF | |
6137 | /* end confdefs.h. */ | |
6138 | #include <ac_nonexistent.h> | |
6139 | _ACEOF | |
6140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6142 | ac_status=$? | |
6143 | grep -v '^ *+' conftest.er1 >conftest.err | |
6144 | rm -f conftest.er1 | |
6145 | cat conftest.err >&5 | |
6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6147 | (exit $ac_status); } >/dev/null; then | |
6148 | if test -s conftest.err; then | |
6149 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6151 | else | |
6152 | ac_cpp_err= | |
6153 | fi | |
6154 | else | |
6155 | ac_cpp_err=yes | |
6156 | fi | |
6157 | if test -z "$ac_cpp_err"; then | |
6158 | # Broken: success on invalid input. | |
6159 | continue | |
6160 | else | |
6161 | echo "$as_me: failed program was:" >&5 | |
6162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6163 | ||
6164 | # Passes both tests. | |
6165 | ac_preproc_ok=: | |
6166 | break | |
6167 | fi | |
6168 | rm -f conftest.err conftest.$ac_ext | |
6169 | ||
6170 | done | |
6171 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6172 | rm -f conftest.err conftest.$ac_ext | |
6173 | if $ac_preproc_ok; then | |
6174 | : | |
6175 | else | |
7a283e07 RW |
6176 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6177 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6178 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d7040cdb SE |
6179 | See \`config.log' for more details." >&5 |
6180 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6181 | See \`config.log' for more details." >&2;} | |
7a283e07 | 6182 | { (exit 1); exit 1; }; }; } |
d7040cdb SE |
6183 | fi |
6184 | ||
6185 | ac_ext=c | |
6186 | ac_cpp='$CPP $CPPFLAGS' | |
6187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6190 | ||
6191 | ||
6192 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6193 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6194 | if test "${ac_cv_header_stdc+set}" = set; then | |
6195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6196 | else | |
6197 | cat >conftest.$ac_ext <<_ACEOF | |
6198 | /* confdefs.h. */ | |
6199 | _ACEOF | |
6200 | cat confdefs.h >>conftest.$ac_ext | |
6201 | cat >>conftest.$ac_ext <<_ACEOF | |
6202 | /* end confdefs.h. */ | |
6203 | #include <stdlib.h> | |
6204 | #include <stdarg.h> | |
6205 | #include <string.h> | |
6206 | #include <float.h> | |
6207 | ||
6208 | int | |
6209 | main () | |
6210 | { | |
6211 | ||
6212 | ; | |
6213 | return 0; | |
6214 | } | |
6215 | _ACEOF | |
6216 | rm -f conftest.$ac_objext | |
6217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6218 | (eval $ac_compile) 2>conftest.er1 | |
6219 | ac_status=$? | |
6220 | grep -v '^ *+' conftest.er1 >conftest.err | |
6221 | rm -f conftest.er1 | |
6222 | cat conftest.err >&5 | |
6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6224 | (exit $ac_status); } && | |
6225 | { ac_try='test -z "$ac_c_werror_flag" | |
6226 | || test ! -s conftest.err' | |
6227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6228 | (eval $ac_try) 2>&5 | |
6229 | ac_status=$? | |
6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6231 | (exit $ac_status); }; } && | |
6232 | { ac_try='test -s conftest.$ac_objext' | |
6233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6234 | (eval $ac_try) 2>&5 | |
6235 | ac_status=$? | |
6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6237 | (exit $ac_status); }; }; then | |
6238 | ac_cv_header_stdc=yes | |
6239 | else | |
6240 | echo "$as_me: failed program was:" >&5 | |
6241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6242 | ||
6243 | ac_cv_header_stdc=no | |
6244 | fi | |
6245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6246 | ||
6247 | if test $ac_cv_header_stdc = yes; then | |
6248 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6249 | cat >conftest.$ac_ext <<_ACEOF | |
6250 | /* confdefs.h. */ | |
6251 | _ACEOF | |
6252 | cat confdefs.h >>conftest.$ac_ext | |
6253 | cat >>conftest.$ac_ext <<_ACEOF | |
6254 | /* end confdefs.h. */ | |
6255 | #include <string.h> | |
6256 | ||
6257 | _ACEOF | |
6258 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6259 | $EGREP "memchr" >/dev/null 2>&1; then | |
6260 | : | |
6261 | else | |
6262 | ac_cv_header_stdc=no | |
6263 | fi | |
6264 | rm -f conftest* | |
6265 | ||
6266 | fi | |
6267 | ||
6268 | if test $ac_cv_header_stdc = yes; then | |
6269 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6270 | cat >conftest.$ac_ext <<_ACEOF | |
6271 | /* confdefs.h. */ | |
6272 | _ACEOF | |
6273 | cat confdefs.h >>conftest.$ac_ext | |
6274 | cat >>conftest.$ac_ext <<_ACEOF | |
6275 | /* end confdefs.h. */ | |
6276 | #include <stdlib.h> | |
6277 | ||
6278 | _ACEOF | |
6279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6280 | $EGREP "free" >/dev/null 2>&1; then | |
6281 | : | |
6282 | else | |
6283 | ac_cv_header_stdc=no | |
6284 | fi | |
6285 | rm -f conftest* | |
6286 | ||
6287 | fi | |
6288 | ||
6289 | if test $ac_cv_header_stdc = yes; then | |
6290 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6291 | if test "$cross_compiling" = yes; then | |
6292 | : | |
6293 | else | |
6294 | cat >conftest.$ac_ext <<_ACEOF | |
6295 | /* confdefs.h. */ | |
6296 | _ACEOF | |
6297 | cat confdefs.h >>conftest.$ac_ext | |
6298 | cat >>conftest.$ac_ext <<_ACEOF | |
6299 | /* end confdefs.h. */ | |
6300 | #include <ctype.h> | |
6301 | #if ((' ' & 0x0FF) == 0x020) | |
6302 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6303 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6304 | #else | |
6305 | # define ISLOWER(c) \ | |
6306 | (('a' <= (c) && (c) <= 'i') \ | |
6307 | || ('j' <= (c) && (c) <= 'r') \ | |
6308 | || ('s' <= (c) && (c) <= 'z')) | |
6309 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6310 | #endif | |
6311 | ||
6312 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6313 | int | |
6314 | main () | |
6315 | { | |
6316 | int i; | |
6317 | for (i = 0; i < 256; i++) | |
6318 | if (XOR (islower (i), ISLOWER (i)) | |
6319 | || toupper (i) != TOUPPER (i)) | |
6320 | exit(2); | |
6321 | exit (0); | |
6322 | } | |
6323 | _ACEOF | |
6324 | rm -f conftest$ac_exeext | |
6325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6326 | (eval $ac_link) 2>&5 | |
6327 | ac_status=$? | |
6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6329 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6331 | (eval $ac_try) 2>&5 | |
6332 | ac_status=$? | |
6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6334 | (exit $ac_status); }; }; then | |
6335 | : | |
6336 | else | |
6337 | echo "$as_me: program exited with status $ac_status" >&5 | |
6338 | echo "$as_me: failed program was:" >&5 | |
6339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6340 | ||
6341 | ( exit $ac_status ) | |
6342 | ac_cv_header_stdc=no | |
6343 | fi | |
6344 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6345 | fi | |
6346 | fi | |
6347 | fi | |
6348 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6349 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6350 | if test $ac_cv_header_stdc = yes; then | |
6351 | ||
6352 | cat >>confdefs.h <<\_ACEOF | |
6353 | #define STDC_HEADERS 1 | |
6354 | _ACEOF | |
6355 | ||
6356 | fi | |
6357 | ||
6358 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6369 | inttypes.h stdint.h unistd.h | |
6370 | do | |
6371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6376 | else | |
6377 | cat >conftest.$ac_ext <<_ACEOF | |
6378 | /* confdefs.h. */ | |
6379 | _ACEOF | |
6380 | cat confdefs.h >>conftest.$ac_ext | |
6381 | cat >>conftest.$ac_ext <<_ACEOF | |
6382 | /* end confdefs.h. */ | |
6383 | $ac_includes_default | |
6384 | ||
6385 | #include <$ac_header> | |
6386 | _ACEOF | |
6387 | rm -f conftest.$ac_objext | |
6388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6389 | (eval $ac_compile) 2>conftest.er1 | |
6390 | ac_status=$? | |
6391 | grep -v '^ *+' conftest.er1 >conftest.err | |
6392 | rm -f conftest.er1 | |
6393 | cat conftest.err >&5 | |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); } && | |
6396 | { ac_try='test -z "$ac_c_werror_flag" | |
6397 | || test ! -s conftest.err' | |
6398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6399 | (eval $ac_try) 2>&5 | |
6400 | ac_status=$? | |
6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6402 | (exit $ac_status); }; } && | |
6403 | { ac_try='test -s conftest.$ac_objext' | |
6404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6405 | (eval $ac_try) 2>&5 | |
6406 | ac_status=$? | |
6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6408 | (exit $ac_status); }; }; then | |
6409 | eval "$as_ac_Header=yes" | |
6410 | else | |
6411 | echo "$as_me: failed program was:" >&5 | |
6412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6413 | ||
6414 | eval "$as_ac_Header=no" | |
6415 | fi | |
6416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6417 | fi | |
6418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6420 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6421 | cat >>confdefs.h <<_ACEOF | |
6422 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6423 | _ACEOF | |
6424 | ||
6425 | fi | |
6426 | ||
6427 | done | |
6428 | ||
6429 | ||
6430 | ||
6431 | for ac_header in dlfcn.h | |
6432 | do | |
6433 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6438 | else | |
6439 | cat >conftest.$ac_ext <<_ACEOF | |
6440 | /* confdefs.h. */ | |
6441 | _ACEOF | |
6442 | cat confdefs.h >>conftest.$ac_ext | |
6443 | cat >>conftest.$ac_ext <<_ACEOF | |
6444 | /* end confdefs.h. */ | |
6445 | $ac_includes_default | |
6446 | ||
6447 | #include <$ac_header> | |
6448 | _ACEOF | |
6449 | rm -f conftest.$ac_objext | |
6450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6451 | (eval $ac_compile) 2>conftest.er1 | |
6452 | ac_status=$? | |
6453 | grep -v '^ *+' conftest.er1 >conftest.err | |
6454 | rm -f conftest.er1 | |
6455 | cat conftest.err >&5 | |
6456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6457 | (exit $ac_status); } && | |
6458 | { ac_try='test -z "$ac_c_werror_flag" | |
6459 | || test ! -s conftest.err' | |
6460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6461 | (eval $ac_try) 2>&5 | |
6462 | ac_status=$? | |
6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6464 | (exit $ac_status); }; } && | |
6465 | { ac_try='test -s conftest.$ac_objext' | |
6466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6467 | (eval $ac_try) 2>&5 | |
6468 | ac_status=$? | |
6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6470 | (exit $ac_status); }; }; then | |
6471 | eval "$as_ac_Header=yes" | |
6472 | else | |
6473 | echo "$as_me: failed program was:" >&5 | |
6474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6475 | ||
6476 | eval "$as_ac_Header=no" | |
6477 | fi | |
6478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6479 | fi | |
6480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6483 | cat >>confdefs.h <<_ACEOF | |
6484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6485 | _ACEOF | |
6486 | ||
6487 | fi | |
6488 | ||
6489 | done | |
6490 | ||
6491 | ||
6492 | ||
6493 | # This can be used to rebuild libtool when needed | |
6494 | LIBTOOL_DEPS="$ltmain" | |
6495 | ||
6496 | # Always use our own libtool. | |
6497 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | test -z "$LN_S" && LN_S="ln -s" | |
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | if test -n "${ZSH_VERSION+set}" ; then | |
6539 | setopt NO_GLOB_SUBST | |
6540 | fi | |
6541 | ||
6542 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6543 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6544 | if test "${lt_cv_objdir+set}" = set; then | |
6545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6546 | else | |
6547 | rm -f .libs 2>/dev/null | |
6548 | mkdir .libs 2>/dev/null | |
6549 | if test -d .libs; then | |
6550 | lt_cv_objdir=.libs | |
6551 | else | |
6552 | # MS-DOS does not allow filenames that begin with a dot. | |
6553 | lt_cv_objdir=_libs | |
6554 | fi | |
6555 | rmdir .libs 2>/dev/null | |
6556 | fi | |
6557 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6558 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6559 | objdir=$lt_cv_objdir | |
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | cat >>confdefs.h <<_ACEOF | |
6566 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6567 | _ACEOF | |
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
6585 | case $host_os in | |
6586 | aix3*) | |
6587 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6588 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6589 | # vanish in a puff of smoke. | |
6590 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6591 | COLLECT_NAMES= | |
6592 | export COLLECT_NAMES | |
6593 | fi | |
6594 | ;; | |
6595 | esac | |
6596 | ||
6597 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6598 | # metacharacters that are still active within double-quoted strings. | |
6599 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6600 | ||
6601 | # Same as above, but do not quote variable references. | |
6602 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6603 | ||
6604 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6605 | # double_quote_subst'ed string. | |
6606 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6607 | ||
6608 | # Sed substitution to delay expansion of an escaped single quote. | |
6609 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6610 | ||
6611 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6612 | no_glob_subst='s/\*/\\\*/g' | |
6613 | ||
6614 | # Global variables: | |
6615 | ofile=libtool | |
6616 | can_build_shared=yes | |
6617 | ||
6618 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6619 | # which needs '.lib'). | |
6620 | libext=a | |
6621 | ||
6622 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6623 | ||
6624 | old_CC="$CC" | |
6625 | old_CFLAGS="$CFLAGS" | |
6626 | ||
6627 | # Set sane defaults for various variables | |
6628 | test -z "$CC" && CC=cc | |
6629 | test -z "$LTCC" && LTCC=$CC | |
6630 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6631 | test -z "$LD" && LD=ld | |
6632 | test -z "$ac_objext" && ac_objext=o | |
6633 | ||
6634 | for cc_temp in $compiler""; do | |
6635 | case $cc_temp in | |
6636 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6637 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6638 | \-*) ;; | |
6639 | *) break;; | |
6640 | esac | |
6641 | done | |
6642 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6643 | ||
6644 | ||
6645 | # Only perform the check for file, if the check method requires it | |
6646 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6647 | case $deplibs_check_method in | |
6648 | file_magic*) | |
6649 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6650 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6651 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6652 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6654 | else | |
6655 | case $MAGIC_CMD in | |
6656 | [\\/*] | ?:[\\/]*) | |
6657 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6658 | ;; | |
6659 | *) | |
6660 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6661 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6662 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6663 | for ac_dir in $ac_dummy; do | |
6664 | IFS="$lt_save_ifs" | |
6665 | test -z "$ac_dir" && ac_dir=. | |
6666 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6667 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6668 | if test -n "$file_magic_test_file"; then | |
6669 | case $deplibs_check_method in | |
6670 | "file_magic "*) | |
6671 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6672 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6673 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6674 | $EGREP "$file_magic_regex" > /dev/null; then | |
6675 | : | |
6676 | else | |
6677 | cat <<_LT_EOF 1>&2 | |
6678 | ||
6679 | *** Warning: the command libtool uses to detect shared libraries, | |
6680 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6681 | *** The result is that libtool may fail to recognize shared libraries | |
6682 | *** as such. This will affect the creation of libtool libraries that | |
6683 | *** depend on shared libraries, but programs linked with such libtool | |
6684 | *** libraries will work regardless of this problem. Nevertheless, you | |
6685 | *** may want to report the problem to your system manager and/or to | |
6686 | *** [email protected] | |
6687 | ||
6688 | _LT_EOF | |
6689 | fi ;; | |
6690 | esac | |
6691 | fi | |
6692 | break | |
6693 | fi | |
6694 | done | |
6695 | IFS="$lt_save_ifs" | |
6696 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6697 | ;; | |
6698 | esac | |
6699 | fi | |
6700 | ||
6701 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6702 | if test -n "$MAGIC_CMD"; then | |
6703 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6704 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6705 | else | |
6706 | echo "$as_me:$LINENO: result: no" >&5 | |
6707 | echo "${ECHO_T}no" >&6 | |
6708 | fi | |
6709 | ||
6710 | ||
6711 | ||
6712 | ||
6713 | ||
6714 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6715 | if test -n "$ac_tool_prefix"; then | |
6716 | echo "$as_me:$LINENO: checking for file" >&5 | |
6717 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6718 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6720 | else | |
6721 | case $MAGIC_CMD in | |
6722 | [\\/*] | ?:[\\/]*) | |
6723 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6724 | ;; | |
6725 | *) | |
6726 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6727 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6728 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6729 | for ac_dir in $ac_dummy; do | |
6730 | IFS="$lt_save_ifs" | |
6731 | test -z "$ac_dir" && ac_dir=. | |
6732 | if test -f $ac_dir/file; then | |
6733 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6734 | if test -n "$file_magic_test_file"; then | |
6735 | case $deplibs_check_method in | |
6736 | "file_magic "*) | |
6737 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6738 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6739 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6740 | $EGREP "$file_magic_regex" > /dev/null; then | |
6741 | : | |
6742 | else | |
6743 | cat <<_LT_EOF 1>&2 | |
6744 | ||
6745 | *** Warning: the command libtool uses to detect shared libraries, | |
6746 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6747 | *** The result is that libtool may fail to recognize shared libraries | |
6748 | *** as such. This will affect the creation of libtool libraries that | |
6749 | *** depend on shared libraries, but programs linked with such libtool | |
6750 | *** libraries will work regardless of this problem. Nevertheless, you | |
6751 | *** may want to report the problem to your system manager and/or to | |
6752 | *** [email protected] | |
6753 | ||
6754 | _LT_EOF | |
6755 | fi ;; | |
6756 | esac | |
6757 | fi | |
6758 | break | |
6759 | fi | |
6760 | done | |
6761 | IFS="$lt_save_ifs" | |
6762 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6763 | ;; | |
6764 | esac | |
6765 | fi | |
6766 | ||
6767 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6768 | if test -n "$MAGIC_CMD"; then | |
6769 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6770 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6771 | else | |
6772 | echo "$as_me:$LINENO: result: no" >&5 | |
6773 | echo "${ECHO_T}no" >&6 | |
6774 | fi | |
6775 | ||
6776 | ||
6777 | else | |
6778 | MAGIC_CMD=: | |
6779 | fi | |
6780 | fi | |
6781 | ||
6782 | fi | |
6783 | ;; | |
6784 | esac | |
6785 | ||
6786 | # Use C for the default configuration in the libtool script | |
6787 | ||
6788 | lt_save_CC="$CC" | |
6789 | ac_ext=c | |
6790 | ac_cpp='$CPP $CPPFLAGS' | |
6791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6794 | ||
6795 | ||
6796 | # Source file extension for C test sources. | |
6797 | ac_ext=c | |
6798 | ||
6799 | # Object file extension for compiled C test sources. | |
6800 | objext=o | |
6801 | objext=$objext | |
6802 | ||
6803 | # Code to be used in simple compile tests | |
6804 | lt_simple_compile_test_code="int some_variable = 0;" | |
6805 | ||
6806 | # Code to be used in simple link tests | |
6807 | lt_simple_link_test_code='int main(){return(0);}' | |
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | # If no C compiler was specified, use CC. | |
6816 | LTCC=${LTCC-"$CC"} | |
6817 | ||
6818 | # If no C compiler flags were specified, use CFLAGS. | |
6819 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6820 | ||
6821 | # Allow CC to be a program name with arguments. | |
6822 | compiler=$CC | |
6823 | ||
6824 | # Save the default compiler, since it gets overwritten when the other | |
6825 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6826 | compiler_DEFAULT=$CC | |
6827 | ||
6828 | # save warnings/boilerplate of simple test code | |
6829 | ac_outfile=conftest.$ac_objext | |
6830 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6831 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6832 | _lt_compiler_boilerplate=`cat conftest.err` | |
6833 | $RM conftest* | |
6834 | ||
6835 | ac_outfile=conftest.$ac_objext | |
6836 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6837 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6838 | _lt_linker_boilerplate=`cat conftest.err` | |
6839 | $RM conftest* | |
6840 | ||
6841 | ||
6842 | ## CAVEAT EMPTOR: | |
6843 | ## There is no encapsulation within the following macros, do not change | |
6844 | ## the running order or otherwise move them around unless you know exactly | |
6845 | ## what you are doing... | |
6846 | if test -n "$compiler"; then | |
6847 | ||
6848 | lt_prog_compiler_no_builtin_flag= | |
6849 | ||
6850 | if test "$GCC" = yes; then | |
6851 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6852 | ||
6853 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6854 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6855 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6857 | else | |
6858 | lt_cv_prog_compiler_rtti_exceptions=no | |
6859 | ac_outfile=conftest.$ac_objext | |
6860 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6861 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6862 | # Insert the option either (1) after the last *FLAGS variable, or | |
6863 | # (2) before a word containing "conftest.", or (3) at the end. | |
6864 | # Note that $ac_compile itself does not contain backslashes and begins | |
6865 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6866 | # The option is referenced via a variable to avoid confusing sed. | |
6867 | lt_compile=`echo "$ac_compile" | $SED \ | |
6868 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6869 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6870 | -e 's:$: $lt_compiler_flag:'` | |
7a283e07 | 6871 | (eval echo "\"\$as_me:6871: $lt_compile\"" >&5) |
d7040cdb SE |
6872 | (eval "$lt_compile" 2>conftest.err) |
6873 | ac_status=$? | |
6874 | cat conftest.err >&5 | |
7a283e07 | 6875 | echo "$as_me:6875: \$? = $ac_status" >&5 |
d7040cdb SE |
6876 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6877 | # The compiler can only warn and ignore the option if not recognized | |
6878 | # So say no if there are warnings other than the usual output. | |
6879 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6880 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6881 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6882 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6883 | fi | |
6884 | fi | |
6885 | $RM conftest* | |
6886 | ||
6887 | fi | |
6888 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6889 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6890 | ||
6891 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6892 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6893 | else | |
6894 | : | |
6895 | fi | |
6896 | ||
6897 | fi | |
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | lt_prog_compiler_wl= | |
6905 | lt_prog_compiler_pic= | |
6906 | lt_prog_compiler_static= | |
6907 | ||
6908 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6909 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6910 | ||
6911 | if test "$GCC" = yes; then | |
6912 | lt_prog_compiler_wl='-Wl,' | |
6913 | lt_prog_compiler_static='-static' | |
6914 | ||
6915 | case $host_os in | |
6916 | aix*) | |
6917 | # All AIX code is PIC. | |
6918 | if test "$host_cpu" = ia64; then | |
6919 | # AIX 5 now supports IA64 processor | |
6920 | lt_prog_compiler_static='-Bstatic' | |
6921 | fi | |
6922 | ;; | |
6923 | ||
6924 | amigaos*) | |
6925 | if test "$host_cpu" = m68k; then | |
6926 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6927 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6928 | # like `-m68040'. | |
6929 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6930 | fi | |
6931 | ;; | |
6932 | ||
6933 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6934 | # PIC is the default for these OSes. | |
6935 | ;; | |
6936 | ||
6937 | mingw* | cygwin* | pw32* | os2*) | |
6938 | # This hack is so that the source file can tell whether it is being | |
6939 | # built for inclusion in a dll (and should export symbols for example). | |
6940 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6941 | # (--disable-auto-import) libraries | |
6942 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6943 | ;; | |
6944 | ||
6945 | darwin* | rhapsody*) | |
6946 | # PIC is the default on this platform | |
6947 | # Common symbols not allowed in MH_DYLIB files | |
6948 | lt_prog_compiler_pic='-fno-common' | |
6949 | ;; | |
6950 | ||
6951 | hpux*) | |
6952 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6953 | # not for PA HP-UX. | |
6954 | case $host_cpu in | |
6955 | hppa*64*|ia64*) | |
6956 | # +Z the default | |
6957 | ;; | |
6958 | *) | |
6959 | lt_prog_compiler_pic='-fPIC' | |
6960 | ;; | |
6961 | esac | |
6962 | ;; | |
6963 | ||
6964 | interix[3-9]*) | |
6965 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6966 | # Instead, we relocate shared libraries at runtime. | |
6967 | ;; | |
6968 | ||
6969 | msdosdjgpp*) | |
6970 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6971 | # on systems that don't support them. | |
6972 | lt_prog_compiler_can_build_shared=no | |
6973 | enable_shared=no | |
6974 | ;; | |
6975 | ||
6976 | *nto* | *qnx*) | |
6977 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6978 | # it will coredump. | |
6979 | lt_prog_compiler_pic='-fPIC -shared' | |
6980 | ;; | |
6981 | ||
6982 | sysv4*MP*) | |
6983 | if test -d /usr/nec; then | |
6984 | lt_prog_compiler_pic=-Kconform_pic | |
6985 | fi | |
6986 | ;; | |
6987 | ||
6988 | *) | |
6989 | lt_prog_compiler_pic='-fPIC' | |
6990 | ;; | |
6991 | esac | |
6992 | else | |
6993 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6994 | case $host_os in | |
6995 | aix*) | |
6996 | lt_prog_compiler_wl='-Wl,' | |
6997 | if test "$host_cpu" = ia64; then | |
6998 | # AIX 5 now supports IA64 processor | |
6999 | lt_prog_compiler_static='-Bstatic' | |
7000 | else | |
7001 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7002 | fi | |
7003 | ;; | |
7004 | darwin*) | |
7005 | # PIC is the default on this platform | |
7006 | # Common symbols not allowed in MH_DYLIB files | |
7007 | case $cc_basename in | |
7008 | xlc*) | |
7009 | lt_prog_compiler_pic='-qnocommon' | |
7010 | lt_prog_compiler_wl='-Wl,' | |
7011 | ;; | |
7012 | esac | |
7013 | ;; | |
7014 | ||
7015 | mingw* | cygwin* | pw32* | os2*) | |
7016 | # This hack is so that the source file can tell whether it is being | |
7017 | # built for inclusion in a dll (and should export symbols for example). | |
7018 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7019 | ;; | |
7020 | ||
7021 | hpux9* | hpux10* | hpux11*) | |
7022 | lt_prog_compiler_wl='-Wl,' | |
7023 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7024 | # not for PA HP-UX. | |
7025 | case $host_cpu in | |
7026 | hppa*64*|ia64*) | |
7027 | # +Z the default | |
7028 | ;; | |
7029 | *) | |
7030 | lt_prog_compiler_pic='+Z' | |
7031 | ;; | |
7032 | esac | |
7033 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7034 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7035 | ;; | |
7036 | ||
7037 | irix5* | irix6* | nonstopux*) | |
7038 | lt_prog_compiler_wl='-Wl,' | |
7039 | # PIC (with -KPIC) is the default. | |
7040 | lt_prog_compiler_static='-non_shared' | |
7041 | ;; | |
7042 | ||
7043 | linux* | k*bsd*-gnu) | |
7044 | case $cc_basename in | |
7045 | icc* | ecc*) | |
7046 | lt_prog_compiler_wl='-Wl,' | |
7047 | lt_prog_compiler_pic='-KPIC' | |
7048 | lt_prog_compiler_static='-static' | |
7049 | ;; | |
7050 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7051 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7052 | # which looks to be a dead project) | |
7053 | lt_prog_compiler_wl='-Wl,' | |
7054 | lt_prog_compiler_pic='-fpic' | |
7055 | lt_prog_compiler_static='-Bstatic' | |
7056 | ;; | |
7057 | ccc*) | |
7058 | lt_prog_compiler_wl='-Wl,' | |
7059 | # All Alpha code is PIC. | |
7060 | lt_prog_compiler_static='-non_shared' | |
7061 | ;; | |
7062 | *) | |
7063 | case `$CC -V 2>&1 | sed 5q` in | |
7064 | *Sun\ C*) | |
7065 | # Sun C 5.9 | |
7066 | lt_prog_compiler_pic='-KPIC' | |
7067 | lt_prog_compiler_static='-Bstatic' | |
7068 | lt_prog_compiler_wl='-Wl,' | |
7069 | ;; | |
7070 | *Sun\ F*) | |
7071 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7072 | lt_prog_compiler_pic='-KPIC' | |
7073 | lt_prog_compiler_static='-Bstatic' | |
7074 | lt_prog_compiler_wl='' | |
7075 | ;; | |
7076 | esac | |
7077 | ;; | |
7078 | esac | |
7079 | ;; | |
7080 | ||
7081 | newsos6) | |
7082 | lt_prog_compiler_pic='-KPIC' | |
7083 | lt_prog_compiler_static='-Bstatic' | |
7084 | ;; | |
7085 | ||
7086 | *nto* | *qnx*) | |
7087 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7088 | # it will coredump. | |
7089 | lt_prog_compiler_pic='-fPIC -shared' | |
7090 | ;; | |
7091 | ||
7092 | osf3* | osf4* | osf5*) | |
7093 | lt_prog_compiler_wl='-Wl,' | |
7094 | # All OSF/1 code is PIC. | |
7095 | lt_prog_compiler_static='-non_shared' | |
7096 | ;; | |
7097 | ||
7098 | rdos*) | |
7099 | lt_prog_compiler_static='-non_shared' | |
7100 | ;; | |
7101 | ||
7102 | solaris*) | |
7103 | lt_prog_compiler_pic='-KPIC' | |
7104 | lt_prog_compiler_static='-Bstatic' | |
7105 | case $cc_basename in | |
7106 | f77* | f90* | f95*) | |
7107 | lt_prog_compiler_wl='-Qoption ld ';; | |
7108 | *) | |
7109 | lt_prog_compiler_wl='-Wl,';; | |
7110 | esac | |
7111 | ;; | |
7112 | ||
7113 | sunos4*) | |
7114 | lt_prog_compiler_wl='-Qoption ld ' | |
7115 | lt_prog_compiler_pic='-PIC' | |
7116 | lt_prog_compiler_static='-Bstatic' | |
7117 | ;; | |
7118 | ||
7119 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7120 | lt_prog_compiler_wl='-Wl,' | |
7121 | lt_prog_compiler_pic='-KPIC' | |
7122 | lt_prog_compiler_static='-Bstatic' | |
7123 | ;; | |
7124 | ||
7125 | sysv4*MP*) | |
7126 | if test -d /usr/nec ;then | |
7127 | lt_prog_compiler_pic='-Kconform_pic' | |
7128 | lt_prog_compiler_static='-Bstatic' | |
7129 | fi | |
7130 | ;; | |
7131 | ||
7132 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7133 | lt_prog_compiler_wl='-Wl,' | |
7134 | lt_prog_compiler_pic='-KPIC' | |
7135 | lt_prog_compiler_static='-Bstatic' | |
7136 | ;; | |
7137 | ||
7138 | unicos*) | |
7139 | lt_prog_compiler_wl='-Wl,' | |
7140 | lt_prog_compiler_can_build_shared=no | |
7141 | ;; | |
7142 | ||
7143 | uts4*) | |
7144 | lt_prog_compiler_pic='-pic' | |
7145 | lt_prog_compiler_static='-Bstatic' | |
7146 | ;; | |
7147 | ||
7148 | *) | |
7149 | lt_prog_compiler_can_build_shared=no | |
7150 | ;; | |
7151 | esac | |
7152 | fi | |
7153 | ||
7154 | case $host_os in | |
7155 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7156 | *djgpp*) | |
7157 | lt_prog_compiler_pic= | |
7158 | ;; | |
7159 | *) | |
7160 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7161 | ;; | |
7162 | esac | |
7163 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7164 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
7165 | ||
7166 | ||
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | # | |
7172 | # Check to make sure the PIC flag actually works. | |
7173 | # | |
7174 | if test -n "$lt_prog_compiler_pic"; then | |
7175 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7176 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7177 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7179 | else | |
7180 | lt_prog_compiler_pic_works=no | |
7181 | ac_outfile=conftest.$ac_objext | |
7182 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7183 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7184 | # Insert the option either (1) after the last *FLAGS variable, or | |
7185 | # (2) before a word containing "conftest.", or (3) at the end. | |
7186 | # Note that $ac_compile itself does not contain backslashes and begins | |
7187 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7188 | # The option is referenced via a variable to avoid confusing sed. | |
7189 | lt_compile=`echo "$ac_compile" | $SED \ | |
7190 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7191 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7192 | -e 's:$: $lt_compiler_flag:'` | |
7a283e07 | 7193 | (eval echo "\"\$as_me:7193: $lt_compile\"" >&5) |
d7040cdb SE |
7194 | (eval "$lt_compile" 2>conftest.err) |
7195 | ac_status=$? | |
7196 | cat conftest.err >&5 | |
7a283e07 | 7197 | echo "$as_me:7197: \$? = $ac_status" >&5 |
d7040cdb SE |
7198 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7199 | # The compiler can only warn and ignore the option if not recognized | |
7200 | # So say no if there are warnings other than the usual output. | |
7201 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7202 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7203 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7204 | lt_prog_compiler_pic_works=yes | |
7205 | fi | |
7206 | fi | |
7207 | $RM conftest* | |
7208 | ||
7209 | fi | |
7210 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7211 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
7212 | ||
7213 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7214 | case $lt_prog_compiler_pic in | |
7215 | "" | " "*) ;; | |
7216 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7217 | esac | |
7218 | else | |
7219 | lt_prog_compiler_pic= | |
7220 | lt_prog_compiler_can_build_shared=no | |
7221 | fi | |
7222 | ||
7223 | fi | |
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | # | |
7231 | # Check to make sure the static flag actually works. | |
7232 | # | |
7233 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7234 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7235 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7236 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7238 | else | |
7239 | lt_prog_compiler_static_works=no | |
7240 | save_LDFLAGS="$LDFLAGS" | |
7241 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7242 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7243 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7244 | # The linker can only warn and ignore the option if not recognized | |
7245 | # So say no if there are warnings | |
7246 | if test -s conftest.err; then | |
7247 | # Append any errors to the config.log. | |
7248 | cat conftest.err 1>&5 | |
7249 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7250 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7251 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7252 | lt_prog_compiler_static_works=yes | |
7253 | fi | |
7254 | else | |
7255 | lt_prog_compiler_static_works=yes | |
7256 | fi | |
7257 | fi | |
7258 | $RM conftest* | |
7259 | LDFLAGS="$save_LDFLAGS" | |
7260 | ||
7261 | fi | |
7262 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7263 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
7264 | ||
7265 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
7266 | : | |
7267 | else | |
7268 | lt_prog_compiler_static= | |
7269 | fi | |
7270 | ||
7271 | ||
7272 | ||
7273 | ||
7274 | ||
7275 | ||
7276 | ||
7277 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7278 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7279 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7281 | else | |
7282 | lt_cv_prog_compiler_c_o=no | |
7283 | $RM -r conftest 2>/dev/null | |
7284 | mkdir conftest | |
7285 | cd conftest | |
7286 | mkdir out | |
7287 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7288 | ||
7289 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7290 | # Insert the option either (1) after the last *FLAGS variable, or | |
7291 | # (2) before a word containing "conftest.", or (3) at the end. | |
7292 | # Note that $ac_compile itself does not contain backslashes and begins | |
7293 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7294 | lt_compile=`echo "$ac_compile" | $SED \ | |
7295 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7296 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7297 | -e 's:$: $lt_compiler_flag:'` | |
7a283e07 | 7298 | (eval echo "\"\$as_me:7298: $lt_compile\"" >&5) |
d7040cdb SE |
7299 | (eval "$lt_compile" 2>out/conftest.err) |
7300 | ac_status=$? | |
7301 | cat out/conftest.err >&5 | |
7a283e07 | 7302 | echo "$as_me:7302: \$? = $ac_status" >&5 |
d7040cdb SE |
7303 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7304 | then | |
7305 | # The compiler can only warn and ignore the option if not recognized | |
7306 | # So say no if there are warnings | |
7307 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7308 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7309 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7310 | lt_cv_prog_compiler_c_o=yes | |
7311 | fi | |
7312 | fi | |
7313 | chmod u+w . 2>&5 | |
7314 | $RM conftest* | |
7315 | # SGI C++ compiler will create directory out/ii_files/ for | |
7316 | # template instantiation | |
7317 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7318 | $RM out/* && rmdir out | |
7319 | cd .. | |
7320 | $RM -r conftest | |
7321 | $RM conftest* | |
7322 | ||
7323 | fi | |
7324 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7325 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7326 | ||
7327 | ||
7328 | ||
7329 | ||
7330 | ||
7331 | ||
7332 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7333 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7334 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7336 | else | |
7337 | lt_cv_prog_compiler_c_o=no | |
7338 | $RM -r conftest 2>/dev/null | |
7339 | mkdir conftest | |
7340 | cd conftest | |
7341 | mkdir out | |
7342 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7343 | ||
7344 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7345 | # Insert the option either (1) after the last *FLAGS variable, or | |
7346 | # (2) before a word containing "conftest.", or (3) at the end. | |
7347 | # Note that $ac_compile itself does not contain backslashes and begins | |
7348 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7349 | lt_compile=`echo "$ac_compile" | $SED \ | |
7350 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7351 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7352 | -e 's:$: $lt_compiler_flag:'` | |
7a283e07 | 7353 | (eval echo "\"\$as_me:7353: $lt_compile\"" >&5) |
d7040cdb SE |
7354 | (eval "$lt_compile" 2>out/conftest.err) |
7355 | ac_status=$? | |
7356 | cat out/conftest.err >&5 | |
7a283e07 | 7357 | echo "$as_me:7357: \$? = $ac_status" >&5 |
d7040cdb SE |
7358 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7359 | then | |
7360 | # The compiler can only warn and ignore the option if not recognized | |
7361 | # So say no if there are warnings | |
7362 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7363 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7364 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7365 | lt_cv_prog_compiler_c_o=yes | |
7366 | fi | |
7367 | fi | |
7368 | chmod u+w . 2>&5 | |
7369 | $RM conftest* | |
7370 | # SGI C++ compiler will create directory out/ii_files/ for | |
7371 | # template instantiation | |
7372 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7373 | $RM out/* && rmdir out | |
7374 | cd .. | |
7375 | $RM -r conftest | |
7376 | $RM conftest* | |
7377 | ||
7378 | fi | |
7379 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7380 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7381 | ||
7382 | ||
7383 | ||
7384 | ||
7385 | hard_links="nottested" | |
7386 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7387 | # do not overwrite the value of need_locks provided by the user | |
7388 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7389 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7390 | hard_links=yes | |
7391 | $RM conftest* | |
7392 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7393 | touch conftest.a | |
7394 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7395 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7396 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7397 | echo "${ECHO_T}$hard_links" >&6 | |
7398 | if test "$hard_links" = no; then | |
7399 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7400 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7401 | need_locks=warn | |
7402 | fi | |
7403 | else | |
7404 | need_locks=no | |
7405 | fi | |
7406 | ||
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | ||
7412 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7413 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7414 | ||
7415 | runpath_var= | |
7416 | allow_undefined_flag= | |
7417 | always_export_symbols=no | |
7418 | archive_cmds= | |
7419 | archive_expsym_cmds= | |
7420 | compiler_needs_object=no | |
7421 | enable_shared_with_static_runtimes=no | |
7422 | export_dynamic_flag_spec= | |
7423 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7424 | hardcode_automatic=no | |
7425 | hardcode_direct=no | |
7426 | hardcode_direct_absolute=no | |
7427 | hardcode_libdir_flag_spec= | |
7428 | hardcode_libdir_flag_spec_ld= | |
7429 | hardcode_libdir_separator= | |
7430 | hardcode_minus_L=no | |
7431 | hardcode_shlibpath_var=unsupported | |
7432 | inherit_rpath=no | |
7433 | link_all_deplibs=unknown | |
7434 | module_cmds= | |
7435 | module_expsym_cmds= | |
7436 | old_archive_from_new_cmds= | |
7437 | old_archive_from_expsyms_cmds= | |
7438 | thread_safe_flag_spec= | |
7439 | whole_archive_flag_spec= | |
7440 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7441 | # included in the symbol list | |
7442 | include_expsyms= | |
7443 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7444 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7445 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7446 | # as well as any symbol that contains `d'. | |
7447 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7448 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7449 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7450 | # the symbol is explicitly referenced. Since portable code cannot | |
7451 | # rely on this symbol name, it's probably fine to never include it in | |
7452 | # preloaded symbol tables. | |
7453 | extract_expsyms_cmds= | |
7454 | ||
7455 | case $host_os in | |
7456 | cygwin* | mingw* | pw32*) | |
7457 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7458 | # When not using gcc, we currently assume that we are using | |
7459 | # Microsoft Visual C++. | |
7460 | if test "$GCC" != yes; then | |
7461 | with_gnu_ld=no | |
7462 | fi | |
7463 | ;; | |
7464 | interix*) | |
7465 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7466 | with_gnu_ld=yes | |
7467 | ;; | |
7468 | openbsd*) | |
7469 | with_gnu_ld=no | |
7470 | ;; | |
7471 | esac | |
7472 | ||
7473 | ld_shlibs=yes | |
7474 | if test "$with_gnu_ld" = yes; then | |
7475 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7476 | wlarc='${wl}' | |
7477 | ||
7478 | # Set some defaults for GNU ld with shared library support. These | |
7479 | # are reset later if shared libraries are not supported. Putting them | |
7480 | # here allows them to be overridden if necessary. | |
7481 | runpath_var=LD_RUN_PATH | |
7482 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7483 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7484 | # ancient GNU ld didn't support --whole-archive et. al. | |
7485 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7486 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7487 | else | |
7488 | whole_archive_flag_spec= | |
7489 | fi | |
7490 | supports_anon_versioning=no | |
7491 | case `$LD -v 2>&1` in | |
7492 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7493 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7494 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7495 | *\ 2.11.*) ;; # other 2.11 versions | |
7496 | *) supports_anon_versioning=yes ;; | |
7497 | esac | |
7498 | ||
7499 | # See if GNU ld supports shared libraries. | |
7500 | case $host_os in | |
e81819a5 | 7501 | aix[3-9]*) |
d7040cdb SE |
7502 | # On AIX/PPC, the GNU linker is very broken |
7503 | if test "$host_cpu" != ia64; then | |
7504 | ld_shlibs=no | |
7505 | cat <<_LT_EOF 1>&2 | |
7506 | ||
7507 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7508 | *** to be unable to reliably create shared libraries on AIX. | |
7509 | *** Therefore, libtool is disabling shared libraries support. If you | |
7510 | *** really care for shared libraries, you may want to modify your PATH | |
7511 | *** so that a non-GNU linker is found, and then restart. | |
7512 | ||
7513 | _LT_EOF | |
7514 | fi | |
7515 | ;; | |
7516 | ||
7517 | amigaos*) | |
7518 | if test "$host_cpu" = m68k; then | |
7519 | 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)' | |
7520 | hardcode_libdir_flag_spec='-L$libdir' | |
7521 | hardcode_minus_L=yes | |
7522 | fi | |
7523 | ||
7524 | # Samuel A. Falvo II <[email protected]> reports | |
7525 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7526 | # to version 4, is to share data among multiple programs linked | |
7527 | # with the same dynamic library. Since this doesn't match the | |
7528 | # behavior of shared libraries on other platforms, we can't use | |
7529 | # them. | |
7530 | ld_shlibs=no | |
7531 | ;; | |
7532 | ||
7533 | beos*) | |
7534 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7535 | allow_undefined_flag=unsupported | |
7536 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
7537 | # support --undefined. This deserves some investigation. FIXME | |
7538 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7539 | else | |
7540 | ld_shlibs=no | |
7541 | fi | |
7542 | ;; | |
7543 | ||
7544 | cygwin* | mingw* | pw32*) | |
7545 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7546 | # as there is no search path for DLLs. | |
7547 | hardcode_libdir_flag_spec='-L$libdir' | |
7548 | allow_undefined_flag=unsupported | |
7549 | always_export_symbols=no | |
7550 | enable_shared_with_static_runtimes=yes | |
7551 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7552 | ||
7553 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7554 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7555 | # If the export-symbols file already is a .def file (1st line | |
7556 | # is EXPORTS), use it as is; otherwise, prepend... | |
7557 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7558 | cp $export_symbols $output_objdir/$soname.def; | |
7559 | else | |
7560 | echo EXPORTS > $output_objdir/$soname.def; | |
7561 | cat $export_symbols >> $output_objdir/$soname.def; | |
7562 | fi~ | |
7563 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7564 | else | |
7565 | ld_shlibs=no | |
7566 | fi | |
7567 | ;; | |
7568 | ||
7569 | interix[3-9]*) | |
7570 | hardcode_direct=no | |
7571 | hardcode_shlibpath_var=no | |
7572 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7573 | export_dynamic_flag_spec='${wl}-E' | |
7574 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7575 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7576 | # default) and relocated if they conflict, which is a slow very memory | |
7577 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7578 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7579 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7580 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7581 | 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' | |
7582 | ;; | |
7583 | ||
7584 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
7585 | tmp_diet=no | |
7586 | if test "$host_os" = linux-dietlibc; then | |
7587 | case $cc_basename in | |
7588 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7589 | esac | |
7590 | fi | |
7591 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7592 | && test "$tmp_diet" = no | |
7593 | then | |
7594 | tmp_addflag= | |
7595 | case $cc_basename,$host_cpu in | |
7596 | pgcc*) # Portland Group C compiler | |
7597 | 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' | |
7598 | tmp_addflag=' $pic_flag' | |
7599 | ;; | |
7600 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7601 | 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' | |
7602 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7603 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7604 | tmp_addflag=' -i_dynamic' ;; | |
7605 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7606 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7607 | ifc* | ifort*) # Intel Fortran compiler | |
7608 | tmp_addflag=' -nofor_main' ;; | |
7609 | esac | |
7610 | case `$CC -V 2>&1 | sed 5q` in | |
7611 | *Sun\ C*) # Sun C 5.9 | |
7612 | 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' | |
7613 | compiler_needs_object=yes | |
7614 | tmp_sharedflag='-G' ;; | |
7615 | *Sun\ F*) # Sun Fortran 8.3 | |
7616 | tmp_sharedflag='-G' ;; | |
7617 | *) | |
7618 | tmp_sharedflag='-shared' ;; | |
7619 | esac | |
7620 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7621 | ||
7622 | if test "x$supports_anon_versioning" = xyes; then | |
7623 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7624 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7625 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7626 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7627 | fi | |
7628 | else | |
7629 | ld_shlibs=no | |
7630 | fi | |
7631 | ;; | |
7632 | ||
7633 | netbsd*) | |
7634 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7635 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7636 | wlarc= | |
7637 | else | |
7638 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7639 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7640 | fi | |
7641 | ;; | |
7642 | ||
7643 | solaris*) | |
7644 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7645 | ld_shlibs=no | |
7646 | cat <<_LT_EOF 1>&2 | |
7647 | ||
7648 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7649 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7650 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7651 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7652 | *** your PATH or compiler configuration so that the native linker is | |
7653 | *** used, and then restart. | |
7654 | ||
7655 | _LT_EOF | |
7656 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7657 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7658 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7659 | else | |
7660 | ld_shlibs=no | |
7661 | fi | |
7662 | ;; | |
7663 | ||
7664 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7665 | case `$LD -v 2>&1` in | |
7666 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7667 | ld_shlibs=no | |
7668 | cat <<_LT_EOF 1>&2 | |
7669 | ||
7670 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7671 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7672 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7673 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7674 | *** your PATH or compiler configuration so that the native linker is | |
7675 | *** used, and then restart. | |
7676 | ||
7677 | _LT_EOF | |
7678 | ;; | |
7679 | *) | |
7680 | # For security reasons, it is highly recommended that you always | |
7681 | # use absolute paths for naming shared libraries, and exclude the | |
7682 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7683 | # requires that you compile everything twice, which is a pain. | |
7684 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7685 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7686 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7687 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7688 | else | |
7689 | ld_shlibs=no | |
7690 | fi | |
7691 | ;; | |
7692 | esac | |
7693 | ;; | |
7694 | ||
7695 | sunos4*) | |
7696 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7697 | wlarc= | |
7698 | hardcode_direct=yes | |
7699 | hardcode_shlibpath_var=no | |
7700 | ;; | |
7701 | ||
7702 | *) | |
7703 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7704 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7705 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7706 | else | |
7707 | ld_shlibs=no | |
7708 | fi | |
7709 | ;; | |
7710 | esac | |
7711 | ||
7712 | if test "$ld_shlibs" = no; then | |
7713 | runpath_var= | |
7714 | hardcode_libdir_flag_spec= | |
7715 | export_dynamic_flag_spec= | |
7716 | whole_archive_flag_spec= | |
7717 | fi | |
7718 | else | |
7719 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7720 | case $host_os in | |
7721 | aix3*) | |
7722 | allow_undefined_flag=unsupported | |
7723 | always_export_symbols=yes | |
7724 | 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' | |
7725 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7726 | # are no directories specified by -L. | |
7727 | hardcode_minus_L=yes | |
7728 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7729 | # Neither direct hardcoding nor static linking is supported with a | |
7730 | # broken collect2. | |
7731 | hardcode_direct=unsupported | |
7732 | fi | |
7733 | ;; | |
7734 | ||
e81819a5 | 7735 | aix[4-9]*) |
d7040cdb SE |
7736 | if test "$host_cpu" = ia64; then |
7737 | # On IA64, the linker does run time linking by default, so we don't | |
7738 | # have to do anything special. | |
7739 | aix_use_runtimelinking=no | |
7740 | exp_sym_flag='-Bexport' | |
7741 | no_entry_flag="" | |
7742 | else | |
7743 | # If we're using GNU nm, then we don't want the "-C" option. | |
7744 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7745 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7746 | 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' | |
7747 | else | |
7748 | 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' | |
7749 | fi | |
7750 | aix_use_runtimelinking=no | |
7751 | ||
7752 | # Test if we are trying to use run time linking or normal | |
7753 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7754 | # need to do runtime linking. | |
e81819a5 | 7755 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d7040cdb SE |
7756 | for ld_flag in $LDFLAGS; do |
7757 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7758 | aix_use_runtimelinking=yes | |
7759 | break | |
7760 | fi | |
7761 | done | |
7762 | ;; | |
7763 | esac | |
7764 | ||
7765 | exp_sym_flag='-bexport' | |
7766 | no_entry_flag='-bnoentry' | |
7767 | fi | |
7768 | ||
7769 | # When large executables or shared objects are built, AIX ld can | |
7770 | # have problems creating the table of contents. If linking a library | |
7771 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7772 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7773 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7774 | ||
7775 | archive_cmds='' | |
7776 | hardcode_direct=yes | |
7777 | hardcode_direct_absolute=yes | |
7778 | hardcode_libdir_separator=':' | |
7779 | link_all_deplibs=yes | |
7780 | file_list_spec='${wl}-f,' | |
7781 | ||
7782 | if test "$GCC" = yes; then | |
7783 | case $host_os in aix4.[012]|aix4.[012].*) | |
7784 | # We only want to do this on AIX 4.2 and lower, the check | |
7785 | # below for broken collect2 doesn't work under 4.3+ | |
7786 | collect2name=`${CC} -print-prog-name=collect2` | |
7787 | if test -f "$collect2name" && | |
7788 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7789 | then | |
7790 | # We have reworked collect2 | |
7791 | : | |
7792 | else | |
7793 | # We have old collect2 | |
7794 | hardcode_direct=unsupported | |
7795 | # It fails to find uninstalled libraries when the uninstalled | |
7796 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7797 | # to unsupported forces relinking | |
7798 | hardcode_minus_L=yes | |
7799 | hardcode_libdir_flag_spec='-L$libdir' | |
7800 | hardcode_libdir_separator= | |
7801 | fi | |
7802 | ;; | |
7803 | esac | |
7804 | shared_flag='-shared' | |
7805 | if test "$aix_use_runtimelinking" = yes; then | |
7806 | shared_flag="$shared_flag "'${wl}-G' | |
7807 | fi | |
7808 | else | |
7809 | # not using gcc | |
7810 | if test "$host_cpu" = ia64; then | |
7811 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7812 | # chokes on -Wl,-G. The following line is correct: | |
7813 | shared_flag='-G' | |
7814 | else | |
7815 | if test "$aix_use_runtimelinking" = yes; then | |
7816 | shared_flag='${wl}-G' | |
7817 | else | |
7818 | shared_flag='${wl}-bM:SRE' | |
7819 | fi | |
7820 | fi | |
7821 | fi | |
7822 | ||
7823 | # It seems that -bexpall does not export symbols beginning with | |
7824 | # underscore (_), so it is better to generate a list of symbols to export. | |
7825 | always_export_symbols=yes | |
7826 | if test "$aix_use_runtimelinking" = yes; then | |
7827 | # Warning - without using the other runtime loading flags (-brtl), | |
7828 | # -berok will link without error, but may produce a broken library. | |
7829 | allow_undefined_flag='-berok' | |
7830 | # Determine the default libpath from the value encoded in an | |
7831 | # empty executable. | |
7832 | cat >conftest.$ac_ext <<_ACEOF | |
7833 | /* confdefs.h. */ | |
7834 | _ACEOF | |
7835 | cat confdefs.h >>conftest.$ac_ext | |
7836 | cat >>conftest.$ac_ext <<_ACEOF | |
7837 | /* end confdefs.h. */ | |
7838 | ||
7839 | int | |
7840 | main () | |
7841 | { | |
7842 | ||
7843 | ; | |
7844 | return 0; | |
7845 | } | |
7846 | _ACEOF | |
7847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7849 | (eval $ac_link) 2>conftest.er1 | |
7850 | ac_status=$? | |
7851 | grep -v '^ *+' conftest.er1 >conftest.err | |
7852 | rm -f conftest.er1 | |
7853 | cat conftest.err >&5 | |
7854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7855 | (exit $ac_status); } && | |
7856 | { ac_try='test -z "$ac_c_werror_flag" | |
7857 | || test ! -s conftest.err' | |
7858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7859 | (eval $ac_try) 2>&5 | |
7860 | ac_status=$? | |
7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7862 | (exit $ac_status); }; } && | |
7863 | { ac_try='test -s conftest$ac_exeext' | |
7864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7865 | (eval $ac_try) 2>&5 | |
7866 | ac_status=$? | |
7867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7868 | (exit $ac_status); }; }; then | |
7869 | ||
7870 | lt_aix_libpath_sed=' | |
7871 | /Import File Strings/,/^$/ { | |
7872 | /^0/ { | |
7873 | s/^0 *\(.*\)$/\1/ | |
7874 | p | |
7875 | } | |
7876 | }' | |
7877 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7878 | # Check for a 64-bit object if we didn't find anything. | |
7879 | if test -z "$aix_libpath"; then | |
7880 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7881 | fi | |
7882 | else | |
7883 | echo "$as_me: failed program was:" >&5 | |
7884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7885 | ||
7886 | fi | |
7887 | rm -f conftest.err conftest.$ac_objext \ | |
7888 | conftest$ac_exeext conftest.$ac_ext | |
7889 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7890 | ||
7891 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7892 | 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" | |
7893 | else | |
7894 | if test "$host_cpu" = ia64; then | |
7895 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7896 | allow_undefined_flag="-z nodefs" | |
7897 | 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" | |
7898 | else | |
7899 | # Determine the default libpath from the value encoded in an | |
7900 | # empty executable. | |
7901 | cat >conftest.$ac_ext <<_ACEOF | |
7902 | /* confdefs.h. */ | |
7903 | _ACEOF | |
7904 | cat confdefs.h >>conftest.$ac_ext | |
7905 | cat >>conftest.$ac_ext <<_ACEOF | |
7906 | /* end confdefs.h. */ | |
7907 | ||
7908 | int | |
7909 | main () | |
7910 | { | |
7911 | ||
7912 | ; | |
7913 | return 0; | |
7914 | } | |
7915 | _ACEOF | |
7916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7918 | (eval $ac_link) 2>conftest.er1 | |
7919 | ac_status=$? | |
7920 | grep -v '^ *+' conftest.er1 >conftest.err | |
7921 | rm -f conftest.er1 | |
7922 | cat conftest.err >&5 | |
7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7924 | (exit $ac_status); } && | |
7925 | { ac_try='test -z "$ac_c_werror_flag" | |
7926 | || test ! -s conftest.err' | |
7927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7928 | (eval $ac_try) 2>&5 | |
7929 | ac_status=$? | |
7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7931 | (exit $ac_status); }; } && | |
7932 | { ac_try='test -s conftest$ac_exeext' | |
7933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7934 | (eval $ac_try) 2>&5 | |
7935 | ac_status=$? | |
7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7937 | (exit $ac_status); }; }; then | |
7938 | ||
7939 | lt_aix_libpath_sed=' | |
7940 | /Import File Strings/,/^$/ { | |
7941 | /^0/ { | |
7942 | s/^0 *\(.*\)$/\1/ | |
7943 | p | |
7944 | } | |
7945 | }' | |
7946 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7947 | # Check for a 64-bit object if we didn't find anything. | |
7948 | if test -z "$aix_libpath"; then | |
7949 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7950 | fi | |
7951 | else | |
7952 | echo "$as_me: failed program was:" >&5 | |
7953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7954 | ||
7955 | fi | |
7956 | rm -f conftest.err conftest.$ac_objext \ | |
7957 | conftest$ac_exeext conftest.$ac_ext | |
7958 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7959 | ||
7960 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7961 | # Warning - without using the other run time loading flags, | |
7962 | # -berok will link without error, but may produce a broken library. | |
7963 | no_undefined_flag=' ${wl}-bernotok' | |
7964 | allow_undefined_flag=' ${wl}-berok' | |
7965 | # Exported symbols can be pulled into shared objects from archives | |
7966 | whole_archive_flag_spec='$convenience' | |
7967 | archive_cmds_need_lc=yes | |
7968 | # This is similar to how AIX traditionally builds its shared libraries. | |
7969 | 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' | |
7970 | fi | |
7971 | fi | |
7972 | ;; | |
7973 | ||
7974 | amigaos*) | |
7975 | if test "$host_cpu" = m68k; then | |
7976 | 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)' | |
7977 | hardcode_libdir_flag_spec='-L$libdir' | |
7978 | hardcode_minus_L=yes | |
7979 | fi | |
7980 | # see comment about different semantics on the GNU ld section | |
7981 | ld_shlibs=no | |
7982 | ;; | |
7983 | ||
7984 | bsdi[45]*) | |
7985 | export_dynamic_flag_spec=-rdynamic | |
7986 | ;; | |
7987 | ||
7988 | cygwin* | mingw* | pw32*) | |
7989 | # When not using gcc, we currently assume that we are using | |
7990 | # Microsoft Visual C++. | |
7991 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7992 | # no search path for DLLs. | |
7993 | hardcode_libdir_flag_spec=' ' | |
7994 | allow_undefined_flag=unsupported | |
7995 | # Tell ltmain to make .lib files, not .a files. | |
7996 | libext=lib | |
7997 | # Tell ltmain to make .dll files, not .so files. | |
7998 | shrext_cmds=".dll" | |
7999 | # FIXME: Setting linknames here is a bad hack. | |
8000 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8001 | # The linker will automatically build a .lib file if we build a DLL. | |
8002 | old_archive_from_new_cmds='true' | |
8003 | # FIXME: Should let the user specify the lib program. | |
8004 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8005 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8006 | enable_shared_with_static_runtimes=yes | |
8007 | ;; | |
8008 | ||
8009 | darwin* | rhapsody*) | |
8010 | case $host_os in | |
8011 | rhapsody* | darwin1.[012]) | |
8012 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8013 | ;; | |
8014 | *) # Darwin 1.3 on | |
8015 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
8016 | 10.[012]) | |
8017 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8018 | ;; | |
8019 | 10.*) | |
8020 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8021 | ;; | |
8022 | esac | |
8023 | ;; | |
8024 | esac | |
8025 | archive_cmds_need_lc=no | |
8026 | hardcode_direct=no | |
8027 | hardcode_automatic=yes | |
8028 | hardcode_shlibpath_var=unsupported | |
8029 | whole_archive_flag_spec='' | |
8030 | link_all_deplibs=yes | |
8031 | if test "$GCC" = yes ; then | |
8032 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8034 | else | |
8035 | lt_cv_apple_cc_single_mod=no | |
8036 | if test -z "${LT_MULTI_MODULE}"; then | |
8037 | # By default we will add the -single_module flag. You can override | |
8038 | # by either setting the environment variable LT_MULTI_MODULE | |
8039 | # non-empty at configure time, or by adding -multi-module to the | |
8040 | # link flags. | |
8041 | echo "int foo(void){return 1;}" > conftest.c | |
8042 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8043 | -dynamiclib ${wl}-single_module conftest.c | |
8044 | if test -f libconftest.dylib; then | |
8045 | lt_cv_apple_cc_single_mod=yes | |
8046 | rm libconftest.dylib | |
8047 | fi | |
8048 | rm conftest.$ac_ext | |
8049 | fi | |
8050 | fi | |
8051 | ||
8052 | output_verbose_link_cmd=echo | |
8053 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8054 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8055 | 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}' | |
8056 | else | |
8057 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8058 | 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}' | |
8059 | fi | |
8060 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8061 | 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}' | |
8062 | else | |
8063 | case $cc_basename in | |
8064 | xlc*) | |
8065 | output_verbose_link_cmd=echo | |
8066 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8067 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8068 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8069 | 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}' | |
8070 | 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}' | |
8071 | ;; | |
8072 | *) | |
8073 | ld_shlibs=no | |
8074 | ;; | |
8075 | esac | |
8076 | fi | |
8077 | ;; | |
8078 | ||
8079 | dgux*) | |
8080 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8081 | hardcode_libdir_flag_spec='-L$libdir' | |
8082 | hardcode_shlibpath_var=no | |
8083 | ;; | |
8084 | ||
8085 | freebsd1*) | |
8086 | ld_shlibs=no | |
8087 | ;; | |
8088 | ||
8089 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8090 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8091 | # does not break anything, and helps significantly (at the cost of a little | |
8092 | # extra space). | |
8093 | freebsd2.2*) | |
8094 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8095 | hardcode_libdir_flag_spec='-R$libdir' | |
8096 | hardcode_direct=yes | |
8097 | hardcode_shlibpath_var=no | |
8098 | ;; | |
8099 | ||
8100 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8101 | freebsd2*) | |
8102 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8103 | hardcode_direct=yes | |
8104 | hardcode_minus_L=yes | |
8105 | hardcode_shlibpath_var=no | |
8106 | ;; | |
8107 | ||
8108 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8109 | freebsd* | dragonfly*) | |
8110 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8111 | hardcode_libdir_flag_spec='-R$libdir' | |
8112 | hardcode_direct=yes | |
8113 | hardcode_shlibpath_var=no | |
8114 | ;; | |
8115 | ||
8116 | hpux9*) | |
8117 | if test "$GCC" = yes; then | |
8118 | 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' | |
8119 | else | |
8120 | 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' | |
8121 | fi | |
8122 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8123 | hardcode_libdir_separator=: | |
8124 | hardcode_direct=yes | |
8125 | ||
8126 | # hardcode_minus_L: Not really in the search PATH, | |
8127 | # but as the default location of the library. | |
8128 | hardcode_minus_L=yes | |
8129 | export_dynamic_flag_spec='${wl}-E' | |
8130 | ;; | |
8131 | ||
8132 | hpux10*) | |
8133 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8134 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8135 | else | |
8136 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8137 | fi | |
8138 | if test "$with_gnu_ld" = no; then | |
8139 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8140 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8141 | hardcode_libdir_separator=: | |
8142 | hardcode_direct=yes | |
8143 | hardcode_direct_absolute=yes | |
8144 | export_dynamic_flag_spec='${wl}-E' | |
8145 | # hardcode_minus_L: Not really in the search PATH, | |
8146 | # but as the default location of the library. | |
8147 | hardcode_minus_L=yes | |
8148 | fi | |
8149 | ;; | |
8150 | ||
8151 | hpux11*) | |
8152 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8153 | case $host_cpu in | |
8154 | hppa*64*) | |
8155 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8156 | ;; | |
8157 | ia64*) | |
8158 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8159 | ;; | |
8160 | *) | |
8161 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8162 | ;; | |
8163 | esac | |
8164 | else | |
8165 | case $host_cpu in | |
8166 | hppa*64*) | |
8167 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8168 | ;; | |
8169 | ia64*) | |
8170 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8171 | ;; | |
8172 | *) | |
8173 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8174 | ;; | |
8175 | esac | |
8176 | fi | |
8177 | if test "$with_gnu_ld" = no; then | |
8178 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8179 | hardcode_libdir_separator=: | |
8180 | ||
8181 | case $host_cpu in | |
8182 | hppa*64*|ia64*) | |
8183 | hardcode_direct=no | |
8184 | hardcode_shlibpath_var=no | |
8185 | ;; | |
8186 | *) | |
8187 | hardcode_direct=yes | |
8188 | hardcode_direct_absolute=yes | |
8189 | export_dynamic_flag_spec='${wl}-E' | |
8190 | ||
8191 | # hardcode_minus_L: Not really in the search PATH, | |
8192 | # but as the default location of the library. | |
8193 | hardcode_minus_L=yes | |
8194 | ;; | |
8195 | esac | |
8196 | fi | |
8197 | ;; | |
8198 | ||
8199 | irix5* | irix6* | nonstopux*) | |
8200 | if test "$GCC" = yes; then | |
8201 | 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' | |
8202 | # Try to use the -exported_symbol ld option, if it does not | |
8203 | # work, assume that -exports_file does not work either and | |
8204 | # implicitly export all symbols. | |
8205 | save_LDFLAGS="$LDFLAGS" | |
8206 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8207 | cat >conftest.$ac_ext <<_ACEOF | |
8208 | int foo(void) {} | |
8209 | _ACEOF | |
8210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8212 | (eval $ac_link) 2>conftest.er1 | |
8213 | ac_status=$? | |
8214 | grep -v '^ *+' conftest.er1 >conftest.err | |
8215 | rm -f conftest.er1 | |
8216 | cat conftest.err >&5 | |
8217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8218 | (exit $ac_status); } && | |
8219 | { ac_try='test -z "$ac_c_werror_flag" | |
8220 | || test ! -s conftest.err' | |
8221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8222 | (eval $ac_try) 2>&5 | |
8223 | ac_status=$? | |
8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8225 | (exit $ac_status); }; } && | |
8226 | { ac_try='test -s conftest$ac_exeext' | |
8227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8228 | (eval $ac_try) 2>&5 | |
8229 | ac_status=$? | |
8230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8231 | (exit $ac_status); }; }; then | |
8232 | 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' | |
8233 | ||
8234 | else | |
8235 | echo "$as_me: failed program was:" >&5 | |
8236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8237 | ||
8238 | fi | |
8239 | rm -f conftest.err conftest.$ac_objext \ | |
8240 | conftest$ac_exeext conftest.$ac_ext | |
8241 | LDFLAGS="$save_LDFLAGS" | |
8242 | else | |
8243 | 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' | |
8244 | 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' | |
8245 | fi | |
8246 | archive_cmds_need_lc='no' | |
8247 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8248 | hardcode_libdir_separator=: | |
8249 | inherit_rpath=yes | |
8250 | link_all_deplibs=yes | |
8251 | ;; | |
8252 | ||
8253 | netbsd*) | |
8254 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8255 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8256 | else | |
8257 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8258 | fi | |
8259 | hardcode_libdir_flag_spec='-R$libdir' | |
8260 | hardcode_direct=yes | |
8261 | hardcode_shlibpath_var=no | |
8262 | ;; | |
8263 | ||
8264 | newsos6) | |
8265 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8266 | hardcode_direct=yes | |
8267 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8268 | hardcode_libdir_separator=: | |
8269 | hardcode_shlibpath_var=no | |
8270 | ;; | |
8271 | ||
8272 | *nto* | *qnx*) | |
8273 | ;; | |
8274 | ||
8275 | openbsd*) | |
8276 | hardcode_direct=yes | |
8277 | hardcode_shlibpath_var=no | |
8278 | hardcode_direct_absolute=yes | |
8279 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8280 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8281 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8282 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8283 | export_dynamic_flag_spec='${wl}-E' | |
8284 | else | |
8285 | case $host_os in | |
8286 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8287 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8288 | hardcode_libdir_flag_spec='-R$libdir' | |
8289 | ;; | |
8290 | *) | |
8291 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8292 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8293 | ;; | |
8294 | esac | |
8295 | fi | |
8296 | ;; | |
8297 | ||
8298 | os2*) | |
8299 | hardcode_libdir_flag_spec='-L$libdir' | |
8300 | hardcode_minus_L=yes | |
8301 | allow_undefined_flag=unsupported | |
8302 | 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' | |
8303 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8304 | ;; | |
8305 | ||
8306 | osf3*) | |
8307 | if test "$GCC" = yes; then | |
8308 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8309 | 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' | |
8310 | else | |
8311 | allow_undefined_flag=' -expect_unresolved \*' | |
8312 | 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' | |
8313 | fi | |
8314 | archive_cmds_need_lc='no' | |
8315 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8316 | hardcode_libdir_separator=: | |
8317 | ;; | |
8318 | ||
8319 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8320 | if test "$GCC" = yes; then | |
8321 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8322 | 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' | |
8323 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8324 | else | |
8325 | allow_undefined_flag=' -expect_unresolved \*' | |
8326 | 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' | |
8327 | 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~ | |
8328 | $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' | |
8329 | ||
8330 | # Both c and cxx compiler support -rpath directly | |
8331 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8332 | fi | |
8333 | archive_cmds_need_lc='no' | |
8334 | hardcode_libdir_separator=: | |
8335 | ;; | |
8336 | ||
8337 | solaris*) | |
8338 | no_undefined_flag=' -z defs' | |
8339 | if test "$GCC" = yes; then | |
8340 | wlarc='${wl}' | |
8341 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8342 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8343 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8344 | else | |
8345 | case `$CC -V 2>&1` in | |
8346 | *"Compilers 5.0"*) | |
8347 | wlarc='' | |
8348 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8349 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8350 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8351 | ;; | |
8352 | *) | |
8353 | wlarc='${wl}' | |
8354 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8355 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8356 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8357 | ;; | |
8358 | esac | |
8359 | fi | |
8360 | hardcode_libdir_flag_spec='-R$libdir' | |
8361 | hardcode_shlibpath_var=no | |
8362 | case $host_os in | |
8363 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8364 | *) | |
8365 | # The compiler driver will combine and reorder linker options, | |
8366 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8367 | # but is careful enough not to reorder. | |
8368 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8369 | if test "$GCC" = yes; then | |
8370 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8371 | else | |
8372 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8373 | fi | |
8374 | ;; | |
8375 | esac | |
8376 | link_all_deplibs=yes | |
8377 | ;; | |
8378 | ||
8379 | sunos4*) | |
8380 | if test "x$host_vendor" = xsequent; then | |
8381 | # Use $CC to link under sequent, because it throws in some extra .o | |
8382 | # files that make .init and .fini sections work. | |
8383 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8384 | else | |
8385 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8386 | fi | |
8387 | hardcode_libdir_flag_spec='-L$libdir' | |
8388 | hardcode_direct=yes | |
8389 | hardcode_minus_L=yes | |
8390 | hardcode_shlibpath_var=no | |
8391 | ;; | |
8392 | ||
8393 | sysv4) | |
8394 | case $host_vendor in | |
8395 | sni) | |
8396 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8397 | hardcode_direct=yes # is this really true??? | |
8398 | ;; | |
8399 | siemens) | |
8400 | ## LD is ld it makes a PLAMLIB | |
8401 | ## CC just makes a GrossModule. | |
8402 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8403 | reload_cmds='$CC -r -o $output$reload_objs' | |
8404 | hardcode_direct=no | |
8405 | ;; | |
8406 | motorola) | |
8407 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8408 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8409 | ;; | |
8410 | esac | |
8411 | runpath_var='LD_RUN_PATH' | |
8412 | hardcode_shlibpath_var=no | |
8413 | ;; | |
8414 | ||
8415 | sysv4.3*) | |
8416 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8417 | hardcode_shlibpath_var=no | |
8418 | export_dynamic_flag_spec='-Bexport' | |
8419 | ;; | |
8420 | ||
8421 | sysv4*MP*) | |
8422 | if test -d /usr/nec; then | |
8423 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8424 | hardcode_shlibpath_var=no | |
8425 | runpath_var=LD_RUN_PATH | |
8426 | hardcode_runpath_var=yes | |
8427 | ld_shlibs=yes | |
8428 | fi | |
8429 | ;; | |
8430 | ||
8431 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8432 | no_undefined_flag='${wl}-z,text' | |
8433 | archive_cmds_need_lc=no | |
8434 | hardcode_shlibpath_var=no | |
8435 | runpath_var='LD_RUN_PATH' | |
8436 | ||
8437 | if test "$GCC" = yes; then | |
8438 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8439 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8440 | else | |
8441 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8442 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8443 | fi | |
8444 | ;; | |
8445 | ||
8446 | sysv5* | sco3.2v5* | sco5v6*) | |
8447 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8448 | # link with -lc, and that would cause any symbols used from libc to | |
8449 | # always be unresolved, which means just about no library would | |
8450 | # ever link correctly. If we're not using GNU ld we use -z text | |
8451 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8452 | # as -z defs. | |
8453 | no_undefined_flag='${wl}-z,text' | |
8454 | allow_undefined_flag='${wl}-z,nodefs' | |
8455 | archive_cmds_need_lc=no | |
8456 | hardcode_shlibpath_var=no | |
8457 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8458 | hardcode_libdir_separator=':' | |
8459 | link_all_deplibs=yes | |
8460 | export_dynamic_flag_spec='${wl}-Bexport' | |
8461 | runpath_var='LD_RUN_PATH' | |
8462 | ||
8463 | if test "$GCC" = yes; then | |
8464 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8465 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8466 | else | |
8467 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8468 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8469 | fi | |
8470 | ;; | |
8471 | ||
8472 | uts4*) | |
8473 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8474 | hardcode_libdir_flag_spec='-L$libdir' | |
8475 | hardcode_shlibpath_var=no | |
8476 | ;; | |
8477 | ||
8478 | *) | |
8479 | ld_shlibs=no | |
8480 | ;; | |
8481 | esac | |
8482 | ||
8483 | if test x$host_vendor = xsni; then | |
8484 | case $host in | |
8485 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8486 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8487 | ;; | |
8488 | esac | |
8489 | fi | |
8490 | fi | |
8491 | ||
8492 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8493 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8494 | test "$ld_shlibs" = no && can_build_shared=no | |
8495 | ||
8496 | with_gnu_ld=$with_gnu_ld | |
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | # | |
8513 | # Do we need to explicitly link libc? | |
8514 | # | |
8515 | case "x$archive_cmds_need_lc" in | |
8516 | x|xyes) | |
8517 | # Assume -lc should be added | |
8518 | archive_cmds_need_lc=yes | |
8519 | ||
8520 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8521 | case $archive_cmds in | |
8522 | *'~'*) | |
8523 | # FIXME: we may have to deal with multi-command sequences. | |
8524 | ;; | |
8525 | '$CC '*) | |
8526 | # Test whether the compiler implicitly links with -lc since on some | |
8527 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8528 | # to ld, don't add -lc before -lgcc. | |
8529 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8530 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8531 | $RM conftest* | |
8532 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8533 | ||
8534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8535 | (eval $ac_compile) 2>&5 | |
8536 | ac_status=$? | |
8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8538 | (exit $ac_status); } 2>conftest.err; then | |
8539 | soname=conftest | |
8540 | lib=conftest | |
8541 | libobjs=conftest.$ac_objext | |
8542 | deplibs= | |
8543 | wl=$lt_prog_compiler_wl | |
8544 | pic_flag=$lt_prog_compiler_pic | |
8545 | compiler_flags=-v | |
8546 | linker_flags=-v | |
8547 | verstring= | |
8548 | output_objdir=. | |
8549 | libname=conftest | |
8550 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8551 | allow_undefined_flag= | |
8552 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8553 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8554 | ac_status=$? | |
8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8556 | (exit $ac_status); } | |
8557 | then | |
8558 | archive_cmds_need_lc=no | |
8559 | else | |
8560 | archive_cmds_need_lc=yes | |
8561 | fi | |
8562 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8563 | else | |
8564 | cat conftest.err 1>&5 | |
8565 | fi | |
8566 | $RM conftest* | |
8567 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8568 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8569 | ;; | |
8570 | esac | |
8571 | fi | |
8572 | ;; | |
8573 | esac | |
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 | ||
8644 | ||
8645 | ||
8646 | ||
8647 | ||
8648 | ||
8649 | ||
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | ||
8667 | ||
8668 | ||
8669 | ||
8670 | ||
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
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 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | ||
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | ||
8730 | ||
8731 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8732 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8733 | withGCC=$GCC | |
8734 | if test "$withGCC" = yes; then | |
8735 | case $host_os in | |
8736 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8737 | *) lt_awk_arg="/^libraries:/" ;; | |
8738 | esac | |
8739 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8740 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8741 | # if the path contains ";" then we assume it to be the separator | |
8742 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8743 | # assumed that no part of a normal pathname contains ";" but that should | |
8744 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8745 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8746 | else | |
8747 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8748 | fi | |
8749 | # Ok, now we have the path, separated by spaces, we can step through it | |
8750 | # and add multilib dir if necessary. | |
8751 | lt_tmp_lt_search_path_spec= | |
8752 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8753 | for lt_sys_path in $lt_search_path_spec; do | |
8754 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8755 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8756 | else | |
8757 | test -d "$lt_sys_path" && \ | |
8758 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8759 | fi | |
8760 | done | |
8761 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8762 | BEGIN {RS=" "; FS="/|\n";} { | |
8763 | lt_foo=""; | |
8764 | lt_count=0; | |
8765 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8766 | if ($lt_i != "" && $lt_i != ".") { | |
8767 | if ($lt_i == "..") { | |
8768 | lt_count++; | |
8769 | } else { | |
8770 | if (lt_count == 0) { | |
8771 | lt_foo="/" $lt_i lt_foo; | |
8772 | } else { | |
8773 | lt_count--; | |
8774 | } | |
8775 | } | |
8776 | } | |
8777 | } | |
8778 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8779 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8780 | }'` | |
8781 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8782 | else | |
8783 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8784 | fi | |
8785 | library_names_spec= | |
8786 | libname_spec='lib$name' | |
8787 | soname_spec= | |
8788 | shrext_cmds=".so" | |
8789 | postinstall_cmds= | |
8790 | postuninstall_cmds= | |
8791 | finish_cmds= | |
8792 | finish_eval= | |
8793 | shlibpath_var= | |
8794 | shlibpath_overrides_runpath=unknown | |
8795 | version_type=none | |
8796 | dynamic_linker="$host_os ld.so" | |
8797 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8798 | need_lib_prefix=unknown | |
8799 | hardcode_into_libs=no | |
8800 | ||
8801 | # when you set need_version to no, make sure it does not cause -set_version | |
8802 | # flags to be left without arguments | |
8803 | need_version=unknown | |
8804 | ||
8805 | case $host_os in | |
8806 | aix3*) | |
8807 | version_type=linux | |
8808 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8809 | shlibpath_var=LIBPATH | |
8810 | ||
8811 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8812 | soname_spec='${libname}${release}${shared_ext}$major' | |
8813 | ;; | |
8814 | ||
e81819a5 | 8815 | aix[4-9]*) |
d7040cdb SE |
8816 | version_type=linux |
8817 | need_lib_prefix=no | |
8818 | need_version=no | |
8819 | hardcode_into_libs=yes | |
8820 | if test "$host_cpu" = ia64; then | |
8821 | # AIX 5 supports IA64 | |
8822 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8823 | shlibpath_var=LD_LIBRARY_PATH | |
8824 | else | |
8825 | # With GCC up to 2.95.x, collect2 would create an import file | |
8826 | # for dependence libraries. The import file would start with | |
8827 | # the line `#! .'. This would cause the generated library to | |
8828 | # depend on `.', always an invalid library. This was fixed in | |
8829 | # development snapshots of GCC prior to 3.0. | |
8830 | case $host_os in | |
8831 | aix4 | aix4.[01] | aix4.[01].*) | |
8832 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8833 | echo ' yes ' | |
8834 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8835 | : | |
8836 | else | |
8837 | can_build_shared=no | |
8838 | fi | |
8839 | ;; | |
8840 | esac | |
8841 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8842 | # soname into executable. Probably we can add versioning support to | |
8843 | # collect2, so additional links can be useful in future. | |
8844 | if test "$aix_use_runtimelinking" = yes; then | |
8845 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8846 | # instead of lib<name>.a to let people know that these are not | |
8847 | # typical AIX shared libraries. | |
8848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8849 | else | |
8850 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8851 | # and later when we are not doing run time linking. | |
8852 | library_names_spec='${libname}${release}.a $libname.a' | |
8853 | soname_spec='${libname}${release}${shared_ext}$major' | |
8854 | fi | |
8855 | shlibpath_var=LIBPATH | |
8856 | fi | |
8857 | ;; | |
8858 | ||
8859 | amigaos*) | |
8860 | if test "$host_cpu" = m68k; then | |
8861 | library_names_spec='$libname.ixlibrary $libname.a' | |
8862 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8863 | 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' | |
8864 | else | |
8865 | dynamic_linker=no | |
8866 | fi | |
8867 | ;; | |
8868 | ||
8869 | beos*) | |
8870 | library_names_spec='${libname}${shared_ext}' | |
8871 | dynamic_linker="$host_os ld.so" | |
8872 | shlibpath_var=LIBRARY_PATH | |
8873 | ;; | |
8874 | ||
8875 | bsdi[45]*) | |
8876 | version_type=linux | |
8877 | need_version=no | |
8878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8879 | soname_spec='${libname}${release}${shared_ext}$major' | |
8880 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8881 | shlibpath_var=LD_LIBRARY_PATH | |
8882 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8883 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8884 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8885 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8886 | # libtool to hard-code these into programs | |
8887 | ;; | |
8888 | ||
8889 | cygwin* | mingw* | pw32*) | |
8890 | version_type=windows | |
8891 | shrext_cmds=".dll" | |
8892 | need_version=no | |
8893 | need_lib_prefix=no | |
8894 | ||
8895 | case $withGCC,$host_os in | |
8896 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8897 | library_names_spec='$libname.dll.a' | |
8898 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8899 | postinstall_cmds='base_file=`basename \${file}`~ | |
8900 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8901 | dldir=$destdir/`dirname \$dlpath`~ | |
8902 | test -d \$dldir || mkdir -p \$dldir~ | |
8903 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8904 | chmod a+x \$dldir/$dlname~ | |
8905 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8906 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8907 | fi' | |
8908 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8909 | dlpath=$dir/\$dldll~ | |
8910 | $RM \$dlpath' | |
8911 | shlibpath_overrides_runpath=yes | |
8912 | ||
8913 | case $host_os in | |
8914 | cygwin*) | |
8915 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8916 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8917 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8918 | ;; | |
8919 | mingw*) | |
8920 | # MinGW DLLs use traditional 'lib' prefix | |
8921 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8922 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8923 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8924 | # It is most probably a Windows format PATH printed by | |
8925 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8926 | # path with ; separators, and with drive letters. We can handle the | |
8927 | # drive letters (cygwin fileutils understands them), so leave them, | |
8928 | # especially as we might pass files found there to a mingw objdump, | |
8929 | # which wouldn't understand a cygwinified path. Ahh. | |
8930 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8931 | else | |
8932 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8933 | fi | |
8934 | ;; | |
8935 | pw32*) | |
8936 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8937 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8938 | ;; | |
8939 | esac | |
8940 | ;; | |
8941 | ||
8942 | *) | |
8943 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8944 | ;; | |
8945 | esac | |
8946 | dynamic_linker='Win32 ld.exe' | |
8947 | # FIXME: first we should search . and the directory the executable is in | |
8948 | shlibpath_var=PATH | |
8949 | ;; | |
8950 | ||
8951 | darwin* | rhapsody*) | |
8952 | dynamic_linker="$host_os dyld" | |
8953 | version_type=darwin | |
8954 | need_lib_prefix=no | |
8955 | need_version=no | |
8956 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8957 | soname_spec='${libname}${release}${major}$shared_ext' | |
8958 | shlibpath_overrides_runpath=yes | |
8959 | shlibpath_var=DYLD_LIBRARY_PATH | |
8960 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8961 | ||
8962 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8963 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8964 | ;; | |
8965 | ||
8966 | dgux*) | |
8967 | version_type=linux | |
8968 | need_lib_prefix=no | |
8969 | need_version=no | |
8970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8971 | soname_spec='${libname}${release}${shared_ext}$major' | |
8972 | shlibpath_var=LD_LIBRARY_PATH | |
8973 | ;; | |
8974 | ||
8975 | freebsd1*) | |
8976 | dynamic_linker=no | |
8977 | ;; | |
8978 | ||
8979 | freebsd* | dragonfly*) | |
8980 | # DragonFly does not have aout. When/if they implement a new | |
8981 | # versioning mechanism, adjust this. | |
8982 | if test -x /usr/bin/objformat; then | |
8983 | objformat=`/usr/bin/objformat` | |
8984 | else | |
8985 | case $host_os in | |
8986 | freebsd[123]*) objformat=aout ;; | |
8987 | *) objformat=elf ;; | |
8988 | esac | |
8989 | fi | |
8990 | version_type=freebsd-$objformat | |
8991 | case $version_type in | |
8992 | freebsd-elf*) | |
8993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8994 | need_version=no | |
8995 | need_lib_prefix=no | |
8996 | ;; | |
8997 | freebsd-*) | |
8998 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8999 | need_version=yes | |
9000 | ;; | |
9001 | esac | |
9002 | shlibpath_var=LD_LIBRARY_PATH | |
9003 | case $host_os in | |
9004 | freebsd2*) | |
9005 | shlibpath_overrides_runpath=yes | |
9006 | ;; | |
9007 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9008 | shlibpath_overrides_runpath=yes | |
9009 | hardcode_into_libs=yes | |
9010 | ;; | |
9011 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9012 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9013 | shlibpath_overrides_runpath=no | |
9014 | hardcode_into_libs=yes | |
9015 | ;; | |
9016 | *) # from 4.6 on, and DragonFly | |
9017 | shlibpath_overrides_runpath=yes | |
9018 | hardcode_into_libs=yes | |
9019 | ;; | |
9020 | esac | |
9021 | ;; | |
9022 | ||
9023 | gnu*) | |
9024 | version_type=linux | |
9025 | need_lib_prefix=no | |
9026 | need_version=no | |
9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9028 | soname_spec='${libname}${release}${shared_ext}$major' | |
9029 | shlibpath_var=LD_LIBRARY_PATH | |
9030 | hardcode_into_libs=yes | |
9031 | ;; | |
9032 | ||
9033 | hpux9* | hpux10* | hpux11*) | |
9034 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9035 | # link against other versions. | |
9036 | version_type=sunos | |
9037 | need_lib_prefix=no | |
9038 | need_version=no | |
9039 | case $host_cpu in | |
9040 | ia64*) | |
9041 | shrext_cmds='.so' | |
9042 | hardcode_into_libs=yes | |
9043 | dynamic_linker="$host_os dld.so" | |
9044 | shlibpath_var=LD_LIBRARY_PATH | |
9045 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9047 | soname_spec='${libname}${release}${shared_ext}$major' | |
9048 | if test "X$HPUX_IA64_MODE" = X32; then | |
9049 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9050 | else | |
9051 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9052 | fi | |
9053 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9054 | ;; | |
9055 | hppa*64*) | |
9056 | shrext_cmds='.sl' | |
9057 | hardcode_into_libs=yes | |
9058 | dynamic_linker="$host_os dld.sl" | |
9059 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9060 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9062 | soname_spec='${libname}${release}${shared_ext}$major' | |
9063 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9064 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9065 | ;; | |
9066 | *) | |
9067 | shrext_cmds='.sl' | |
9068 | dynamic_linker="$host_os dld.sl" | |
9069 | shlibpath_var=SHLIB_PATH | |
9070 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9072 | soname_spec='${libname}${release}${shared_ext}$major' | |
9073 | ;; | |
9074 | esac | |
9075 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9076 | postinstall_cmds='chmod 555 $lib' | |
9077 | ;; | |
9078 | ||
9079 | interix[3-9]*) | |
9080 | version_type=linux | |
9081 | need_lib_prefix=no | |
9082 | need_version=no | |
9083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9084 | soname_spec='${libname}${release}${shared_ext}$major' | |
9085 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9086 | shlibpath_var=LD_LIBRARY_PATH | |
9087 | shlibpath_overrides_runpath=no | |
9088 | hardcode_into_libs=yes | |
9089 | ;; | |
9090 | ||
9091 | irix5* | irix6* | nonstopux*) | |
9092 | case $host_os in | |
9093 | nonstopux*) version_type=nonstopux ;; | |
9094 | *) | |
9095 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9096 | version_type=linux | |
9097 | else | |
9098 | version_type=irix | |
9099 | fi ;; | |
9100 | esac | |
9101 | need_lib_prefix=no | |
9102 | need_version=no | |
9103 | soname_spec='${libname}${release}${shared_ext}$major' | |
9104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9105 | case $host_os in | |
9106 | irix5* | nonstopux*) | |
9107 | libsuff= shlibsuff= | |
9108 | ;; | |
9109 | *) | |
9110 | case $LD in # libtool.m4 will add one of these switches to LD | |
9111 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9112 | libsuff= shlibsuff= libmagic=32-bit;; | |
9113 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9114 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9115 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9116 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9117 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9118 | esac | |
9119 | ;; | |
9120 | esac | |
9121 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9122 | shlibpath_overrides_runpath=no | |
9123 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9124 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9125 | hardcode_into_libs=yes | |
9126 | ;; | |
9127 | ||
9128 | # No shared lib support for Linux oldld, aout, or coff. | |
9129 | linux*oldld* | linux*aout* | linux*coff*) | |
9130 | dynamic_linker=no | |
9131 | ;; | |
9132 | ||
9133 | # This must be Linux ELF. | |
9134 | linux* | k*bsd*-gnu) | |
9135 | version_type=linux | |
9136 | need_lib_prefix=no | |
9137 | need_version=no | |
9138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9139 | soname_spec='${libname}${release}${shared_ext}$major' | |
9140 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9141 | shlibpath_var=LD_LIBRARY_PATH | |
9142 | shlibpath_overrides_runpath=no | |
9143 | # Some binutils ld are patched to set DT_RUNPATH | |
9144 | save_LDFLAGS=$LDFLAGS | |
9145 | save_libdir=$libdir | |
9146 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9147 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9148 | cat >conftest.$ac_ext <<_ACEOF | |
9149 | /* confdefs.h. */ | |
9150 | _ACEOF | |
9151 | cat confdefs.h >>conftest.$ac_ext | |
9152 | cat >>conftest.$ac_ext <<_ACEOF | |
9153 | /* end confdefs.h. */ | |
9154 | ||
9155 | int | |
9156 | main () | |
9157 | { | |
9158 | ||
9159 | ; | |
9160 | return 0; | |
9161 | } | |
9162 | _ACEOF | |
9163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9165 | (eval $ac_link) 2>conftest.er1 | |
9166 | ac_status=$? | |
9167 | grep -v '^ *+' conftest.er1 >conftest.err | |
9168 | rm -f conftest.er1 | |
9169 | cat conftest.err >&5 | |
9170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9171 | (exit $ac_status); } && | |
9172 | { ac_try='test -z "$ac_c_werror_flag" | |
9173 | || test ! -s conftest.err' | |
9174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9175 | (eval $ac_try) 2>&5 | |
9176 | ac_status=$? | |
9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9178 | (exit $ac_status); }; } && | |
9179 | { ac_try='test -s conftest$ac_exeext' | |
9180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9181 | (eval $ac_try) 2>&5 | |
9182 | ac_status=$? | |
9183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9184 | (exit $ac_status); }; }; then | |
9185 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then | |
9186 | shlibpath_overrides_runpath=yes | |
9187 | fi | |
9188 | ||
9189 | else | |
9190 | echo "$as_me: failed program was:" >&5 | |
9191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9192 | ||
9193 | fi | |
9194 | rm -f conftest.err conftest.$ac_objext \ | |
9195 | conftest$ac_exeext conftest.$ac_ext | |
9196 | LDFLAGS=$save_LDFLAGS | |
9197 | libdir=$save_libdir | |
9198 | ||
9199 | # This implies no fast_install, which is unacceptable. | |
9200 | # Some rework will be needed to allow for fast_install | |
9201 | # before this can be enabled. | |
9202 | hardcode_into_libs=yes | |
9203 | ||
9204 | # Append ld.so.conf contents to the search path | |
9205 | if test -f /etc/ld.so.conf; then | |
9206 | 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' ' '` | |
9207 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9208 | fi | |
9209 | ||
9210 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9211 | # powerpc, because MkLinux only supported shared libraries with the | |
9212 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9213 | # most powerpc-linux boxes support dynamic linking these days and | |
9214 | # people can always --disable-shared, the test was removed, and we | |
9215 | # assume the GNU/Linux dynamic linker is in use. | |
9216 | dynamic_linker='GNU/Linux ld.so' | |
9217 | ;; | |
9218 | ||
9219 | netbsd*) | |
9220 | version_type=sunos | |
9221 | need_lib_prefix=no | |
9222 | need_version=no | |
9223 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9225 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9226 | dynamic_linker='NetBSD (a.out) ld.so' | |
9227 | else | |
9228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9229 | soname_spec='${libname}${release}${shared_ext}$major' | |
9230 | dynamic_linker='NetBSD ld.elf_so' | |
9231 | fi | |
9232 | shlibpath_var=LD_LIBRARY_PATH | |
9233 | shlibpath_overrides_runpath=yes | |
9234 | hardcode_into_libs=yes | |
9235 | ;; | |
9236 | ||
9237 | newsos6) | |
9238 | version_type=linux | |
9239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9240 | shlibpath_var=LD_LIBRARY_PATH | |
9241 | shlibpath_overrides_runpath=yes | |
9242 | ;; | |
9243 | ||
9244 | *nto* | *qnx*) | |
9245 | version_type=qnx | |
9246 | need_lib_prefix=no | |
9247 | need_version=no | |
9248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9249 | soname_spec='${libname}${release}${shared_ext}$major' | |
9250 | shlibpath_var=LD_LIBRARY_PATH | |
9251 | shlibpath_overrides_runpath=no | |
9252 | hardcode_into_libs=yes | |
9253 | dynamic_linker='ldqnx.so' | |
9254 | ;; | |
9255 | ||
9256 | openbsd*) | |
9257 | version_type=sunos | |
9258 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9259 | need_lib_prefix=no | |
9260 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9261 | case $host_os in | |
9262 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9263 | *) need_version=no ;; | |
9264 | esac | |
9265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9266 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9267 | shlibpath_var=LD_LIBRARY_PATH | |
9268 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9269 | case $host_os in | |
9270 | openbsd2.[89] | openbsd2.[89].*) | |
9271 | shlibpath_overrides_runpath=no | |
9272 | ;; | |
9273 | *) | |
9274 | shlibpath_overrides_runpath=yes | |
9275 | ;; | |
9276 | esac | |
9277 | else | |
9278 | shlibpath_overrides_runpath=yes | |
9279 | fi | |
9280 | ;; | |
9281 | ||
9282 | os2*) | |
9283 | libname_spec='$name' | |
9284 | shrext_cmds=".dll" | |
9285 | need_lib_prefix=no | |
9286 | library_names_spec='$libname${shared_ext} $libname.a' | |
9287 | dynamic_linker='OS/2 ld.exe' | |
9288 | shlibpath_var=LIBPATH | |
9289 | ;; | |
9290 | ||
9291 | osf3* | osf4* | osf5*) | |
9292 | version_type=osf | |
9293 | need_lib_prefix=no | |
9294 | need_version=no | |
9295 | soname_spec='${libname}${release}${shared_ext}$major' | |
9296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9297 | shlibpath_var=LD_LIBRARY_PATH | |
9298 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9299 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9300 | ;; | |
9301 | ||
9302 | rdos*) | |
9303 | dynamic_linker=no | |
9304 | ;; | |
9305 | ||
9306 | solaris*) | |
9307 | version_type=linux | |
9308 | need_lib_prefix=no | |
9309 | need_version=no | |
9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9311 | soname_spec='${libname}${release}${shared_ext}$major' | |
9312 | shlibpath_var=LD_LIBRARY_PATH | |
9313 | shlibpath_overrides_runpath=yes | |
9314 | hardcode_into_libs=yes | |
9315 | # ldd complains unless libraries are executable | |
9316 | postinstall_cmds='chmod +x $lib' | |
9317 | ;; | |
9318 | ||
9319 | sunos4*) | |
9320 | version_type=sunos | |
9321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9322 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9323 | shlibpath_var=LD_LIBRARY_PATH | |
9324 | shlibpath_overrides_runpath=yes | |
9325 | if test "$with_gnu_ld" = yes; then | |
9326 | need_lib_prefix=no | |
9327 | fi | |
9328 | need_version=yes | |
9329 | ;; | |
9330 | ||
9331 | sysv4 | sysv4.3*) | |
9332 | version_type=linux | |
9333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9334 | soname_spec='${libname}${release}${shared_ext}$major' | |
9335 | shlibpath_var=LD_LIBRARY_PATH | |
9336 | case $host_vendor in | |
9337 | sni) | |
9338 | shlibpath_overrides_runpath=no | |
9339 | need_lib_prefix=no | |
9340 | runpath_var=LD_RUN_PATH | |
9341 | ;; | |
9342 | siemens) | |
9343 | need_lib_prefix=no | |
9344 | ;; | |
9345 | motorola) | |
9346 | need_lib_prefix=no | |
9347 | need_version=no | |
9348 | shlibpath_overrides_runpath=no | |
9349 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9350 | ;; | |
9351 | esac | |
9352 | ;; | |
9353 | ||
9354 | sysv4*MP*) | |
9355 | if test -d /usr/nec ;then | |
9356 | version_type=linux | |
9357 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9358 | soname_spec='$libname${shared_ext}.$major' | |
9359 | shlibpath_var=LD_LIBRARY_PATH | |
9360 | fi | |
9361 | ;; | |
9362 | ||
9363 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9364 | version_type=freebsd-elf | |
9365 | need_lib_prefix=no | |
9366 | need_version=no | |
9367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9368 | soname_spec='${libname}${release}${shared_ext}$major' | |
9369 | shlibpath_var=LD_LIBRARY_PATH | |
9370 | shlibpath_overrides_runpath=yes | |
9371 | hardcode_into_libs=yes | |
9372 | if test "$with_gnu_ld" = yes; then | |
9373 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9374 | else | |
9375 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9376 | case $host_os in | |
9377 | sco3.2v5*) | |
9378 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9379 | ;; | |
9380 | esac | |
9381 | fi | |
9382 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9383 | ;; | |
9384 | ||
9385 | tpf*) | |
9386 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9387 | version_type=linux | |
9388 | need_lib_prefix=no | |
9389 | need_version=no | |
9390 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9391 | shlibpath_var=LD_LIBRARY_PATH | |
9392 | shlibpath_overrides_runpath=no | |
9393 | hardcode_into_libs=yes | |
9394 | ;; | |
9395 | ||
9396 | uts4*) | |
9397 | version_type=linux | |
9398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9399 | soname_spec='${libname}${release}${shared_ext}$major' | |
9400 | shlibpath_var=LD_LIBRARY_PATH | |
9401 | ;; | |
9402 | ||
9403 | *) | |
9404 | dynamic_linker=no | |
9405 | ;; | |
9406 | esac | |
9407 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9408 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9409 | test "$dynamic_linker" = no && can_build_shared=no | |
9410 | ||
9411 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9412 | if test "$GCC" = yes; then | |
9413 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9414 | fi | |
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | ||
9496 | ||
9497 | ||
9498 | ||
9499 | ||
9500 | ||
9501 | ||
9502 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9503 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9504 | hardcode_action= | |
9505 | if test -n "$hardcode_libdir_flag_spec" || | |
9506 | test -n "$runpath_var" || | |
9507 | test "X$hardcode_automatic" = "Xyes" ; then | |
9508 | ||
9509 | # We can hardcode non-existent directories. | |
9510 | if test "$hardcode_direct" != no && | |
9511 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9512 | # have to relink, otherwise we might link with an installed library | |
9513 | # when we should be linking with a yet-to-be-installed one | |
9514 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9515 | test "$hardcode_minus_L" != no; then | |
9516 | # Linking always hardcodes the temporary library directory. | |
9517 | hardcode_action=relink | |
9518 | else | |
9519 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9520 | hardcode_action=immediate | |
9521 | fi | |
9522 | else | |
9523 | # We cannot hardcode anything, or else we can only hardcode existing | |
9524 | # directories. | |
9525 | hardcode_action=unsupported | |
9526 | fi | |
9527 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9528 | echo "${ECHO_T}$hardcode_action" >&6 | |
9529 | ||
9530 | if test "$hardcode_action" = relink || | |
9531 | test "$inherit_rpath" = yes; then | |
9532 | # Fast installation is not supported | |
9533 | enable_fast_install=no | |
9534 | elif test "$shlibpath_overrides_runpath" = yes || | |
9535 | test "$enable_shared" = no; then | |
9536 | # Fast installation is not necessary | |
9537 | enable_fast_install=needless | |
9538 | fi | |
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | if test "x$enable_dlopen" != xyes; then | |
9546 | enable_dlopen=unknown | |
9547 | enable_dlopen_self=unknown | |
9548 | enable_dlopen_self_static=unknown | |
9549 | else | |
9550 | lt_cv_dlopen=no | |
9551 | lt_cv_dlopen_libs= | |
9552 | ||
9553 | case $host_os in | |
9554 | beos*) | |
9555 | lt_cv_dlopen="load_add_on" | |
9556 | lt_cv_dlopen_libs= | |
9557 | lt_cv_dlopen_self=yes | |
9558 | ;; | |
9559 | ||
9560 | mingw* | pw32*) | |
9561 | lt_cv_dlopen="LoadLibrary" | |
9562 | lt_cv_dlopen_libs= | |
9563 | ;; | |
9564 | ||
9565 | cygwin*) | |
9566 | lt_cv_dlopen="dlopen" | |
9567 | lt_cv_dlopen_libs= | |
9568 | ;; | |
9569 | ||
9570 | darwin*) | |
9571 | # if libdl is installed we need to link against it | |
9572 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9573 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9574 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9576 | else | |
9577 | ac_check_lib_save_LIBS=$LIBS | |
9578 | LIBS="-ldl $LIBS" | |
9579 | cat >conftest.$ac_ext <<_ACEOF | |
9580 | /* confdefs.h. */ | |
9581 | _ACEOF | |
9582 | cat confdefs.h >>conftest.$ac_ext | |
9583 | cat >>conftest.$ac_ext <<_ACEOF | |
9584 | /* end confdefs.h. */ | |
9585 | ||
9586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9587 | #ifdef __cplusplus | |
9588 | extern "C" | |
9589 | #endif | |
9590 | /* We use char because int might match the return type of a gcc2 | |
9591 | builtin and then its argument prototype would still apply. */ | |
9592 | char dlopen (); | |
9593 | int | |
9594 | main () | |
9595 | { | |
9596 | dlopen (); | |
9597 | ; | |
9598 | return 0; | |
9599 | } | |
9600 | _ACEOF | |
9601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9603 | (eval $ac_link) 2>conftest.er1 | |
9604 | ac_status=$? | |
9605 | grep -v '^ *+' conftest.er1 >conftest.err | |
9606 | rm -f conftest.er1 | |
9607 | cat conftest.err >&5 | |
9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9609 | (exit $ac_status); } && | |
9610 | { ac_try='test -z "$ac_c_werror_flag" | |
9611 | || test ! -s conftest.err' | |
9612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9613 | (eval $ac_try) 2>&5 | |
9614 | ac_status=$? | |
9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9616 | (exit $ac_status); }; } && | |
9617 | { ac_try='test -s conftest$ac_exeext' | |
9618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9619 | (eval $ac_try) 2>&5 | |
9620 | ac_status=$? | |
9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9622 | (exit $ac_status); }; }; then | |
9623 | ac_cv_lib_dl_dlopen=yes | |
9624 | else | |
9625 | echo "$as_me: failed program was:" >&5 | |
9626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9627 | ||
9628 | ac_cv_lib_dl_dlopen=no | |
9629 | fi | |
9630 | rm -f conftest.err conftest.$ac_objext \ | |
9631 | conftest$ac_exeext conftest.$ac_ext | |
9632 | LIBS=$ac_check_lib_save_LIBS | |
9633 | fi | |
9634 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9635 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9636 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9637 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9638 | else | |
9639 | ||
9640 | lt_cv_dlopen="dyld" | |
9641 | lt_cv_dlopen_libs= | |
9642 | lt_cv_dlopen_self=yes | |
9643 | ||
9644 | fi | |
9645 | ||
9646 | ;; | |
9647 | ||
9648 | *) | |
9649 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9650 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9651 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9653 | else | |
9654 | cat >conftest.$ac_ext <<_ACEOF | |
9655 | /* confdefs.h. */ | |
9656 | _ACEOF | |
9657 | cat confdefs.h >>conftest.$ac_ext | |
9658 | cat >>conftest.$ac_ext <<_ACEOF | |
9659 | /* end confdefs.h. */ | |
9660 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9662 | #define shl_load innocuous_shl_load | |
9663 | ||
9664 | /* System header to define __stub macros and hopefully few prototypes, | |
9665 | which can conflict with char shl_load (); below. | |
9666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9667 | <limits.h> exists even on freestanding compilers. */ | |
9668 | ||
9669 | #ifdef __STDC__ | |
9670 | # include <limits.h> | |
9671 | #else | |
9672 | # include <assert.h> | |
9673 | #endif | |
9674 | ||
9675 | #undef shl_load | |
9676 | ||
9677 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9678 | #ifdef __cplusplus | |
9679 | extern "C" | |
9680 | { | |
9681 | #endif | |
9682 | /* We use char because int might match the return type of a gcc2 | |
9683 | builtin and then its argument prototype would still apply. */ | |
9684 | char shl_load (); | |
9685 | /* The GNU C library defines this for functions which it implements | |
9686 | to always fail with ENOSYS. Some functions are actually named | |
9687 | something starting with __ and the normal name is an alias. */ | |
9688 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9689 | choke me | |
9690 | #else | |
9691 | char (*f) () = shl_load; | |
9692 | #endif | |
9693 | #ifdef __cplusplus | |
9694 | } | |
9695 | #endif | |
9696 | ||
9697 | int | |
9698 | main () | |
9699 | { | |
9700 | return f != shl_load; | |
9701 | ; | |
9702 | return 0; | |
9703 | } | |
9704 | _ACEOF | |
9705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9707 | (eval $ac_link) 2>conftest.er1 | |
9708 | ac_status=$? | |
9709 | grep -v '^ *+' conftest.er1 >conftest.err | |
9710 | rm -f conftest.er1 | |
9711 | cat conftest.err >&5 | |
9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9713 | (exit $ac_status); } && | |
9714 | { ac_try='test -z "$ac_c_werror_flag" | |
9715 | || test ! -s conftest.err' | |
9716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9717 | (eval $ac_try) 2>&5 | |
9718 | ac_status=$? | |
9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9720 | (exit $ac_status); }; } && | |
9721 | { ac_try='test -s conftest$ac_exeext' | |
9722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9723 | (eval $ac_try) 2>&5 | |
9724 | ac_status=$? | |
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9726 | (exit $ac_status); }; }; then | |
9727 | ac_cv_func_shl_load=yes | |
9728 | else | |
9729 | echo "$as_me: failed program was:" >&5 | |
9730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9731 | ||
9732 | ac_cv_func_shl_load=no | |
9733 | fi | |
9734 | rm -f conftest.err conftest.$ac_objext \ | |
9735 | conftest$ac_exeext conftest.$ac_ext | |
9736 | fi | |
9737 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9738 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
9739 | if test $ac_cv_func_shl_load = yes; then | |
9740 | lt_cv_dlopen="shl_load" | |
9741 | else | |
9742 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9743 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
9744 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9746 | else | |
9747 | ac_check_lib_save_LIBS=$LIBS | |
9748 | LIBS="-ldld $LIBS" | |
9749 | cat >conftest.$ac_ext <<_ACEOF | |
9750 | /* confdefs.h. */ | |
9751 | _ACEOF | |
9752 | cat confdefs.h >>conftest.$ac_ext | |
9753 | cat >>conftest.$ac_ext <<_ACEOF | |
9754 | /* end confdefs.h. */ | |
9755 | ||
9756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9757 | #ifdef __cplusplus | |
9758 | extern "C" | |
9759 | #endif | |
9760 | /* We use char because int might match the return type of a gcc2 | |
9761 | builtin and then its argument prototype would still apply. */ | |
9762 | char shl_load (); | |
9763 | int | |
9764 | main () | |
9765 | { | |
9766 | shl_load (); | |
9767 | ; | |
9768 | return 0; | |
9769 | } | |
9770 | _ACEOF | |
9771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9773 | (eval $ac_link) 2>conftest.er1 | |
9774 | ac_status=$? | |
9775 | grep -v '^ *+' conftest.er1 >conftest.err | |
9776 | rm -f conftest.er1 | |
9777 | cat conftest.err >&5 | |
9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9779 | (exit $ac_status); } && | |
9780 | { ac_try='test -z "$ac_c_werror_flag" | |
9781 | || test ! -s conftest.err' | |
9782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9783 | (eval $ac_try) 2>&5 | |
9784 | ac_status=$? | |
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9786 | (exit $ac_status); }; } && | |
9787 | { ac_try='test -s conftest$ac_exeext' | |
9788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9789 | (eval $ac_try) 2>&5 | |
9790 | ac_status=$? | |
9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9792 | (exit $ac_status); }; }; then | |
9793 | ac_cv_lib_dld_shl_load=yes | |
9794 | else | |
9795 | echo "$as_me: failed program was:" >&5 | |
9796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9797 | ||
9798 | ac_cv_lib_dld_shl_load=no | |
9799 | fi | |
9800 | rm -f conftest.err conftest.$ac_objext \ | |
9801 | conftest$ac_exeext conftest.$ac_ext | |
9802 | LIBS=$ac_check_lib_save_LIBS | |
9803 | fi | |
9804 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9805 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9806 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9807 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9808 | else | |
9809 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9810 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9811 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9813 | else | |
9814 | cat >conftest.$ac_ext <<_ACEOF | |
9815 | /* confdefs.h. */ | |
9816 | _ACEOF | |
9817 | cat confdefs.h >>conftest.$ac_ext | |
9818 | cat >>conftest.$ac_ext <<_ACEOF | |
9819 | /* end confdefs.h. */ | |
9820 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9822 | #define dlopen innocuous_dlopen | |
9823 | ||
9824 | /* System header to define __stub macros and hopefully few prototypes, | |
9825 | which can conflict with char dlopen (); below. | |
9826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9827 | <limits.h> exists even on freestanding compilers. */ | |
9828 | ||
9829 | #ifdef __STDC__ | |
9830 | # include <limits.h> | |
9831 | #else | |
9832 | # include <assert.h> | |
9833 | #endif | |
9834 | ||
9835 | #undef dlopen | |
9836 | ||
9837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9838 | #ifdef __cplusplus | |
9839 | extern "C" | |
9840 | { | |
9841 | #endif | |
9842 | /* We use char because int might match the return type of a gcc2 | |
9843 | builtin and then its argument prototype would still apply. */ | |
9844 | char dlopen (); | |
9845 | /* The GNU C library defines this for functions which it implements | |
9846 | to always fail with ENOSYS. Some functions are actually named | |
9847 | something starting with __ and the normal name is an alias. */ | |
9848 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9849 | choke me | |
9850 | #else | |
9851 | char (*f) () = dlopen; | |
9852 | #endif | |
9853 | #ifdef __cplusplus | |
9854 | } | |
9855 | #endif | |
9856 | ||
9857 | int | |
9858 | main () | |
9859 | { | |
9860 | return f != dlopen; | |
9861 | ; | |
9862 | return 0; | |
9863 | } | |
9864 | _ACEOF | |
9865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9867 | (eval $ac_link) 2>conftest.er1 | |
9868 | ac_status=$? | |
9869 | grep -v '^ *+' conftest.er1 >conftest.err | |
9870 | rm -f conftest.er1 | |
9871 | cat conftest.err >&5 | |
9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9873 | (exit $ac_status); } && | |
9874 | { ac_try='test -z "$ac_c_werror_flag" | |
9875 | || test ! -s conftest.err' | |
9876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9877 | (eval $ac_try) 2>&5 | |
9878 | ac_status=$? | |
9879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9880 | (exit $ac_status); }; } && | |
9881 | { ac_try='test -s conftest$ac_exeext' | |
9882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9883 | (eval $ac_try) 2>&5 | |
9884 | ac_status=$? | |
9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9886 | (exit $ac_status); }; }; then | |
9887 | ac_cv_func_dlopen=yes | |
9888 | else | |
9889 | echo "$as_me: failed program was:" >&5 | |
9890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9891 | ||
9892 | ac_cv_func_dlopen=no | |
9893 | fi | |
9894 | rm -f conftest.err conftest.$ac_objext \ | |
9895 | conftest$ac_exeext conftest.$ac_ext | |
9896 | fi | |
9897 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9898 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9899 | if test $ac_cv_func_dlopen = yes; then | |
9900 | lt_cv_dlopen="dlopen" | |
9901 | else | |
9902 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9903 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9904 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9906 | else | |
9907 | ac_check_lib_save_LIBS=$LIBS | |
9908 | LIBS="-ldl $LIBS" | |
9909 | cat >conftest.$ac_ext <<_ACEOF | |
9910 | /* confdefs.h. */ | |
9911 | _ACEOF | |
9912 | cat confdefs.h >>conftest.$ac_ext | |
9913 | cat >>conftest.$ac_ext <<_ACEOF | |
9914 | /* end confdefs.h. */ | |
9915 | ||
9916 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9917 | #ifdef __cplusplus | |
9918 | extern "C" | |
9919 | #endif | |
9920 | /* We use char because int might match the return type of a gcc2 | |
9921 | builtin and then its argument prototype would still apply. */ | |
9922 | char dlopen (); | |
9923 | int | |
9924 | main () | |
9925 | { | |
9926 | dlopen (); | |
9927 | ; | |
9928 | return 0; | |
9929 | } | |
9930 | _ACEOF | |
9931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9933 | (eval $ac_link) 2>conftest.er1 | |
9934 | ac_status=$? | |
9935 | grep -v '^ *+' conftest.er1 >conftest.err | |
9936 | rm -f conftest.er1 | |
9937 | cat conftest.err >&5 | |
9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9939 | (exit $ac_status); } && | |
9940 | { ac_try='test -z "$ac_c_werror_flag" | |
9941 | || test ! -s conftest.err' | |
9942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9943 | (eval $ac_try) 2>&5 | |
9944 | ac_status=$? | |
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9946 | (exit $ac_status); }; } && | |
9947 | { ac_try='test -s conftest$ac_exeext' | |
9948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9949 | (eval $ac_try) 2>&5 | |
9950 | ac_status=$? | |
9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9952 | (exit $ac_status); }; }; then | |
9953 | ac_cv_lib_dl_dlopen=yes | |
9954 | else | |
9955 | echo "$as_me: failed program was:" >&5 | |
9956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9957 | ||
9958 | ac_cv_lib_dl_dlopen=no | |
9959 | fi | |
9960 | rm -f conftest.err conftest.$ac_objext \ | |
9961 | conftest$ac_exeext conftest.$ac_ext | |
9962 | LIBS=$ac_check_lib_save_LIBS | |
9963 | fi | |
9964 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9965 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9966 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9967 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9968 | else | |
9969 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9970 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9971 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9973 | else | |
9974 | ac_check_lib_save_LIBS=$LIBS | |
9975 | LIBS="-lsvld $LIBS" | |
9976 | cat >conftest.$ac_ext <<_ACEOF | |
9977 | /* confdefs.h. */ | |
9978 | _ACEOF | |
9979 | cat confdefs.h >>conftest.$ac_ext | |
9980 | cat >>conftest.$ac_ext <<_ACEOF | |
9981 | /* end confdefs.h. */ | |
9982 | ||
9983 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9984 | #ifdef __cplusplus | |
9985 | extern "C" | |
9986 | #endif | |
9987 | /* We use char because int might match the return type of a gcc2 | |
9988 | builtin and then its argument prototype would still apply. */ | |
9989 | char dlopen (); | |
9990 | int | |
9991 | main () | |
9992 | { | |
9993 | dlopen (); | |
9994 | ; | |
9995 | return 0; | |
9996 | } | |
9997 | _ACEOF | |
9998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10000 | (eval $ac_link) 2>conftest.er1 | |
10001 | ac_status=$? | |
10002 | grep -v '^ *+' conftest.er1 >conftest.err | |
10003 | rm -f conftest.er1 | |
10004 | cat conftest.err >&5 | |
10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10006 | (exit $ac_status); } && | |
10007 | { ac_try='test -z "$ac_c_werror_flag" | |
10008 | || test ! -s conftest.err' | |
10009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10010 | (eval $ac_try) 2>&5 | |
10011 | ac_status=$? | |
10012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10013 | (exit $ac_status); }; } && | |
10014 | { ac_try='test -s conftest$ac_exeext' | |
10015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10016 | (eval $ac_try) 2>&5 | |
10017 | ac_status=$? | |
10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10019 | (exit $ac_status); }; }; then | |
10020 | ac_cv_lib_svld_dlopen=yes | |
10021 | else | |
10022 | echo "$as_me: failed program was:" >&5 | |
10023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10024 | ||
10025 | ac_cv_lib_svld_dlopen=no | |
10026 | fi | |
10027 | rm -f conftest.err conftest.$ac_objext \ | |
10028 | conftest$ac_exeext conftest.$ac_ext | |
10029 | LIBS=$ac_check_lib_save_LIBS | |
10030 | fi | |
10031 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10032 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10033 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10034 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10035 | else | |
10036 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10037 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10038 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10040 | else | |
10041 | ac_check_lib_save_LIBS=$LIBS | |
10042 | LIBS="-ldld $LIBS" | |
10043 | cat >conftest.$ac_ext <<_ACEOF | |
10044 | /* confdefs.h. */ | |
10045 | _ACEOF | |
10046 | cat confdefs.h >>conftest.$ac_ext | |
10047 | cat >>conftest.$ac_ext <<_ACEOF | |
10048 | /* end confdefs.h. */ | |
10049 | ||
10050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10051 | #ifdef __cplusplus | |
10052 | extern "C" | |
10053 | #endif | |
10054 | /* We use char because int might match the return type of a gcc2 | |
10055 | builtin and then its argument prototype would still apply. */ | |
10056 | char dld_link (); | |
10057 | int | |
10058 | main () | |
10059 | { | |
10060 | dld_link (); | |
10061 | ; | |
10062 | return 0; | |
10063 | } | |
10064 | _ACEOF | |
10065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10067 | (eval $ac_link) 2>conftest.er1 | |
10068 | ac_status=$? | |
10069 | grep -v '^ *+' conftest.er1 >conftest.err | |
10070 | rm -f conftest.er1 | |
10071 | cat conftest.err >&5 | |
10072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10073 | (exit $ac_status); } && | |
10074 | { ac_try='test -z "$ac_c_werror_flag" | |
10075 | || test ! -s conftest.err' | |
10076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10077 | (eval $ac_try) 2>&5 | |
10078 | ac_status=$? | |
10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10080 | (exit $ac_status); }; } && | |
10081 | { ac_try='test -s conftest$ac_exeext' | |
10082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10083 | (eval $ac_try) 2>&5 | |
10084 | ac_status=$? | |
10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10086 | (exit $ac_status); }; }; then | |
10087 | ac_cv_lib_dld_dld_link=yes | |
10088 | else | |
10089 | echo "$as_me: failed program was:" >&5 | |
10090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10091 | ||
10092 | ac_cv_lib_dld_dld_link=no | |
10093 | fi | |
10094 | rm -f conftest.err conftest.$ac_objext \ | |
10095 | conftest$ac_exeext conftest.$ac_ext | |
10096 | LIBS=$ac_check_lib_save_LIBS | |
10097 | fi | |
10098 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10099 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10100 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10101 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10102 | fi | |
10103 | ||
10104 | ||
10105 | fi | |
10106 | ||
10107 | ||
10108 | fi | |
10109 | ||
10110 | ||
10111 | fi | |
10112 | ||
10113 | ||
10114 | fi | |
10115 | ||
10116 | ||
10117 | fi | |
10118 | ||
10119 | ;; | |
10120 | esac | |
10121 | ||
10122 | if test "x$lt_cv_dlopen" != xno; then | |
10123 | enable_dlopen=yes | |
20e95c23 | 10124 | else |
d7040cdb | 10125 | enable_dlopen=no |
252b5132 | 10126 | fi |
5464f5a1 | 10127 | |
d7040cdb SE |
10128 | case $lt_cv_dlopen in |
10129 | dlopen) | |
10130 | save_CPPFLAGS="$CPPFLAGS" | |
10131 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10132 | ||
10133 | save_LDFLAGS="$LDFLAGS" | |
10134 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10135 | ||
10136 | save_LIBS="$LIBS" | |
10137 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10138 | ||
10139 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10140 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10141 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20e95c23 | 10143 | else |
d7040cdb SE |
10144 | if test "$cross_compiling" = yes; then : |
10145 | lt_cv_dlopen_self=cross | |
10146 | else | |
10147 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10148 | lt_status=$lt_dlunknown | |
10149 | cat > conftest.$ac_ext <<_LT_EOF | |
7a283e07 | 10150 | #line 10150 "configure" |
d7040cdb SE |
10151 | #include "confdefs.h" |
10152 | ||
10153 | #if HAVE_DLFCN_H | |
10154 | #include <dlfcn.h> | |
10155 | #endif | |
10156 | ||
10157 | #include <stdio.h> | |
10158 | ||
10159 | #ifdef RTLD_GLOBAL | |
10160 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10161 | #else | |
10162 | # ifdef DL_GLOBAL | |
10163 | # define LT_DLGLOBAL DL_GLOBAL | |
10164 | # else | |
10165 | # define LT_DLGLOBAL 0 | |
10166 | # endif | |
10167 | #endif | |
10168 | ||
10169 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10170 | find out it does not work in some platform. */ | |
10171 | #ifndef LT_DLLAZY_OR_NOW | |
10172 | # ifdef RTLD_LAZY | |
10173 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10174 | # else | |
10175 | # ifdef DL_LAZY | |
10176 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10177 | # else | |
10178 | # ifdef RTLD_NOW | |
10179 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10180 | # else | |
10181 | # ifdef DL_NOW | |
10182 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10183 | # else | |
10184 | # define LT_DLLAZY_OR_NOW 0 | |
10185 | # endif | |
10186 | # endif | |
10187 | # endif | |
10188 | # endif | |
10189 | #endif | |
10190 | ||
10191 | #ifdef __cplusplus | |
10192 | extern "C" void exit (int); | |
10193 | #endif | |
10194 | ||
10195 | void fnord() { int i=42;} | |
10196 | int main () | |
10197 | { | |
10198 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10199 | int status = $lt_dlunknown; | |
10200 | ||
10201 | if (self) | |
10202 | { | |
10203 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10204 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10205 | /* dlclose (self); */ | |
10206 | } | |
10207 | else | |
10208 | puts (dlerror ()); | |
10209 | ||
10210 | exit (status); | |
10211 | } | |
10212 | _LT_EOF | |
10213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10214 | (eval $ac_link) 2>&5 | |
10215 | ac_status=$? | |
10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10217 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10218 | (./conftest; exit; ) >&5 2>/dev/null | |
10219 | lt_status=$? | |
10220 | case x$lt_status in | |
10221 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10222 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10223 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10224 | esac | |
10225 | else : | |
10226 | # compilation failed | |
10227 | lt_cv_dlopen_self=no | |
10228 | fi | |
252b5132 | 10229 | fi |
d7040cdb | 10230 | rm -fr conftest* |
20e95c23 | 10231 | |
d7040cdb SE |
10232 | |
10233 | fi | |
10234 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10235 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10236 | ||
10237 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10238 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10239 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10240 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10241 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
20e95c23 DJ |
10242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10243 | else | |
d7040cdb SE |
10244 | if test "$cross_compiling" = yes; then : |
10245 | lt_cv_dlopen_self_static=cross | |
10246 | else | |
10247 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10248 | lt_status=$lt_dlunknown | |
10249 | cat > conftest.$ac_ext <<_LT_EOF | |
7a283e07 | 10250 | #line 10250 "configure" |
d7040cdb SE |
10251 | #include "confdefs.h" |
10252 | ||
10253 | #if HAVE_DLFCN_H | |
10254 | #include <dlfcn.h> | |
10255 | #endif | |
10256 | ||
10257 | #include <stdio.h> | |
10258 | ||
10259 | #ifdef RTLD_GLOBAL | |
10260 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10261 | #else | |
10262 | # ifdef DL_GLOBAL | |
10263 | # define LT_DLGLOBAL DL_GLOBAL | |
10264 | # else | |
10265 | # define LT_DLGLOBAL 0 | |
10266 | # endif | |
10267 | #endif | |
10268 | ||
10269 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10270 | find out it does not work in some platform. */ | |
10271 | #ifndef LT_DLLAZY_OR_NOW | |
10272 | # ifdef RTLD_LAZY | |
10273 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10274 | # else | |
10275 | # ifdef DL_LAZY | |
10276 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10277 | # else | |
10278 | # ifdef RTLD_NOW | |
10279 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10280 | # else | |
10281 | # ifdef DL_NOW | |
10282 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10283 | # else | |
10284 | # define LT_DLLAZY_OR_NOW 0 | |
10285 | # endif | |
10286 | # endif | |
10287 | # endif | |
10288 | # endif | |
10289 | #endif | |
10290 | ||
10291 | #ifdef __cplusplus | |
10292 | extern "C" void exit (int); | |
10293 | #endif | |
10294 | ||
10295 | void fnord() { int i=42;} | |
10296 | int main () | |
10297 | { | |
10298 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10299 | int status = $lt_dlunknown; | |
10300 | ||
10301 | if (self) | |
10302 | { | |
10303 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10304 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10305 | /* dlclose (self); */ | |
10306 | } | |
10307 | else | |
10308 | puts (dlerror ()); | |
10309 | ||
10310 | exit (status); | |
10311 | } | |
10312 | _LT_EOF | |
10313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10314 | (eval $ac_link) 2>&5 | |
10315 | ac_status=$? | |
10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10317 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10318 | (./conftest; exit; ) >&5 2>/dev/null | |
10319 | lt_status=$? | |
10320 | case x$lt_status in | |
10321 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10322 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10323 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10324 | esac | |
10325 | else : | |
10326 | # compilation failed | |
10327 | lt_cv_dlopen_self_static=no | |
10328 | fi | |
10329 | fi | |
10330 | rm -fr conftest* | |
10331 | ||
10332 | ||
10333 | fi | |
10334 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10335 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10336 | fi | |
10337 | ||
10338 | CPPFLAGS="$save_CPPFLAGS" | |
10339 | LDFLAGS="$save_LDFLAGS" | |
10340 | LIBS="$save_LIBS" | |
10341 | ;; | |
10342 | esac | |
10343 | ||
10344 | case $lt_cv_dlopen_self in | |
10345 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10346 | *) enable_dlopen_self=unknown ;; | |
10347 | esac | |
10348 | ||
10349 | case $lt_cv_dlopen_self_static in | |
10350 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10351 | *) enable_dlopen_self_static=unknown ;; | |
10352 | esac | |
10353 | fi | |
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | striplib= | |
10372 | old_striplib= | |
10373 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10374 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10375 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10376 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10377 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10378 | echo "$as_me:$LINENO: result: yes" >&5 | |
10379 | echo "${ECHO_T}yes" >&6 | |
10380 | else | |
10381 | # FIXME - insert some real tests, host_os isn't really good enough | |
10382 | case $host_os in | |
10383 | darwin*) | |
10384 | if test -n "$STRIP" ; then | |
10385 | striplib="$STRIP -x" | |
10386 | old_striplib="$STRIP -S" | |
10387 | echo "$as_me:$LINENO: result: yes" >&5 | |
10388 | echo "${ECHO_T}yes" >&6 | |
10389 | else | |
10390 | echo "$as_me:$LINENO: result: no" >&5 | |
10391 | echo "${ECHO_T}no" >&6 | |
10392 | fi | |
20e95c23 DJ |
10393 | ;; |
10394 | *) | |
d7040cdb SE |
10395 | echo "$as_me:$LINENO: result: no" >&5 |
10396 | echo "${ECHO_T}no" >&6 | |
10397 | ;; | |
10398 | esac | |
10399 | fi | |
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | # Report which library types will actually be built | |
10413 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10414 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10415 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10416 | echo "${ECHO_T}$can_build_shared" >&6 | |
10417 | ||
10418 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10419 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10420 | test "$can_build_shared" = "no" && enable_shared=no | |
10421 | ||
10422 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10423 | # are all built from PIC. | |
10424 | case $host_os in | |
10425 | aix3*) | |
10426 | test "$enable_shared" = yes && enable_static=no | |
10427 | if test -n "$RANLIB"; then | |
10428 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10429 | postinstall_cmds='$RANLIB $lib' | |
10430 | fi | |
10431 | ;; | |
10432 | ||
e81819a5 | 10433 | aix[4-9]*) |
d7040cdb SE |
10434 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10435 | test "$enable_shared" = yes && enable_static=no | |
10436 | fi | |
20e95c23 | 10437 | ;; |
d7040cdb SE |
10438 | esac |
10439 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10440 | echo "${ECHO_T}$enable_shared" >&6 | |
10441 | ||
10442 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10443 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10444 | # Make sure either enable_shared or enable_static is yes. | |
10445 | test "$enable_shared" = yes || enable_static=yes | |
10446 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10447 | echo "${ECHO_T}$enable_static" >&6 | |
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | fi | |
10453 | ac_ext=c | |
10454 | ac_cpp='$CPP $CPPFLAGS' | |
10455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10458 | ||
10459 | CC="$lt_save_CC" | |
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ac_config_commands="$ac_config_commands libtool" | |
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | # Only expand once: | |
10479 | ||
10480 | ||
10481 | ||
10482 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
10483 | if test "${enable_64_bit_bfd+set}" = set; then | |
10484 | enableval="$enable_64_bit_bfd" | |
10485 | case "${enableval}" in | |
10486 | yes) want64=true ;; | |
10487 | no) want64=false ;; | |
10488 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
10489 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
10490 | { (exit 1); exit 1; }; } ;; | |
10491 | esac | |
10492 | else | |
10493 | want64=false | |
504b7d20 NC |
10494 | fi; |
10495 | # Check whether --enable-targets or --disable-targets was given. | |
d7040cdb SE |
10496 | if test "${enable_targets+set}" = set; then |
10497 | enableval="$enable_targets" | |
10498 | case "${enableval}" in | |
10499 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
10500 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
10501 | { (exit 1); exit 1; }; } | |
10502 | ;; | |
10503 | no) enable_targets= ;; | |
10504 | *) enable_targets=$enableval ;; | |
10505 | esac | |
504b7d20 NC |
10506 | fi; |
10507 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
d7040cdb SE |
10508 | if test "${enable_commonbfdlib+set}" = set; then |
10509 | enableval="$enable_commonbfdlib" | |
10510 | case "${enableval}" in | |
10511 | yes) commonbfdlib=true ;; | |
10512 | no) commonbfdlib=false ;; | |
10513 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 | |
10514 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
10515 | { (exit 1); exit 1; }; } ;; | |
10516 | esac | |
10517 | fi; | |
504b7d20 | 10518 | |
d7040cdb SE |
10519 | # Check whether --with-mmap or --without-mmap was given. |
10520 | if test "${with_mmap+set}" = set; then | |
10521 | withval="$with_mmap" | |
10522 | case "${withval}" in | |
10523 | yes) want_mmap=true ;; | |
10524 | no) want_mmap=false ;; | |
10525 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 | |
10526 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
10527 | { (exit 1); exit 1; }; } ;; | |
20e95c23 | 10528 | esac |
252b5132 | 10529 | else |
d7040cdb SE |
10530 | want_mmap=false |
10531 | fi; | |
10532 | # Check whether --enable-secureplt or --disable-secureplt was given. | |
10533 | if test "${enable_secureplt+set}" = set; then | |
10534 | enableval="$enable_secureplt" | |
10535 | case "${enableval}" in | |
10536 | yes) use_secureplt=true ;; | |
10537 | no) use_secureplt=false ;; | |
10538 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5 | |
10539 | echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;} | |
10540 | { (exit 1); exit 1; }; } ;; | |
10541 | esac | |
252b5132 | 10542 | else |
d7040cdb SE |
10543 | use_secureplt=false |
10544 | fi; if test $use_secureplt = true; then | |
10545 | ||
10546 | cat >>confdefs.h <<\_ACEOF | |
10547 | #define USE_SECUREPLT 1 | |
10548 | _ACEOF | |
5464f5a1 | 10549 | |
252b5132 | 10550 | fi |
20e95c23 | 10551 | |
0d4a1476 AS |
10552 | DEBUGDIR=${libdir}/debug |
10553 | ||
0d4a1476 AS |
10554 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
10555 | if test "${with_separate_debug_dir+set}" = set; then | |
10556 | withval="$with_separate_debug_dir" | |
10557 | DEBUGDIR="${withval}" | |
10558 | fi; | |
10559 | ||
10560 | ||
504b7d20 NC |
10561 | # Check to see if we should allow the generation of |
10562 | # symbols with the ELF standard's STT_COMMON type. | |
10563 | # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given. | |
10564 | if test "${enable_elf_stt_common+set}" = set; then | |
10565 | enableval="$enable_elf_stt_common" | |
10566 | case "${enableval}" in | |
10567 | yes) want_elf_stt_common=true ;; | |
10568 | no) want_elf_stt_common=false ;; | |
10569 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5 | |
10570 | echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;} | |
10571 | { (exit 1); exit 1; }; } ;; | |
10572 | esac | |
10573 | else | |
10574 | # We have to choose a default behaviour. For native builds we could | |
8bc9c892 NC |
10575 | # test whether the loader supports the STT_COMMON type, but that would |
10576 | # mean that built binaries could not be exported to older systems where | |
10577 | # the loader does not support it. So by default we always choose to | |
10578 | # disable this feature. | |
504b7d20 | 10579 | want_elf_stt_common=false |
504b7d20 NC |
10580 | fi; if test $want_elf_stt_common = true; then |
10581 | ||
10582 | cat >>confdefs.h <<\_ACEOF | |
10583 | #define USE_STT_COMMON 1 | |
10584 | _ACEOF | |
10585 | ||
10586 | fi | |
10587 | ||
10588 | ||
d7040cdb | 10589 | |
d7040cdb SE |
10590 | # Check whether --with-pkgversion or --without-pkgversion was given. |
10591 | if test "${with_pkgversion+set}" = set; then | |
10592 | withval="$with_pkgversion" | |
10593 | case "$withval" in | |
10594 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
10595 | echo "$as_me: error: package version not specified" >&2;} | |
10596 | { (exit 1); exit 1; }; } ;; | |
10597 | no) PKGVERSION= ;; | |
10598 | *) PKGVERSION="($withval) " ;; | |
10599 | esac | |
252b5132 | 10600 | else |
d7040cdb | 10601 | PKGVERSION="(GNU Binutils) " |
252b5132 | 10602 | |
d7040cdb | 10603 | fi; |
20e95c23 DJ |
10604 | |
10605 | ||
5464f5a1 | 10606 | |
20e95c23 | 10607 | |
d7040cdb SE |
10608 | # Check whether --with-bugurl or --without-bugurl was given. |
10609 | if test "${with_bugurl+set}" = set; then | |
10610 | withval="$with_bugurl" | |
10611 | case "$withval" in | |
10612 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
10613 | echo "$as_me: error: bug URL not specified" >&2;} | |
10614 | { (exit 1); exit 1; }; } ;; | |
10615 | no) BUGURL= | |
10616 | ;; | |
10617 | *) BUGURL="$withval" | |
10618 | ;; | |
10619 | esac | |
252b5132 | 10620 | else |
d7040cdb SE |
10621 | BUGURL="http://www.sourceware.org/bugzilla/" |
10622 | ||
10623 | fi; | |
10624 | case ${BUGURL} in | |
10625 | "") | |
10626 | REPORT_BUGS_TO= | |
10627 | REPORT_BUGS_TEXI= | |
20e95c23 DJ |
10628 | ;; |
10629 | *) | |
d7040cdb SE |
10630 | REPORT_BUGS_TO="<$BUGURL>" |
10631 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
20e95c23 | 10632 | ;; |
d7040cdb SE |
10633 | esac; |
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
10640 | ||
10641 | # Check whether --enable-werror or --disable-werror was given. | |
10642 | if test "${enable_werror+set}" = set; then | |
10643 | enableval="$enable_werror" | |
10644 | case "${enableval}" in | |
10645 | yes | y) ERROR_ON_WARNING="yes" ;; | |
10646 | no | n) ERROR_ON_WARNING="no" ;; | |
10647 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
10648 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
10649 | { (exit 1); exit 1; }; } ;; | |
10650 | esac | |
10651 | fi; | |
10652 | ||
bb8541b9 L |
10653 | # Enable -Wno-format by default when using gcc on mingw |
10654 | case "${host}" in | |
10655 | *-*-mingw32*) | |
10656 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
10657 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
10658 | fi | |
10659 | ;; | |
10660 | *) ;; | |
10661 | esac | |
10662 | ||
d7040cdb SE |
10663 | # Enable -Werror by default when using gcc |
10664 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
10665 | ERROR_ON_WARNING=yes | |
10666 | fi | |
10667 | ||
10668 | NO_WERROR= | |
10669 | if test "${ERROR_ON_WARNING}" = yes ; then | |
10670 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
10671 | NO_WERROR="-Wno-error" | |
10672 | fi | |
10673 | ||
10674 | if test "${GCC}" = yes ; then | |
10675 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
10676 | fi | |
10677 | ||
10678 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
10679 | if test "${enable_build_warnings+set}" = set; then | |
10680 | enableval="$enable_build_warnings" | |
10681 | case "${enableval}" in | |
10682 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
10683 | no) if test "${GCC}" = yes ; then | |
10684 | WARN_CFLAGS="-w" | |
10685 | fi;; | |
10686 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
10687 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
10688 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
10689 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
10690 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20e95c23 | 10691 | esac |
d7040cdb SE |
10692 | fi; |
10693 | ||
10694 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
10695 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
20e95c23 | 10696 | fi |
d7040cdb SE |
10697 | |
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ac_config_headers="$ac_config_headers config.h:config.in" | |
10703 | ||
10704 | ||
10705 | if test -z "$target" ; then | |
10706 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 | |
10707 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
10708 | { (exit 1); exit 1; }; } | |
20e95c23 DJ |
10709 | fi |
10710 | ||
d7040cdb SE |
10711 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
10712 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
10713 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
10714 | if test "${enable_maintainer_mode+set}" = set; then | |
10715 | enableval="$enable_maintainer_mode" | |
10716 | USE_MAINTAINER_MODE=$enableval | |
10717 | else | |
10718 | USE_MAINTAINER_MODE=no | |
10719 | fi; | |
10720 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
10721 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
20e95c23 DJ |
10722 | |
10723 | ||
d7040cdb SE |
10724 | if test $USE_MAINTAINER_MODE = yes; then |
10725 | MAINTAINER_MODE_TRUE= | |
10726 | MAINTAINER_MODE_FALSE='#' | |
10727 | else | |
10728 | MAINTAINER_MODE_TRUE='#' | |
10729 | MAINTAINER_MODE_FALSE= | |
6be7c12c | 10730 | fi |
5464f5a1 | 10731 | |
d7040cdb SE |
10732 | MAINT=$MAINTAINER_MODE_TRUE |
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | if false; then | |
10738 | GENINSRC_NEVER_TRUE= | |
10739 | GENINSRC_NEVER_FALSE='#' | |
20e95c23 | 10740 | else |
d7040cdb SE |
10741 | GENINSRC_NEVER_TRUE='#' |
10742 | GENINSRC_NEVER_FALSE= | |
5464f5a1 | 10743 | fi |
5464f5a1 | 10744 | |
d7040cdb SE |
10745 | case ${build_alias} in |
10746 | "") build_noncanonical=${build} ;; | |
10747 | *) build_noncanonical=${build_alias} ;; | |
20e95c23 | 10748 | esac |
d7040cdb SE |
10749 | |
10750 | case ${host_alias} in | |
10751 | "") host_noncanonical=${build_noncanonical} ;; | |
10752 | *) host_noncanonical=${host_alias} ;; | |
10753 | esac | |
10754 | ||
10755 | case ${target_alias} in | |
10756 | "") target_noncanonical=${host_noncanonical} ;; | |
10757 | *) target_noncanonical=${target_alias} ;; | |
10758 | esac | |
10759 | ||
10760 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 | |
10761 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
10762 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. | |
10763 | if test "${enable_install_libbfd+set}" = set; then | |
10764 | enableval="$enable_install_libbfd" | |
10765 | install_libbfd_p=$enableval | |
252b5132 | 10766 | else |
d7040cdb SE |
10767 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
10768 | install_libbfd_p=yes | |
10769 | else | |
10770 | install_libbfd_p=no | |
10771 | fi | |
10772 | fi; | |
10773 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
10774 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
10775 | ||
10776 | ||
10777 | if test $install_libbfd_p = yes; then | |
10778 | INSTALL_LIBBFD_TRUE= | |
10779 | INSTALL_LIBBFD_FALSE='#' | |
10780 | else | |
10781 | INSTALL_LIBBFD_TRUE='#' | |
10782 | INSTALL_LIBBFD_FALSE= | |
5464f5a1 | 10783 | fi |
5464f5a1 | 10784 | |
d7040cdb | 10785 | # Need _noncanonical variables for this. |
5464f5a1 | 10786 | |
5464f5a1 | 10787 | |
d7040cdb SE |
10788 | |
10789 | ||
10790 | # libbfd.a is a host library containing target dependent code | |
10791 | bfdlibdir='$(libdir)' | |
10792 | bfdincludedir='$(includedir)' | |
10793 | if test "${host}" != "${target}"; then | |
10794 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
10795 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
20e95c23 | 10796 | fi |
6be7c12c | 10797 | |
5464f5a1 | 10798 | |
5464f5a1 NN |
10799 | |
10800 | ||
5464f5a1 | 10801 | |
ac48eca1 | 10802 | |
d7040cdb SE |
10803 | host64=false |
10804 | target64=false | |
10805 | bfd_default_target_size=32 | |
252b5132 | 10806 | |
d7040cdb | 10807 | # host stuff: |
20e95c23 | 10808 | |
041a1845 | 10809 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi" |
d7040cdb SE |
10810 | # If we haven't got the data from the intl directory, |
10811 | # assume NLS is disabled. | |
10812 | USE_NLS=no | |
10813 | LIBINTL= | |
10814 | LIBINTL_DEP= | |
10815 | INCINTL= | |
10816 | XGETTEXT= | |
10817 | GMSGFMT= | |
10818 | POSUB= | |
10819 | ||
10820 | if test -f ../intl/config.intl; then | |
10821 | . ../intl/config.intl | |
252b5132 | 10822 | fi |
d7040cdb SE |
10823 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10824 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10825 | if test x"$USE_NLS" != xyes; then | |
10826 | echo "$as_me:$LINENO: result: no" >&5 | |
10827 | echo "${ECHO_T}no" >&6 | |
10828 | else | |
10829 | echo "$as_me:$LINENO: result: yes" >&5 | |
10830 | echo "${ECHO_T}yes" >&6 | |
5464f5a1 | 10831 | |
d7040cdb SE |
10832 | cat >>confdefs.h <<\_ACEOF |
10833 | #define ENABLE_NLS 1 | |
10834 | _ACEOF | |
252b5132 | 10835 | |
6be7c12c | 10836 | |
d7040cdb SE |
10837 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
10838 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
10839 | # Look for .po and .gmo files in the source directory. | |
10840 | CATALOGS= | |
10841 | XLINGUAS= | |
10842 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
10843 | # If there aren't any .gmo files the shell will give us the | |
10844 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
10845 | # weeded out. | |
10846 | case "$cat" in *\**) | |
10847 | continue;; | |
10848 | esac | |
10849 | # The quadruple backslash is collapsed to a double backslash | |
10850 | # by the backticks, then collapsed again by the double quotes, | |
10851 | # leaving us with one backslash in the sed expression (right | |
10852 | # before the dot that mustn't act as a wildcard). | |
10853 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
10854 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
10855 | # The user is allowed to set LINGUAS to a list of languages to | |
10856 | # install catalogs for. If it's empty that means "all of them." | |
10857 | if test "x$LINGUAS" = x; then | |
10858 | CATALOGS="$CATALOGS $cat" | |
10859 | XLINGUAS="$XLINGUAS $lang" | |
10860 | else | |
10861 | case "$LINGUAS" in *$lang*) | |
10862 | CATALOGS="$CATALOGS $cat" | |
10863 | XLINGUAS="$XLINGUAS $lang" | |
10864 | ;; | |
10865 | esac | |
10866 | fi | |
10867 | done | |
10868 | LINGUAS="$XLINGUAS" | |
10869 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
10870 | echo "${ECHO_T}$LINGUAS" >&6 | |
10871 | ||
252b5132 | 10872 | |
d7040cdb | 10873 | DATADIRNAME=share |
252b5132 | 10874 | |
d7040cdb | 10875 | INSTOBJEXT=.mo |
5464f5a1 | 10876 | |
d7040cdb | 10877 | GENCAT=gencat |
20e95c23 | 10878 | |
d7040cdb | 10879 | CATOBJEXT=.gmo |
5464f5a1 | 10880 | |
20e95c23 | 10881 | fi |
5464f5a1 | 10882 | |
d7040cdb SE |
10883 | MKINSTALLDIRS= |
10884 | if test -n "$ac_aux_dir"; then | |
10885 | case "$ac_aux_dir" in | |
10886 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
10887 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
10888 | esac | |
10889 | fi | |
10890 | if test -z "$MKINSTALLDIRS"; then | |
10891 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5464f5a1 | 10892 | fi |
5464f5a1 | 10893 | |
5464f5a1 | 10894 | |
d7040cdb SE |
10895 | |
10896 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
10897 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10898 | # Check whether --enable-nls or --disable-nls was given. | |
10899 | if test "${enable_nls+set}" = set; then | |
10900 | enableval="$enable_nls" | |
10901 | USE_NLS=$enableval | |
252b5132 | 10902 | else |
d7040cdb SE |
10903 | USE_NLS=yes |
10904 | fi; | |
10905 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10906 | echo "${ECHO_T}$USE_NLS" >&6 | |
5464f5a1 | 10907 | |
252b5132 | 10908 | |
5464f5a1 | 10909 | |
252b5132 | 10910 | |
d7040cdb SE |
10911 | |
10912 | ||
10913 | # Prepare PATH_SEPARATOR. | |
10914 | # The user is always right. | |
10915 | if test "${PATH_SEPARATOR+set}" != set; then | |
10916 | echo "#! /bin/sh" >conf$$.sh | |
10917 | echo "exit 0" >>conf$$.sh | |
10918 | chmod +x conf$$.sh | |
10919 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10920 | PATH_SEPARATOR=';' | |
20e95c23 | 10921 | else |
d7040cdb | 10922 | PATH_SEPARATOR=: |
20e95c23 | 10923 | fi |
d7040cdb SE |
10924 | rm -f conf$$.sh |
10925 | fi | |
10926 | ||
10927 | # Find out how to test for executable files. Don't use a zero-byte file, | |
10928 | # as systems may use methods other than mode bits to determine executability. | |
10929 | cat >conf$$.file <<_ASEOF | |
10930 | #! /bin/sh | |
10931 | exit 0 | |
10932 | _ASEOF | |
10933 | chmod +x conf$$.file | |
10934 | if test -x conf$$.file >/dev/null 2>&1; then | |
10935 | ac_executable_p="test -x" | |
20e95c23 | 10936 | else |
d7040cdb | 10937 | ac_executable_p="test -f" |
20e95c23 | 10938 | fi |
d7040cdb | 10939 | rm -f conf$$.file |
5464f5a1 | 10940 | |
d7040cdb SE |
10941 | # Extract the first word of "msgfmt", so it can be a program name with args. |
10942 | set dummy msgfmt; ac_word=$2 | |
10943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10945 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10947 | else | |
10948 | case "$MSGFMT" in | |
10949 | [\\/]* | ?:[\\/]*) | |
10950 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10951 | ;; | |
10952 | *) | |
10953 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10954 | for ac_dir in $PATH; do | |
10955 | IFS="$ac_save_IFS" | |
10956 | test -z "$ac_dir" && ac_dir=. | |
10957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10958 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10959 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
10960 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10961 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
10962 | break 2 | |
10963 | fi | |
10964 | fi | |
10965 | done | |
10966 | done | |
10967 | IFS="$ac_save_IFS" | |
10968 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
10969 | ;; | |
10970 | esac | |
5464f5a1 | 10971 | fi |
d7040cdb SE |
10972 | MSGFMT="$ac_cv_path_MSGFMT" |
10973 | if test "$MSGFMT" != ":"; then | |
10974 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
10975 | echo "${ECHO_T}$MSGFMT" >&6 | |
20e95c23 | 10976 | else |
d7040cdb SE |
10977 | echo "$as_me:$LINENO: result: no" >&5 |
10978 | echo "${ECHO_T}no" >&6 | |
252b5132 | 10979 | fi |
d7040cdb SE |
10980 | |
10981 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
10982 | set dummy gmsgfmt; ac_word=$2 | |
10983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10985 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
10986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10987 | else |
d7040cdb SE |
10988 | case $GMSGFMT in |
10989 | [\\/]* | ?:[\\/]*) | |
10990 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
10991 | ;; | |
10992 | *) | |
10993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10994 | for as_dir in $PATH | |
10995 | do | |
10996 | IFS=$as_save_IFS | |
10997 | test -z "$as_dir" && as_dir=. | |
10998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11000 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
11001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11002 | break 2 | |
11003 | fi | |
11004 | done | |
11005 | done | |
5464f5a1 | 11006 | |
d7040cdb SE |
11007 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
11008 | ;; | |
11009 | esac | |
252b5132 | 11010 | fi |
d7040cdb | 11011 | GMSGFMT=$ac_cv_path_GMSGFMT |
5464f5a1 | 11012 | |
d7040cdb SE |
11013 | if test -n "$GMSGFMT"; then |
11014 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
11015 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 11016 | else |
d7040cdb SE |
11017 | echo "$as_me:$LINENO: result: no" >&5 |
11018 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
11019 | fi |
11020 | ||
20e95c23 DJ |
11021 | |
11022 | ||
d7040cdb SE |
11023 | # Prepare PATH_SEPARATOR. |
11024 | # The user is always right. | |
11025 | if test "${PATH_SEPARATOR+set}" != set; then | |
11026 | echo "#! /bin/sh" >conf$$.sh | |
11027 | echo "exit 0" >>conf$$.sh | |
11028 | chmod +x conf$$.sh | |
11029 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11030 | PATH_SEPARATOR=';' | |
11031 | else | |
11032 | PATH_SEPARATOR=: | |
11033 | fi | |
11034 | rm -f conf$$.sh | |
252b5132 | 11035 | fi |
20e95c23 | 11036 | |
d7040cdb SE |
11037 | # Find out how to test for executable files. Don't use a zero-byte file, |
11038 | # as systems may use methods other than mode bits to determine executability. | |
11039 | cat >conf$$.file <<_ASEOF | |
11040 | #! /bin/sh | |
11041 | exit 0 | |
11042 | _ASEOF | |
11043 | chmod +x conf$$.file | |
11044 | if test -x conf$$.file >/dev/null 2>&1; then | |
11045 | ac_executable_p="test -x" | |
11046 | else | |
11047 | ac_executable_p="test -f" | |
11048 | fi | |
11049 | rm -f conf$$.file | |
252b5132 | 11050 | |
d7040cdb SE |
11051 | # Extract the first word of "xgettext", so it can be a program name with args. |
11052 | set dummy xgettext; ac_word=$2 | |
11053 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11055 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
20e95c23 DJ |
11056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11057 | else | |
d7040cdb SE |
11058 | case "$XGETTEXT" in |
11059 | [\\/]* | ?:[\\/]*) | |
11060 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11061 | ;; | |
11062 | *) | |
11063 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11064 | for ac_dir in $PATH; do | |
11065 | IFS="$ac_save_IFS" | |
11066 | test -z "$ac_dir" && ac_dir=. | |
11067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11068 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11069 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11070 | (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 | |
11071 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11072 | break 2 | |
11073 | fi | |
11074 | fi | |
11075 | done | |
11076 | done | |
11077 | IFS="$ac_save_IFS" | |
11078 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11079 | ;; | |
11080 | esac | |
11081 | fi | |
11082 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
11083 | if test "$XGETTEXT" != ":"; then | |
11084 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
11085 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 11086 | else |
d7040cdb SE |
11087 | echo "$as_me:$LINENO: result: no" >&5 |
11088 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
11089 | fi |
11090 | ||
d7040cdb | 11091 | rm -f messages.po |
5464f5a1 | 11092 | |
252b5132 | 11093 | |
d7040cdb SE |
11094 | # Prepare PATH_SEPARATOR. |
11095 | # The user is always right. | |
11096 | if test "${PATH_SEPARATOR+set}" != set; then | |
11097 | echo "#! /bin/sh" >conf$$.sh | |
11098 | echo "exit 0" >>conf$$.sh | |
11099 | chmod +x conf$$.sh | |
11100 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11101 | PATH_SEPARATOR=';' | |
11102 | else | |
11103 | PATH_SEPARATOR=: | |
11104 | fi | |
11105 | rm -f conf$$.sh | |
252b5132 RH |
11106 | fi |
11107 | ||
d7040cdb SE |
11108 | # Find out how to test for executable files. Don't use a zero-byte file, |
11109 | # as systems may use methods other than mode bits to determine executability. | |
11110 | cat >conf$$.file <<_ASEOF | |
11111 | #! /bin/sh | |
11112 | exit 0 | |
11113 | _ASEOF | |
11114 | chmod +x conf$$.file | |
11115 | if test -x conf$$.file >/dev/null 2>&1; then | |
11116 | ac_executable_p="test -x" | |
5464f5a1 | 11117 | else |
d7040cdb | 11118 | ac_executable_p="test -f" |
20e95c23 | 11119 | fi |
d7040cdb | 11120 | rm -f conf$$.file |
5464f5a1 | 11121 | |
d7040cdb SE |
11122 | # Extract the first word of "msgmerge", so it can be a program name with args. |
11123 | set dummy msgmerge; ac_word=$2 | |
11124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11126 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
11127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11128 | else | |
11129 | case "$MSGMERGE" in | |
11130 | [\\/]* | ?:[\\/]*) | |
11131 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11132 | ;; | |
11133 | *) | |
11134 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11135 | for ac_dir in $PATH; do | |
11136 | IFS="$ac_save_IFS" | |
11137 | test -z "$ac_dir" && ac_dir=. | |
11138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11139 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11140 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11141 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11142 | break 2 | |
11143 | fi | |
11144 | fi | |
11145 | done | |
11146 | done | |
11147 | IFS="$ac_save_IFS" | |
11148 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11149 | ;; | |
11150 | esac | |
5464f5a1 | 11151 | fi |
d7040cdb SE |
11152 | MSGMERGE="$ac_cv_path_MSGMERGE" |
11153 | if test "$MSGMERGE" != ":"; then | |
11154 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
11155 | echo "${ECHO_T}$MSGMERGE" >&6 | |
20e95c23 | 11156 | else |
d7040cdb SE |
11157 | echo "$as_me:$LINENO: result: no" >&5 |
11158 | echo "${ECHO_T}no" >&6 | |
11159 | fi | |
20e95c23 | 11160 | |
5464f5a1 | 11161 | |
d7040cdb SE |
11162 | if test "$GMSGFMT" != ":"; then |
11163 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
11164 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11165 | : ; | |
11166 | else | |
11167 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
11168 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
11169 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
11170 | GMSGFMT=":" | |
11171 | fi | |
11172 | fi | |
252b5132 | 11173 | |
d7040cdb SE |
11174 | if test "$XGETTEXT" != ":"; then |
11175 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11176 | (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 | |
11177 | : ; | |
11178 | else | |
11179 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
11180 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
11181 | XGETTEXT=":" | |
11182 | fi | |
11183 | rm -f messages.po | |
11184 | fi | |
6be7c12c | 11185 | |
d7040cdb | 11186 | ac_config_commands="$ac_config_commands default-1" |
5464f5a1 | 11187 | |
252b5132 | 11188 | |
5464f5a1 | 11189 | |
d7040cdb SE |
11190 | # Permit host specific settings. |
11191 | . ${srcdir}/configure.host | |
11192 | ||
11193 | ||
11194 | # Find a good install program. We prefer a C program (faster), | |
11195 | # so one script is as good as another. But avoid the broken or | |
11196 | # incompatible versions: | |
11197 | # SysV /etc/install, /usr/sbin/install | |
11198 | # SunOS /usr/etc/install | |
11199 | # IRIX /sbin/install | |
11200 | # AIX /bin/install | |
11201 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11202 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11203 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11204 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11205 | # OS/2's system install, which has a completely different semantic | |
11206 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 11207 | # Reject install programs that cannot install multiple files. |
d7040cdb SE |
11208 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11209 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11210 | if test -z "$INSTALL"; then | |
11211 | if test "${ac_cv_path_install+set}" = set; then | |
11212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11213 | else | |
11214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11215 | for as_dir in $PATH | |
11216 | do | |
11217 | IFS=$as_save_IFS | |
11218 | test -z "$as_dir" && as_dir=. | |
11219 | # Account for people who put trailing slashes in PATH elements. | |
11220 | case $as_dir/ in | |
11221 | ./ | .// | /cC/* | \ | |
11222 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11223 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
11224 | /usr/ucb/* ) ;; | |
11225 | *) | |
11226 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11227 | # Don't use installbsd from OSF since it installs stuff as root | |
11228 | # by default. | |
11229 | for ac_prog in ginstall scoinst install; do | |
11230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11231 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11232 | if test $ac_prog = install && | |
11233 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11234 | # AIX install. It has an incompatible calling convention. | |
11235 | : | |
11236 | elif test $ac_prog = install && | |
11237 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11238 | # program-specific install script used by HP pwplus--don't use. | |
11239 | : | |
11240 | else | |
58c85be7 RW |
11241 | rm -rf conftest.one conftest.two conftest.dir |
11242 | echo one > conftest.one | |
11243 | echo two > conftest.two | |
11244 | mkdir conftest.dir | |
11245 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
11246 | test -s conftest.one && test -s conftest.two && | |
11247 | test -s conftest.dir/conftest.one && | |
11248 | test -s conftest.dir/conftest.two | |
11249 | then | |
11250 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11251 | break 3 | |
11252 | fi | |
d7040cdb SE |
11253 | fi |
11254 | fi | |
11255 | done | |
11256 | done | |
11257 | ;; | |
11258 | esac | |
11259 | done | |
11260 | ||
58c85be7 | 11261 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 | 11262 | |
d7040cdb SE |
11263 | fi |
11264 | if test "${ac_cv_path_install+set}" = set; then | |
11265 | INSTALL=$ac_cv_path_install | |
11266 | else | |
58c85be7 RW |
11267 | # As a last resort, use the slow shell script. Don't cache a |
11268 | # value for INSTALL within a source directory, because that will | |
d7040cdb | 11269 | # break other packages using the cache if that directory is |
58c85be7 | 11270 | # removed, or if the value is a relative name. |
d7040cdb SE |
11271 | INSTALL=$ac_install_sh |
11272 | fi | |
11273 | fi | |
11274 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11275 | echo "${ECHO_T}$INSTALL" >&6 | |
5464f5a1 | 11276 | |
d7040cdb SE |
11277 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
11278 | # It thinks the first close brace ends the variable substitution. | |
11279 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
252b5132 | 11280 | |
d7040cdb | 11281 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5464f5a1 | 11282 | |
d7040cdb | 11283 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
252b5132 | 11284 | |
252b5132 | 11285 | |
d7040cdb | 11286 | BFD_HOST_64BIT_LONG=0 |
d2df793a | 11287 | BFD_HOST_64BIT_LONG_LONG=0 |
d7040cdb SE |
11288 | BFD_HOST_64_BIT_DEFINED=0 |
11289 | BFD_HOST_64_BIT= | |
11290 | BFD_HOST_U_64_BIT= | |
d2df793a | 11291 | BFD_HOSTPTR_T="unsigned long" |
6be7c12c | 11292 | |
d7040cdb SE |
11293 | echo "$as_me:$LINENO: checking for long long" >&5 |
11294 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
2ba49b59 | 11295 | if test "${ac_cv_type_long_long+set}" = set; then |
5464f5a1 | 11296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 11297 | else |
5464f5a1 NN |
11298 | cat >conftest.$ac_ext <<_ACEOF |
11299 | /* confdefs.h. */ | |
11300 | _ACEOF | |
11301 | cat confdefs.h >>conftest.$ac_ext | |
11302 | cat >>conftest.$ac_ext <<_ACEOF | |
11303 | /* end confdefs.h. */ | |
2ba49b59 | 11304 | $ac_includes_default |
5464f5a1 NN |
11305 | int |
11306 | main () | |
11307 | { | |
2ba49b59 KC |
11308 | if ((long long *) 0) |
11309 | return 0; | |
11310 | if (sizeof (long long)) | |
11311 | return 0; | |
5464f5a1 NN |
11312 | ; |
11313 | return 0; | |
11314 | } | |
11315 | _ACEOF | |
11316 | rm -f conftest.$ac_objext | |
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11318 | (eval $ac_compile) 2>conftest.er1 | |
11319 | ac_status=$? | |
11320 | grep -v '^ *+' conftest.er1 >conftest.err | |
11321 | rm -f conftest.er1 | |
11322 | cat conftest.err >&5 | |
11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11324 | (exit $ac_status); } && | |
49c96104 SE |
11325 | { ac_try='test -z "$ac_c_werror_flag" |
11326 | || test ! -s conftest.err' | |
5464f5a1 NN |
11327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11328 | (eval $ac_try) 2>&5 | |
11329 | ac_status=$? | |
11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11331 | (exit $ac_status); }; } && | |
11332 | { ac_try='test -s conftest.$ac_objext' | |
11333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11334 | (eval $ac_try) 2>&5 | |
11335 | ac_status=$? | |
11336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11337 | (exit $ac_status); }; }; then | |
2ba49b59 | 11338 | ac_cv_type_long_long=yes |
6726e1ea | 11339 | else |
5464f5a1 NN |
11340 | echo "$as_me: failed program was:" >&5 |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11342 | ||
2ba49b59 | 11343 | ac_cv_type_long_long=no |
6726e1ea | 11344 | fi |
5464f5a1 | 11345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea | 11346 | fi |
2ba49b59 KC |
11347 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
11348 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
6726e1ea | 11349 | |
2ba49b59 KC |
11350 | echo "$as_me:$LINENO: checking size of long long" >&5 |
11351 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
11352 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
5464f5a1 | 11353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 11354 | else |
2ba49b59 KC |
11355 | if test "$ac_cv_type_long_long" = yes; then |
11356 | # The cast to unsigned long works around a bug in the HP C Compiler | |
11357 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11358 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11359 | # This bug is HP SR number 8606223364. | |
11360 | if test "$cross_compiling" = yes; then | |
11361 | # Depending upon the size, compute the lo and hi bounds. | |
11362 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
11363 | /* confdefs.h. */ |
11364 | _ACEOF | |
11365 | cat confdefs.h >>conftest.$ac_ext | |
11366 | cat >>conftest.$ac_ext <<_ACEOF | |
11367 | /* end confdefs.h. */ | |
2ba49b59 KC |
11368 | $ac_includes_default |
11369 | int | |
11370 | main () | |
11371 | { | |
11372 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
11373 | test_array [0] = 0 | |
6726e1ea | 11374 | |
2ba49b59 KC |
11375 | ; |
11376 | return 0; | |
11377 | } | |
11378 | _ACEOF | |
11379 | rm -f conftest.$ac_objext | |
11380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11381 | (eval $ac_compile) 2>conftest.er1 | |
11382 | ac_status=$? | |
11383 | grep -v '^ *+' conftest.er1 >conftest.err | |
11384 | rm -f conftest.er1 | |
11385 | cat conftest.err >&5 | |
11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11387 | (exit $ac_status); } && | |
49c96104 SE |
11388 | { ac_try='test -z "$ac_c_werror_flag" |
11389 | || test ! -s conftest.err' | |
2ba49b59 KC |
11390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11391 | (eval $ac_try) 2>&5 | |
11392 | ac_status=$? | |
11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11394 | (exit $ac_status); }; } && | |
11395 | { ac_try='test -s conftest.$ac_objext' | |
11396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11397 | (eval $ac_try) 2>&5 | |
11398 | ac_status=$? | |
11399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11400 | (exit $ac_status); }; }; then | |
11401 | ac_lo=0 ac_mid=0 | |
11402 | while :; do | |
11403 | cat >conftest.$ac_ext <<_ACEOF | |
11404 | /* confdefs.h. */ | |
11405 | _ACEOF | |
11406 | cat confdefs.h >>conftest.$ac_ext | |
11407 | cat >>conftest.$ac_ext <<_ACEOF | |
11408 | /* end confdefs.h. */ | |
11409 | $ac_includes_default | |
5464f5a1 NN |
11410 | int |
11411 | main () | |
11412 | { | |
2ba49b59 KC |
11413 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
11414 | test_array [0] = 0 | |
11415 | ||
5464f5a1 NN |
11416 | ; |
11417 | return 0; | |
11418 | } | |
11419 | _ACEOF | |
11420 | rm -f conftest.$ac_objext | |
11421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11422 | (eval $ac_compile) 2>conftest.er1 | |
11423 | ac_status=$? | |
11424 | grep -v '^ *+' conftest.er1 >conftest.err | |
11425 | rm -f conftest.er1 | |
11426 | cat conftest.err >&5 | |
11427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11428 | (exit $ac_status); } && | |
49c96104 SE |
11429 | { ac_try='test -z "$ac_c_werror_flag" |
11430 | || test ! -s conftest.err' | |
5464f5a1 NN |
11431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11432 | (eval $ac_try) 2>&5 | |
11433 | ac_status=$? | |
11434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11435 | (exit $ac_status); }; } && | |
11436 | { ac_try='test -s conftest.$ac_objext' | |
11437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11438 | (eval $ac_try) 2>&5 | |
11439 | ac_status=$? | |
11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11441 | (exit $ac_status); }; }; then | |
2ba49b59 | 11442 | ac_hi=$ac_mid; break |
6726e1ea | 11443 | else |
5464f5a1 NN |
11444 | echo "$as_me: failed program was:" >&5 |
11445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11446 | ||
2ba49b59 KC |
11447 | ac_lo=`expr $ac_mid + 1` |
11448 | if test $ac_lo -le $ac_mid; then | |
11449 | ac_lo= ac_hi= | |
11450 | break | |
11451 | fi | |
11452 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6726e1ea | 11453 | fi |
5464f5a1 | 11454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2ba49b59 | 11455 | done |
252b5132 | 11456 | else |
2ba49b59 KC |
11457 | echo "$as_me: failed program was:" >&5 |
11458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 11459 | |
5464f5a1 NN |
11460 | cat >conftest.$ac_ext <<_ACEOF |
11461 | /* confdefs.h. */ | |
11462 | _ACEOF | |
11463 | cat confdefs.h >>conftest.$ac_ext | |
11464 | cat >>conftest.$ac_ext <<_ACEOF | |
11465 | /* end confdefs.h. */ | |
11466 | $ac_includes_default | |
2ba49b59 KC |
11467 | int |
11468 | main () | |
11469 | { | |
11470 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
11471 | test_array [0] = 0 | |
11472 | ||
11473 | ; | |
11474 | return 0; | |
11475 | } | |
5464f5a1 NN |
11476 | _ACEOF |
11477 | rm -f conftest.$ac_objext | |
11478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11479 | (eval $ac_compile) 2>conftest.er1 | |
11480 | ac_status=$? | |
11481 | grep -v '^ *+' conftest.er1 >conftest.err | |
11482 | rm -f conftest.er1 | |
11483 | cat conftest.err >&5 | |
11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11485 | (exit $ac_status); } && | |
49c96104 SE |
11486 | { ac_try='test -z "$ac_c_werror_flag" |
11487 | || test ! -s conftest.err' | |
5464f5a1 NN |
11488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11489 | (eval $ac_try) 2>&5 | |
11490 | ac_status=$? | |
11491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11492 | (exit $ac_status); }; } && | |
11493 | { ac_try='test -s conftest.$ac_objext' | |
11494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11495 | (eval $ac_try) 2>&5 | |
11496 | ac_status=$? | |
11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11498 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
11499 | ac_hi=-1 ac_mid=-1 |
11500 | while :; do | |
11501 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
11502 | /* confdefs.h. */ |
11503 | _ACEOF | |
11504 | cat confdefs.h >>conftest.$ac_ext | |
11505 | cat >>conftest.$ac_ext <<_ACEOF | |
11506 | /* end confdefs.h. */ | |
2ba49b59 KC |
11507 | $ac_includes_default |
11508 | int | |
11509 | main () | |
11510 | { | |
11511 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
11512 | test_array [0] = 0 | |
11513 | ||
11514 | ; | |
11515 | return 0; | |
11516 | } | |
5464f5a1 | 11517 | _ACEOF |
2ba49b59 KC |
11518 | rm -f conftest.$ac_objext |
11519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11520 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
11521 | ac_status=$? |
11522 | grep -v '^ *+' conftest.er1 >conftest.err | |
11523 | rm -f conftest.er1 | |
11524 | cat conftest.err >&5 | |
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 11526 | (exit $ac_status); } && |
49c96104 SE |
11527 | { ac_try='test -z "$ac_c_werror_flag" |
11528 | || test ! -s conftest.err' | |
2ba49b59 KC |
11529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11530 | (eval $ac_try) 2>&5 | |
11531 | ac_status=$? | |
11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11533 | (exit $ac_status); }; } && | |
11534 | { ac_try='test -s conftest.$ac_objext' | |
11535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11536 | (eval $ac_try) 2>&5 | |
11537 | ac_status=$? | |
11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11539 | (exit $ac_status); }; }; then | |
11540 | ac_lo=$ac_mid; break | |
252b5132 | 11541 | else |
2ba49b59 KC |
11542 | echo "$as_me: failed program was:" >&5 |
11543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11544 | ||
11545 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11546 | if test $ac_mid -le $ac_hi; then | |
11547 | ac_lo= ac_hi= | |
11548 | break | |
11549 | fi | |
11550 | ac_mid=`expr 2 '*' $ac_mid` | |
252b5132 | 11551 | fi |
2ba49b59 KC |
11552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11553 | done | |
5464f5a1 NN |
11554 | else |
11555 | echo "$as_me: failed program was:" >&5 | |
11556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11557 | ||
2ba49b59 | 11558 | ac_lo= ac_hi= |
252b5132 | 11559 | fi |
2ba49b59 KC |
11560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11561 | fi | |
11562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11563 | # Binary search between lo and hi bounds. | |
11564 | while test "x$ac_lo" != "x$ac_hi"; do | |
11565 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11566 | cat >conftest.$ac_ext <<_ACEOF | |
11567 | /* confdefs.h. */ | |
11568 | _ACEOF | |
11569 | cat confdefs.h >>conftest.$ac_ext | |
11570 | cat >>conftest.$ac_ext <<_ACEOF | |
11571 | /* end confdefs.h. */ | |
11572 | $ac_includes_default | |
11573 | int | |
11574 | main () | |
11575 | { | |
11576 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
11577 | test_array [0] = 0 | |
5464f5a1 | 11578 | |
2ba49b59 KC |
11579 | ; |
11580 | return 0; | |
11581 | } | |
5464f5a1 NN |
11582 | _ACEOF |
11583 | rm -f conftest.$ac_objext | |
11584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11585 | (eval $ac_compile) 2>conftest.er1 | |
11586 | ac_status=$? | |
11587 | grep -v '^ *+' conftest.er1 >conftest.err | |
11588 | rm -f conftest.er1 | |
11589 | cat conftest.err >&5 | |
11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11591 | (exit $ac_status); } && | |
49c96104 SE |
11592 | { ac_try='test -z "$ac_c_werror_flag" |
11593 | || test ! -s conftest.err' | |
5464f5a1 NN |
11594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11595 | (eval $ac_try) 2>&5 | |
11596 | ac_status=$? | |
11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11598 | (exit $ac_status); }; } && | |
11599 | { ac_try='test -s conftest.$ac_objext' | |
11600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11601 | (eval $ac_try) 2>&5 | |
11602 | ac_status=$? | |
11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11604 | (exit $ac_status); }; }; then | |
2ba49b59 | 11605 | ac_hi=$ac_mid |
5464f5a1 NN |
11606 | else |
11607 | echo "$as_me: failed program was:" >&5 | |
11608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11609 | ||
2ba49b59 | 11610 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 NN |
11611 | fi |
11612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ba49b59 KC |
11613 | done |
11614 | case $ac_lo in | |
11615 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
7a283e07 RW |
11616 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
11617 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11618 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
2ba49b59 KC |
11619 | See \`config.log' for more details." >&5 |
11620 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
11621 | See \`config.log' for more details." >&2;} | |
7a283e07 | 11622 | { (exit 1); exit 1; }; }; } ;; |
2ba49b59 KC |
11623 | esac |
11624 | else | |
11625 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
11626 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
11627 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11628 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
49c96104 SE |
11629 | See \`config.log' for more details." >&5 |
11630 | echo "$as_me: error: cannot run test program while cross compiling | |
11631 | See \`config.log' for more details." >&2;} | |
7a283e07 | 11632 | { (exit 1); exit 1; }; }; } |
2ba49b59 KC |
11633 | else |
11634 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
11635 | /* confdefs.h. */ |
11636 | _ACEOF | |
11637 | cat confdefs.h >>conftest.$ac_ext | |
11638 | cat >>conftest.$ac_ext <<_ACEOF | |
11639 | /* end confdefs.h. */ | |
2ba49b59 KC |
11640 | $ac_includes_default |
11641 | long longval () { return (long) (sizeof (long long)); } | |
11642 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
11643 | #include <stdio.h> | |
11644 | #include <stdlib.h> | |
11645 | int | |
11646 | main () | |
11647 | { | |
11648 | ||
11649 | FILE *f = fopen ("conftest.val", "w"); | |
11650 | if (! f) | |
11651 | exit (1); | |
11652 | if (((long) (sizeof (long long))) < 0) | |
11653 | { | |
11654 | long i = longval (); | |
11655 | if (i != ((long) (sizeof (long long)))) | |
11656 | exit (1); | |
11657 | fprintf (f, "%ld\n", i); | |
11658 | } | |
11659 | else | |
11660 | { | |
11661 | unsigned long i = ulongval (); | |
11662 | if (i != ((long) (sizeof (long long)))) | |
11663 | exit (1); | |
11664 | fprintf (f, "%lu\n", i); | |
11665 | } | |
11666 | exit (ferror (f) || fclose (f) != 0); | |
11667 | ||
11668 | ; | |
11669 | return 0; | |
11670 | } | |
5464f5a1 | 11671 | _ACEOF |
2ba49b59 KC |
11672 | rm -f conftest$ac_exeext |
11673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11674 | (eval $ac_link) 2>&5 | |
5464f5a1 | 11675 | ac_status=$? |
5464f5a1 | 11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2ba49b59 KC |
11677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11679 | (eval $ac_try) 2>&5 | |
11680 | ac_status=$? | |
11681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11682 | (exit $ac_status); }; }; then | |
11683 | ac_cv_sizeof_long_long=`cat conftest.val` | |
5464f5a1 | 11684 | else |
2ba49b59 KC |
11685 | echo "$as_me: program exited with status $ac_status" >&5 |
11686 | echo "$as_me: failed program was:" >&5 | |
5464f5a1 NN |
11687 | sed 's/^/| /' conftest.$ac_ext >&5 |
11688 | ||
2ba49b59 | 11689 | ( exit $ac_status ) |
7a283e07 RW |
11690 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
11691 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2ba49b59 KC |
11692 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
11693 | See \`config.log' for more details." >&5 | |
11694 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
11695 | See \`config.log' for more details." >&2;} | |
7a283e07 | 11696 | { (exit 1); exit 1; }; }; } |
252b5132 | 11697 | fi |
2ba49b59 KC |
11698 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11699 | fi | |
11700 | fi | |
11701 | rm -f conftest.val | |
6be7c12c | 11702 | else |
2ba49b59 | 11703 | ac_cv_sizeof_long_long=0 |
5464f5a1 | 11704 | fi |
5464f5a1 | 11705 | fi |
2ba49b59 KC |
11706 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
11707 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
11708 | cat >>confdefs.h <<_ACEOF | |
11709 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5464f5a1 NN |
11710 | _ACEOF |
11711 | ||
5464f5a1 | 11712 | |
d2df793a NC |
11713 | echo "$as_me:$LINENO: checking for void *" >&5 |
11714 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
11715 | if test "${ac_cv_type_void_p+set}" = set; then | |
11716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11717 | else | |
11718 | cat >conftest.$ac_ext <<_ACEOF | |
11719 | /* confdefs.h. */ | |
11720 | _ACEOF | |
11721 | cat confdefs.h >>conftest.$ac_ext | |
11722 | cat >>conftest.$ac_ext <<_ACEOF | |
11723 | /* end confdefs.h. */ | |
11724 | $ac_includes_default | |
11725 | int | |
11726 | main () | |
11727 | { | |
11728 | if ((void * *) 0) | |
11729 | return 0; | |
11730 | if (sizeof (void *)) | |
11731 | return 0; | |
11732 | ; | |
11733 | return 0; | |
11734 | } | |
11735 | _ACEOF | |
11736 | rm -f conftest.$ac_objext | |
11737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11738 | (eval $ac_compile) 2>conftest.er1 | |
11739 | ac_status=$? | |
11740 | grep -v '^ *+' conftest.er1 >conftest.err | |
11741 | rm -f conftest.er1 | |
11742 | cat conftest.err >&5 | |
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); } && | |
11745 | { ac_try='test -z "$ac_c_werror_flag" | |
11746 | || test ! -s conftest.err' | |
11747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11748 | (eval $ac_try) 2>&5 | |
11749 | ac_status=$? | |
11750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11751 | (exit $ac_status); }; } && | |
11752 | { ac_try='test -s conftest.$ac_objext' | |
11753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11754 | (eval $ac_try) 2>&5 | |
11755 | ac_status=$? | |
11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11757 | (exit $ac_status); }; }; then | |
11758 | ac_cv_type_void_p=yes | |
11759 | else | |
11760 | echo "$as_me: failed program was:" >&5 | |
11761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11762 | ||
11763 | ac_cv_type_void_p=no | |
11764 | fi | |
11765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11766 | fi | |
11767 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
11768 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
11769 | ||
11770 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
11771 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
11772 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
11773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11774 | else | |
11775 | if test "$ac_cv_type_void_p" = yes; then | |
11776 | # The cast to unsigned long works around a bug in the HP C Compiler | |
11777 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11778 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11779 | # This bug is HP SR number 8606223364. | |
11780 | if test "$cross_compiling" = yes; then | |
11781 | # Depending upon the size, compute the lo and hi bounds. | |
11782 | cat >conftest.$ac_ext <<_ACEOF | |
11783 | /* confdefs.h. */ | |
11784 | _ACEOF | |
11785 | cat confdefs.h >>conftest.$ac_ext | |
11786 | cat >>conftest.$ac_ext <<_ACEOF | |
11787 | /* end confdefs.h. */ | |
11788 | $ac_includes_default | |
11789 | int | |
11790 | main () | |
11791 | { | |
11792 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
11793 | test_array [0] = 0 | |
11794 | ||
11795 | ; | |
11796 | return 0; | |
11797 | } | |
11798 | _ACEOF | |
11799 | rm -f conftest.$ac_objext | |
11800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11801 | (eval $ac_compile) 2>conftest.er1 | |
11802 | ac_status=$? | |
11803 | grep -v '^ *+' conftest.er1 >conftest.err | |
11804 | rm -f conftest.er1 | |
11805 | cat conftest.err >&5 | |
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11807 | (exit $ac_status); } && | |
11808 | { ac_try='test -z "$ac_c_werror_flag" | |
11809 | || test ! -s conftest.err' | |
11810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11811 | (eval $ac_try) 2>&5 | |
11812 | ac_status=$? | |
11813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11814 | (exit $ac_status); }; } && | |
11815 | { ac_try='test -s conftest.$ac_objext' | |
11816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11817 | (eval $ac_try) 2>&5 | |
11818 | ac_status=$? | |
11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11820 | (exit $ac_status); }; }; then | |
11821 | ac_lo=0 ac_mid=0 | |
11822 | while :; do | |
11823 | cat >conftest.$ac_ext <<_ACEOF | |
11824 | /* confdefs.h. */ | |
11825 | _ACEOF | |
11826 | cat confdefs.h >>conftest.$ac_ext | |
11827 | cat >>conftest.$ac_ext <<_ACEOF | |
11828 | /* end confdefs.h. */ | |
11829 | $ac_includes_default | |
11830 | int | |
11831 | main () | |
11832 | { | |
11833 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
11834 | test_array [0] = 0 | |
11835 | ||
11836 | ; | |
11837 | return 0; | |
11838 | } | |
11839 | _ACEOF | |
11840 | rm -f conftest.$ac_objext | |
11841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11842 | (eval $ac_compile) 2>conftest.er1 | |
11843 | ac_status=$? | |
11844 | grep -v '^ *+' conftest.er1 >conftest.err | |
11845 | rm -f conftest.er1 | |
11846 | cat conftest.err >&5 | |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11848 | (exit $ac_status); } && | |
11849 | { ac_try='test -z "$ac_c_werror_flag" | |
11850 | || test ! -s conftest.err' | |
11851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11852 | (eval $ac_try) 2>&5 | |
11853 | ac_status=$? | |
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11855 | (exit $ac_status); }; } && | |
11856 | { ac_try='test -s conftest.$ac_objext' | |
11857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11858 | (eval $ac_try) 2>&5 | |
11859 | ac_status=$? | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11861 | (exit $ac_status); }; }; then | |
11862 | ac_hi=$ac_mid; break | |
11863 | else | |
11864 | echo "$as_me: failed program was:" >&5 | |
11865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11866 | ||
11867 | ac_lo=`expr $ac_mid + 1` | |
11868 | if test $ac_lo -le $ac_mid; then | |
11869 | ac_lo= ac_hi= | |
11870 | break | |
11871 | fi | |
11872 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
11873 | fi | |
11874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11875 | done | |
11876 | else | |
11877 | echo "$as_me: failed program was:" >&5 | |
11878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11879 | ||
11880 | cat >conftest.$ac_ext <<_ACEOF | |
11881 | /* confdefs.h. */ | |
11882 | _ACEOF | |
11883 | cat confdefs.h >>conftest.$ac_ext | |
11884 | cat >>conftest.$ac_ext <<_ACEOF | |
11885 | /* end confdefs.h. */ | |
11886 | $ac_includes_default | |
11887 | int | |
11888 | main () | |
11889 | { | |
11890 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
11891 | test_array [0] = 0 | |
11892 | ||
11893 | ; | |
11894 | return 0; | |
11895 | } | |
11896 | _ACEOF | |
11897 | rm -f conftest.$ac_objext | |
11898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11899 | (eval $ac_compile) 2>conftest.er1 | |
11900 | ac_status=$? | |
11901 | grep -v '^ *+' conftest.er1 >conftest.err | |
11902 | rm -f conftest.er1 | |
11903 | cat conftest.err >&5 | |
11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11905 | (exit $ac_status); } && | |
11906 | { ac_try='test -z "$ac_c_werror_flag" | |
11907 | || test ! -s conftest.err' | |
11908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11909 | (eval $ac_try) 2>&5 | |
11910 | ac_status=$? | |
11911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11912 | (exit $ac_status); }; } && | |
11913 | { ac_try='test -s conftest.$ac_objext' | |
11914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11915 | (eval $ac_try) 2>&5 | |
11916 | ac_status=$? | |
11917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11918 | (exit $ac_status); }; }; then | |
11919 | ac_hi=-1 ac_mid=-1 | |
11920 | while :; do | |
11921 | cat >conftest.$ac_ext <<_ACEOF | |
11922 | /* confdefs.h. */ | |
11923 | _ACEOF | |
11924 | cat confdefs.h >>conftest.$ac_ext | |
11925 | cat >>conftest.$ac_ext <<_ACEOF | |
11926 | /* end confdefs.h. */ | |
11927 | $ac_includes_default | |
11928 | int | |
11929 | main () | |
11930 | { | |
11931 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
11932 | test_array [0] = 0 | |
11933 | ||
11934 | ; | |
11935 | return 0; | |
11936 | } | |
11937 | _ACEOF | |
11938 | rm -f conftest.$ac_objext | |
11939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11940 | (eval $ac_compile) 2>conftest.er1 | |
11941 | ac_status=$? | |
11942 | grep -v '^ *+' conftest.er1 >conftest.err | |
11943 | rm -f conftest.er1 | |
11944 | cat conftest.err >&5 | |
11945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11946 | (exit $ac_status); } && | |
11947 | { ac_try='test -z "$ac_c_werror_flag" | |
11948 | || test ! -s conftest.err' | |
11949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11950 | (eval $ac_try) 2>&5 | |
11951 | ac_status=$? | |
11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11953 | (exit $ac_status); }; } && | |
11954 | { ac_try='test -s conftest.$ac_objext' | |
11955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11956 | (eval $ac_try) 2>&5 | |
11957 | ac_status=$? | |
11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11959 | (exit $ac_status); }; }; then | |
11960 | ac_lo=$ac_mid; break | |
11961 | else | |
11962 | echo "$as_me: failed program was:" >&5 | |
11963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11964 | ||
11965 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11966 | if test $ac_mid -le $ac_hi; then | |
11967 | ac_lo= ac_hi= | |
11968 | break | |
11969 | fi | |
11970 | ac_mid=`expr 2 '*' $ac_mid` | |
11971 | fi | |
11972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11973 | done | |
11974 | else | |
11975 | echo "$as_me: failed program was:" >&5 | |
11976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11977 | ||
11978 | ac_lo= ac_hi= | |
11979 | fi | |
11980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11981 | fi | |
11982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11983 | # Binary search between lo and hi bounds. | |
11984 | while test "x$ac_lo" != "x$ac_hi"; do | |
11985 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11986 | cat >conftest.$ac_ext <<_ACEOF | |
11987 | /* confdefs.h. */ | |
11988 | _ACEOF | |
11989 | cat confdefs.h >>conftest.$ac_ext | |
11990 | cat >>conftest.$ac_ext <<_ACEOF | |
11991 | /* end confdefs.h. */ | |
11992 | $ac_includes_default | |
11993 | int | |
11994 | main () | |
11995 | { | |
11996 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
11997 | test_array [0] = 0 | |
11998 | ||
11999 | ; | |
12000 | return 0; | |
12001 | } | |
12002 | _ACEOF | |
12003 | rm -f conftest.$ac_objext | |
12004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12005 | (eval $ac_compile) 2>conftest.er1 | |
12006 | ac_status=$? | |
12007 | grep -v '^ *+' conftest.er1 >conftest.err | |
12008 | rm -f conftest.er1 | |
12009 | cat conftest.err >&5 | |
12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12011 | (exit $ac_status); } && | |
12012 | { ac_try='test -z "$ac_c_werror_flag" | |
12013 | || test ! -s conftest.err' | |
12014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12015 | (eval $ac_try) 2>&5 | |
12016 | ac_status=$? | |
12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12018 | (exit $ac_status); }; } && | |
12019 | { ac_try='test -s conftest.$ac_objext' | |
12020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12021 | (eval $ac_try) 2>&5 | |
12022 | ac_status=$? | |
12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12024 | (exit $ac_status); }; }; then | |
12025 | ac_hi=$ac_mid | |
12026 | else | |
12027 | echo "$as_me: failed program was:" >&5 | |
12028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12029 | ||
12030 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12031 | fi | |
12032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12033 | done | |
12034 | case $ac_lo in | |
12035 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
7a283e07 RW |
12036 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12037 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
d2df793a NC |
12039 | See \`config.log' for more details." >&5 |
12040 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
12041 | See \`config.log' for more details." >&2;} | |
7a283e07 | 12042 | { (exit 1); exit 1; }; }; } ;; |
d2df793a NC |
12043 | esac |
12044 | else | |
12045 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
12046 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12047 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12048 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d2df793a NC |
12049 | See \`config.log' for more details." >&5 |
12050 | echo "$as_me: error: cannot run test program while cross compiling | |
12051 | See \`config.log' for more details." >&2;} | |
7a283e07 | 12052 | { (exit 1); exit 1; }; }; } |
d2df793a NC |
12053 | else |
12054 | cat >conftest.$ac_ext <<_ACEOF | |
12055 | /* confdefs.h. */ | |
12056 | _ACEOF | |
12057 | cat confdefs.h >>conftest.$ac_ext | |
12058 | cat >>conftest.$ac_ext <<_ACEOF | |
12059 | /* end confdefs.h. */ | |
12060 | $ac_includes_default | |
12061 | long longval () { return (long) (sizeof (void *)); } | |
12062 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
12063 | #include <stdio.h> | |
12064 | #include <stdlib.h> | |
12065 | int | |
12066 | main () | |
12067 | { | |
12068 | ||
12069 | FILE *f = fopen ("conftest.val", "w"); | |
12070 | if (! f) | |
12071 | exit (1); | |
12072 | if (((long) (sizeof (void *))) < 0) | |
12073 | { | |
12074 | long i = longval (); | |
12075 | if (i != ((long) (sizeof (void *)))) | |
12076 | exit (1); | |
12077 | fprintf (f, "%ld\n", i); | |
12078 | } | |
12079 | else | |
12080 | { | |
12081 | unsigned long i = ulongval (); | |
12082 | if (i != ((long) (sizeof (void *)))) | |
12083 | exit (1); | |
12084 | fprintf (f, "%lu\n", i); | |
12085 | } | |
12086 | exit (ferror (f) || fclose (f) != 0); | |
12087 | ||
12088 | ; | |
12089 | return 0; | |
12090 | } | |
12091 | _ACEOF | |
12092 | rm -f conftest$ac_exeext | |
12093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12094 | (eval $ac_link) 2>&5 | |
12095 | ac_status=$? | |
12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12099 | (eval $ac_try) 2>&5 | |
12100 | ac_status=$? | |
12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12102 | (exit $ac_status); }; }; then | |
12103 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12104 | else | |
12105 | echo "$as_me: program exited with status $ac_status" >&5 | |
12106 | echo "$as_me: failed program was:" >&5 | |
12107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12108 | ||
12109 | ( exit $ac_status ) | |
7a283e07 RW |
12110 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12111 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d2df793a NC |
12112 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
12113 | See \`config.log' for more details." >&5 | |
12114 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
12115 | See \`config.log' for more details." >&2;} | |
7a283e07 | 12116 | { (exit 1); exit 1; }; }; } |
d2df793a NC |
12117 | fi |
12118 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12119 | fi | |
12120 | fi | |
12121 | rm -f conftest.val | |
12122 | else | |
12123 | ac_cv_sizeof_void_p=0 | |
12124 | fi | |
12125 | fi | |
12126 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
12127 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
12128 | cat >>confdefs.h <<_ACEOF | |
12129 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12130 | _ACEOF | |
12131 | ||
12132 | ||
2ba49b59 KC |
12133 | echo "$as_me:$LINENO: checking for long" >&5 |
12134 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
12135 | if test "${ac_cv_type_long+set}" = set; then | |
5464f5a1 NN |
12136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12137 | else | |
12138 | cat >conftest.$ac_ext <<_ACEOF | |
12139 | /* confdefs.h. */ | |
12140 | _ACEOF | |
12141 | cat confdefs.h >>conftest.$ac_ext | |
12142 | cat >>conftest.$ac_ext <<_ACEOF | |
12143 | /* end confdefs.h. */ | |
2ba49b59 | 12144 | $ac_includes_default |
5464f5a1 NN |
12145 | int |
12146 | main () | |
12147 | { | |
2ba49b59 KC |
12148 | if ((long *) 0) |
12149 | return 0; | |
12150 | if (sizeof (long)) | |
12151 | return 0; | |
5464f5a1 NN |
12152 | ; |
12153 | return 0; | |
12154 | } | |
12155 | _ACEOF | |
12156 | rm -f conftest.$ac_objext | |
12157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12158 | (eval $ac_compile) 2>conftest.er1 | |
12159 | ac_status=$? | |
12160 | grep -v '^ *+' conftest.er1 >conftest.err | |
12161 | rm -f conftest.er1 | |
12162 | cat conftest.err >&5 | |
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); } && | |
49c96104 SE |
12165 | { ac_try='test -z "$ac_c_werror_flag" |
12166 | || test ! -s conftest.err' | |
5464f5a1 NN |
12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12168 | (eval $ac_try) 2>&5 | |
12169 | ac_status=$? | |
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 | (exit $ac_status); }; } && | |
12172 | { ac_try='test -s conftest.$ac_objext' | |
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12174 | (eval $ac_try) 2>&5 | |
12175 | ac_status=$? | |
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); }; }; then | |
2ba49b59 | 12178 | ac_cv_type_long=yes |
252b5132 | 12179 | else |
5464f5a1 NN |
12180 | echo "$as_me: failed program was:" >&5 |
12181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12182 | ||
2ba49b59 | 12183 | ac_cv_type_long=no |
252b5132 | 12184 | fi |
5464f5a1 | 12185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12186 | fi |
2ba49b59 KC |
12187 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12188 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
5464f5a1 | 12189 | |
2ba49b59 KC |
12190 | echo "$as_me:$LINENO: checking size of long" >&5 |
12191 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
12192 | if test "${ac_cv_sizeof_long+set}" = set; then | |
5464f5a1 NN |
12193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12194 | else | |
2ba49b59 KC |
12195 | if test "$ac_cv_type_long" = yes; then |
12196 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12199 | # This bug is HP SR number 8606223364. | |
12200 | if test "$cross_compiling" = yes; then | |
12201 | # Depending upon the size, compute the lo and hi bounds. | |
12202 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12203 | /* confdefs.h. */ |
12204 | _ACEOF | |
12205 | cat confdefs.h >>conftest.$ac_ext | |
12206 | cat >>conftest.$ac_ext <<_ACEOF | |
12207 | /* end confdefs.h. */ | |
2ba49b59 | 12208 | $ac_includes_default |
5464f5a1 NN |
12209 | int |
12210 | main () | |
12211 | { | |
2ba49b59 KC |
12212 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
12213 | test_array [0] = 0 | |
12214 | ||
5464f5a1 NN |
12215 | ; |
12216 | return 0; | |
12217 | } | |
12218 | _ACEOF | |
12219 | rm -f conftest.$ac_objext | |
12220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12221 | (eval $ac_compile) 2>conftest.er1 | |
12222 | ac_status=$? | |
12223 | grep -v '^ *+' conftest.er1 >conftest.err | |
12224 | rm -f conftest.er1 | |
12225 | cat conftest.err >&5 | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); } && | |
49c96104 SE |
12228 | { ac_try='test -z "$ac_c_werror_flag" |
12229 | || test ! -s conftest.err' | |
5464f5a1 NN |
12230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12231 | (eval $ac_try) 2>&5 | |
12232 | ac_status=$? | |
12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12234 | (exit $ac_status); }; } && | |
12235 | { ac_try='test -s conftest.$ac_objext' | |
12236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12237 | (eval $ac_try) 2>&5 | |
12238 | ac_status=$? | |
12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12240 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
12241 | ac_lo=0 ac_mid=0 |
12242 | while :; do | |
12243 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12244 | /* confdefs.h. */ |
12245 | _ACEOF | |
12246 | cat confdefs.h >>conftest.$ac_ext | |
12247 | cat >>conftest.$ac_ext <<_ACEOF | |
12248 | /* end confdefs.h. */ | |
2ba49b59 | 12249 | $ac_includes_default |
5464f5a1 NN |
12250 | int |
12251 | main () | |
12252 | { | |
2ba49b59 KC |
12253 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
12254 | test_array [0] = 0 | |
12255 | ||
5464f5a1 NN |
12256 | ; |
12257 | return 0; | |
12258 | } | |
12259 | _ACEOF | |
2ba49b59 KC |
12260 | rm -f conftest.$ac_objext |
12261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12262 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12263 | ac_status=$? |
12264 | grep -v '^ *+' conftest.er1 >conftest.err | |
12265 | rm -f conftest.er1 | |
12266 | cat conftest.err >&5 | |
12267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12268 | (exit $ac_status); } && | |
49c96104 SE |
12269 | { ac_try='test -z "$ac_c_werror_flag" |
12270 | || test ! -s conftest.err' | |
5464f5a1 NN |
12271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12272 | (eval $ac_try) 2>&5 | |
12273 | ac_status=$? | |
12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12275 | (exit $ac_status); }; } && | |
2ba49b59 | 12276 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12278 | (eval $ac_try) 2>&5 | |
12279 | ac_status=$? | |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12281 | (exit $ac_status); }; }; then | |
2ba49b59 | 12282 | ac_hi=$ac_mid; break |
5464f5a1 NN |
12283 | else |
12284 | echo "$as_me: failed program was:" >&5 | |
12285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12286 | ||
2ba49b59 KC |
12287 | ac_lo=`expr $ac_mid + 1` |
12288 | if test $ac_lo -le $ac_mid; then | |
12289 | ac_lo= ac_hi= | |
12290 | break | |
12291 | fi | |
12292 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5464f5a1 | 12293 | fi |
2ba49b59 KC |
12294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12295 | done | |
12296 | else | |
12297 | echo "$as_me: failed program was:" >&5 | |
12298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12299 | ||
12300 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12301 | /* confdefs.h. */ |
12302 | _ACEOF | |
12303 | cat confdefs.h >>conftest.$ac_ext | |
12304 | cat >>conftest.$ac_ext <<_ACEOF | |
12305 | /* end confdefs.h. */ | |
2ba49b59 | 12306 | $ac_includes_default |
5464f5a1 NN |
12307 | int |
12308 | main () | |
12309 | { | |
2ba49b59 KC |
12310 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
12311 | test_array [0] = 0 | |
12312 | ||
5464f5a1 NN |
12313 | ; |
12314 | return 0; | |
12315 | } | |
12316 | _ACEOF | |
2ba49b59 KC |
12317 | rm -f conftest.$ac_objext |
12318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12319 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12320 | ac_status=$? |
12321 | grep -v '^ *+' conftest.er1 >conftest.err | |
12322 | rm -f conftest.er1 | |
12323 | cat conftest.err >&5 | |
12324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12325 | (exit $ac_status); } && | |
49c96104 SE |
12326 | { ac_try='test -z "$ac_c_werror_flag" |
12327 | || test ! -s conftest.err' | |
5464f5a1 NN |
12328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12329 | (eval $ac_try) 2>&5 | |
12330 | ac_status=$? | |
12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12332 | (exit $ac_status); }; } && | |
2ba49b59 | 12333 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12335 | (eval $ac_try) 2>&5 | |
12336 | ac_status=$? | |
12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12338 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
12339 | ac_hi=-1 ac_mid=-1 |
12340 | while :; do | |
12341 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12342 | /* confdefs.h. */ |
12343 | _ACEOF | |
12344 | cat confdefs.h >>conftest.$ac_ext | |
12345 | cat >>conftest.$ac_ext <<_ACEOF | |
12346 | /* end confdefs.h. */ | |
2ba49b59 | 12347 | $ac_includes_default |
5464f5a1 NN |
12348 | int |
12349 | main () | |
12350 | { | |
2ba49b59 KC |
12351 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
12352 | test_array [0] = 0 | |
12353 | ||
5464f5a1 NN |
12354 | ; |
12355 | return 0; | |
12356 | } | |
12357 | _ACEOF | |
2ba49b59 KC |
12358 | rm -f conftest.$ac_objext |
12359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12360 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12361 | ac_status=$? |
12362 | grep -v '^ *+' conftest.er1 >conftest.err | |
12363 | rm -f conftest.er1 | |
12364 | cat conftest.err >&5 | |
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12366 | (exit $ac_status); } && | |
49c96104 SE |
12367 | { ac_try='test -z "$ac_c_werror_flag" |
12368 | || test ! -s conftest.err' | |
5464f5a1 NN |
12369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12370 | (eval $ac_try) 2>&5 | |
12371 | ac_status=$? | |
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 | (exit $ac_status); }; } && | |
2ba49b59 | 12374 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12376 | (eval $ac_try) 2>&5 | |
12377 | ac_status=$? | |
12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12379 | (exit $ac_status); }; }; then | |
2ba49b59 | 12380 | ac_lo=$ac_mid; break |
5464f5a1 NN |
12381 | else |
12382 | echo "$as_me: failed program was:" >&5 | |
12383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12384 | ||
2ba49b59 KC |
12385 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12386 | if test $ac_mid -le $ac_hi; then | |
12387 | ac_lo= ac_hi= | |
12388 | break | |
12389 | fi | |
12390 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 12391 | fi |
2ba49b59 KC |
12392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12393 | done | |
12394 | else | |
12395 | echo "$as_me: failed program was:" >&5 | |
12396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12397 | ||
12398 | ac_lo= ac_hi= | |
12399 | fi | |
12400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12401 | fi | |
12402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12403 | # Binary search between lo and hi bounds. | |
12404 | while test "x$ac_lo" != "x$ac_hi"; do | |
12405 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12406 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12407 | /* confdefs.h. */ |
12408 | _ACEOF | |
12409 | cat confdefs.h >>conftest.$ac_ext | |
12410 | cat >>conftest.$ac_ext <<_ACEOF | |
12411 | /* end confdefs.h. */ | |
2ba49b59 | 12412 | $ac_includes_default |
5464f5a1 NN |
12413 | int |
12414 | main () | |
12415 | { | |
2ba49b59 KC |
12416 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
12417 | test_array [0] = 0 | |
12418 | ||
5464f5a1 NN |
12419 | ; |
12420 | return 0; | |
12421 | } | |
12422 | _ACEOF | |
2ba49b59 KC |
12423 | rm -f conftest.$ac_objext |
12424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12425 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12426 | ac_status=$? |
12427 | grep -v '^ *+' conftest.er1 >conftest.err | |
12428 | rm -f conftest.er1 | |
12429 | cat conftest.err >&5 | |
12430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12431 | (exit $ac_status); } && | |
49c96104 SE |
12432 | { ac_try='test -z "$ac_c_werror_flag" |
12433 | || test ! -s conftest.err' | |
5464f5a1 NN |
12434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12435 | (eval $ac_try) 2>&5 | |
12436 | ac_status=$? | |
12437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12438 | (exit $ac_status); }; } && | |
2ba49b59 | 12439 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12441 | (eval $ac_try) 2>&5 | |
12442 | ac_status=$? | |
12443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12444 | (exit $ac_status); }; }; then | |
2ba49b59 | 12445 | ac_hi=$ac_mid |
5464f5a1 NN |
12446 | else |
12447 | echo "$as_me: failed program was:" >&5 | |
12448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12449 | ||
2ba49b59 | 12450 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 | 12451 | fi |
2ba49b59 KC |
12452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12453 | done | |
12454 | case $ac_lo in | |
12455 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7a283e07 RW |
12456 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12457 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12458 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
2ba49b59 KC |
12459 | See \`config.log' for more details." >&5 |
12460 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12461 | See \`config.log' for more details." >&2;} | |
7a283e07 | 12462 | { (exit 1); exit 1; }; }; } ;; |
2ba49b59 KC |
12463 | esac |
12464 | else | |
12465 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
12466 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12467 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12468 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
49c96104 SE |
12469 | See \`config.log' for more details." >&5 |
12470 | echo "$as_me: error: cannot run test program while cross compiling | |
12471 | See \`config.log' for more details." >&2;} | |
7a283e07 | 12472 | { (exit 1); exit 1; }; }; } |
2e0fbf77 JW |
12473 | else |
12474 | cat >conftest.$ac_ext <<_ACEOF | |
12475 | /* confdefs.h. */ | |
12476 | _ACEOF | |
12477 | cat confdefs.h >>conftest.$ac_ext | |
12478 | cat >>conftest.$ac_ext <<_ACEOF | |
12479 | /* end confdefs.h. */ | |
2ba49b59 KC |
12480 | $ac_includes_default |
12481 | long longval () { return (long) (sizeof (long)); } | |
12482 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
12483 | #include <stdio.h> | |
12484 | #include <stdlib.h> | |
2e0fbf77 JW |
12485 | int |
12486 | main () | |
12487 | { | |
12488 | ||
2ba49b59 KC |
12489 | FILE *f = fopen ("conftest.val", "w"); |
12490 | if (! f) | |
12491 | exit (1); | |
12492 | if (((long) (sizeof (long))) < 0) | |
12493 | { | |
12494 | long i = longval (); | |
12495 | if (i != ((long) (sizeof (long)))) | |
12496 | exit (1); | |
12497 | fprintf (f, "%ld\n", i); | |
12498 | } | |
12499 | else | |
12500 | { | |
12501 | unsigned long i = ulongval (); | |
12502 | if (i != ((long) (sizeof (long)))) | |
12503 | exit (1); | |
12504 | fprintf (f, "%lu\n", i); | |
12505 | } | |
12506 | exit (ferror (f) || fclose (f) != 0); | |
12507 | ||
2e0fbf77 JW |
12508 | ; |
12509 | return 0; | |
12510 | } | |
12511 | _ACEOF | |
2ba49b59 KC |
12512 | rm -f conftest$ac_exeext |
12513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12514 | (eval $ac_link) 2>&5 | |
2e0fbf77 JW |
12515 | ac_status=$? |
12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 12517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2e0fbf77 JW |
12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12519 | (eval $ac_try) 2>&5 | |
12520 | ac_status=$? | |
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12522 | (exit $ac_status); }; }; then | |
2ba49b59 | 12523 | ac_cv_sizeof_long=`cat conftest.val` |
2e0fbf77 | 12524 | else |
2ba49b59 KC |
12525 | echo "$as_me: program exited with status $ac_status" >&5 |
12526 | echo "$as_me: failed program was:" >&5 | |
2e0fbf77 JW |
12527 | sed 's/^/| /' conftest.$ac_ext >&5 |
12528 | ||
2ba49b59 | 12529 | ( exit $ac_status ) |
7a283e07 RW |
12530 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12531 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2ba49b59 KC |
12532 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
12533 | See \`config.log' for more details." >&5 | |
12534 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12535 | See \`config.log' for more details." >&2;} | |
7a283e07 | 12536 | { (exit 1); exit 1; }; }; } |
2e0fbf77 | 12537 | fi |
2ba49b59 | 12538 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2e0fbf77 | 12539 | fi |
2ba49b59 KC |
12540 | fi |
12541 | rm -f conftest.val | |
12542 | else | |
12543 | ac_cv_sizeof_long=0 | |
12544 | fi | |
12545 | fi | |
12546 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
12547 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
12548 | cat >>confdefs.h <<_ACEOF | |
12549 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12550 | _ACEOF | |
12551 | ||
12552 | ||
d2df793a NC |
12553 | |
12554 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
2ba49b59 | 12555 | host64=true |
bce5e5c9 AM |
12556 | fi |
12557 | ||
12558 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
2ba49b59 KC |
12559 | BFD_HOST_64BIT_LONG=1 |
12560 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
12561 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
12562 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then | |
bce5e5c9 | 12563 | BFD_HOST_64BIT_LONG_LONG=1 |
2ba49b59 KC |
12564 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
12565 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
bce5e5c9 AM |
12566 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then |
12567 | BFD_HOSTPTR_T="unsigned long long" | |
12568 | fi | |
2ba49b59 KC |
12569 | fi |
12570 | ||
12571 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then | |
12572 | BFD_HOST_64_BIT_DEFINED=1 | |
12573 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" | |
12574 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
12575 | fi | |
12576 | ||
12577 | ||
12578 | ||
12579 | ||
12580 | ||
12581 | ||
12582 | ||
d2df793a | 12583 | |
2ba49b59 KC |
12584 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
12585 | if test -z "$CC_FOR_BUILD"; then | |
12586 | if test "x$cross_compiling" = "xno"; then | |
12587 | CC_FOR_BUILD='$(CC)' | |
12588 | else | |
12589 | CC_FOR_BUILD=gcc | |
12590 | fi | |
12591 | fi | |
12592 | ||
12593 | # Also set EXEEXT_FOR_BUILD. | |
12594 | if test "x$cross_compiling" = "xno"; then | |
12595 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
12596 | else | |
12597 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
12598 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
12599 | if test "${bfd_cv_build_exeext+set}" = set; then | |
12600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12601 | else | |
12602 | rm -f conftest* | |
12603 | echo 'int main () { return 0; }' > conftest.c | |
12604 | bfd_cv_build_exeext= | |
12605 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
12606 | for file in conftest.*; do | |
12607 | case $file in | |
12608 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
12609 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
12610 | esac | |
12611 | done | |
12612 | rm -f conftest* | |
12613 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
12614 | fi | |
12615 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 | |
12616 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
12617 | EXEEXT_FOR_BUILD="" | |
12618 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
12619 | fi | |
12620 | ||
12621 | ||
12622 | ||
12623 | ||
12624 | ||
12625 | ||
12626 | ||
12627 | ||
8bc9c892 NC |
12628 | |
12629 | for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h | |
2ba49b59 KC |
12630 | do |
12631 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12637 | fi | |
12638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12640 | else | |
12641 | # Is the header compilable? | |
12642 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12644 | cat >conftest.$ac_ext <<_ACEOF | |
12645 | /* confdefs.h. */ | |
12646 | _ACEOF | |
12647 | cat confdefs.h >>conftest.$ac_ext | |
12648 | cat >>conftest.$ac_ext <<_ACEOF | |
12649 | /* end confdefs.h. */ | |
12650 | $ac_includes_default | |
12651 | #include <$ac_header> | |
12652 | _ACEOF | |
12653 | rm -f conftest.$ac_objext | |
12654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12655 | (eval $ac_compile) 2>conftest.er1 | |
12656 | ac_status=$? | |
12657 | grep -v '^ *+' conftest.er1 >conftest.err | |
12658 | rm -f conftest.er1 | |
12659 | cat conftest.err >&5 | |
12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12661 | (exit $ac_status); } && | |
49c96104 SE |
12662 | { ac_try='test -z "$ac_c_werror_flag" |
12663 | || test ! -s conftest.err' | |
2ba49b59 KC |
12664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12665 | (eval $ac_try) 2>&5 | |
12666 | ac_status=$? | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); }; } && | |
12669 | { ac_try='test -s conftest.$ac_objext' | |
12670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12671 | (eval $ac_try) 2>&5 | |
12672 | ac_status=$? | |
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12674 | (exit $ac_status); }; }; then | |
12675 | ac_header_compiler=yes | |
12676 | else | |
12677 | echo "$as_me: failed program was:" >&5 | |
12678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12679 | ||
12680 | ac_header_compiler=no | |
12681 | fi | |
12682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12685 | ||
12686 | # Is the header present? | |
12687 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12689 | cat >conftest.$ac_ext <<_ACEOF | |
12690 | /* confdefs.h. */ | |
12691 | _ACEOF | |
12692 | cat confdefs.h >>conftest.$ac_ext | |
12693 | cat >>conftest.$ac_ext <<_ACEOF | |
12694 | /* end confdefs.h. */ | |
12695 | #include <$ac_header> | |
12696 | _ACEOF | |
12697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12699 | ac_status=$? | |
12700 | grep -v '^ *+' conftest.er1 >conftest.err | |
12701 | rm -f conftest.er1 | |
12702 | cat conftest.err >&5 | |
12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12704 | (exit $ac_status); } >/dev/null; then | |
12705 | if test -s conftest.err; then | |
12706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12708 | else | |
12709 | ac_cpp_err= | |
12710 | fi | |
12711 | else | |
12712 | ac_cpp_err=yes | |
12713 | fi | |
12714 | if test -z "$ac_cpp_err"; then | |
12715 | ac_header_preproc=yes | |
12716 | else | |
12717 | echo "$as_me: failed program was:" >&5 | |
12718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12719 | ||
12720 | ac_header_preproc=no | |
12721 | fi | |
12722 | rm -f conftest.err conftest.$ac_ext | |
12723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12725 | ||
12726 | # So? What about this header? | |
12727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12728 | yes:no: ) | |
12729 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12730 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12732 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12733 | ac_header_preproc=yes | |
12734 | ;; | |
12735 | no:yes:* ) | |
12736 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12737 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12738 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12739 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12740 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12741 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12742 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12743 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12745 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12747 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12748 | ( | |
12749 | cat <<\_ASBOX | |
12750 | ## ------------------------------------------ ## | |
12751 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12752 | ## ------------------------------------------ ## | |
12753 | _ASBOX | |
12754 | ) | | |
12755 | sed "s/^/$as_me: WARNING: /" >&2 | |
12756 | ;; | |
12757 | esac | |
12758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12762 | else | |
12763 | eval "$as_ac_Header=\$ac_header_preproc" | |
12764 | fi | |
12765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12767 | ||
12768 | fi | |
12769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12770 | cat >>confdefs.h <<_ACEOF | |
12771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12772 | _ACEOF | |
12773 | ||
12774 | fi | |
12775 | ||
12776 | done | |
12777 | ||
12778 | ||
12779 | ||
12780 | ||
12781 | for ac_header in fcntl.h sys/file.h sys/time.h | |
12782 | do | |
12783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12789 | fi | |
12790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12792 | else | |
12793 | # Is the header compilable? | |
12794 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12795 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12796 | cat >conftest.$ac_ext <<_ACEOF | |
12797 | /* confdefs.h. */ | |
12798 | _ACEOF | |
12799 | cat confdefs.h >>conftest.$ac_ext | |
12800 | cat >>conftest.$ac_ext <<_ACEOF | |
12801 | /* end confdefs.h. */ | |
12802 | $ac_includes_default | |
12803 | #include <$ac_header> | |
12804 | _ACEOF | |
12805 | rm -f conftest.$ac_objext | |
12806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12807 | (eval $ac_compile) 2>conftest.er1 | |
12808 | ac_status=$? | |
12809 | grep -v '^ *+' conftest.er1 >conftest.err | |
12810 | rm -f conftest.er1 | |
12811 | cat conftest.err >&5 | |
12812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12813 | (exit $ac_status); } && | |
49c96104 SE |
12814 | { ac_try='test -z "$ac_c_werror_flag" |
12815 | || test ! -s conftest.err' | |
2ba49b59 KC |
12816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12817 | (eval $ac_try) 2>&5 | |
12818 | ac_status=$? | |
12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); }; } && | |
12821 | { ac_try='test -s conftest.$ac_objext' | |
12822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12823 | (eval $ac_try) 2>&5 | |
12824 | ac_status=$? | |
12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12826 | (exit $ac_status); }; }; then | |
12827 | ac_header_compiler=yes | |
12828 | else | |
12829 | echo "$as_me: failed program was:" >&5 | |
12830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12831 | ||
12832 | ac_header_compiler=no | |
12833 | fi | |
12834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12836 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12837 | ||
12838 | # Is the header present? | |
12839 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12840 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12841 | cat >conftest.$ac_ext <<_ACEOF | |
12842 | /* confdefs.h. */ | |
12843 | _ACEOF | |
12844 | cat confdefs.h >>conftest.$ac_ext | |
12845 | cat >>conftest.$ac_ext <<_ACEOF | |
12846 | /* end confdefs.h. */ | |
12847 | #include <$ac_header> | |
12848 | _ACEOF | |
12849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12851 | ac_status=$? | |
12852 | grep -v '^ *+' conftest.er1 >conftest.err | |
12853 | rm -f conftest.er1 | |
12854 | cat conftest.err >&5 | |
12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12856 | (exit $ac_status); } >/dev/null; then | |
12857 | if test -s conftest.err; then | |
12858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12860 | else | |
12861 | ac_cpp_err= | |
12862 | fi | |
12863 | else | |
12864 | ac_cpp_err=yes | |
12865 | fi | |
12866 | if test -z "$ac_cpp_err"; then | |
12867 | ac_header_preproc=yes | |
12868 | else | |
12869 | echo "$as_me: failed program was:" >&5 | |
12870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12871 | ||
12872 | ac_header_preproc=no | |
12873 | fi | |
12874 | rm -f conftest.err conftest.$ac_ext | |
12875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12876 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12877 | ||
12878 | # So? What about this header? | |
12879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12880 | yes:no: ) | |
12881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12882 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12885 | ac_header_preproc=yes | |
12886 | ;; | |
12887 | no:yes:* ) | |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12895 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12899 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12900 | ( | |
12901 | cat <<\_ASBOX | |
12902 | ## ------------------------------------------ ## | |
12903 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12904 | ## ------------------------------------------ ## | |
12905 | _ASBOX | |
12906 | ) | | |
12907 | sed "s/^/$as_me: WARNING: /" >&2 | |
12908 | ;; | |
12909 | esac | |
12910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12914 | else | |
12915 | eval "$as_ac_Header=\$ac_header_preproc" | |
12916 | fi | |
12917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12919 | ||
12920 | fi | |
12921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12922 | cat >>confdefs.h <<_ACEOF | |
12923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12924 | _ACEOF | |
12925 | ||
12926 | fi | |
12927 | ||
12928 | done | |
12929 | ||
d5efd9fc AM |
12930 | |
12931 | ||
12932 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
12933 | ||
12934 | acx_cv_header_stdint=stddef.h | |
12935 | acx_cv_header_stdint_kind="(already complete)" | |
12936 | for i in stdint.h $inttype_headers; do | |
12937 | unset ac_cv_type_uintptr_t | |
12938 | unset ac_cv_type_uintmax_t | |
12939 | unset ac_cv_type_int_least32_t | |
12940 | unset ac_cv_type_int_fast32_t | |
12941 | unset ac_cv_type_uint64_t | |
12942 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
12943 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
12944 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
12945 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
12946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12947 | else | |
12948 | cat >conftest.$ac_ext <<_ACEOF | |
12949 | /* confdefs.h. */ | |
12950 | _ACEOF | |
12951 | cat confdefs.h >>conftest.$ac_ext | |
12952 | cat >>conftest.$ac_ext <<_ACEOF | |
12953 | /* end confdefs.h. */ | |
12954 | #include <sys/types.h> | |
12955 | #include <$i> | |
12956 | ||
12957 | int | |
12958 | main () | |
12959 | { | |
12960 | if ((uintmax_t *) 0) | |
12961 | return 0; | |
12962 | if (sizeof (uintmax_t)) | |
12963 | return 0; | |
12964 | ; | |
12965 | return 0; | |
12966 | } | |
12967 | _ACEOF | |
12968 | rm -f conftest.$ac_objext | |
12969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12970 | (eval $ac_compile) 2>conftest.er1 | |
12971 | ac_status=$? | |
12972 | grep -v '^ *+' conftest.er1 >conftest.err | |
12973 | rm -f conftest.er1 | |
12974 | cat conftest.err >&5 | |
12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12976 | (exit $ac_status); } && | |
12977 | { ac_try='test -z "$ac_c_werror_flag" | |
12978 | || test ! -s conftest.err' | |
12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12980 | (eval $ac_try) 2>&5 | |
12981 | ac_status=$? | |
12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12983 | (exit $ac_status); }; } && | |
12984 | { ac_try='test -s conftest.$ac_objext' | |
12985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12986 | (eval $ac_try) 2>&5 | |
12987 | ac_status=$? | |
12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12989 | (exit $ac_status); }; }; then | |
12990 | ac_cv_type_uintmax_t=yes | |
12991 | else | |
12992 | echo "$as_me: failed program was:" >&5 | |
12993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12994 | ||
12995 | ac_cv_type_uintmax_t=no | |
12996 | fi | |
12997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12998 | fi | |
12999 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
13000 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
13001 | if test $ac_cv_type_uintmax_t = yes; then | |
13002 | acx_cv_header_stdint=$i | |
13003 | else | |
13004 | continue | |
13005 | fi | |
13006 | ||
13007 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
13008 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
13009 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
13010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13011 | else | |
13012 | cat >conftest.$ac_ext <<_ACEOF | |
13013 | /* confdefs.h. */ | |
13014 | _ACEOF | |
13015 | cat confdefs.h >>conftest.$ac_ext | |
13016 | cat >>conftest.$ac_ext <<_ACEOF | |
13017 | /* end confdefs.h. */ | |
13018 | #include <sys/types.h> | |
13019 | #include <$i> | |
13020 | ||
13021 | int | |
13022 | main () | |
13023 | { | |
13024 | if ((uintptr_t *) 0) | |
13025 | return 0; | |
13026 | if (sizeof (uintptr_t)) | |
13027 | return 0; | |
13028 | ; | |
13029 | return 0; | |
13030 | } | |
13031 | _ACEOF | |
13032 | rm -f conftest.$ac_objext | |
13033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13034 | (eval $ac_compile) 2>conftest.er1 | |
13035 | ac_status=$? | |
13036 | grep -v '^ *+' conftest.er1 >conftest.err | |
13037 | rm -f conftest.er1 | |
13038 | cat conftest.err >&5 | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); } && | |
13041 | { ac_try='test -z "$ac_c_werror_flag" | |
13042 | || test ! -s conftest.err' | |
13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13044 | (eval $ac_try) 2>&5 | |
13045 | ac_status=$? | |
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13047 | (exit $ac_status); }; } && | |
13048 | { ac_try='test -s conftest.$ac_objext' | |
13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13050 | (eval $ac_try) 2>&5 | |
13051 | ac_status=$? | |
13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13053 | (exit $ac_status); }; }; then | |
13054 | ac_cv_type_uintptr_t=yes | |
13055 | else | |
13056 | echo "$as_me: failed program was:" >&5 | |
13057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13058 | ||
13059 | ac_cv_type_uintptr_t=no | |
13060 | fi | |
13061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13062 | fi | |
13063 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
13064 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
13065 | if test $ac_cv_type_uintptr_t = yes; then | |
13066 | : | |
13067 | else | |
13068 | acx_cv_header_stdint_kind="(mostly complete)" | |
13069 | fi | |
13070 | ||
13071 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
13072 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
13073 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
13074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13075 | else | |
13076 | cat >conftest.$ac_ext <<_ACEOF | |
13077 | /* confdefs.h. */ | |
13078 | _ACEOF | |
13079 | cat confdefs.h >>conftest.$ac_ext | |
13080 | cat >>conftest.$ac_ext <<_ACEOF | |
13081 | /* end confdefs.h. */ | |
13082 | #include <sys/types.h> | |
13083 | #include <$i> | |
13084 | ||
13085 | int | |
13086 | main () | |
13087 | { | |
13088 | if ((int_least32_t *) 0) | |
13089 | return 0; | |
13090 | if (sizeof (int_least32_t)) | |
13091 | return 0; | |
13092 | ; | |
13093 | return 0; | |
13094 | } | |
13095 | _ACEOF | |
13096 | rm -f conftest.$ac_objext | |
13097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13098 | (eval $ac_compile) 2>conftest.er1 | |
13099 | ac_status=$? | |
13100 | grep -v '^ *+' conftest.er1 >conftest.err | |
13101 | rm -f conftest.er1 | |
13102 | cat conftest.err >&5 | |
13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13104 | (exit $ac_status); } && | |
13105 | { ac_try='test -z "$ac_c_werror_flag" | |
13106 | || test ! -s conftest.err' | |
13107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13108 | (eval $ac_try) 2>&5 | |
13109 | ac_status=$? | |
13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13111 | (exit $ac_status); }; } && | |
13112 | { ac_try='test -s conftest.$ac_objext' | |
13113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13114 | (eval $ac_try) 2>&5 | |
13115 | ac_status=$? | |
13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13117 | (exit $ac_status); }; }; then | |
13118 | ac_cv_type_int_least32_t=yes | |
13119 | else | |
13120 | echo "$as_me: failed program was:" >&5 | |
13121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13122 | ||
13123 | ac_cv_type_int_least32_t=no | |
13124 | fi | |
13125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13126 | fi | |
13127 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
13128 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
13129 | if test $ac_cv_type_int_least32_t = yes; then | |
13130 | : | |
13131 | else | |
13132 | acx_cv_header_stdint_kind="(mostly complete)" | |
13133 | fi | |
13134 | ||
13135 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
13136 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
13137 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
13138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13139 | else | |
13140 | cat >conftest.$ac_ext <<_ACEOF | |
13141 | /* confdefs.h. */ | |
13142 | _ACEOF | |
13143 | cat confdefs.h >>conftest.$ac_ext | |
13144 | cat >>conftest.$ac_ext <<_ACEOF | |
13145 | /* end confdefs.h. */ | |
13146 | #include <sys/types.h> | |
13147 | #include <$i> | |
13148 | ||
13149 | int | |
13150 | main () | |
13151 | { | |
13152 | if ((int_fast32_t *) 0) | |
13153 | return 0; | |
13154 | if (sizeof (int_fast32_t)) | |
13155 | return 0; | |
13156 | ; | |
13157 | return 0; | |
13158 | } | |
13159 | _ACEOF | |
13160 | rm -f conftest.$ac_objext | |
13161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13162 | (eval $ac_compile) 2>conftest.er1 | |
13163 | ac_status=$? | |
13164 | grep -v '^ *+' conftest.er1 >conftest.err | |
13165 | rm -f conftest.er1 | |
13166 | cat conftest.err >&5 | |
13167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13168 | (exit $ac_status); } && | |
13169 | { ac_try='test -z "$ac_c_werror_flag" | |
13170 | || test ! -s conftest.err' | |
13171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13172 | (eval $ac_try) 2>&5 | |
13173 | ac_status=$? | |
13174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13175 | (exit $ac_status); }; } && | |
13176 | { ac_try='test -s conftest.$ac_objext' | |
13177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13178 | (eval $ac_try) 2>&5 | |
13179 | ac_status=$? | |
13180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13181 | (exit $ac_status); }; }; then | |
13182 | ac_cv_type_int_fast32_t=yes | |
13183 | else | |
13184 | echo "$as_me: failed program was:" >&5 | |
13185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13186 | ||
13187 | ac_cv_type_int_fast32_t=no | |
13188 | fi | |
13189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13190 | fi | |
13191 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
13192 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
13193 | if test $ac_cv_type_int_fast32_t = yes; then | |
13194 | : | |
13195 | else | |
13196 | acx_cv_header_stdint_kind="(mostly complete)" | |
13197 | fi | |
13198 | ||
13199 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
13200 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
13201 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
13202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13203 | else | |
13204 | cat >conftest.$ac_ext <<_ACEOF | |
13205 | /* confdefs.h. */ | |
13206 | _ACEOF | |
13207 | cat confdefs.h >>conftest.$ac_ext | |
13208 | cat >>conftest.$ac_ext <<_ACEOF | |
13209 | /* end confdefs.h. */ | |
13210 | #include <sys/types.h> | |
13211 | #include <$i> | |
13212 | ||
13213 | int | |
13214 | main () | |
13215 | { | |
13216 | if ((uint64_t *) 0) | |
13217 | return 0; | |
13218 | if (sizeof (uint64_t)) | |
13219 | return 0; | |
13220 | ; | |
13221 | return 0; | |
13222 | } | |
13223 | _ACEOF | |
13224 | rm -f conftest.$ac_objext | |
13225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13226 | (eval $ac_compile) 2>conftest.er1 | |
13227 | ac_status=$? | |
13228 | grep -v '^ *+' conftest.er1 >conftest.err | |
13229 | rm -f conftest.er1 | |
13230 | cat conftest.err >&5 | |
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); } && | |
13233 | { ac_try='test -z "$ac_c_werror_flag" | |
13234 | || test ! -s conftest.err' | |
13235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13236 | (eval $ac_try) 2>&5 | |
13237 | ac_status=$? | |
13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13239 | (exit $ac_status); }; } && | |
13240 | { ac_try='test -s conftest.$ac_objext' | |
13241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13242 | (eval $ac_try) 2>&5 | |
13243 | ac_status=$? | |
13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13245 | (exit $ac_status); }; }; then | |
13246 | ac_cv_type_uint64_t=yes | |
13247 | else | |
13248 | echo "$as_me: failed program was:" >&5 | |
13249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13250 | ||
13251 | ac_cv_type_uint64_t=no | |
13252 | fi | |
13253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13254 | fi | |
13255 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
13256 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
13257 | if test $ac_cv_type_uint64_t = yes; then | |
13258 | : | |
13259 | else | |
13260 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
13261 | fi | |
13262 | ||
13263 | break | |
13264 | done | |
13265 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13266 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
13267 | for i in stdint.h $inttype_headers; do | |
13268 | unset ac_cv_type_uintptr_t | |
13269 | unset ac_cv_type_uint32_t | |
13270 | unset ac_cv_type_uint64_t | |
13271 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
13272 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
13273 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
13274 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
13275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13276 | else | |
13277 | cat >conftest.$ac_ext <<_ACEOF | |
13278 | /* confdefs.h. */ | |
13279 | _ACEOF | |
13280 | cat confdefs.h >>conftest.$ac_ext | |
13281 | cat >>conftest.$ac_ext <<_ACEOF | |
13282 | /* end confdefs.h. */ | |
13283 | #include <sys/types.h> | |
13284 | #include <$i> | |
13285 | ||
13286 | int | |
13287 | main () | |
13288 | { | |
13289 | if ((uint32_t *) 0) | |
13290 | return 0; | |
13291 | if (sizeof (uint32_t)) | |
13292 | return 0; | |
13293 | ; | |
13294 | return 0; | |
13295 | } | |
13296 | _ACEOF | |
13297 | rm -f conftest.$ac_objext | |
13298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13299 | (eval $ac_compile) 2>conftest.er1 | |
13300 | ac_status=$? | |
13301 | grep -v '^ *+' conftest.er1 >conftest.err | |
13302 | rm -f conftest.er1 | |
13303 | cat conftest.err >&5 | |
13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13305 | (exit $ac_status); } && | |
13306 | { ac_try='test -z "$ac_c_werror_flag" | |
13307 | || test ! -s conftest.err' | |
13308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13309 | (eval $ac_try) 2>&5 | |
13310 | ac_status=$? | |
13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13312 | (exit $ac_status); }; } && | |
13313 | { ac_try='test -s conftest.$ac_objext' | |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; }; then | |
13319 | ac_cv_type_uint32_t=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | ac_cv_type_uint32_t=no | |
13325 | fi | |
13326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13327 | fi | |
13328 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
13329 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
13330 | if test $ac_cv_type_uint32_t = yes; then | |
13331 | acx_cv_header_stdint=$i | |
13332 | else | |
13333 | continue | |
13334 | fi | |
13335 | ||
13336 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
13337 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
13338 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
13339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13340 | else | |
13341 | cat >conftest.$ac_ext <<_ACEOF | |
13342 | /* confdefs.h. */ | |
13343 | _ACEOF | |
13344 | cat confdefs.h >>conftest.$ac_ext | |
13345 | cat >>conftest.$ac_ext <<_ACEOF | |
13346 | /* end confdefs.h. */ | |
13347 | #include <sys/types.h> | |
13348 | #include <$i> | |
13349 | ||
13350 | int | |
13351 | main () | |
13352 | { | |
13353 | if ((uint64_t *) 0) | |
13354 | return 0; | |
13355 | if (sizeof (uint64_t)) | |
13356 | return 0; | |
13357 | ; | |
13358 | return 0; | |
13359 | } | |
13360 | _ACEOF | |
13361 | rm -f conftest.$ac_objext | |
13362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13363 | (eval $ac_compile) 2>conftest.er1 | |
13364 | ac_status=$? | |
13365 | grep -v '^ *+' conftest.er1 >conftest.err | |
13366 | rm -f conftest.er1 | |
13367 | cat conftest.err >&5 | |
13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13369 | (exit $ac_status); } && | |
13370 | { ac_try='test -z "$ac_c_werror_flag" | |
13371 | || test ! -s conftest.err' | |
13372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13373 | (eval $ac_try) 2>&5 | |
13374 | ac_status=$? | |
13375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13376 | (exit $ac_status); }; } && | |
13377 | { ac_try='test -s conftest.$ac_objext' | |
13378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13379 | (eval $ac_try) 2>&5 | |
13380 | ac_status=$? | |
13381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13382 | (exit $ac_status); }; }; then | |
13383 | ac_cv_type_uint64_t=yes | |
13384 | else | |
13385 | echo "$as_me: failed program was:" >&5 | |
13386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13387 | ||
13388 | ac_cv_type_uint64_t=no | |
13389 | fi | |
13390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13391 | fi | |
13392 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
13393 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
13394 | ||
13395 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
13396 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
13397 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13399 | else | |
13400 | cat >conftest.$ac_ext <<_ACEOF | |
13401 | /* confdefs.h. */ | |
13402 | _ACEOF | |
13403 | cat confdefs.h >>conftest.$ac_ext | |
13404 | cat >>conftest.$ac_ext <<_ACEOF | |
13405 | /* end confdefs.h. */ | |
13406 | #include <sys/types.h> | |
13407 | #include <$i> | |
13408 | ||
13409 | int | |
13410 | main () | |
13411 | { | |
13412 | if ((uintptr_t *) 0) | |
13413 | return 0; | |
13414 | if (sizeof (uintptr_t)) | |
13415 | return 0; | |
13416 | ; | |
13417 | return 0; | |
13418 | } | |
13419 | _ACEOF | |
13420 | rm -f conftest.$ac_objext | |
13421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13422 | (eval $ac_compile) 2>conftest.er1 | |
13423 | ac_status=$? | |
13424 | grep -v '^ *+' conftest.er1 >conftest.err | |
13425 | rm -f conftest.er1 | |
13426 | cat conftest.err >&5 | |
13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13428 | (exit $ac_status); } && | |
13429 | { ac_try='test -z "$ac_c_werror_flag" | |
13430 | || test ! -s conftest.err' | |
13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13432 | (eval $ac_try) 2>&5 | |
13433 | ac_status=$? | |
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13435 | (exit $ac_status); }; } && | |
13436 | { ac_try='test -s conftest.$ac_objext' | |
13437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13438 | (eval $ac_try) 2>&5 | |
13439 | ac_status=$? | |
13440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13441 | (exit $ac_status); }; }; then | |
13442 | ac_cv_type_uintptr_t=yes | |
13443 | else | |
13444 | echo "$as_me: failed program was:" >&5 | |
13445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13446 | ||
13447 | ac_cv_type_uintptr_t=no | |
13448 | fi | |
13449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13450 | fi | |
13451 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
13452 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
13453 | ||
13454 | break | |
13455 | done | |
13456 | fi | |
13457 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13458 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
13459 | for i in sys/types.h $inttype_headers; do | |
13460 | unset ac_cv_type_u_int32_t | |
13461 | unset ac_cv_type_u_int64_t | |
13462 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
13463 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
13464 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
13465 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
13466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13467 | else | |
13468 | cat >conftest.$ac_ext <<_ACEOF | |
13469 | /* confdefs.h. */ | |
13470 | _ACEOF | |
13471 | cat confdefs.h >>conftest.$ac_ext | |
13472 | cat >>conftest.$ac_ext <<_ACEOF | |
13473 | /* end confdefs.h. */ | |
13474 | #include <sys/types.h> | |
13475 | #include <$i> | |
13476 | ||
13477 | int | |
13478 | main () | |
13479 | { | |
13480 | if ((u_int32_t *) 0) | |
13481 | return 0; | |
13482 | if (sizeof (u_int32_t)) | |
13483 | return 0; | |
13484 | ; | |
13485 | return 0; | |
13486 | } | |
13487 | _ACEOF | |
13488 | rm -f conftest.$ac_objext | |
13489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13490 | (eval $ac_compile) 2>conftest.er1 | |
13491 | ac_status=$? | |
13492 | grep -v '^ *+' conftest.er1 >conftest.err | |
13493 | rm -f conftest.er1 | |
13494 | cat conftest.err >&5 | |
13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13496 | (exit $ac_status); } && | |
13497 | { ac_try='test -z "$ac_c_werror_flag" | |
13498 | || test ! -s conftest.err' | |
13499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13500 | (eval $ac_try) 2>&5 | |
13501 | ac_status=$? | |
13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13503 | (exit $ac_status); }; } && | |
13504 | { ac_try='test -s conftest.$ac_objext' | |
13505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13506 | (eval $ac_try) 2>&5 | |
13507 | ac_status=$? | |
13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13509 | (exit $ac_status); }; }; then | |
13510 | ac_cv_type_u_int32_t=yes | |
13511 | else | |
13512 | echo "$as_me: failed program was:" >&5 | |
13513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13514 | ||
13515 | ac_cv_type_u_int32_t=no | |
13516 | fi | |
13517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13518 | fi | |
13519 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
13520 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
13521 | if test $ac_cv_type_u_int32_t = yes; then | |
13522 | acx_cv_header_stdint=$i | |
13523 | else | |
13524 | continue | |
13525 | fi | |
13526 | ||
13527 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
13528 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
13529 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
13530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13531 | else | |
13532 | cat >conftest.$ac_ext <<_ACEOF | |
13533 | /* confdefs.h. */ | |
13534 | _ACEOF | |
13535 | cat confdefs.h >>conftest.$ac_ext | |
13536 | cat >>conftest.$ac_ext <<_ACEOF | |
13537 | /* end confdefs.h. */ | |
13538 | #include <sys/types.h> | |
13539 | #include <$i> | |
13540 | ||
13541 | int | |
13542 | main () | |
13543 | { | |
13544 | if ((u_int64_t *) 0) | |
13545 | return 0; | |
13546 | if (sizeof (u_int64_t)) | |
13547 | return 0; | |
13548 | ; | |
13549 | return 0; | |
13550 | } | |
13551 | _ACEOF | |
13552 | rm -f conftest.$ac_objext | |
13553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13554 | (eval $ac_compile) 2>conftest.er1 | |
13555 | ac_status=$? | |
13556 | grep -v '^ *+' conftest.er1 >conftest.err | |
13557 | rm -f conftest.er1 | |
13558 | cat conftest.err >&5 | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); } && | |
13561 | { ac_try='test -z "$ac_c_werror_flag" | |
13562 | || test ! -s conftest.err' | |
13563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13564 | (eval $ac_try) 2>&5 | |
13565 | ac_status=$? | |
13566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13567 | (exit $ac_status); }; } && | |
13568 | { ac_try='test -s conftest.$ac_objext' | |
13569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13570 | (eval $ac_try) 2>&5 | |
13571 | ac_status=$? | |
13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13573 | (exit $ac_status); }; }; then | |
13574 | ac_cv_type_u_int64_t=yes | |
13575 | else | |
13576 | echo "$as_me: failed program was:" >&5 | |
13577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13578 | ||
13579 | ac_cv_type_u_int64_t=no | |
13580 | fi | |
13581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13582 | fi | |
13583 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
13584 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
13585 | ||
13586 | break | |
13587 | done | |
13588 | fi | |
13589 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13590 | acx_cv_header_stdint_kind="(using manual detection)" | |
13591 | fi | |
13592 | ||
13593 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
13594 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
13595 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
13596 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
13597 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
13598 | ||
13599 | # ----------------- Summarize what we found so far | |
13600 | ||
13601 | echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5 | |
13602 | echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6 | |
13603 | ||
13604 | case `$as_basename bfd_stdint.h || | |
13605 | $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
13606 | Xbfd_stdint.h : 'X\(//\)$' \| \ | |
13607 | Xbfd_stdint.h : 'X\(/\)$' \| \ | |
13608 | . : '\(.\)' 2>/dev/null || | |
13609 | echo X/bfd_stdint.h | | |
13610 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
13611 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13612 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13613 | s/.*/./; q'` in | |
13614 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
13615 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
13616 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
13617 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
13618 | *) ;; | |
13619 | esac | |
13620 | ||
13621 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
13622 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
13623 | ||
13624 | # ----------------- done included file, check C basic types -------- | |
13625 | ||
13626 | # Lacking an uintptr_t? Test size of void * | |
13627 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
13628 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
13629 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
13630 | if test "${ac_cv_type_void_p+set}" = set; then | |
13631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13632 | else | |
13633 | cat >conftest.$ac_ext <<_ACEOF | |
13634 | /* confdefs.h. */ | |
13635 | _ACEOF | |
13636 | cat confdefs.h >>conftest.$ac_ext | |
13637 | cat >>conftest.$ac_ext <<_ACEOF | |
13638 | /* end confdefs.h. */ | |
13639 | $ac_includes_default | |
13640 | int | |
13641 | main () | |
13642 | { | |
13643 | if ((void * *) 0) | |
13644 | return 0; | |
13645 | if (sizeof (void *)) | |
13646 | return 0; | |
13647 | ; | |
13648 | return 0; | |
13649 | } | |
13650 | _ACEOF | |
13651 | rm -f conftest.$ac_objext | |
13652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13653 | (eval $ac_compile) 2>conftest.er1 | |
13654 | ac_status=$? | |
13655 | grep -v '^ *+' conftest.er1 >conftest.err | |
13656 | rm -f conftest.er1 | |
13657 | cat conftest.err >&5 | |
13658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13659 | (exit $ac_status); } && | |
13660 | { ac_try='test -z "$ac_c_werror_flag" | |
13661 | || test ! -s conftest.err' | |
13662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13663 | (eval $ac_try) 2>&5 | |
13664 | ac_status=$? | |
13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13666 | (exit $ac_status); }; } && | |
13667 | { ac_try='test -s conftest.$ac_objext' | |
13668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13669 | (eval $ac_try) 2>&5 | |
13670 | ac_status=$? | |
13671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13672 | (exit $ac_status); }; }; then | |
13673 | ac_cv_type_void_p=yes | |
13674 | else | |
13675 | echo "$as_me: failed program was:" >&5 | |
13676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13677 | ||
13678 | ac_cv_type_void_p=no | |
13679 | fi | |
13680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13681 | fi | |
13682 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
13683 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
13684 | ||
13685 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
13686 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
13687 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
13688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13689 | else | |
13690 | if test "$ac_cv_type_void_p" = yes; then | |
13691 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13692 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13693 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13694 | # This bug is HP SR number 8606223364. | |
13695 | if test "$cross_compiling" = yes; then | |
13696 | # Depending upon the size, compute the lo and hi bounds. | |
13697 | cat >conftest.$ac_ext <<_ACEOF | |
13698 | /* confdefs.h. */ | |
13699 | _ACEOF | |
13700 | cat confdefs.h >>conftest.$ac_ext | |
13701 | cat >>conftest.$ac_ext <<_ACEOF | |
13702 | /* end confdefs.h. */ | |
13703 | $ac_includes_default | |
13704 | int | |
13705 | main () | |
13706 | { | |
13707 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
13708 | test_array [0] = 0 | |
13709 | ||
13710 | ; | |
13711 | return 0; | |
13712 | } | |
13713 | _ACEOF | |
13714 | rm -f conftest.$ac_objext | |
13715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13716 | (eval $ac_compile) 2>conftest.er1 | |
13717 | ac_status=$? | |
13718 | grep -v '^ *+' conftest.er1 >conftest.err | |
13719 | rm -f conftest.er1 | |
13720 | cat conftest.err >&5 | |
13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13722 | (exit $ac_status); } && | |
13723 | { ac_try='test -z "$ac_c_werror_flag" | |
13724 | || test ! -s conftest.err' | |
13725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13726 | (eval $ac_try) 2>&5 | |
13727 | ac_status=$? | |
13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | (exit $ac_status); }; } && | |
13730 | { ac_try='test -s conftest.$ac_objext' | |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; }; then | |
13736 | ac_lo=0 ac_mid=0 | |
13737 | while :; do | |
13738 | cat >conftest.$ac_ext <<_ACEOF | |
13739 | /* confdefs.h. */ | |
13740 | _ACEOF | |
13741 | cat confdefs.h >>conftest.$ac_ext | |
13742 | cat >>conftest.$ac_ext <<_ACEOF | |
13743 | /* end confdefs.h. */ | |
13744 | $ac_includes_default | |
13745 | int | |
13746 | main () | |
13747 | { | |
13748 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13749 | test_array [0] = 0 | |
13750 | ||
13751 | ; | |
13752 | return 0; | |
13753 | } | |
13754 | _ACEOF | |
13755 | rm -f conftest.$ac_objext | |
13756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13757 | (eval $ac_compile) 2>conftest.er1 | |
13758 | ac_status=$? | |
13759 | grep -v '^ *+' conftest.er1 >conftest.err | |
13760 | rm -f conftest.er1 | |
13761 | cat conftest.err >&5 | |
13762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13763 | (exit $ac_status); } && | |
13764 | { ac_try='test -z "$ac_c_werror_flag" | |
13765 | || test ! -s conftest.err' | |
13766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13767 | (eval $ac_try) 2>&5 | |
13768 | ac_status=$? | |
13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13770 | (exit $ac_status); }; } && | |
13771 | { ac_try='test -s conftest.$ac_objext' | |
13772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13773 | (eval $ac_try) 2>&5 | |
13774 | ac_status=$? | |
13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13776 | (exit $ac_status); }; }; then | |
13777 | ac_hi=$ac_mid; break | |
13778 | else | |
13779 | echo "$as_me: failed program was:" >&5 | |
13780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13781 | ||
13782 | ac_lo=`expr $ac_mid + 1` | |
13783 | if test $ac_lo -le $ac_mid; then | |
13784 | ac_lo= ac_hi= | |
13785 | break | |
13786 | fi | |
13787 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13788 | fi | |
13789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13790 | done | |
13791 | else | |
13792 | echo "$as_me: failed program was:" >&5 | |
13793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13794 | ||
13795 | cat >conftest.$ac_ext <<_ACEOF | |
13796 | /* confdefs.h. */ | |
13797 | _ACEOF | |
13798 | cat confdefs.h >>conftest.$ac_ext | |
13799 | cat >>conftest.$ac_ext <<_ACEOF | |
13800 | /* end confdefs.h. */ | |
13801 | $ac_includes_default | |
13802 | int | |
13803 | main () | |
13804 | { | |
13805 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
13806 | test_array [0] = 0 | |
13807 | ||
13808 | ; | |
13809 | return 0; | |
13810 | } | |
13811 | _ACEOF | |
13812 | rm -f conftest.$ac_objext | |
13813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13814 | (eval $ac_compile) 2>conftest.er1 | |
13815 | ac_status=$? | |
13816 | grep -v '^ *+' conftest.er1 >conftest.err | |
13817 | rm -f conftest.er1 | |
13818 | cat conftest.err >&5 | |
13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13820 | (exit $ac_status); } && | |
13821 | { ac_try='test -z "$ac_c_werror_flag" | |
13822 | || test ! -s conftest.err' | |
13823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13824 | (eval $ac_try) 2>&5 | |
13825 | ac_status=$? | |
13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 | (exit $ac_status); }; } && | |
13828 | { ac_try='test -s conftest.$ac_objext' | |
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 | (exit $ac_status); }; }; then | |
13834 | ac_hi=-1 ac_mid=-1 | |
13835 | while :; do | |
13836 | cat >conftest.$ac_ext <<_ACEOF | |
13837 | /* confdefs.h. */ | |
13838 | _ACEOF | |
13839 | cat confdefs.h >>conftest.$ac_ext | |
13840 | cat >>conftest.$ac_ext <<_ACEOF | |
13841 | /* end confdefs.h. */ | |
13842 | $ac_includes_default | |
13843 | int | |
13844 | main () | |
13845 | { | |
13846 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
13847 | test_array [0] = 0 | |
13848 | ||
13849 | ; | |
13850 | return 0; | |
13851 | } | |
13852 | _ACEOF | |
13853 | rm -f conftest.$ac_objext | |
13854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13855 | (eval $ac_compile) 2>conftest.er1 | |
13856 | ac_status=$? | |
13857 | grep -v '^ *+' conftest.er1 >conftest.err | |
13858 | rm -f conftest.er1 | |
13859 | cat conftest.err >&5 | |
13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13861 | (exit $ac_status); } && | |
13862 | { ac_try='test -z "$ac_c_werror_flag" | |
13863 | || test ! -s conftest.err' | |
13864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13865 | (eval $ac_try) 2>&5 | |
13866 | ac_status=$? | |
13867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13868 | (exit $ac_status); }; } && | |
13869 | { ac_try='test -s conftest.$ac_objext' | |
13870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13871 | (eval $ac_try) 2>&5 | |
13872 | ac_status=$? | |
13873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13874 | (exit $ac_status); }; }; then | |
13875 | ac_lo=$ac_mid; break | |
13876 | else | |
13877 | echo "$as_me: failed program was:" >&5 | |
13878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13879 | ||
13880 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13881 | if test $ac_mid -le $ac_hi; then | |
13882 | ac_lo= ac_hi= | |
13883 | break | |
13884 | fi | |
13885 | ac_mid=`expr 2 '*' $ac_mid` | |
13886 | fi | |
13887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13888 | done | |
13889 | else | |
13890 | echo "$as_me: failed program was:" >&5 | |
13891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13892 | ||
13893 | ac_lo= ac_hi= | |
13894 | fi | |
13895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13896 | fi | |
13897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13898 | # Binary search between lo and hi bounds. | |
13899 | while test "x$ac_lo" != "x$ac_hi"; do | |
13900 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13901 | cat >conftest.$ac_ext <<_ACEOF | |
13902 | /* confdefs.h. */ | |
13903 | _ACEOF | |
13904 | cat confdefs.h >>conftest.$ac_ext | |
13905 | cat >>conftest.$ac_ext <<_ACEOF | |
13906 | /* end confdefs.h. */ | |
13907 | $ac_includes_default | |
13908 | int | |
13909 | main () | |
13910 | { | |
13911 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13912 | test_array [0] = 0 | |
13913 | ||
13914 | ; | |
13915 | return 0; | |
13916 | } | |
13917 | _ACEOF | |
13918 | rm -f conftest.$ac_objext | |
13919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13920 | (eval $ac_compile) 2>conftest.er1 | |
13921 | ac_status=$? | |
13922 | grep -v '^ *+' conftest.er1 >conftest.err | |
13923 | rm -f conftest.er1 | |
13924 | cat conftest.err >&5 | |
13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13926 | (exit $ac_status); } && | |
13927 | { ac_try='test -z "$ac_c_werror_flag" | |
13928 | || test ! -s conftest.err' | |
13929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13930 | (eval $ac_try) 2>&5 | |
13931 | ac_status=$? | |
13932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13933 | (exit $ac_status); }; } && | |
13934 | { ac_try='test -s conftest.$ac_objext' | |
13935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13936 | (eval $ac_try) 2>&5 | |
13937 | ac_status=$? | |
13938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13939 | (exit $ac_status); }; }; then | |
13940 | ac_hi=$ac_mid | |
13941 | else | |
13942 | echo "$as_me: failed program was:" >&5 | |
13943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13944 | ||
13945 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13946 | fi | |
13947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13948 | done | |
13949 | case $ac_lo in | |
13950 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
7a283e07 RW |
13951 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13952 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13953 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
d5efd9fc AM |
13954 | See \`config.log' for more details." >&5 |
13955 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
13956 | See \`config.log' for more details." >&2;} | |
7a283e07 | 13957 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
13958 | esac |
13959 | else | |
13960 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
13961 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13962 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13963 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d5efd9fc AM |
13964 | See \`config.log' for more details." >&5 |
13965 | echo "$as_me: error: cannot run test program while cross compiling | |
13966 | See \`config.log' for more details." >&2;} | |
7a283e07 | 13967 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
13968 | else |
13969 | cat >conftest.$ac_ext <<_ACEOF | |
13970 | /* confdefs.h. */ | |
13971 | _ACEOF | |
13972 | cat confdefs.h >>conftest.$ac_ext | |
13973 | cat >>conftest.$ac_ext <<_ACEOF | |
13974 | /* end confdefs.h. */ | |
13975 | $ac_includes_default | |
13976 | long longval () { return (long) (sizeof (void *)); } | |
13977 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
13978 | #include <stdio.h> | |
13979 | #include <stdlib.h> | |
13980 | int | |
13981 | main () | |
13982 | { | |
13983 | ||
13984 | FILE *f = fopen ("conftest.val", "w"); | |
13985 | if (! f) | |
13986 | exit (1); | |
13987 | if (((long) (sizeof (void *))) < 0) | |
13988 | { | |
13989 | long i = longval (); | |
13990 | if (i != ((long) (sizeof (void *)))) | |
13991 | exit (1); | |
13992 | fprintf (f, "%ld\n", i); | |
13993 | } | |
13994 | else | |
13995 | { | |
13996 | unsigned long i = ulongval (); | |
13997 | if (i != ((long) (sizeof (void *)))) | |
13998 | exit (1); | |
13999 | fprintf (f, "%lu\n", i); | |
14000 | } | |
14001 | exit (ferror (f) || fclose (f) != 0); | |
14002 | ||
14003 | ; | |
14004 | return 0; | |
14005 | } | |
14006 | _ACEOF | |
14007 | rm -f conftest$ac_exeext | |
14008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14009 | (eval $ac_link) 2>&5 | |
14010 | ac_status=$? | |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14014 | (eval $ac_try) 2>&5 | |
14015 | ac_status=$? | |
14016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14017 | (exit $ac_status); }; }; then | |
14018 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14019 | else | |
14020 | echo "$as_me: program exited with status $ac_status" >&5 | |
14021 | echo "$as_me: failed program was:" >&5 | |
14022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14023 | ||
14024 | ( exit $ac_status ) | |
7a283e07 RW |
14025 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14026 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
14027 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
14028 | See \`config.log' for more details." >&5 | |
14029 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14030 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14031 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
14032 | fi |
14033 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14034 | fi | |
14035 | fi | |
14036 | rm -f conftest.val | |
14037 | else | |
14038 | ac_cv_sizeof_void_p=0 | |
14039 | fi | |
14040 | fi | |
14041 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
14042 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14043 | cat >>confdefs.h <<_ACEOF | |
14044 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14045 | _ACEOF | |
14046 | ||
14047 | ;; | |
14048 | esac | |
14049 | ||
14050 | # Lacking an uint64_t? Test size of long | |
14051 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
14052 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
14053 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
14054 | if test "${ac_cv_type_long+set}" = set; then | |
14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14056 | else | |
14057 | cat >conftest.$ac_ext <<_ACEOF | |
14058 | /* confdefs.h. */ | |
14059 | _ACEOF | |
14060 | cat confdefs.h >>conftest.$ac_ext | |
14061 | cat >>conftest.$ac_ext <<_ACEOF | |
14062 | /* end confdefs.h. */ | |
14063 | $ac_includes_default | |
14064 | int | |
14065 | main () | |
14066 | { | |
14067 | if ((long *) 0) | |
14068 | return 0; | |
14069 | if (sizeof (long)) | |
14070 | return 0; | |
14071 | ; | |
14072 | return 0; | |
14073 | } | |
14074 | _ACEOF | |
14075 | rm -f conftest.$ac_objext | |
14076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14077 | (eval $ac_compile) 2>conftest.er1 | |
14078 | ac_status=$? | |
14079 | grep -v '^ *+' conftest.er1 >conftest.err | |
14080 | rm -f conftest.er1 | |
14081 | cat conftest.err >&5 | |
14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14083 | (exit $ac_status); } && | |
14084 | { ac_try='test -z "$ac_c_werror_flag" | |
14085 | || test ! -s conftest.err' | |
14086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14087 | (eval $ac_try) 2>&5 | |
14088 | ac_status=$? | |
14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14090 | (exit $ac_status); }; } && | |
14091 | { ac_try='test -s conftest.$ac_objext' | |
14092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14093 | (eval $ac_try) 2>&5 | |
14094 | ac_status=$? | |
14095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14096 | (exit $ac_status); }; }; then | |
14097 | ac_cv_type_long=yes | |
14098 | else | |
14099 | echo "$as_me: failed program was:" >&5 | |
14100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14101 | ||
14102 | ac_cv_type_long=no | |
14103 | fi | |
14104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14105 | fi | |
14106 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
14107 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
14108 | ||
14109 | echo "$as_me:$LINENO: checking size of long" >&5 | |
14110 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
14111 | if test "${ac_cv_sizeof_long+set}" = set; then | |
14112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14113 | else | |
14114 | if test "$ac_cv_type_long" = yes; then | |
14115 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14118 | # This bug is HP SR number 8606223364. | |
14119 | if test "$cross_compiling" = yes; then | |
14120 | # Depending upon the size, compute the lo and hi bounds. | |
14121 | cat >conftest.$ac_ext <<_ACEOF | |
14122 | /* confdefs.h. */ | |
14123 | _ACEOF | |
14124 | cat confdefs.h >>conftest.$ac_ext | |
14125 | cat >>conftest.$ac_ext <<_ACEOF | |
14126 | /* end confdefs.h. */ | |
14127 | $ac_includes_default | |
14128 | int | |
14129 | main () | |
14130 | { | |
14131 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
14132 | test_array [0] = 0 | |
14133 | ||
14134 | ; | |
14135 | return 0; | |
14136 | } | |
14137 | _ACEOF | |
14138 | rm -f conftest.$ac_objext | |
14139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14140 | (eval $ac_compile) 2>conftest.er1 | |
14141 | ac_status=$? | |
14142 | grep -v '^ *+' conftest.er1 >conftest.err | |
14143 | rm -f conftest.er1 | |
14144 | cat conftest.err >&5 | |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 | (exit $ac_status); } && | |
14147 | { ac_try='test -z "$ac_c_werror_flag" | |
14148 | || test ! -s conftest.err' | |
14149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14150 | (eval $ac_try) 2>&5 | |
14151 | ac_status=$? | |
14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14153 | (exit $ac_status); }; } && | |
14154 | { ac_try='test -s conftest.$ac_objext' | |
14155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14156 | (eval $ac_try) 2>&5 | |
14157 | ac_status=$? | |
14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14159 | (exit $ac_status); }; }; then | |
14160 | ac_lo=0 ac_mid=0 | |
14161 | while :; do | |
14162 | cat >conftest.$ac_ext <<_ACEOF | |
14163 | /* confdefs.h. */ | |
14164 | _ACEOF | |
14165 | cat confdefs.h >>conftest.$ac_ext | |
14166 | cat >>conftest.$ac_ext <<_ACEOF | |
14167 | /* end confdefs.h. */ | |
14168 | $ac_includes_default | |
14169 | int | |
14170 | main () | |
14171 | { | |
14172 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
14173 | test_array [0] = 0 | |
14174 | ||
14175 | ; | |
14176 | return 0; | |
14177 | } | |
14178 | _ACEOF | |
14179 | rm -f conftest.$ac_objext | |
14180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14181 | (eval $ac_compile) 2>conftest.er1 | |
14182 | ac_status=$? | |
14183 | grep -v '^ *+' conftest.er1 >conftest.err | |
14184 | rm -f conftest.er1 | |
14185 | cat conftest.err >&5 | |
14186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14187 | (exit $ac_status); } && | |
14188 | { ac_try='test -z "$ac_c_werror_flag" | |
14189 | || test ! -s conftest.err' | |
14190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14191 | (eval $ac_try) 2>&5 | |
14192 | ac_status=$? | |
14193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14194 | (exit $ac_status); }; } && | |
14195 | { ac_try='test -s conftest.$ac_objext' | |
14196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14197 | (eval $ac_try) 2>&5 | |
14198 | ac_status=$? | |
14199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14200 | (exit $ac_status); }; }; then | |
14201 | ac_hi=$ac_mid; break | |
14202 | else | |
14203 | echo "$as_me: failed program was:" >&5 | |
14204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14205 | ||
14206 | ac_lo=`expr $ac_mid + 1` | |
14207 | if test $ac_lo -le $ac_mid; then | |
14208 | ac_lo= ac_hi= | |
14209 | break | |
14210 | fi | |
14211 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14212 | fi | |
14213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14214 | done | |
14215 | else | |
14216 | echo "$as_me: failed program was:" >&5 | |
14217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14218 | ||
14219 | cat >conftest.$ac_ext <<_ACEOF | |
14220 | /* confdefs.h. */ | |
14221 | _ACEOF | |
14222 | cat confdefs.h >>conftest.$ac_ext | |
14223 | cat >>conftest.$ac_ext <<_ACEOF | |
14224 | /* end confdefs.h. */ | |
14225 | $ac_includes_default | |
14226 | int | |
14227 | main () | |
14228 | { | |
14229 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
14230 | test_array [0] = 0 | |
14231 | ||
14232 | ; | |
14233 | return 0; | |
14234 | } | |
14235 | _ACEOF | |
14236 | rm -f conftest.$ac_objext | |
14237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14238 | (eval $ac_compile) 2>conftest.er1 | |
14239 | ac_status=$? | |
14240 | grep -v '^ *+' conftest.er1 >conftest.err | |
14241 | rm -f conftest.er1 | |
14242 | cat conftest.err >&5 | |
14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14244 | (exit $ac_status); } && | |
14245 | { ac_try='test -z "$ac_c_werror_flag" | |
14246 | || test ! -s conftest.err' | |
14247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14248 | (eval $ac_try) 2>&5 | |
14249 | ac_status=$? | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); }; } && | |
14252 | { ac_try='test -s conftest.$ac_objext' | |
14253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14254 | (eval $ac_try) 2>&5 | |
14255 | ac_status=$? | |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14257 | (exit $ac_status); }; }; then | |
14258 | ac_hi=-1 ac_mid=-1 | |
14259 | while :; do | |
14260 | cat >conftest.$ac_ext <<_ACEOF | |
14261 | /* confdefs.h. */ | |
14262 | _ACEOF | |
14263 | cat confdefs.h >>conftest.$ac_ext | |
14264 | cat >>conftest.$ac_ext <<_ACEOF | |
14265 | /* end confdefs.h. */ | |
14266 | $ac_includes_default | |
14267 | int | |
14268 | main () | |
14269 | { | |
14270 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
14271 | test_array [0] = 0 | |
14272 | ||
14273 | ; | |
14274 | return 0; | |
14275 | } | |
14276 | _ACEOF | |
14277 | rm -f conftest.$ac_objext | |
14278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14279 | (eval $ac_compile) 2>conftest.er1 | |
14280 | ac_status=$? | |
14281 | grep -v '^ *+' conftest.er1 >conftest.err | |
14282 | rm -f conftest.er1 | |
14283 | cat conftest.err >&5 | |
14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14285 | (exit $ac_status); } && | |
14286 | { ac_try='test -z "$ac_c_werror_flag" | |
14287 | || test ! -s conftest.err' | |
14288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14289 | (eval $ac_try) 2>&5 | |
14290 | ac_status=$? | |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14292 | (exit $ac_status); }; } && | |
14293 | { ac_try='test -s conftest.$ac_objext' | |
14294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14295 | (eval $ac_try) 2>&5 | |
14296 | ac_status=$? | |
14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14298 | (exit $ac_status); }; }; then | |
14299 | ac_lo=$ac_mid; break | |
14300 | else | |
14301 | echo "$as_me: failed program was:" >&5 | |
14302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14303 | ||
14304 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14305 | if test $ac_mid -le $ac_hi; then | |
14306 | ac_lo= ac_hi= | |
14307 | break | |
14308 | fi | |
14309 | ac_mid=`expr 2 '*' $ac_mid` | |
14310 | fi | |
14311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14312 | done | |
14313 | else | |
14314 | echo "$as_me: failed program was:" >&5 | |
14315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14316 | ||
14317 | ac_lo= ac_hi= | |
14318 | fi | |
14319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14320 | fi | |
14321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14322 | # Binary search between lo and hi bounds. | |
14323 | while test "x$ac_lo" != "x$ac_hi"; do | |
14324 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14325 | cat >conftest.$ac_ext <<_ACEOF | |
14326 | /* confdefs.h. */ | |
14327 | _ACEOF | |
14328 | cat confdefs.h >>conftest.$ac_ext | |
14329 | cat >>conftest.$ac_ext <<_ACEOF | |
14330 | /* end confdefs.h. */ | |
14331 | $ac_includes_default | |
14332 | int | |
14333 | main () | |
14334 | { | |
14335 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
14336 | test_array [0] = 0 | |
14337 | ||
14338 | ; | |
14339 | return 0; | |
14340 | } | |
14341 | _ACEOF | |
14342 | rm -f conftest.$ac_objext | |
14343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14344 | (eval $ac_compile) 2>conftest.er1 | |
14345 | ac_status=$? | |
14346 | grep -v '^ *+' conftest.er1 >conftest.err | |
14347 | rm -f conftest.er1 | |
14348 | cat conftest.err >&5 | |
14349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14350 | (exit $ac_status); } && | |
14351 | { ac_try='test -z "$ac_c_werror_flag" | |
14352 | || test ! -s conftest.err' | |
14353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14354 | (eval $ac_try) 2>&5 | |
14355 | ac_status=$? | |
14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14357 | (exit $ac_status); }; } && | |
14358 | { ac_try='test -s conftest.$ac_objext' | |
14359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14360 | (eval $ac_try) 2>&5 | |
14361 | ac_status=$? | |
14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14363 | (exit $ac_status); }; }; then | |
14364 | ac_hi=$ac_mid | |
14365 | else | |
14366 | echo "$as_me: failed program was:" >&5 | |
14367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14368 | ||
14369 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14370 | fi | |
14371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14372 | done | |
14373 | case $ac_lo in | |
14374 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7a283e07 RW |
14375 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14376 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14377 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
d5efd9fc AM |
14378 | See \`config.log' for more details." >&5 |
14379 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
14380 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14381 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
14382 | esac |
14383 | else | |
14384 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
14385 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14386 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14387 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d5efd9fc AM |
14388 | See \`config.log' for more details." >&5 |
14389 | echo "$as_me: error: cannot run test program while cross compiling | |
14390 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14391 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
14392 | else |
14393 | cat >conftest.$ac_ext <<_ACEOF | |
14394 | /* confdefs.h. */ | |
14395 | _ACEOF | |
14396 | cat confdefs.h >>conftest.$ac_ext | |
14397 | cat >>conftest.$ac_ext <<_ACEOF | |
14398 | /* end confdefs.h. */ | |
14399 | $ac_includes_default | |
14400 | long longval () { return (long) (sizeof (long)); } | |
14401 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
14402 | #include <stdio.h> | |
14403 | #include <stdlib.h> | |
14404 | int | |
14405 | main () | |
14406 | { | |
14407 | ||
14408 | FILE *f = fopen ("conftest.val", "w"); | |
14409 | if (! f) | |
14410 | exit (1); | |
14411 | if (((long) (sizeof (long))) < 0) | |
14412 | { | |
14413 | long i = longval (); | |
14414 | if (i != ((long) (sizeof (long)))) | |
14415 | exit (1); | |
14416 | fprintf (f, "%ld\n", i); | |
14417 | } | |
14418 | else | |
14419 | { | |
14420 | unsigned long i = ulongval (); | |
14421 | if (i != ((long) (sizeof (long)))) | |
14422 | exit (1); | |
14423 | fprintf (f, "%lu\n", i); | |
14424 | } | |
14425 | exit (ferror (f) || fclose (f) != 0); | |
14426 | ||
14427 | ; | |
14428 | return 0; | |
14429 | } | |
14430 | _ACEOF | |
14431 | rm -f conftest$ac_exeext | |
14432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14433 | (eval $ac_link) 2>&5 | |
14434 | ac_status=$? | |
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14438 | (eval $ac_try) 2>&5 | |
14439 | ac_status=$? | |
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14441 | (exit $ac_status); }; }; then | |
14442 | ac_cv_sizeof_long=`cat conftest.val` | |
14443 | else | |
14444 | echo "$as_me: program exited with status $ac_status" >&5 | |
14445 | echo "$as_me: failed program was:" >&5 | |
14446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14447 | ||
14448 | ( exit $ac_status ) | |
7a283e07 RW |
14449 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14450 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
14451 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
14452 | See \`config.log' for more details." >&5 | |
14453 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
14454 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14455 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
14456 | fi |
14457 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14458 | fi | |
14459 | fi | |
14460 | rm -f conftest.val | |
14461 | else | |
14462 | ac_cv_sizeof_long=0 | |
14463 | fi | |
14464 | fi | |
14465 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
14466 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
14467 | cat >>confdefs.h <<_ACEOF | |
14468 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14469 | _ACEOF | |
14470 | ||
14471 | ;; | |
14472 | esac | |
14473 | ||
14474 | if test $acx_cv_header_stdint = stddef.h; then | |
14475 | # Lacking a good header? Test size of everything and deduce all types. | |
14476 | echo "$as_me:$LINENO: checking for int" >&5 | |
14477 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14478 | if test "${ac_cv_type_int+set}" = set; then | |
14479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14480 | else | |
14481 | cat >conftest.$ac_ext <<_ACEOF | |
14482 | /* confdefs.h. */ | |
14483 | _ACEOF | |
14484 | cat confdefs.h >>conftest.$ac_ext | |
14485 | cat >>conftest.$ac_ext <<_ACEOF | |
14486 | /* end confdefs.h. */ | |
14487 | $ac_includes_default | |
14488 | int | |
14489 | main () | |
14490 | { | |
14491 | if ((int *) 0) | |
14492 | return 0; | |
14493 | if (sizeof (int)) | |
14494 | return 0; | |
14495 | ; | |
14496 | return 0; | |
14497 | } | |
14498 | _ACEOF | |
14499 | rm -f conftest.$ac_objext | |
14500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14501 | (eval $ac_compile) 2>conftest.er1 | |
14502 | ac_status=$? | |
14503 | grep -v '^ *+' conftest.er1 >conftest.err | |
14504 | rm -f conftest.er1 | |
14505 | cat conftest.err >&5 | |
14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14507 | (exit $ac_status); } && | |
14508 | { ac_try='test -z "$ac_c_werror_flag" | |
14509 | || test ! -s conftest.err' | |
14510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14511 | (eval $ac_try) 2>&5 | |
14512 | ac_status=$? | |
14513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14514 | (exit $ac_status); }; } && | |
14515 | { ac_try='test -s conftest.$ac_objext' | |
14516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14517 | (eval $ac_try) 2>&5 | |
14518 | ac_status=$? | |
14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14520 | (exit $ac_status); }; }; then | |
14521 | ac_cv_type_int=yes | |
14522 | else | |
14523 | echo "$as_me: failed program was:" >&5 | |
14524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14525 | ||
14526 | ac_cv_type_int=no | |
14527 | fi | |
14528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14529 | fi | |
14530 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14531 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14532 | ||
14533 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14534 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14535 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14537 | else | |
14538 | if test "$ac_cv_type_int" = yes; then | |
14539 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14540 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14541 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14542 | # This bug is HP SR number 8606223364. | |
14543 | if test "$cross_compiling" = yes; then | |
14544 | # Depending upon the size, compute the lo and hi bounds. | |
14545 | cat >conftest.$ac_ext <<_ACEOF | |
14546 | /* confdefs.h. */ | |
14547 | _ACEOF | |
14548 | cat confdefs.h >>conftest.$ac_ext | |
14549 | cat >>conftest.$ac_ext <<_ACEOF | |
14550 | /* end confdefs.h. */ | |
14551 | $ac_includes_default | |
14552 | int | |
14553 | main () | |
14554 | { | |
14555 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14556 | test_array [0] = 0 | |
14557 | ||
14558 | ; | |
14559 | return 0; | |
14560 | } | |
14561 | _ACEOF | |
14562 | rm -f conftest.$ac_objext | |
14563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14564 | (eval $ac_compile) 2>conftest.er1 | |
14565 | ac_status=$? | |
14566 | grep -v '^ *+' conftest.er1 >conftest.err | |
14567 | rm -f conftest.er1 | |
14568 | cat conftest.err >&5 | |
14569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14570 | (exit $ac_status); } && | |
14571 | { ac_try='test -z "$ac_c_werror_flag" | |
14572 | || test ! -s conftest.err' | |
14573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14574 | (eval $ac_try) 2>&5 | |
14575 | ac_status=$? | |
14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14577 | (exit $ac_status); }; } && | |
14578 | { ac_try='test -s conftest.$ac_objext' | |
14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14580 | (eval $ac_try) 2>&5 | |
14581 | ac_status=$? | |
14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14583 | (exit $ac_status); }; }; then | |
14584 | ac_lo=0 ac_mid=0 | |
14585 | while :; do | |
14586 | cat >conftest.$ac_ext <<_ACEOF | |
14587 | /* confdefs.h. */ | |
14588 | _ACEOF | |
14589 | cat confdefs.h >>conftest.$ac_ext | |
14590 | cat >>conftest.$ac_ext <<_ACEOF | |
14591 | /* end confdefs.h. */ | |
14592 | $ac_includes_default | |
14593 | int | |
14594 | main () | |
14595 | { | |
14596 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14597 | test_array [0] = 0 | |
14598 | ||
14599 | ; | |
14600 | return 0; | |
14601 | } | |
14602 | _ACEOF | |
14603 | rm -f conftest.$ac_objext | |
14604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14605 | (eval $ac_compile) 2>conftest.er1 | |
14606 | ac_status=$? | |
14607 | grep -v '^ *+' conftest.er1 >conftest.err | |
14608 | rm -f conftest.er1 | |
14609 | cat conftest.err >&5 | |
14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14611 | (exit $ac_status); } && | |
14612 | { ac_try='test -z "$ac_c_werror_flag" | |
14613 | || test ! -s conftest.err' | |
14614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14615 | (eval $ac_try) 2>&5 | |
14616 | ac_status=$? | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); }; } && | |
14619 | { ac_try='test -s conftest.$ac_objext' | |
14620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14621 | (eval $ac_try) 2>&5 | |
14622 | ac_status=$? | |
14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14624 | (exit $ac_status); }; }; then | |
14625 | ac_hi=$ac_mid; break | |
14626 | else | |
14627 | echo "$as_me: failed program was:" >&5 | |
14628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14629 | ||
14630 | ac_lo=`expr $ac_mid + 1` | |
14631 | if test $ac_lo -le $ac_mid; then | |
14632 | ac_lo= ac_hi= | |
14633 | break | |
14634 | fi | |
14635 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14636 | fi | |
14637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14638 | done | |
14639 | else | |
14640 | echo "$as_me: failed program was:" >&5 | |
14641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14642 | ||
14643 | cat >conftest.$ac_ext <<_ACEOF | |
14644 | /* confdefs.h. */ | |
14645 | _ACEOF | |
14646 | cat confdefs.h >>conftest.$ac_ext | |
14647 | cat >>conftest.$ac_ext <<_ACEOF | |
14648 | /* end confdefs.h. */ | |
14649 | $ac_includes_default | |
14650 | int | |
14651 | main () | |
14652 | { | |
14653 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14654 | test_array [0] = 0 | |
14655 | ||
14656 | ; | |
14657 | return 0; | |
14658 | } | |
14659 | _ACEOF | |
14660 | rm -f conftest.$ac_objext | |
14661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14662 | (eval $ac_compile) 2>conftest.er1 | |
14663 | ac_status=$? | |
14664 | grep -v '^ *+' conftest.er1 >conftest.err | |
14665 | rm -f conftest.er1 | |
14666 | cat conftest.err >&5 | |
14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14668 | (exit $ac_status); } && | |
14669 | { ac_try='test -z "$ac_c_werror_flag" | |
14670 | || test ! -s conftest.err' | |
14671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14672 | (eval $ac_try) 2>&5 | |
14673 | ac_status=$? | |
14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14675 | (exit $ac_status); }; } && | |
14676 | { ac_try='test -s conftest.$ac_objext' | |
14677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14678 | (eval $ac_try) 2>&5 | |
14679 | ac_status=$? | |
14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14681 | (exit $ac_status); }; }; then | |
14682 | ac_hi=-1 ac_mid=-1 | |
14683 | while :; do | |
14684 | cat >conftest.$ac_ext <<_ACEOF | |
14685 | /* confdefs.h. */ | |
14686 | _ACEOF | |
14687 | cat confdefs.h >>conftest.$ac_ext | |
14688 | cat >>conftest.$ac_ext <<_ACEOF | |
14689 | /* end confdefs.h. */ | |
14690 | $ac_includes_default | |
14691 | int | |
14692 | main () | |
14693 | { | |
14694 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14695 | test_array [0] = 0 | |
14696 | ||
14697 | ; | |
14698 | return 0; | |
14699 | } | |
14700 | _ACEOF | |
14701 | rm -f conftest.$ac_objext | |
14702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14703 | (eval $ac_compile) 2>conftest.er1 | |
14704 | ac_status=$? | |
14705 | grep -v '^ *+' conftest.er1 >conftest.err | |
14706 | rm -f conftest.er1 | |
14707 | cat conftest.err >&5 | |
14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14709 | (exit $ac_status); } && | |
14710 | { ac_try='test -z "$ac_c_werror_flag" | |
14711 | || test ! -s conftest.err' | |
14712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14713 | (eval $ac_try) 2>&5 | |
14714 | ac_status=$? | |
14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14716 | (exit $ac_status); }; } && | |
14717 | { ac_try='test -s conftest.$ac_objext' | |
14718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14719 | (eval $ac_try) 2>&5 | |
14720 | ac_status=$? | |
14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14722 | (exit $ac_status); }; }; then | |
14723 | ac_lo=$ac_mid; break | |
14724 | else | |
14725 | echo "$as_me: failed program was:" >&5 | |
14726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14727 | ||
14728 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14729 | if test $ac_mid -le $ac_hi; then | |
14730 | ac_lo= ac_hi= | |
14731 | break | |
14732 | fi | |
14733 | ac_mid=`expr 2 '*' $ac_mid` | |
14734 | fi | |
14735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14736 | done | |
14737 | else | |
14738 | echo "$as_me: failed program was:" >&5 | |
14739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14740 | ||
14741 | ac_lo= ac_hi= | |
14742 | fi | |
14743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14744 | fi | |
14745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14746 | # Binary search between lo and hi bounds. | |
14747 | while test "x$ac_lo" != "x$ac_hi"; do | |
14748 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14749 | cat >conftest.$ac_ext <<_ACEOF | |
14750 | /* confdefs.h. */ | |
14751 | _ACEOF | |
14752 | cat confdefs.h >>conftest.$ac_ext | |
14753 | cat >>conftest.$ac_ext <<_ACEOF | |
14754 | /* end confdefs.h. */ | |
14755 | $ac_includes_default | |
14756 | int | |
14757 | main () | |
14758 | { | |
14759 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14760 | test_array [0] = 0 | |
14761 | ||
14762 | ; | |
14763 | return 0; | |
14764 | } | |
14765 | _ACEOF | |
14766 | rm -f conftest.$ac_objext | |
14767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14768 | (eval $ac_compile) 2>conftest.er1 | |
14769 | ac_status=$? | |
14770 | grep -v '^ *+' conftest.er1 >conftest.err | |
14771 | rm -f conftest.er1 | |
14772 | cat conftest.err >&5 | |
14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14774 | (exit $ac_status); } && | |
14775 | { ac_try='test -z "$ac_c_werror_flag" | |
14776 | || test ! -s conftest.err' | |
14777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14778 | (eval $ac_try) 2>&5 | |
14779 | ac_status=$? | |
14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14781 | (exit $ac_status); }; } && | |
14782 | { ac_try='test -s conftest.$ac_objext' | |
14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14784 | (eval $ac_try) 2>&5 | |
14785 | ac_status=$? | |
14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14787 | (exit $ac_status); }; }; then | |
14788 | ac_hi=$ac_mid | |
14789 | else | |
14790 | echo "$as_me: failed program was:" >&5 | |
14791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14792 | ||
14793 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14794 | fi | |
14795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14796 | done | |
14797 | case $ac_lo in | |
14798 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
7a283e07 RW |
14799 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14800 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14801 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
d5efd9fc AM |
14802 | See \`config.log' for more details." >&5 |
14803 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14804 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14805 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
14806 | esac |
14807 | else | |
14808 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
14809 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14810 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14811 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d5efd9fc AM |
14812 | See \`config.log' for more details." >&5 |
14813 | echo "$as_me: error: cannot run test program while cross compiling | |
14814 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14815 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
14816 | else |
14817 | cat >conftest.$ac_ext <<_ACEOF | |
14818 | /* confdefs.h. */ | |
14819 | _ACEOF | |
14820 | cat confdefs.h >>conftest.$ac_ext | |
14821 | cat >>conftest.$ac_ext <<_ACEOF | |
14822 | /* end confdefs.h. */ | |
14823 | $ac_includes_default | |
14824 | long longval () { return (long) (sizeof (int)); } | |
14825 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
14826 | #include <stdio.h> | |
14827 | #include <stdlib.h> | |
14828 | int | |
14829 | main () | |
14830 | { | |
14831 | ||
14832 | FILE *f = fopen ("conftest.val", "w"); | |
14833 | if (! f) | |
14834 | exit (1); | |
14835 | if (((long) (sizeof (int))) < 0) | |
14836 | { | |
14837 | long i = longval (); | |
14838 | if (i != ((long) (sizeof (int)))) | |
14839 | exit (1); | |
14840 | fprintf (f, "%ld\n", i); | |
14841 | } | |
14842 | else | |
14843 | { | |
14844 | unsigned long i = ulongval (); | |
14845 | if (i != ((long) (sizeof (int)))) | |
14846 | exit (1); | |
14847 | fprintf (f, "%lu\n", i); | |
14848 | } | |
14849 | exit (ferror (f) || fclose (f) != 0); | |
14850 | ||
14851 | ; | |
14852 | return 0; | |
14853 | } | |
14854 | _ACEOF | |
14855 | rm -f conftest$ac_exeext | |
14856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14857 | (eval $ac_link) 2>&5 | |
14858 | ac_status=$? | |
14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14862 | (eval $ac_try) 2>&5 | |
14863 | ac_status=$? | |
14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14865 | (exit $ac_status); }; }; then | |
14866 | ac_cv_sizeof_int=`cat conftest.val` | |
14867 | else | |
14868 | echo "$as_me: program exited with status $ac_status" >&5 | |
14869 | echo "$as_me: failed program was:" >&5 | |
14870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14871 | ||
14872 | ( exit $ac_status ) | |
7a283e07 RW |
14873 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14874 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
14875 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
14876 | See \`config.log' for more details." >&5 | |
14877 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14878 | See \`config.log' for more details." >&2;} | |
7a283e07 | 14879 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
14880 | fi |
14881 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14882 | fi | |
14883 | fi | |
14884 | rm -f conftest.val | |
14885 | else | |
14886 | ac_cv_sizeof_int=0 | |
14887 | fi | |
14888 | fi | |
14889 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
14890 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
14891 | cat >>confdefs.h <<_ACEOF | |
14892 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14893 | _ACEOF | |
14894 | ||
14895 | ||
14896 | echo "$as_me:$LINENO: checking for short" >&5 | |
14897 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14898 | if test "${ac_cv_type_short+set}" = set; then | |
14899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14900 | else | |
14901 | cat >conftest.$ac_ext <<_ACEOF | |
14902 | /* confdefs.h. */ | |
14903 | _ACEOF | |
14904 | cat confdefs.h >>conftest.$ac_ext | |
14905 | cat >>conftest.$ac_ext <<_ACEOF | |
14906 | /* end confdefs.h. */ | |
14907 | $ac_includes_default | |
14908 | int | |
14909 | main () | |
14910 | { | |
14911 | if ((short *) 0) | |
14912 | return 0; | |
14913 | if (sizeof (short)) | |
14914 | return 0; | |
14915 | ; | |
14916 | return 0; | |
14917 | } | |
14918 | _ACEOF | |
14919 | rm -f conftest.$ac_objext | |
14920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14921 | (eval $ac_compile) 2>conftest.er1 | |
14922 | ac_status=$? | |
14923 | grep -v '^ *+' conftest.er1 >conftest.err | |
14924 | rm -f conftest.er1 | |
14925 | cat conftest.err >&5 | |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14927 | (exit $ac_status); } && | |
14928 | { ac_try='test -z "$ac_c_werror_flag" | |
14929 | || test ! -s conftest.err' | |
14930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14931 | (eval $ac_try) 2>&5 | |
14932 | ac_status=$? | |
14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14934 | (exit $ac_status); }; } && | |
14935 | { ac_try='test -s conftest.$ac_objext' | |
14936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14937 | (eval $ac_try) 2>&5 | |
14938 | ac_status=$? | |
14939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14940 | (exit $ac_status); }; }; then | |
14941 | ac_cv_type_short=yes | |
14942 | else | |
14943 | echo "$as_me: failed program was:" >&5 | |
14944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14945 | ||
14946 | ac_cv_type_short=no | |
14947 | fi | |
14948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14949 | fi | |
14950 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14951 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14952 | ||
14953 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14954 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14955 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14957 | else | |
14958 | if test "$ac_cv_type_short" = yes; then | |
14959 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14960 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14961 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14962 | # This bug is HP SR number 8606223364. | |
14963 | if test "$cross_compiling" = yes; then | |
14964 | # Depending upon the size, compute the lo and hi bounds. | |
14965 | cat >conftest.$ac_ext <<_ACEOF | |
14966 | /* confdefs.h. */ | |
14967 | _ACEOF | |
14968 | cat confdefs.h >>conftest.$ac_ext | |
14969 | cat >>conftest.$ac_ext <<_ACEOF | |
14970 | /* end confdefs.h. */ | |
14971 | $ac_includes_default | |
14972 | int | |
14973 | main () | |
14974 | { | |
14975 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14976 | test_array [0] = 0 | |
14977 | ||
14978 | ; | |
14979 | return 0; | |
14980 | } | |
14981 | _ACEOF | |
14982 | rm -f conftest.$ac_objext | |
14983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14984 | (eval $ac_compile) 2>conftest.er1 | |
14985 | ac_status=$? | |
14986 | grep -v '^ *+' conftest.er1 >conftest.err | |
14987 | rm -f conftest.er1 | |
14988 | cat conftest.err >&5 | |
14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 | (exit $ac_status); } && | |
14991 | { ac_try='test -z "$ac_c_werror_flag" | |
14992 | || test ! -s conftest.err' | |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; } && | |
14998 | { ac_try='test -s conftest.$ac_objext' | |
14999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15000 | (eval $ac_try) 2>&5 | |
15001 | ac_status=$? | |
15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15003 | (exit $ac_status); }; }; then | |
15004 | ac_lo=0 ac_mid=0 | |
15005 | while :; do | |
15006 | cat >conftest.$ac_ext <<_ACEOF | |
15007 | /* confdefs.h. */ | |
15008 | _ACEOF | |
15009 | cat confdefs.h >>conftest.$ac_ext | |
15010 | cat >>conftest.$ac_ext <<_ACEOF | |
15011 | /* end confdefs.h. */ | |
15012 | $ac_includes_default | |
15013 | int | |
15014 | main () | |
15015 | { | |
15016 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15017 | test_array [0] = 0 | |
15018 | ||
15019 | ; | |
15020 | return 0; | |
15021 | } | |
15022 | _ACEOF | |
15023 | rm -f conftest.$ac_objext | |
15024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15025 | (eval $ac_compile) 2>conftest.er1 | |
15026 | ac_status=$? | |
15027 | grep -v '^ *+' conftest.er1 >conftest.err | |
15028 | rm -f conftest.er1 | |
15029 | cat conftest.err >&5 | |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15031 | (exit $ac_status); } && | |
15032 | { ac_try='test -z "$ac_c_werror_flag" | |
15033 | || test ! -s conftest.err' | |
15034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15035 | (eval $ac_try) 2>&5 | |
15036 | ac_status=$? | |
15037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15038 | (exit $ac_status); }; } && | |
15039 | { ac_try='test -s conftest.$ac_objext' | |
15040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15041 | (eval $ac_try) 2>&5 | |
15042 | ac_status=$? | |
15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15044 | (exit $ac_status); }; }; then | |
15045 | ac_hi=$ac_mid; break | |
15046 | else | |
15047 | echo "$as_me: failed program was:" >&5 | |
15048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15049 | ||
15050 | ac_lo=`expr $ac_mid + 1` | |
15051 | if test $ac_lo -le $ac_mid; then | |
15052 | ac_lo= ac_hi= | |
15053 | break | |
15054 | fi | |
15055 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15056 | fi | |
15057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15058 | done | |
15059 | else | |
15060 | echo "$as_me: failed program was:" >&5 | |
15061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15062 | ||
15063 | cat >conftest.$ac_ext <<_ACEOF | |
15064 | /* confdefs.h. */ | |
15065 | _ACEOF | |
15066 | cat confdefs.h >>conftest.$ac_ext | |
15067 | cat >>conftest.$ac_ext <<_ACEOF | |
15068 | /* end confdefs.h. */ | |
15069 | $ac_includes_default | |
15070 | int | |
15071 | main () | |
15072 | { | |
15073 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15074 | test_array [0] = 0 | |
15075 | ||
15076 | ; | |
15077 | return 0; | |
15078 | } | |
15079 | _ACEOF | |
15080 | rm -f conftest.$ac_objext | |
15081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15082 | (eval $ac_compile) 2>conftest.er1 | |
15083 | ac_status=$? | |
15084 | grep -v '^ *+' conftest.er1 >conftest.err | |
15085 | rm -f conftest.er1 | |
15086 | cat conftest.err >&5 | |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15088 | (exit $ac_status); } && | |
15089 | { ac_try='test -z "$ac_c_werror_flag" | |
15090 | || test ! -s conftest.err' | |
15091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15092 | (eval $ac_try) 2>&5 | |
15093 | ac_status=$? | |
15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15095 | (exit $ac_status); }; } && | |
15096 | { ac_try='test -s conftest.$ac_objext' | |
15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15098 | (eval $ac_try) 2>&5 | |
15099 | ac_status=$? | |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15101 | (exit $ac_status); }; }; then | |
15102 | ac_hi=-1 ac_mid=-1 | |
15103 | while :; do | |
15104 | cat >conftest.$ac_ext <<_ACEOF | |
15105 | /* confdefs.h. */ | |
15106 | _ACEOF | |
15107 | cat confdefs.h >>conftest.$ac_ext | |
15108 | cat >>conftest.$ac_ext <<_ACEOF | |
15109 | /* end confdefs.h. */ | |
15110 | $ac_includes_default | |
15111 | int | |
15112 | main () | |
15113 | { | |
15114 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15115 | test_array [0] = 0 | |
15116 | ||
15117 | ; | |
15118 | return 0; | |
15119 | } | |
15120 | _ACEOF | |
15121 | rm -f conftest.$ac_objext | |
15122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15123 | (eval $ac_compile) 2>conftest.er1 | |
15124 | ac_status=$? | |
15125 | grep -v '^ *+' conftest.er1 >conftest.err | |
15126 | rm -f conftest.er1 | |
15127 | cat conftest.err >&5 | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); } && | |
15130 | { ac_try='test -z "$ac_c_werror_flag" | |
15131 | || test ! -s conftest.err' | |
15132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15133 | (eval $ac_try) 2>&5 | |
15134 | ac_status=$? | |
15135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15136 | (exit $ac_status); }; } && | |
15137 | { ac_try='test -s conftest.$ac_objext' | |
15138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15139 | (eval $ac_try) 2>&5 | |
15140 | ac_status=$? | |
15141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15142 | (exit $ac_status); }; }; then | |
15143 | ac_lo=$ac_mid; break | |
15144 | else | |
15145 | echo "$as_me: failed program was:" >&5 | |
15146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15147 | ||
15148 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15149 | if test $ac_mid -le $ac_hi; then | |
15150 | ac_lo= ac_hi= | |
15151 | break | |
15152 | fi | |
15153 | ac_mid=`expr 2 '*' $ac_mid` | |
15154 | fi | |
15155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15156 | done | |
15157 | else | |
15158 | echo "$as_me: failed program was:" >&5 | |
15159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15160 | ||
15161 | ac_lo= ac_hi= | |
15162 | fi | |
15163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15164 | fi | |
15165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15166 | # Binary search between lo and hi bounds. | |
15167 | while test "x$ac_lo" != "x$ac_hi"; do | |
15168 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15169 | cat >conftest.$ac_ext <<_ACEOF | |
15170 | /* confdefs.h. */ | |
15171 | _ACEOF | |
15172 | cat confdefs.h >>conftest.$ac_ext | |
15173 | cat >>conftest.$ac_ext <<_ACEOF | |
15174 | /* end confdefs.h. */ | |
15175 | $ac_includes_default | |
15176 | int | |
15177 | main () | |
15178 | { | |
15179 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15180 | test_array [0] = 0 | |
15181 | ||
15182 | ; | |
15183 | return 0; | |
15184 | } | |
15185 | _ACEOF | |
15186 | rm -f conftest.$ac_objext | |
15187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15188 | (eval $ac_compile) 2>conftest.er1 | |
15189 | ac_status=$? | |
15190 | grep -v '^ *+' conftest.er1 >conftest.err | |
15191 | rm -f conftest.er1 | |
15192 | cat conftest.err >&5 | |
15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15194 | (exit $ac_status); } && | |
15195 | { ac_try='test -z "$ac_c_werror_flag" | |
15196 | || test ! -s conftest.err' | |
15197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15198 | (eval $ac_try) 2>&5 | |
15199 | ac_status=$? | |
15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15201 | (exit $ac_status); }; } && | |
15202 | { ac_try='test -s conftest.$ac_objext' | |
15203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15204 | (eval $ac_try) 2>&5 | |
15205 | ac_status=$? | |
15206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15207 | (exit $ac_status); }; }; then | |
15208 | ac_hi=$ac_mid | |
15209 | else | |
15210 | echo "$as_me: failed program was:" >&5 | |
15211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15212 | ||
15213 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15214 | fi | |
15215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15216 | done | |
15217 | case $ac_lo in | |
15218 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
7a283e07 RW |
15219 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15220 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15221 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
d5efd9fc AM |
15222 | See \`config.log' for more details." >&5 |
15223 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15224 | See \`config.log' for more details." >&2;} | |
7a283e07 | 15225 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
15226 | esac |
15227 | else | |
15228 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
15229 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15230 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15231 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d5efd9fc AM |
15232 | See \`config.log' for more details." >&5 |
15233 | echo "$as_me: error: cannot run test program while cross compiling | |
15234 | See \`config.log' for more details." >&2;} | |
7a283e07 | 15235 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
15236 | else |
15237 | cat >conftest.$ac_ext <<_ACEOF | |
15238 | /* confdefs.h. */ | |
15239 | _ACEOF | |
15240 | cat confdefs.h >>conftest.$ac_ext | |
15241 | cat >>conftest.$ac_ext <<_ACEOF | |
15242 | /* end confdefs.h. */ | |
15243 | $ac_includes_default | |
15244 | long longval () { return (long) (sizeof (short)); } | |
15245 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15246 | #include <stdio.h> | |
15247 | #include <stdlib.h> | |
15248 | int | |
15249 | main () | |
15250 | { | |
15251 | ||
15252 | FILE *f = fopen ("conftest.val", "w"); | |
15253 | if (! f) | |
15254 | exit (1); | |
15255 | if (((long) (sizeof (short))) < 0) | |
15256 | { | |
15257 | long i = longval (); | |
15258 | if (i != ((long) (sizeof (short)))) | |
15259 | exit (1); | |
15260 | fprintf (f, "%ld\n", i); | |
15261 | } | |
15262 | else | |
15263 | { | |
15264 | unsigned long i = ulongval (); | |
15265 | if (i != ((long) (sizeof (short)))) | |
15266 | exit (1); | |
15267 | fprintf (f, "%lu\n", i); | |
15268 | } | |
15269 | exit (ferror (f) || fclose (f) != 0); | |
15270 | ||
15271 | ; | |
15272 | return 0; | |
15273 | } | |
15274 | _ACEOF | |
15275 | rm -f conftest$ac_exeext | |
15276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15277 | (eval $ac_link) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15282 | (eval $ac_try) 2>&5 | |
15283 | ac_status=$? | |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15285 | (exit $ac_status); }; }; then | |
15286 | ac_cv_sizeof_short=`cat conftest.val` | |
15287 | else | |
15288 | echo "$as_me: program exited with status $ac_status" >&5 | |
15289 | echo "$as_me: failed program was:" >&5 | |
15290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15291 | ||
15292 | ( exit $ac_status ) | |
7a283e07 RW |
15293 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15294 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
15295 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
15296 | See \`config.log' for more details." >&5 | |
15297 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15298 | See \`config.log' for more details." >&2;} | |
7a283e07 | 15299 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
15300 | fi |
15301 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15302 | fi | |
15303 | fi | |
15304 | rm -f conftest.val | |
15305 | else | |
15306 | ac_cv_sizeof_short=0 | |
15307 | fi | |
15308 | fi | |
15309 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15310 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15311 | cat >>confdefs.h <<_ACEOF | |
15312 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15313 | _ACEOF | |
15314 | ||
15315 | ||
15316 | echo "$as_me:$LINENO: checking for char" >&5 | |
15317 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15318 | if test "${ac_cv_type_char+set}" = set; then | |
15319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15320 | else | |
15321 | cat >conftest.$ac_ext <<_ACEOF | |
15322 | /* confdefs.h. */ | |
15323 | _ACEOF | |
15324 | cat confdefs.h >>conftest.$ac_ext | |
15325 | cat >>conftest.$ac_ext <<_ACEOF | |
15326 | /* end confdefs.h. */ | |
15327 | $ac_includes_default | |
15328 | int | |
15329 | main () | |
15330 | { | |
15331 | if ((char *) 0) | |
15332 | return 0; | |
15333 | if (sizeof (char)) | |
15334 | return 0; | |
15335 | ; | |
15336 | return 0; | |
15337 | } | |
15338 | _ACEOF | |
15339 | rm -f conftest.$ac_objext | |
15340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15341 | (eval $ac_compile) 2>conftest.er1 | |
15342 | ac_status=$? | |
15343 | grep -v '^ *+' conftest.er1 >conftest.err | |
15344 | rm -f conftest.er1 | |
15345 | cat conftest.err >&5 | |
15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15347 | (exit $ac_status); } && | |
15348 | { ac_try='test -z "$ac_c_werror_flag" | |
15349 | || test ! -s conftest.err' | |
15350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15351 | (eval $ac_try) 2>&5 | |
15352 | ac_status=$? | |
15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15354 | (exit $ac_status); }; } && | |
15355 | { ac_try='test -s conftest.$ac_objext' | |
15356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15357 | (eval $ac_try) 2>&5 | |
15358 | ac_status=$? | |
15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15360 | (exit $ac_status); }; }; then | |
15361 | ac_cv_type_char=yes | |
15362 | else | |
15363 | echo "$as_me: failed program was:" >&5 | |
15364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15365 | ||
15366 | ac_cv_type_char=no | |
15367 | fi | |
15368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15369 | fi | |
15370 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15371 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15372 | ||
15373 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15374 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15375 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15377 | else | |
15378 | if test "$ac_cv_type_char" = yes; then | |
15379 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15380 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15381 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15382 | # This bug is HP SR number 8606223364. | |
15383 | if test "$cross_compiling" = yes; then | |
15384 | # Depending upon the size, compute the lo and hi bounds. | |
15385 | cat >conftest.$ac_ext <<_ACEOF | |
15386 | /* confdefs.h. */ | |
15387 | _ACEOF | |
15388 | cat confdefs.h >>conftest.$ac_ext | |
15389 | cat >>conftest.$ac_ext <<_ACEOF | |
15390 | /* end confdefs.h. */ | |
15391 | $ac_includes_default | |
15392 | int | |
15393 | main () | |
15394 | { | |
15395 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15396 | test_array [0] = 0 | |
15397 | ||
15398 | ; | |
15399 | return 0; | |
15400 | } | |
15401 | _ACEOF | |
15402 | rm -f conftest.$ac_objext | |
15403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15404 | (eval $ac_compile) 2>conftest.er1 | |
15405 | ac_status=$? | |
15406 | grep -v '^ *+' conftest.er1 >conftest.err | |
15407 | rm -f conftest.er1 | |
15408 | cat conftest.err >&5 | |
15409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15410 | (exit $ac_status); } && | |
15411 | { ac_try='test -z "$ac_c_werror_flag" | |
15412 | || test ! -s conftest.err' | |
15413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15414 | (eval $ac_try) 2>&5 | |
15415 | ac_status=$? | |
15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15417 | (exit $ac_status); }; } && | |
15418 | { ac_try='test -s conftest.$ac_objext' | |
15419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15420 | (eval $ac_try) 2>&5 | |
15421 | ac_status=$? | |
15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 | (exit $ac_status); }; }; then | |
15424 | ac_lo=0 ac_mid=0 | |
15425 | while :; do | |
15426 | cat >conftest.$ac_ext <<_ACEOF | |
15427 | /* confdefs.h. */ | |
15428 | _ACEOF | |
15429 | cat confdefs.h >>conftest.$ac_ext | |
15430 | cat >>conftest.$ac_ext <<_ACEOF | |
15431 | /* end confdefs.h. */ | |
15432 | $ac_includes_default | |
15433 | int | |
15434 | main () | |
15435 | { | |
15436 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15437 | test_array [0] = 0 | |
15438 | ||
15439 | ; | |
15440 | return 0; | |
15441 | } | |
15442 | _ACEOF | |
15443 | rm -f conftest.$ac_objext | |
15444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15445 | (eval $ac_compile) 2>conftest.er1 | |
15446 | ac_status=$? | |
15447 | grep -v '^ *+' conftest.er1 >conftest.err | |
15448 | rm -f conftest.er1 | |
15449 | cat conftest.err >&5 | |
15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15451 | (exit $ac_status); } && | |
15452 | { ac_try='test -z "$ac_c_werror_flag" | |
15453 | || test ! -s conftest.err' | |
15454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15455 | (eval $ac_try) 2>&5 | |
15456 | ac_status=$? | |
15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15458 | (exit $ac_status); }; } && | |
15459 | { ac_try='test -s conftest.$ac_objext' | |
15460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15461 | (eval $ac_try) 2>&5 | |
15462 | ac_status=$? | |
15463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15464 | (exit $ac_status); }; }; then | |
15465 | ac_hi=$ac_mid; break | |
15466 | else | |
15467 | echo "$as_me: failed program was:" >&5 | |
15468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15469 | ||
15470 | ac_lo=`expr $ac_mid + 1` | |
15471 | if test $ac_lo -le $ac_mid; then | |
15472 | ac_lo= ac_hi= | |
15473 | break | |
15474 | fi | |
15475 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15476 | fi | |
15477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15478 | done | |
15479 | else | |
15480 | echo "$as_me: failed program was:" >&5 | |
15481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15482 | ||
15483 | cat >conftest.$ac_ext <<_ACEOF | |
15484 | /* confdefs.h. */ | |
15485 | _ACEOF | |
15486 | cat confdefs.h >>conftest.$ac_ext | |
15487 | cat >>conftest.$ac_ext <<_ACEOF | |
15488 | /* end confdefs.h. */ | |
15489 | $ac_includes_default | |
15490 | int | |
15491 | main () | |
15492 | { | |
15493 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15494 | test_array [0] = 0 | |
15495 | ||
15496 | ; | |
15497 | return 0; | |
15498 | } | |
15499 | _ACEOF | |
15500 | rm -f conftest.$ac_objext | |
15501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15502 | (eval $ac_compile) 2>conftest.er1 | |
15503 | ac_status=$? | |
15504 | grep -v '^ *+' conftest.er1 >conftest.err | |
15505 | rm -f conftest.er1 | |
15506 | cat conftest.err >&5 | |
15507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15508 | (exit $ac_status); } && | |
15509 | { ac_try='test -z "$ac_c_werror_flag" | |
15510 | || test ! -s conftest.err' | |
15511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15512 | (eval $ac_try) 2>&5 | |
15513 | ac_status=$? | |
15514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15515 | (exit $ac_status); }; } && | |
15516 | { ac_try='test -s conftest.$ac_objext' | |
15517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15518 | (eval $ac_try) 2>&5 | |
15519 | ac_status=$? | |
15520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15521 | (exit $ac_status); }; }; then | |
15522 | ac_hi=-1 ac_mid=-1 | |
15523 | while :; do | |
15524 | cat >conftest.$ac_ext <<_ACEOF | |
15525 | /* confdefs.h. */ | |
15526 | _ACEOF | |
15527 | cat confdefs.h >>conftest.$ac_ext | |
15528 | cat >>conftest.$ac_ext <<_ACEOF | |
15529 | /* end confdefs.h. */ | |
15530 | $ac_includes_default | |
15531 | int | |
15532 | main () | |
15533 | { | |
15534 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15535 | test_array [0] = 0 | |
15536 | ||
15537 | ; | |
15538 | return 0; | |
15539 | } | |
15540 | _ACEOF | |
15541 | rm -f conftest.$ac_objext | |
15542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15543 | (eval $ac_compile) 2>conftest.er1 | |
15544 | ac_status=$? | |
15545 | grep -v '^ *+' conftest.er1 >conftest.err | |
15546 | rm -f conftest.er1 | |
15547 | cat conftest.err >&5 | |
15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15549 | (exit $ac_status); } && | |
15550 | { ac_try='test -z "$ac_c_werror_flag" | |
15551 | || test ! -s conftest.err' | |
15552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15553 | (eval $ac_try) 2>&5 | |
15554 | ac_status=$? | |
15555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15556 | (exit $ac_status); }; } && | |
15557 | { ac_try='test -s conftest.$ac_objext' | |
15558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15559 | (eval $ac_try) 2>&5 | |
15560 | ac_status=$? | |
15561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15562 | (exit $ac_status); }; }; then | |
15563 | ac_lo=$ac_mid; break | |
15564 | else | |
15565 | echo "$as_me: failed program was:" >&5 | |
15566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15567 | ||
15568 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15569 | if test $ac_mid -le $ac_hi; then | |
15570 | ac_lo= ac_hi= | |
15571 | break | |
15572 | fi | |
15573 | ac_mid=`expr 2 '*' $ac_mid` | |
15574 | fi | |
15575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15576 | done | |
15577 | else | |
15578 | echo "$as_me: failed program was:" >&5 | |
15579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15580 | ||
15581 | ac_lo= ac_hi= | |
15582 | fi | |
15583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15584 | fi | |
15585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15586 | # Binary search between lo and hi bounds. | |
15587 | while test "x$ac_lo" != "x$ac_hi"; do | |
15588 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15589 | cat >conftest.$ac_ext <<_ACEOF | |
15590 | /* confdefs.h. */ | |
15591 | _ACEOF | |
15592 | cat confdefs.h >>conftest.$ac_ext | |
15593 | cat >>conftest.$ac_ext <<_ACEOF | |
15594 | /* end confdefs.h. */ | |
15595 | $ac_includes_default | |
15596 | int | |
15597 | main () | |
15598 | { | |
15599 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15600 | test_array [0] = 0 | |
15601 | ||
15602 | ; | |
15603 | return 0; | |
15604 | } | |
15605 | _ACEOF | |
15606 | rm -f conftest.$ac_objext | |
15607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15608 | (eval $ac_compile) 2>conftest.er1 | |
15609 | ac_status=$? | |
15610 | grep -v '^ *+' conftest.er1 >conftest.err | |
15611 | rm -f conftest.er1 | |
15612 | cat conftest.err >&5 | |
15613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15614 | (exit $ac_status); } && | |
15615 | { ac_try='test -z "$ac_c_werror_flag" | |
15616 | || test ! -s conftest.err' | |
15617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15618 | (eval $ac_try) 2>&5 | |
15619 | ac_status=$? | |
15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15621 | (exit $ac_status); }; } && | |
15622 | { ac_try='test -s conftest.$ac_objext' | |
15623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15624 | (eval $ac_try) 2>&5 | |
15625 | ac_status=$? | |
15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15627 | (exit $ac_status); }; }; then | |
15628 | ac_hi=$ac_mid | |
15629 | else | |
15630 | echo "$as_me: failed program was:" >&5 | |
15631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15632 | ||
15633 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15634 | fi | |
15635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15636 | done | |
15637 | case $ac_lo in | |
15638 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
7a283e07 RW |
15639 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15640 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15641 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
d5efd9fc AM |
15642 | See \`config.log' for more details." >&5 |
15643 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15644 | See \`config.log' for more details." >&2;} | |
7a283e07 | 15645 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
15646 | esac |
15647 | else | |
15648 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
15649 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15650 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15651 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d5efd9fc AM |
15652 | See \`config.log' for more details." >&5 |
15653 | echo "$as_me: error: cannot run test program while cross compiling | |
15654 | See \`config.log' for more details." >&2;} | |
7a283e07 | 15655 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
15656 | else |
15657 | cat >conftest.$ac_ext <<_ACEOF | |
15658 | /* confdefs.h. */ | |
15659 | _ACEOF | |
15660 | cat confdefs.h >>conftest.$ac_ext | |
15661 | cat >>conftest.$ac_ext <<_ACEOF | |
15662 | /* end confdefs.h. */ | |
15663 | $ac_includes_default | |
15664 | long longval () { return (long) (sizeof (char)); } | |
15665 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15666 | #include <stdio.h> | |
15667 | #include <stdlib.h> | |
15668 | int | |
15669 | main () | |
15670 | { | |
15671 | ||
15672 | FILE *f = fopen ("conftest.val", "w"); | |
15673 | if (! f) | |
15674 | exit (1); | |
15675 | if (((long) (sizeof (char))) < 0) | |
15676 | { | |
15677 | long i = longval (); | |
15678 | if (i != ((long) (sizeof (char)))) | |
15679 | exit (1); | |
15680 | fprintf (f, "%ld\n", i); | |
15681 | } | |
15682 | else | |
15683 | { | |
15684 | unsigned long i = ulongval (); | |
15685 | if (i != ((long) (sizeof (char)))) | |
15686 | exit (1); | |
15687 | fprintf (f, "%lu\n", i); | |
15688 | } | |
15689 | exit (ferror (f) || fclose (f) != 0); | |
15690 | ||
15691 | ; | |
15692 | return 0; | |
15693 | } | |
15694 | _ACEOF | |
15695 | rm -f conftest$ac_exeext | |
15696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15697 | (eval $ac_link) 2>&5 | |
15698 | ac_status=$? | |
15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15700 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15702 | (eval $ac_try) 2>&5 | |
15703 | ac_status=$? | |
15704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15705 | (exit $ac_status); }; }; then | |
15706 | ac_cv_sizeof_char=`cat conftest.val` | |
15707 | else | |
15708 | echo "$as_me: program exited with status $ac_status" >&5 | |
15709 | echo "$as_me: failed program was:" >&5 | |
15710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15711 | ||
15712 | ( exit $ac_status ) | |
7a283e07 RW |
15713 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15714 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
15715 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
15716 | See \`config.log' for more details." >&5 | |
15717 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15718 | See \`config.log' for more details." >&2;} | |
7a283e07 | 15719 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
15720 | fi |
15721 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15722 | fi | |
15723 | fi | |
15724 | rm -f conftest.val | |
15725 | else | |
15726 | ac_cv_sizeof_char=0 | |
15727 | fi | |
15728 | fi | |
15729 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15730 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15731 | cat >>confdefs.h <<_ACEOF | |
15732 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15733 | _ACEOF | |
15734 | ||
15735 | ||
15736 | ||
15737 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
15738 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
15739 | case "$ac_cv_sizeof_char" in | |
15740 | 1) acx_cv_type_int8_t=char ;; | |
15741 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
15742 | echo "$as_me: error: no 8-bit type" >&2;} | |
15743 | { (exit please report a bug); exit please report a bug; }; } | |
15744 | esac | |
15745 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
15746 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
15747 | ||
15748 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
15749 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
15750 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
15751 | 2:*) acx_cv_type_int16_t=int ;; | |
15752 | *:2) acx_cv_type_int16_t=short ;; | |
15753 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
15754 | echo "$as_me: error: no 16-bit type" >&2;} | |
15755 | { (exit please report a bug); exit please report a bug; }; } | |
15756 | esac | |
15757 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
15758 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
15759 | ||
15760 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
15761 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
15762 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
15763 | 4:*) acx_cv_type_int32_t=int ;; | |
15764 | *:4) acx_cv_type_int32_t=long ;; | |
15765 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
15766 | echo "$as_me: error: no 32-bit type" >&2;} | |
15767 | { (exit please report a bug); exit please report a bug; }; } | |
15768 | esac | |
15769 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
15770 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
15771 | fi | |
15772 | ||
15773 | # These tests are here to make the output prettier | |
15774 | ||
15775 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
15776 | case "$ac_cv_sizeof_long" in | |
15777 | 8) acx_cv_type_int64_t=long ;; | |
15778 | esac | |
15779 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
15780 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
15781 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
15782 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
15783 | fi | |
15784 | ||
15785 | # Now we can use the above types | |
15786 | ||
15787 | if test "$ac_cv_type_uintptr_t" != yes; then | |
15788 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
15789 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
15790 | case $ac_cv_sizeof_void_p in | |
15791 | 2) acx_cv_type_intptr_t=int16_t ;; | |
15792 | 4) acx_cv_type_intptr_t=int32_t ;; | |
15793 | 8) acx_cv_type_intptr_t=int64_t ;; | |
15794 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
15795 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
15796 | { (exit please report a bug); exit please report a bug; }; } | |
15797 | esac | |
15798 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
15799 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
15800 | fi | |
15801 | ||
15802 | # ----------------- done all checks, emit header ------------- | |
15803 | ac_config_commands="$ac_config_commands bfd_stdint.h" | |
15804 | ||
15805 | ||
15806 | ||
2ba49b59 KC |
15807 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
15808 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
15809 | if test "${ac_cv_header_time+set}" = set; then | |
15810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15811 | else | |
15812 | cat >conftest.$ac_ext <<_ACEOF | |
15813 | /* confdefs.h. */ | |
15814 | _ACEOF | |
15815 | cat confdefs.h >>conftest.$ac_ext | |
15816 | cat >>conftest.$ac_ext <<_ACEOF | |
15817 | /* end confdefs.h. */ | |
15818 | #include <sys/types.h> | |
15819 | #include <sys/time.h> | |
15820 | #include <time.h> | |
15821 | ||
15822 | int | |
15823 | main () | |
15824 | { | |
15825 | if ((struct tm *) 0) | |
15826 | return 0; | |
15827 | ; | |
15828 | return 0; | |
15829 | } | |
15830 | _ACEOF | |
15831 | rm -f conftest.$ac_objext | |
15832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15833 | (eval $ac_compile) 2>conftest.er1 | |
15834 | ac_status=$? | |
15835 | grep -v '^ *+' conftest.er1 >conftest.err | |
15836 | rm -f conftest.er1 | |
15837 | cat conftest.err >&5 | |
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15839 | (exit $ac_status); } && | |
49c96104 SE |
15840 | { ac_try='test -z "$ac_c_werror_flag" |
15841 | || test ! -s conftest.err' | |
2ba49b59 KC |
15842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15843 | (eval $ac_try) 2>&5 | |
15844 | ac_status=$? | |
15845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15846 | (exit $ac_status); }; } && | |
15847 | { ac_try='test -s conftest.$ac_objext' | |
15848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15849 | (eval $ac_try) 2>&5 | |
15850 | ac_status=$? | |
15851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15852 | (exit $ac_status); }; }; then | |
15853 | ac_cv_header_time=yes | |
15854 | else | |
15855 | echo "$as_me: failed program was:" >&5 | |
15856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15857 | ||
15858 | ac_cv_header_time=no | |
15859 | fi | |
15860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15861 | fi | |
15862 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
15863 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
15864 | if test $ac_cv_header_time = yes; then | |
15865 | ||
15866 | cat >>confdefs.h <<\_ACEOF | |
15867 | #define TIME_WITH_SYS_TIME 1 | |
15868 | _ACEOF | |
15869 | ||
15870 | fi | |
15871 | ||
15872 | ||
15873 | ||
15874 | ||
15875 | ||
15876 | ||
15877 | ac_header_dirent=no | |
15878 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
15879 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
15880 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
15881 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
15882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15884 | else | |
15885 | cat >conftest.$ac_ext <<_ACEOF | |
15886 | /* confdefs.h. */ | |
15887 | _ACEOF | |
15888 | cat confdefs.h >>conftest.$ac_ext | |
15889 | cat >>conftest.$ac_ext <<_ACEOF | |
15890 | /* end confdefs.h. */ | |
15891 | #include <sys/types.h> | |
15892 | #include <$ac_hdr> | |
15893 | ||
15894 | int | |
15895 | main () | |
15896 | { | |
15897 | if ((DIR *) 0) | |
15898 | return 0; | |
15899 | ; | |
15900 | return 0; | |
15901 | } | |
15902 | _ACEOF | |
15903 | rm -f conftest.$ac_objext | |
15904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15905 | (eval $ac_compile) 2>conftest.er1 | |
15906 | ac_status=$? | |
15907 | grep -v '^ *+' conftest.er1 >conftest.err | |
15908 | rm -f conftest.er1 | |
15909 | cat conftest.err >&5 | |
15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15911 | (exit $ac_status); } && | |
49c96104 SE |
15912 | { ac_try='test -z "$ac_c_werror_flag" |
15913 | || test ! -s conftest.err' | |
2ba49b59 KC |
15914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15915 | (eval $ac_try) 2>&5 | |
15916 | ac_status=$? | |
15917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15918 | (exit $ac_status); }; } && | |
15919 | { ac_try='test -s conftest.$ac_objext' | |
15920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15921 | (eval $ac_try) 2>&5 | |
15922 | ac_status=$? | |
15923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15924 | (exit $ac_status); }; }; then | |
15925 | eval "$as_ac_Header=yes" | |
15926 | else | |
15927 | echo "$as_me: failed program was:" >&5 | |
15928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15929 | ||
15930 | eval "$as_ac_Header=no" | |
15931 | fi | |
15932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15933 | fi | |
15934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15936 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15937 | cat >>confdefs.h <<_ACEOF | |
15938 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
15939 | _ACEOF | |
15940 | ||
15941 | ac_header_dirent=$ac_hdr; break | |
15942 | fi | |
15943 | ||
15944 | done | |
15945 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
15946 | if test $ac_header_dirent = dirent.h; then | |
15947 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
15948 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
15949 | if test "${ac_cv_search_opendir+set}" = set; then | |
15950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15951 | else | |
15952 | ac_func_search_save_LIBS=$LIBS | |
15953 | ac_cv_search_opendir=no | |
15954 | cat >conftest.$ac_ext <<_ACEOF | |
15955 | /* confdefs.h. */ | |
15956 | _ACEOF | |
15957 | cat confdefs.h >>conftest.$ac_ext | |
15958 | cat >>conftest.$ac_ext <<_ACEOF | |
15959 | /* end confdefs.h. */ | |
15960 | ||
15961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15962 | #ifdef __cplusplus | |
15963 | extern "C" | |
15964 | #endif | |
15965 | /* We use char because int might match the return type of a gcc2 | |
15966 | builtin and then its argument prototype would still apply. */ | |
15967 | char opendir (); | |
15968 | int | |
15969 | main () | |
15970 | { | |
15971 | opendir (); | |
15972 | ; | |
15973 | return 0; | |
15974 | } | |
15975 | _ACEOF | |
15976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15978 | (eval $ac_link) 2>conftest.er1 | |
15979 | ac_status=$? | |
15980 | grep -v '^ *+' conftest.er1 >conftest.err | |
15981 | rm -f conftest.er1 | |
15982 | cat conftest.err >&5 | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); } && | |
49c96104 SE |
15985 | { ac_try='test -z "$ac_c_werror_flag" |
15986 | || test ! -s conftest.err' | |
2ba49b59 KC |
15987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15988 | (eval $ac_try) 2>&5 | |
15989 | ac_status=$? | |
15990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15991 | (exit $ac_status); }; } && | |
15992 | { ac_try='test -s conftest$ac_exeext' | |
15993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15994 | (eval $ac_try) 2>&5 | |
15995 | ac_status=$? | |
15996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15997 | (exit $ac_status); }; }; then | |
15998 | ac_cv_search_opendir="none required" | |
15999 | else | |
16000 | echo "$as_me: failed program was:" >&5 | |
16001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16002 | ||
16003 | fi | |
16004 | rm -f conftest.err conftest.$ac_objext \ | |
16005 | conftest$ac_exeext conftest.$ac_ext | |
16006 | if test "$ac_cv_search_opendir" = no; then | |
16007 | for ac_lib in dir; do | |
16008 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16009 | cat >conftest.$ac_ext <<_ACEOF | |
16010 | /* confdefs.h. */ | |
16011 | _ACEOF | |
16012 | cat confdefs.h >>conftest.$ac_ext | |
16013 | cat >>conftest.$ac_ext <<_ACEOF | |
16014 | /* end confdefs.h. */ | |
16015 | ||
16016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16017 | #ifdef __cplusplus | |
16018 | extern "C" | |
16019 | #endif | |
16020 | /* We use char because int might match the return type of a gcc2 | |
16021 | builtin and then its argument prototype would still apply. */ | |
16022 | char opendir (); | |
16023 | int | |
16024 | main () | |
16025 | { | |
16026 | opendir (); | |
16027 | ; | |
16028 | return 0; | |
16029 | } | |
16030 | _ACEOF | |
16031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16033 | (eval $ac_link) 2>conftest.er1 | |
16034 | ac_status=$? | |
16035 | grep -v '^ *+' conftest.er1 >conftest.err | |
16036 | rm -f conftest.er1 | |
16037 | cat conftest.err >&5 | |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16039 | (exit $ac_status); } && | |
49c96104 SE |
16040 | { ac_try='test -z "$ac_c_werror_flag" |
16041 | || test ! -s conftest.err' | |
2ba49b59 KC |
16042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16043 | (eval $ac_try) 2>&5 | |
16044 | ac_status=$? | |
16045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16046 | (exit $ac_status); }; } && | |
16047 | { ac_try='test -s conftest$ac_exeext' | |
16048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16049 | (eval $ac_try) 2>&5 | |
16050 | ac_status=$? | |
16051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16052 | (exit $ac_status); }; }; then | |
16053 | ac_cv_search_opendir="-l$ac_lib" | |
16054 | break | |
16055 | else | |
16056 | echo "$as_me: failed program was:" >&5 | |
16057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16058 | ||
16059 | fi | |
16060 | rm -f conftest.err conftest.$ac_objext \ | |
16061 | conftest$ac_exeext conftest.$ac_ext | |
16062 | done | |
16063 | fi | |
16064 | LIBS=$ac_func_search_save_LIBS | |
16065 | fi | |
16066 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
16067 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
16068 | if test "$ac_cv_search_opendir" != no; then | |
16069 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
16070 | ||
16071 | fi | |
16072 | ||
16073 | else | |
16074 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
16075 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
16076 | if test "${ac_cv_search_opendir+set}" = set; then | |
16077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16078 | else | |
16079 | ac_func_search_save_LIBS=$LIBS | |
16080 | ac_cv_search_opendir=no | |
16081 | cat >conftest.$ac_ext <<_ACEOF | |
16082 | /* confdefs.h. */ | |
16083 | _ACEOF | |
16084 | cat confdefs.h >>conftest.$ac_ext | |
16085 | cat >>conftest.$ac_ext <<_ACEOF | |
16086 | /* end confdefs.h. */ | |
16087 | ||
16088 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16089 | #ifdef __cplusplus | |
16090 | extern "C" | |
16091 | #endif | |
16092 | /* We use char because int might match the return type of a gcc2 | |
16093 | builtin and then its argument prototype would still apply. */ | |
16094 | char opendir (); | |
16095 | int | |
16096 | main () | |
16097 | { | |
16098 | opendir (); | |
16099 | ; | |
16100 | return 0; | |
16101 | } | |
16102 | _ACEOF | |
16103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16105 | (eval $ac_link) 2>conftest.er1 | |
16106 | ac_status=$? | |
16107 | grep -v '^ *+' conftest.er1 >conftest.err | |
16108 | rm -f conftest.er1 | |
16109 | cat conftest.err >&5 | |
16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16111 | (exit $ac_status); } && | |
49c96104 SE |
16112 | { ac_try='test -z "$ac_c_werror_flag" |
16113 | || test ! -s conftest.err' | |
2ba49b59 KC |
16114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16115 | (eval $ac_try) 2>&5 | |
16116 | ac_status=$? | |
16117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16118 | (exit $ac_status); }; } && | |
16119 | { ac_try='test -s conftest$ac_exeext' | |
16120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16121 | (eval $ac_try) 2>&5 | |
16122 | ac_status=$? | |
16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16124 | (exit $ac_status); }; }; then | |
16125 | ac_cv_search_opendir="none required" | |
16126 | else | |
16127 | echo "$as_me: failed program was:" >&5 | |
16128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16129 | ||
16130 | fi | |
16131 | rm -f conftest.err conftest.$ac_objext \ | |
16132 | conftest$ac_exeext conftest.$ac_ext | |
16133 | if test "$ac_cv_search_opendir" = no; then | |
16134 | for ac_lib in x; do | |
16135 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16136 | cat >conftest.$ac_ext <<_ACEOF | |
16137 | /* confdefs.h. */ | |
16138 | _ACEOF | |
16139 | cat confdefs.h >>conftest.$ac_ext | |
16140 | cat >>conftest.$ac_ext <<_ACEOF | |
16141 | /* end confdefs.h. */ | |
16142 | ||
16143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16144 | #ifdef __cplusplus | |
16145 | extern "C" | |
16146 | #endif | |
16147 | /* We use char because int might match the return type of a gcc2 | |
16148 | builtin and then its argument prototype would still apply. */ | |
16149 | char opendir (); | |
16150 | int | |
16151 | main () | |
16152 | { | |
16153 | opendir (); | |
16154 | ; | |
16155 | return 0; | |
16156 | } | |
16157 | _ACEOF | |
16158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16160 | (eval $ac_link) 2>conftest.er1 | |
16161 | ac_status=$? | |
16162 | grep -v '^ *+' conftest.er1 >conftest.err | |
16163 | rm -f conftest.er1 | |
16164 | cat conftest.err >&5 | |
16165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16166 | (exit $ac_status); } && | |
49c96104 SE |
16167 | { ac_try='test -z "$ac_c_werror_flag" |
16168 | || test ! -s conftest.err' | |
2ba49b59 KC |
16169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16170 | (eval $ac_try) 2>&5 | |
16171 | ac_status=$? | |
16172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16173 | (exit $ac_status); }; } && | |
16174 | { ac_try='test -s conftest$ac_exeext' | |
16175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16176 | (eval $ac_try) 2>&5 | |
16177 | ac_status=$? | |
16178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16179 | (exit $ac_status); }; }; then | |
16180 | ac_cv_search_opendir="-l$ac_lib" | |
16181 | break | |
16182 | else | |
16183 | echo "$as_me: failed program was:" >&5 | |
16184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16185 | ||
16186 | fi | |
16187 | rm -f conftest.err conftest.$ac_objext \ | |
16188 | conftest$ac_exeext conftest.$ac_ext | |
16189 | done | |
16190 | fi | |
16191 | LIBS=$ac_func_search_save_LIBS | |
16192 | fi | |
16193 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
16194 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
16195 | if test "$ac_cv_search_opendir" != no; then | |
16196 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
16197 | ||
16198 | fi | |
16199 | ||
16200 | fi | |
16201 | ||
16202 | echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 | |
16203 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 | |
16204 | if test "${gcc_cv_header_string+set}" = set; then | |
16205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16206 | else | |
16207 | cat >conftest.$ac_ext <<_ACEOF | |
16208 | /* confdefs.h. */ | |
16209 | _ACEOF | |
16210 | cat confdefs.h >>conftest.$ac_ext | |
16211 | cat >>conftest.$ac_ext <<_ACEOF | |
16212 | /* end confdefs.h. */ | |
16213 | #include <string.h> | |
16214 | #include <strings.h> | |
16215 | int | |
16216 | main () | |
16217 | { | |
16218 | ||
16219 | ; | |
16220 | return 0; | |
16221 | } | |
16222 | _ACEOF | |
16223 | rm -f conftest.$ac_objext | |
16224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16225 | (eval $ac_compile) 2>conftest.er1 | |
16226 | ac_status=$? | |
16227 | grep -v '^ *+' conftest.er1 >conftest.err | |
16228 | rm -f conftest.er1 | |
16229 | cat conftest.err >&5 | |
16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16231 | (exit $ac_status); } && | |
49c96104 SE |
16232 | { ac_try='test -z "$ac_c_werror_flag" |
16233 | || test ! -s conftest.err' | |
2ba49b59 KC |
16234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16235 | (eval $ac_try) 2>&5 | |
16236 | ac_status=$? | |
16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16238 | (exit $ac_status); }; } && | |
16239 | { ac_try='test -s conftest.$ac_objext' | |
16240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16241 | (eval $ac_try) 2>&5 | |
16242 | ac_status=$? | |
16243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16244 | (exit $ac_status); }; }; then | |
16245 | gcc_cv_header_string=yes | |
16246 | else | |
16247 | echo "$as_me: failed program was:" >&5 | |
16248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16249 | ||
16250 | gcc_cv_header_string=no | |
16251 | fi | |
16252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16253 | fi | |
16254 | echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
16255 | echo "${ECHO_T}$gcc_cv_header_string" >&6 | |
16256 | if test $gcc_cv_header_string = yes; then | |
16257 | ||
16258 | cat >>confdefs.h <<\_ACEOF | |
16259 | #define STRING_WITH_STRINGS 1 | |
16260 | _ACEOF | |
16261 | ||
2e0fbf77 JW |
16262 | fi |
16263 | ||
5464f5a1 NN |
16264 | |
16265 | ||
16266 | ||
16267 | ||
16268 | ||
16269 | ||
16270 | ||
633fd09f | 16271 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 16272 | do |
5464f5a1 NN |
16273 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16274 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16275 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16276 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16278 | else | |
16279 | cat >conftest.$ac_ext <<_ACEOF | |
16280 | /* confdefs.h. */ | |
16281 | _ACEOF | |
16282 | cat confdefs.h >>conftest.$ac_ext | |
16283 | cat >>conftest.$ac_ext <<_ACEOF | |
16284 | /* end confdefs.h. */ | |
16285 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16287 | #define $ac_func innocuous_$ac_func | |
16288 | ||
252b5132 | 16289 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
16290 | which can conflict with char $ac_func (); below. |
16291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16292 | <limits.h> exists even on freestanding compilers. */ | |
16293 | ||
16294 | #ifdef __STDC__ | |
16295 | # include <limits.h> | |
16296 | #else | |
16297 | # include <assert.h> | |
16298 | #endif | |
6be7c12c | 16299 | |
5464f5a1 | 16300 | #undef $ac_func |
252b5132 | 16301 | |
5464f5a1 NN |
16302 | /* Override any gcc2 internal prototype to avoid an error. */ |
16303 | #ifdef __cplusplus | |
16304 | extern "C" | |
16305 | { | |
16306 | #endif | |
16307 | /* We use char because int might match the return type of a gcc2 | |
16308 | builtin and then its argument prototype would still apply. */ | |
16309 | char $ac_func (); | |
252b5132 RH |
16310 | /* The GNU C library defines this for functions which it implements |
16311 | to always fail with ENOSYS. Some functions are actually named | |
16312 | something starting with __ and the normal name is an alias. */ | |
16313 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16314 | choke me | |
16315 | #else | |
5464f5a1 NN |
16316 | char (*f) () = $ac_func; |
16317 | #endif | |
16318 | #ifdef __cplusplus | |
16319 | } | |
252b5132 RH |
16320 | #endif |
16321 | ||
5464f5a1 NN |
16322 | int |
16323 | main () | |
16324 | { | |
16325 | return f != $ac_func; | |
16326 | ; | |
16327 | return 0; | |
16328 | } | |
16329 | _ACEOF | |
16330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16332 | (eval $ac_link) 2>conftest.er1 | |
16333 | ac_status=$? | |
16334 | grep -v '^ *+' conftest.er1 >conftest.err | |
16335 | rm -f conftest.er1 | |
16336 | cat conftest.err >&5 | |
16337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16338 | (exit $ac_status); } && | |
49c96104 SE |
16339 | { ac_try='test -z "$ac_c_werror_flag" |
16340 | || test ! -s conftest.err' | |
5464f5a1 NN |
16341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16342 | (eval $ac_try) 2>&5 | |
16343 | ac_status=$? | |
16344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16345 | (exit $ac_status); }; } && | |
16346 | { ac_try='test -s conftest$ac_exeext' | |
16347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16348 | (eval $ac_try) 2>&5 | |
16349 | ac_status=$? | |
16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16351 | (exit $ac_status); }; }; then | |
16352 | eval "$as_ac_var=yes" | |
16353 | else | |
16354 | echo "$as_me: failed program was:" >&5 | |
16355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16356 | ||
16357 | eval "$as_ac_var=no" | |
16358 | fi | |
16359 | rm -f conftest.err conftest.$ac_objext \ | |
16360 | conftest$ac_exeext conftest.$ac_ext | |
16361 | fi | |
16362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16363 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16364 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16365 | cat >>confdefs.h <<_ACEOF | |
16366 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16367 | _ACEOF | |
252b5132 | 16368 | |
252b5132 RH |
16369 | fi |
16370 | done | |
16371 | ||
5464f5a1 | 16372 | |
49c97a80 ILT |
16373 | for ac_func in strtoull |
16374 | do | |
5464f5a1 NN |
16375 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16376 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16377 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16378 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16380 | else | |
16381 | cat >conftest.$ac_ext <<_ACEOF | |
16382 | /* confdefs.h. */ | |
16383 | _ACEOF | |
16384 | cat confdefs.h >>conftest.$ac_ext | |
16385 | cat >>conftest.$ac_ext <<_ACEOF | |
16386 | /* end confdefs.h. */ | |
16387 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16388 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16389 | #define $ac_func innocuous_$ac_func | |
16390 | ||
49c97a80 | 16391 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
16392 | which can conflict with char $ac_func (); below. |
16393 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16394 | <limits.h> exists even on freestanding compilers. */ | |
16395 | ||
16396 | #ifdef __STDC__ | |
16397 | # include <limits.h> | |
16398 | #else | |
16399 | # include <assert.h> | |
16400 | #endif | |
49c97a80 | 16401 | |
5464f5a1 | 16402 | #undef $ac_func |
49c97a80 | 16403 | |
5464f5a1 NN |
16404 | /* Override any gcc2 internal prototype to avoid an error. */ |
16405 | #ifdef __cplusplus | |
16406 | extern "C" | |
16407 | { | |
16408 | #endif | |
16409 | /* We use char because int might match the return type of a gcc2 | |
16410 | builtin and then its argument prototype would still apply. */ | |
16411 | char $ac_func (); | |
49c97a80 ILT |
16412 | /* The GNU C library defines this for functions which it implements |
16413 | to always fail with ENOSYS. Some functions are actually named | |
16414 | something starting with __ and the normal name is an alias. */ | |
16415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16416 | choke me | |
16417 | #else | |
5464f5a1 NN |
16418 | char (*f) () = $ac_func; |
16419 | #endif | |
16420 | #ifdef __cplusplus | |
16421 | } | |
49c97a80 ILT |
16422 | #endif |
16423 | ||
5464f5a1 NN |
16424 | int |
16425 | main () | |
16426 | { | |
16427 | return f != $ac_func; | |
16428 | ; | |
16429 | return 0; | |
16430 | } | |
16431 | _ACEOF | |
16432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16434 | (eval $ac_link) 2>conftest.er1 | |
16435 | ac_status=$? | |
16436 | grep -v '^ *+' conftest.er1 >conftest.err | |
16437 | rm -f conftest.er1 | |
16438 | cat conftest.err >&5 | |
16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16440 | (exit $ac_status); } && | |
49c96104 SE |
16441 | { ac_try='test -z "$ac_c_werror_flag" |
16442 | || test ! -s conftest.err' | |
5464f5a1 NN |
16443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16444 | (eval $ac_try) 2>&5 | |
16445 | ac_status=$? | |
16446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16447 | (exit $ac_status); }; } && | |
16448 | { ac_try='test -s conftest$ac_exeext' | |
16449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16450 | (eval $ac_try) 2>&5 | |
16451 | ac_status=$? | |
16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16453 | (exit $ac_status); }; }; then | |
16454 | eval "$as_ac_var=yes" | |
16455 | else | |
16456 | echo "$as_me: failed program was:" >&5 | |
16457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16458 | ||
16459 | eval "$as_ac_var=no" | |
16460 | fi | |
16461 | rm -f conftest.err conftest.$ac_objext \ | |
16462 | conftest$ac_exeext conftest.$ac_ext | |
16463 | fi | |
16464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16465 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16466 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16467 | cat >>confdefs.h <<_ACEOF | |
16468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16469 | _ACEOF | |
49c97a80 | 16470 | |
49c97a80 ILT |
16471 | fi |
16472 | done | |
16473 | ||
6be7c12c | 16474 | |
2e9ebff5 JG |
16475 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
16476 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
16477 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
16478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16479 | else | |
16480 | cat >conftest.$ac_ext <<_ACEOF | |
16481 | /* confdefs.h. */ | |
16482 | _ACEOF | |
16483 | cat confdefs.h >>conftest.$ac_ext | |
16484 | cat >>conftest.$ac_ext <<_ACEOF | |
16485 | /* end confdefs.h. */ | |
ec7b76fe | 16486 | $ac_includes_default |
2e9ebff5 JG |
16487 | int |
16488 | main () | |
16489 | { | |
16490 | #ifndef basename | |
16491 | char *p = (char *) basename; | |
16492 | #endif | |
16493 | ||
16494 | ; | |
16495 | return 0; | |
16496 | } | |
16497 | _ACEOF | |
16498 | rm -f conftest.$ac_objext | |
16499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16500 | (eval $ac_compile) 2>conftest.er1 | |
16501 | ac_status=$? | |
16502 | grep -v '^ *+' conftest.er1 >conftest.err | |
16503 | rm -f conftest.er1 | |
16504 | cat conftest.err >&5 | |
16505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16506 | (exit $ac_status); } && | |
49c96104 SE |
16507 | { ac_try='test -z "$ac_c_werror_flag" |
16508 | || test ! -s conftest.err' | |
2e9ebff5 JG |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; } && | |
16514 | { ac_try='test -s conftest.$ac_objext' | |
16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16516 | (eval $ac_try) 2>&5 | |
16517 | ac_status=$? | |
16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16519 | (exit $ac_status); }; }; then | |
16520 | ac_cv_have_decl_basename=yes | |
16521 | else | |
16522 | echo "$as_me: failed program was:" >&5 | |
16523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16524 | ||
16525 | ac_cv_have_decl_basename=no | |
16526 | fi | |
16527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16528 | fi | |
16529 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
16530 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
16531 | if test $ac_cv_have_decl_basename = yes; then | |
16532 | ||
16533 | cat >>confdefs.h <<_ACEOF | |
16534 | #define HAVE_DECL_BASENAME 1 | |
16535 | _ACEOF | |
16536 | ||
16537 | ||
16538 | else | |
16539 | cat >>confdefs.h <<_ACEOF | |
16540 | #define HAVE_DECL_BASENAME 0 | |
16541 | _ACEOF | |
16542 | ||
16543 | ||
16544 | fi | |
16545 | ||
16546 | ||
ec7b76fe JG |
16547 | echo "$as_me:$LINENO: checking whether ftello is declared" >&5 |
16548 | echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 | |
16549 | if test "${ac_cv_have_decl_ftello+set}" = set; then | |
16550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16551 | else | |
16552 | cat >conftest.$ac_ext <<_ACEOF | |
16553 | /* confdefs.h. */ | |
16554 | _ACEOF | |
16555 | cat confdefs.h >>conftest.$ac_ext | |
16556 | cat >>conftest.$ac_ext <<_ACEOF | |
16557 | /* end confdefs.h. */ | |
16558 | $ac_includes_default | |
16559 | int | |
16560 | main () | |
16561 | { | |
16562 | #ifndef ftello | |
16563 | char *p = (char *) ftello; | |
16564 | #endif | |
16565 | ||
16566 | ; | |
16567 | return 0; | |
16568 | } | |
16569 | _ACEOF | |
16570 | rm -f conftest.$ac_objext | |
16571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16572 | (eval $ac_compile) 2>conftest.er1 | |
16573 | ac_status=$? | |
16574 | grep -v '^ *+' conftest.er1 >conftest.err | |
16575 | rm -f conftest.er1 | |
16576 | cat conftest.err >&5 | |
16577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16578 | (exit $ac_status); } && | |
49c96104 SE |
16579 | { ac_try='test -z "$ac_c_werror_flag" |
16580 | || test ! -s conftest.err' | |
ec7b76fe JG |
16581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16582 | (eval $ac_try) 2>&5 | |
16583 | ac_status=$? | |
16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16585 | (exit $ac_status); }; } && | |
16586 | { ac_try='test -s conftest.$ac_objext' | |
16587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16588 | (eval $ac_try) 2>&5 | |
16589 | ac_status=$? | |
16590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16591 | (exit $ac_status); }; }; then | |
16592 | ac_cv_have_decl_ftello=yes | |
16593 | else | |
16594 | echo "$as_me: failed program was:" >&5 | |
16595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16596 | ||
16597 | ac_cv_have_decl_ftello=no | |
16598 | fi | |
16599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16600 | fi | |
16601 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 | |
16602 | echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 | |
16603 | if test $ac_cv_have_decl_ftello = yes; then | |
16604 | ||
16605 | cat >>confdefs.h <<_ACEOF | |
16606 | #define HAVE_DECL_FTELLO 1 | |
16607 | _ACEOF | |
16608 | ||
16609 | ||
16610 | else | |
16611 | cat >>confdefs.h <<_ACEOF | |
16612 | #define HAVE_DECL_FTELLO 0 | |
16613 | _ACEOF | |
16614 | ||
16615 | ||
16616 | fi | |
16617 | ||
16618 | ||
16619 | echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 | |
16620 | echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 | |
16621 | if test "${ac_cv_have_decl_ftello64+set}" = set; then | |
16622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16623 | else | |
16624 | cat >conftest.$ac_ext <<_ACEOF | |
16625 | /* confdefs.h. */ | |
16626 | _ACEOF | |
16627 | cat confdefs.h >>conftest.$ac_ext | |
16628 | cat >>conftest.$ac_ext <<_ACEOF | |
16629 | /* end confdefs.h. */ | |
16630 | $ac_includes_default | |
16631 | int | |
16632 | main () | |
16633 | { | |
16634 | #ifndef ftello64 | |
16635 | char *p = (char *) ftello64; | |
16636 | #endif | |
16637 | ||
16638 | ; | |
16639 | return 0; | |
16640 | } | |
16641 | _ACEOF | |
16642 | rm -f conftest.$ac_objext | |
16643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16644 | (eval $ac_compile) 2>conftest.er1 | |
16645 | ac_status=$? | |
16646 | grep -v '^ *+' conftest.er1 >conftest.err | |
16647 | rm -f conftest.er1 | |
16648 | cat conftest.err >&5 | |
16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16650 | (exit $ac_status); } && | |
49c96104 SE |
16651 | { ac_try='test -z "$ac_c_werror_flag" |
16652 | || test ! -s conftest.err' | |
ec7b76fe JG |
16653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16654 | (eval $ac_try) 2>&5 | |
16655 | ac_status=$? | |
16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16657 | (exit $ac_status); }; } && | |
16658 | { ac_try='test -s conftest.$ac_objext' | |
16659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16660 | (eval $ac_try) 2>&5 | |
16661 | ac_status=$? | |
16662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16663 | (exit $ac_status); }; }; then | |
16664 | ac_cv_have_decl_ftello64=yes | |
16665 | else | |
16666 | echo "$as_me: failed program was:" >&5 | |
16667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16668 | ||
16669 | ac_cv_have_decl_ftello64=no | |
16670 | fi | |
16671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16672 | fi | |
16673 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 | |
16674 | echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 | |
16675 | if test $ac_cv_have_decl_ftello64 = yes; then | |
16676 | ||
16677 | cat >>confdefs.h <<_ACEOF | |
16678 | #define HAVE_DECL_FTELLO64 1 | |
16679 | _ACEOF | |
16680 | ||
16681 | ||
16682 | else | |
16683 | cat >>confdefs.h <<_ACEOF | |
16684 | #define HAVE_DECL_FTELLO64 0 | |
16685 | _ACEOF | |
16686 | ||
16687 | ||
16688 | fi | |
16689 | ||
16690 | ||
16691 | echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 | |
16692 | echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 | |
16693 | if test "${ac_cv_have_decl_fseeko+set}" = set; then | |
16694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16695 | else | |
16696 | cat >conftest.$ac_ext <<_ACEOF | |
16697 | /* confdefs.h. */ | |
16698 | _ACEOF | |
16699 | cat confdefs.h >>conftest.$ac_ext | |
16700 | cat >>conftest.$ac_ext <<_ACEOF | |
16701 | /* end confdefs.h. */ | |
16702 | $ac_includes_default | |
16703 | int | |
16704 | main () | |
16705 | { | |
16706 | #ifndef fseeko | |
16707 | char *p = (char *) fseeko; | |
16708 | #endif | |
16709 | ||
16710 | ; | |
16711 | return 0; | |
16712 | } | |
16713 | _ACEOF | |
16714 | rm -f conftest.$ac_objext | |
16715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16716 | (eval $ac_compile) 2>conftest.er1 | |
16717 | ac_status=$? | |
16718 | grep -v '^ *+' conftest.er1 >conftest.err | |
16719 | rm -f conftest.er1 | |
16720 | cat conftest.err >&5 | |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 | (exit $ac_status); } && | |
49c96104 SE |
16723 | { ac_try='test -z "$ac_c_werror_flag" |
16724 | || test ! -s conftest.err' | |
ec7b76fe JG |
16725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16726 | (eval $ac_try) 2>&5 | |
16727 | ac_status=$? | |
16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16729 | (exit $ac_status); }; } && | |
16730 | { ac_try='test -s conftest.$ac_objext' | |
16731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16732 | (eval $ac_try) 2>&5 | |
16733 | ac_status=$? | |
16734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16735 | (exit $ac_status); }; }; then | |
16736 | ac_cv_have_decl_fseeko=yes | |
16737 | else | |
16738 | echo "$as_me: failed program was:" >&5 | |
16739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16740 | ||
16741 | ac_cv_have_decl_fseeko=no | |
16742 | fi | |
16743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16744 | fi | |
16745 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 | |
16746 | echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 | |
16747 | if test $ac_cv_have_decl_fseeko = yes; then | |
16748 | ||
16749 | cat >>confdefs.h <<_ACEOF | |
16750 | #define HAVE_DECL_FSEEKO 1 | |
16751 | _ACEOF | |
16752 | ||
16753 | ||
16754 | else | |
16755 | cat >>confdefs.h <<_ACEOF | |
16756 | #define HAVE_DECL_FSEEKO 0 | |
16757 | _ACEOF | |
16758 | ||
16759 | ||
16760 | fi | |
16761 | ||
16762 | ||
16763 | echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 | |
16764 | echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 | |
16765 | if test "${ac_cv_have_decl_fseeko64+set}" = set; then | |
16766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16767 | else | |
16768 | cat >conftest.$ac_ext <<_ACEOF | |
16769 | /* confdefs.h. */ | |
16770 | _ACEOF | |
16771 | cat confdefs.h >>conftest.$ac_ext | |
16772 | cat >>conftest.$ac_ext <<_ACEOF | |
16773 | /* end confdefs.h. */ | |
16774 | $ac_includes_default | |
16775 | int | |
16776 | main () | |
16777 | { | |
16778 | #ifndef fseeko64 | |
16779 | char *p = (char *) fseeko64; | |
16780 | #endif | |
16781 | ||
16782 | ; | |
16783 | return 0; | |
16784 | } | |
16785 | _ACEOF | |
16786 | rm -f conftest.$ac_objext | |
16787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16788 | (eval $ac_compile) 2>conftest.er1 | |
16789 | ac_status=$? | |
16790 | grep -v '^ *+' conftest.er1 >conftest.err | |
16791 | rm -f conftest.er1 | |
16792 | cat conftest.err >&5 | |
16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16794 | (exit $ac_status); } && | |
49c96104 SE |
16795 | { ac_try='test -z "$ac_c_werror_flag" |
16796 | || test ! -s conftest.err' | |
ec7b76fe JG |
16797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16798 | (eval $ac_try) 2>&5 | |
16799 | ac_status=$? | |
16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16801 | (exit $ac_status); }; } && | |
16802 | { ac_try='test -s conftest.$ac_objext' | |
16803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16804 | (eval $ac_try) 2>&5 | |
16805 | ac_status=$? | |
16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16807 | (exit $ac_status); }; }; then | |
16808 | ac_cv_have_decl_fseeko64=yes | |
16809 | else | |
16810 | echo "$as_me: failed program was:" >&5 | |
16811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16812 | ||
16813 | ac_cv_have_decl_fseeko64=no | |
16814 | fi | |
16815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16816 | fi | |
16817 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 | |
16818 | echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 | |
16819 | if test $ac_cv_have_decl_fseeko64 = yes; then | |
16820 | ||
16821 | cat >>confdefs.h <<_ACEOF | |
16822 | #define HAVE_DECL_FSEEKO64 1 | |
16823 | _ACEOF | |
16824 | ||
16825 | ||
16826 | else | |
16827 | cat >>confdefs.h <<_ACEOF | |
16828 | #define HAVE_DECL_FSEEKO64 0 | |
16829 | _ACEOF | |
16830 | ||
16831 | ||
16832 | fi | |
16833 | ||
16834 | ||
2e9ebff5 | 16835 | |
6be7c12c | 16836 | |
252b5132 | 16837 | case "${host}" in |
855b0be7 | 16838 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
16839 | |
16840 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 16841 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 16842 | _ACEOF |
252b5132 RH |
16843 | ;; |
16844 | esac | |
16845 | ||
d34a2b1d JG |
16846 | echo "$as_me:$LINENO: checking whether ffs is declared" >&5 |
16847 | echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 | |
16848 | if test "${ac_cv_have_decl_ffs+set}" = set; then | |
5464f5a1 | 16849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16850 | else |
5464f5a1 NN |
16851 | cat >conftest.$ac_ext <<_ACEOF |
16852 | /* confdefs.h. */ | |
16853 | _ACEOF | |
16854 | cat confdefs.h >>conftest.$ac_ext | |
16855 | cat >>conftest.$ac_ext <<_ACEOF | |
16856 | /* end confdefs.h. */ | |
d34a2b1d | 16857 | $ac_includes_default |
5464f5a1 NN |
16858 | int |
16859 | main () | |
16860 | { | |
d34a2b1d JG |
16861 | #ifndef ffs |
16862 | char *p = (char *) ffs; | |
16863 | #endif | |
16864 | ||
5464f5a1 NN |
16865 | ; |
16866 | return 0; | |
16867 | } | |
16868 | _ACEOF | |
16869 | rm -f conftest.$ac_objext | |
16870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16871 | (eval $ac_compile) 2>conftest.er1 | |
16872 | ac_status=$? | |
16873 | grep -v '^ *+' conftest.er1 >conftest.err | |
16874 | rm -f conftest.er1 | |
16875 | cat conftest.err >&5 | |
16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16877 | (exit $ac_status); } && | |
49c96104 SE |
16878 | { ac_try='test -z "$ac_c_werror_flag" |
16879 | || test ! -s conftest.err' | |
5464f5a1 NN |
16880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16881 | (eval $ac_try) 2>&5 | |
16882 | ac_status=$? | |
16883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16884 | (exit $ac_status); }; } && | |
16885 | { ac_try='test -s conftest.$ac_objext' | |
16886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16887 | (eval $ac_try) 2>&5 | |
16888 | ac_status=$? | |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16890 | (exit $ac_status); }; }; then | |
d34a2b1d | 16891 | ac_cv_have_decl_ffs=yes |
252b5132 | 16892 | else |
5464f5a1 NN |
16893 | echo "$as_me: failed program was:" >&5 |
16894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16895 | ||
d34a2b1d | 16896 | ac_cv_have_decl_ffs=no |
252b5132 | 16897 | fi |
5464f5a1 | 16898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 16899 | fi |
d34a2b1d JG |
16900 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 |
16901 | echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 | |
16902 | if test $ac_cv_have_decl_ffs = yes; then | |
252b5132 | 16903 | |
d34a2b1d JG |
16904 | cat >>confdefs.h <<_ACEOF |
16905 | #define HAVE_DECL_FFS 1 | |
16906 | _ACEOF | |
5464f5a1 | 16907 | |
d34a2b1d JG |
16908 | |
16909 | else | |
16910 | cat >>confdefs.h <<_ACEOF | |
16911 | #define HAVE_DECL_FFS 0 | |
5464f5a1 | 16912 | _ACEOF |
252b5132 | 16913 | |
d34a2b1d | 16914 | |
252b5132 RH |
16915 | fi |
16916 | ||
d34a2b1d JG |
16917 | |
16918 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
16919 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
16920 | if test "${ac_cv_have_decl_free+set}" = set; then | |
5464f5a1 | 16921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16922 | else |
5464f5a1 NN |
16923 | cat >conftest.$ac_ext <<_ACEOF |
16924 | /* confdefs.h. */ | |
16925 | _ACEOF | |
16926 | cat confdefs.h >>conftest.$ac_ext | |
16927 | cat >>conftest.$ac_ext <<_ACEOF | |
16928 | /* end confdefs.h. */ | |
d34a2b1d | 16929 | $ac_includes_default |
5464f5a1 NN |
16930 | int |
16931 | main () | |
16932 | { | |
d34a2b1d JG |
16933 | #ifndef free |
16934 | char *p = (char *) free; | |
16935 | #endif | |
16936 | ||
5464f5a1 NN |
16937 | ; |
16938 | return 0; | |
16939 | } | |
16940 | _ACEOF | |
16941 | rm -f conftest.$ac_objext | |
16942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16943 | (eval $ac_compile) 2>conftest.er1 | |
16944 | ac_status=$? | |
16945 | grep -v '^ *+' conftest.er1 >conftest.err | |
16946 | rm -f conftest.er1 | |
16947 | cat conftest.err >&5 | |
16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16949 | (exit $ac_status); } && | |
49c96104 SE |
16950 | { ac_try='test -z "$ac_c_werror_flag" |
16951 | || test ! -s conftest.err' | |
5464f5a1 NN |
16952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16953 | (eval $ac_try) 2>&5 | |
16954 | ac_status=$? | |
16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16956 | (exit $ac_status); }; } && | |
16957 | { ac_try='test -s conftest.$ac_objext' | |
16958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16959 | (eval $ac_try) 2>&5 | |
16960 | ac_status=$? | |
16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16962 | (exit $ac_status); }; }; then | |
d34a2b1d | 16963 | ac_cv_have_decl_free=yes |
252b5132 | 16964 | else |
5464f5a1 NN |
16965 | echo "$as_me: failed program was:" >&5 |
16966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16967 | ||
d34a2b1d | 16968 | ac_cv_have_decl_free=no |
252b5132 | 16969 | fi |
5464f5a1 | 16970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 16971 | fi |
d34a2b1d JG |
16972 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
16973 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
16974 | if test $ac_cv_have_decl_free = yes; then | |
16975 | ||
16976 | cat >>confdefs.h <<_ACEOF | |
16977 | #define HAVE_DECL_FREE 1 | |
16978 | _ACEOF | |
252b5132 | 16979 | |
5464f5a1 | 16980 | |
d34a2b1d JG |
16981 | else |
16982 | cat >>confdefs.h <<_ACEOF | |
16983 | #define HAVE_DECL_FREE 0 | |
5464f5a1 | 16984 | _ACEOF |
252b5132 | 16985 | |
d34a2b1d | 16986 | |
252b5132 RH |
16987 | fi |
16988 | ||
d34a2b1d JG |
16989 | |
16990 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
16991 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
16992 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5464f5a1 | 16993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16994 | else |
5464f5a1 NN |
16995 | cat >conftest.$ac_ext <<_ACEOF |
16996 | /* confdefs.h. */ | |
16997 | _ACEOF | |
16998 | cat confdefs.h >>conftest.$ac_ext | |
16999 | cat >>conftest.$ac_ext <<_ACEOF | |
17000 | /* end confdefs.h. */ | |
d34a2b1d | 17001 | $ac_includes_default |
5464f5a1 NN |
17002 | int |
17003 | main () | |
17004 | { | |
d34a2b1d JG |
17005 | #ifndef getenv |
17006 | char *p = (char *) getenv; | |
17007 | #endif | |
17008 | ||
5464f5a1 NN |
17009 | ; |
17010 | return 0; | |
17011 | } | |
17012 | _ACEOF | |
17013 | rm -f conftest.$ac_objext | |
17014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17015 | (eval $ac_compile) 2>conftest.er1 | |
17016 | ac_status=$? | |
17017 | grep -v '^ *+' conftest.er1 >conftest.err | |
17018 | rm -f conftest.er1 | |
17019 | cat conftest.err >&5 | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); } && | |
49c96104 SE |
17022 | { ac_try='test -z "$ac_c_werror_flag" |
17023 | || test ! -s conftest.err' | |
5464f5a1 NN |
17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17025 | (eval $ac_try) 2>&5 | |
17026 | ac_status=$? | |
17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17028 | (exit $ac_status); }; } && | |
17029 | { ac_try='test -s conftest.$ac_objext' | |
17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17031 | (eval $ac_try) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); }; }; then | |
d34a2b1d | 17035 | ac_cv_have_decl_getenv=yes |
252b5132 | 17036 | else |
5464f5a1 NN |
17037 | echo "$as_me: failed program was:" >&5 |
17038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17039 | ||
d34a2b1d | 17040 | ac_cv_have_decl_getenv=no |
252b5132 | 17041 | fi |
5464f5a1 | 17042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 17043 | fi |
d34a2b1d JG |
17044 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
17045 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
17046 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 17047 | |
d34a2b1d JG |
17048 | cat >>confdefs.h <<_ACEOF |
17049 | #define HAVE_DECL_GETENV 1 | |
17050 | _ACEOF | |
5464f5a1 | 17051 | |
d34a2b1d JG |
17052 | |
17053 | else | |
17054 | cat >>confdefs.h <<_ACEOF | |
17055 | #define HAVE_DECL_GETENV 0 | |
5464f5a1 | 17056 | _ACEOF |
252b5132 | 17057 | |
d34a2b1d | 17058 | |
252b5132 RH |
17059 | fi |
17060 | ||
d34a2b1d JG |
17061 | |
17062 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
17063 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
17064 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
5464f5a1 | 17065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 17066 | else |
5464f5a1 NN |
17067 | cat >conftest.$ac_ext <<_ACEOF |
17068 | /* confdefs.h. */ | |
17069 | _ACEOF | |
17070 | cat confdefs.h >>conftest.$ac_ext | |
17071 | cat >>conftest.$ac_ext <<_ACEOF | |
17072 | /* end confdefs.h. */ | |
d34a2b1d | 17073 | $ac_includes_default |
5464f5a1 NN |
17074 | int |
17075 | main () | |
17076 | { | |
d34a2b1d JG |
17077 | #ifndef malloc |
17078 | char *p = (char *) malloc; | |
17079 | #endif | |
17080 | ||
5464f5a1 NN |
17081 | ; |
17082 | return 0; | |
17083 | } | |
17084 | _ACEOF | |
17085 | rm -f conftest.$ac_objext | |
17086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17087 | (eval $ac_compile) 2>conftest.er1 | |
17088 | ac_status=$? | |
17089 | grep -v '^ *+' conftest.er1 >conftest.err | |
17090 | rm -f conftest.er1 | |
17091 | cat conftest.err >&5 | |
17092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17093 | (exit $ac_status); } && | |
49c96104 SE |
17094 | { ac_try='test -z "$ac_c_werror_flag" |
17095 | || test ! -s conftest.err' | |
5464f5a1 NN |
17096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17097 | (eval $ac_try) 2>&5 | |
17098 | ac_status=$? | |
17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17100 | (exit $ac_status); }; } && | |
17101 | { ac_try='test -s conftest.$ac_objext' | |
17102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17103 | (eval $ac_try) 2>&5 | |
17104 | ac_status=$? | |
17105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17106 | (exit $ac_status); }; }; then | |
d34a2b1d | 17107 | ac_cv_have_decl_malloc=yes |
252b5132 | 17108 | else |
5464f5a1 NN |
17109 | echo "$as_me: failed program was:" >&5 |
17110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17111 | ||
d34a2b1d | 17112 | ac_cv_have_decl_malloc=no |
252b5132 | 17113 | fi |
5464f5a1 | 17114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 17115 | fi |
d34a2b1d JG |
17116 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
17117 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
17118 | if test $ac_cv_have_decl_malloc = yes; then | |
252b5132 | 17119 | |
d34a2b1d JG |
17120 | cat >>confdefs.h <<_ACEOF |
17121 | #define HAVE_DECL_MALLOC 1 | |
17122 | _ACEOF | |
5464f5a1 | 17123 | |
d34a2b1d JG |
17124 | |
17125 | else | |
17126 | cat >>confdefs.h <<_ACEOF | |
17127 | #define HAVE_DECL_MALLOC 0 | |
5464f5a1 | 17128 | _ACEOF |
252b5132 | 17129 | |
d34a2b1d | 17130 | |
252b5132 RH |
17131 | fi |
17132 | ||
d34a2b1d JG |
17133 | |
17134 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
17135 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
17136 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
5464f5a1 | 17137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 17138 | else |
5464f5a1 NN |
17139 | cat >conftest.$ac_ext <<_ACEOF |
17140 | /* confdefs.h. */ | |
17141 | _ACEOF | |
17142 | cat confdefs.h >>conftest.$ac_ext | |
17143 | cat >>conftest.$ac_ext <<_ACEOF | |
17144 | /* end confdefs.h. */ | |
d34a2b1d | 17145 | $ac_includes_default |
5464f5a1 NN |
17146 | int |
17147 | main () | |
17148 | { | |
d34a2b1d JG |
17149 | #ifndef realloc |
17150 | char *p = (char *) realloc; | |
17151 | #endif | |
17152 | ||
5464f5a1 NN |
17153 | ; |
17154 | return 0; | |
17155 | } | |
17156 | _ACEOF | |
17157 | rm -f conftest.$ac_objext | |
17158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17159 | (eval $ac_compile) 2>conftest.er1 | |
17160 | ac_status=$? | |
17161 | grep -v '^ *+' conftest.er1 >conftest.err | |
17162 | rm -f conftest.er1 | |
17163 | cat conftest.err >&5 | |
17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17165 | (exit $ac_status); } && | |
49c96104 SE |
17166 | { ac_try='test -z "$ac_c_werror_flag" |
17167 | || test ! -s conftest.err' | |
5464f5a1 NN |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; } && | |
17173 | { ac_try='test -s conftest.$ac_objext' | |
17174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17175 | (eval $ac_try) 2>&5 | |
17176 | ac_status=$? | |
17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17178 | (exit $ac_status); }; }; then | |
d34a2b1d | 17179 | ac_cv_have_decl_realloc=yes |
252b5132 | 17180 | else |
5464f5a1 NN |
17181 | echo "$as_me: failed program was:" >&5 |
17182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17183 | ||
d34a2b1d | 17184 | ac_cv_have_decl_realloc=no |
252b5132 | 17185 | fi |
5464f5a1 | 17186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 17187 | fi |
d34a2b1d JG |
17188 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
17189 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
17190 | if test $ac_cv_have_decl_realloc = yes; then | |
17191 | ||
17192 | cat >>confdefs.h <<_ACEOF | |
17193 | #define HAVE_DECL_REALLOC 1 | |
17194 | _ACEOF | |
252b5132 | 17195 | |
5464f5a1 | 17196 | |
d34a2b1d JG |
17197 | else |
17198 | cat >>confdefs.h <<_ACEOF | |
17199 | #define HAVE_DECL_REALLOC 0 | |
efa9bda4 AL |
17200 | _ACEOF |
17201 | ||
d34a2b1d | 17202 | |
efa9bda4 AL |
17203 | fi |
17204 | ||
d34a2b1d | 17205 | |
be5cacdb L |
17206 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
17207 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
17208 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
17209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17210 | else | |
17211 | cat >conftest.$ac_ext <<_ACEOF | |
17212 | /* confdefs.h. */ | |
17213 | _ACEOF | |
17214 | cat confdefs.h >>conftest.$ac_ext | |
17215 | cat >>conftest.$ac_ext <<_ACEOF | |
17216 | /* end confdefs.h. */ | |
17217 | $ac_includes_default | |
17218 | int | |
17219 | main () | |
17220 | { | |
17221 | #ifndef stpcpy | |
17222 | char *p = (char *) stpcpy; | |
17223 | #endif | |
17224 | ||
17225 | ; | |
17226 | return 0; | |
17227 | } | |
17228 | _ACEOF | |
17229 | rm -f conftest.$ac_objext | |
17230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17231 | (eval $ac_compile) 2>conftest.er1 | |
17232 | ac_status=$? | |
17233 | grep -v '^ *+' conftest.er1 >conftest.err | |
17234 | rm -f conftest.er1 | |
17235 | cat conftest.err >&5 | |
17236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17237 | (exit $ac_status); } && | |
49c96104 SE |
17238 | { ac_try='test -z "$ac_c_werror_flag" |
17239 | || test ! -s conftest.err' | |
be5cacdb L |
17240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17241 | (eval $ac_try) 2>&5 | |
17242 | ac_status=$? | |
17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17244 | (exit $ac_status); }; } && | |
17245 | { ac_try='test -s conftest.$ac_objext' | |
17246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17247 | (eval $ac_try) 2>&5 | |
17248 | ac_status=$? | |
17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17250 | (exit $ac_status); }; }; then | |
17251 | ac_cv_have_decl_stpcpy=yes | |
17252 | else | |
17253 | echo "$as_me: failed program was:" >&5 | |
17254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17255 | ||
17256 | ac_cv_have_decl_stpcpy=no | |
17257 | fi | |
17258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17259 | fi | |
17260 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
17261 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
17262 | if test $ac_cv_have_decl_stpcpy = yes; then | |
17263 | ||
17264 | cat >>confdefs.h <<_ACEOF | |
17265 | #define HAVE_DECL_STPCPY 1 | |
17266 | _ACEOF | |
17267 | ||
17268 | ||
17269 | else | |
17270 | cat >>confdefs.h <<_ACEOF | |
17271 | #define HAVE_DECL_STPCPY 0 | |
17272 | _ACEOF | |
17273 | ||
17274 | ||
17275 | fi | |
17276 | ||
17277 | ||
d34a2b1d JG |
17278 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
17279 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
17280 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
efa9bda4 AL |
17281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17282 | else | |
17283 | cat >conftest.$ac_ext <<_ACEOF | |
17284 | /* confdefs.h. */ | |
17285 | _ACEOF | |
17286 | cat confdefs.h >>conftest.$ac_ext | |
17287 | cat >>conftest.$ac_ext <<_ACEOF | |
17288 | /* end confdefs.h. */ | |
d34a2b1d | 17289 | $ac_includes_default |
efa9bda4 AL |
17290 | int |
17291 | main () | |
17292 | { | |
d34a2b1d JG |
17293 | #ifndef strstr |
17294 | char *p = (char *) strstr; | |
17295 | #endif | |
17296 | ||
efa9bda4 AL |
17297 | ; |
17298 | return 0; | |
17299 | } | |
17300 | _ACEOF | |
17301 | rm -f conftest.$ac_objext | |
17302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17303 | (eval $ac_compile) 2>conftest.er1 | |
17304 | ac_status=$? | |
17305 | grep -v '^ *+' conftest.er1 >conftest.err | |
17306 | rm -f conftest.er1 | |
17307 | cat conftest.err >&5 | |
17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17309 | (exit $ac_status); } && | |
49c96104 SE |
17310 | { ac_try='test -z "$ac_c_werror_flag" |
17311 | || test ! -s conftest.err' | |
efa9bda4 AL |
17312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17313 | (eval $ac_try) 2>&5 | |
17314 | ac_status=$? | |
17315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17316 | (exit $ac_status); }; } && | |
17317 | { ac_try='test -s conftest.$ac_objext' | |
17318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17319 | (eval $ac_try) 2>&5 | |
17320 | ac_status=$? | |
17321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17322 | (exit $ac_status); }; }; then | |
d34a2b1d | 17323 | ac_cv_have_decl_strstr=yes |
efa9bda4 AL |
17324 | else |
17325 | echo "$as_me: failed program was:" >&5 | |
17326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17327 | ||
d34a2b1d | 17328 | ac_cv_have_decl_strstr=no |
efa9bda4 AL |
17329 | fi |
17330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17331 | fi | |
d34a2b1d JG |
17332 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
17333 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
17334 | if test $ac_cv_have_decl_strstr = yes; then | |
efa9bda4 | 17335 | |
d34a2b1d JG |
17336 | cat >>confdefs.h <<_ACEOF |
17337 | #define HAVE_DECL_STRSTR 1 | |
17338 | _ACEOF | |
efa9bda4 | 17339 | |
d34a2b1d JG |
17340 | |
17341 | else | |
17342 | cat >>confdefs.h <<_ACEOF | |
17343 | #define HAVE_DECL_STRSTR 0 | |
5464f5a1 | 17344 | _ACEOF |
252b5132 | 17345 | |
d34a2b1d | 17346 | |
252b5132 RH |
17347 | fi |
17348 | ||
6be7c12c | 17349 | |
36527912 AJ |
17350 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
17351 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
17352 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
17353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17354 | else | |
17355 | cat >conftest.$ac_ext <<_ACEOF | |
17356 | /* confdefs.h. */ | |
17357 | _ACEOF | |
17358 | cat confdefs.h >>conftest.$ac_ext | |
17359 | cat >>conftest.$ac_ext <<_ACEOF | |
17360 | /* end confdefs.h. */ | |
17361 | $ac_includes_default | |
17362 | int | |
17363 | main () | |
17364 | { | |
17365 | #ifndef snprintf | |
17366 | char *p = (char *) snprintf; | |
17367 | #endif | |
17368 | ||
17369 | ; | |
17370 | return 0; | |
17371 | } | |
17372 | _ACEOF | |
17373 | rm -f conftest.$ac_objext | |
17374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17375 | (eval $ac_compile) 2>conftest.er1 | |
17376 | ac_status=$? | |
17377 | grep -v '^ *+' conftest.er1 >conftest.err | |
17378 | rm -f conftest.er1 | |
17379 | cat conftest.err >&5 | |
17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17381 | (exit $ac_status); } && | |
49c96104 SE |
17382 | { ac_try='test -z "$ac_c_werror_flag" |
17383 | || test ! -s conftest.err' | |
36527912 AJ |
17384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17385 | (eval $ac_try) 2>&5 | |
17386 | ac_status=$? | |
17387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17388 | (exit $ac_status); }; } && | |
17389 | { ac_try='test -s conftest.$ac_objext' | |
17390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17391 | (eval $ac_try) 2>&5 | |
17392 | ac_status=$? | |
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17394 | (exit $ac_status); }; }; then | |
17395 | ac_cv_have_decl_snprintf=yes | |
17396 | else | |
17397 | echo "$as_me: failed program was:" >&5 | |
17398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17399 | ||
17400 | ac_cv_have_decl_snprintf=no | |
17401 | fi | |
17402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17403 | fi | |
17404 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
17405 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
17406 | if test $ac_cv_have_decl_snprintf = yes; then | |
17407 | ||
17408 | cat >>confdefs.h <<_ACEOF | |
17409 | #define HAVE_DECL_SNPRINTF 1 | |
17410 | _ACEOF | |
17411 | ||
17412 | ||
17413 | else | |
17414 | cat >>confdefs.h <<_ACEOF | |
17415 | #define HAVE_DECL_SNPRINTF 0 | |
17416 | _ACEOF | |
17417 | ||
17418 | ||
17419 | fi | |
17420 | ||
17421 | ||
17422 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
17423 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
17424 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
17425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17426 | else | |
17427 | cat >conftest.$ac_ext <<_ACEOF | |
17428 | /* confdefs.h. */ | |
17429 | _ACEOF | |
17430 | cat confdefs.h >>conftest.$ac_ext | |
17431 | cat >>conftest.$ac_ext <<_ACEOF | |
17432 | /* end confdefs.h. */ | |
17433 | $ac_includes_default | |
17434 | int | |
17435 | main () | |
17436 | { | |
17437 | #ifndef vsnprintf | |
17438 | char *p = (char *) vsnprintf; | |
17439 | #endif | |
17440 | ||
17441 | ; | |
17442 | return 0; | |
17443 | } | |
17444 | _ACEOF | |
17445 | rm -f conftest.$ac_objext | |
17446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17447 | (eval $ac_compile) 2>conftest.er1 | |
17448 | ac_status=$? | |
17449 | grep -v '^ *+' conftest.er1 >conftest.err | |
17450 | rm -f conftest.er1 | |
17451 | cat conftest.err >&5 | |
17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17453 | (exit $ac_status); } && | |
49c96104 SE |
17454 | { ac_try='test -z "$ac_c_werror_flag" |
17455 | || test ! -s conftest.err' | |
36527912 AJ |
17456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17457 | (eval $ac_try) 2>&5 | |
17458 | ac_status=$? | |
17459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17460 | (exit $ac_status); }; } && | |
17461 | { ac_try='test -s conftest.$ac_objext' | |
17462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17463 | (eval $ac_try) 2>&5 | |
17464 | ac_status=$? | |
17465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17466 | (exit $ac_status); }; }; then | |
17467 | ac_cv_have_decl_vsnprintf=yes | |
17468 | else | |
17469 | echo "$as_me: failed program was:" >&5 | |
17470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17471 | ||
17472 | ac_cv_have_decl_vsnprintf=no | |
17473 | fi | |
17474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17475 | fi | |
17476 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
17477 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
17478 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
17479 | ||
17480 | cat >>confdefs.h <<_ACEOF | |
17481 | #define HAVE_DECL_VSNPRINTF 1 | |
17482 | _ACEOF | |
17483 | ||
17484 | ||
17485 | else | |
17486 | cat >>confdefs.h <<_ACEOF | |
17487 | #define HAVE_DECL_VSNPRINTF 0 | |
17488 | _ACEOF | |
17489 | ||
17490 | ||
17491 | fi | |
17492 | ||
17493 | ||
d34a2b1d | 17494 | |
252b5132 RH |
17495 | # If we are configured native, pick a core file support file. |
17496 | COREFILE= | |
17497 | COREFLAG= | |
17498 | TRAD_HEADER= | |
17499 | if test "${target}" = "${host}"; then | |
17500 | case "${host}" in | |
13dfd2d0 | 17501 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
17502 | COREFILE='' |
17503 | ;; | |
ed84e695 | 17504 | alpha*-*-linux-*) |
252b5132 RH |
17505 | COREFILE=trad-core.lo |
17506 | TRAD_HEADER='"hosts/alphalinux.h"' | |
17507 | ;; | |
690cc98b NC |
17508 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
17509 | COREFILE=netbsd-core.lo | |
17510 | ;; | |
252b5132 | 17511 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
17512 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
17513 | COREFILE='' ;; | |
e33533a4 MK |
17514 | arm-*-netbsd* | arm-*-openbsd*) |
17515 | COREFILE=netbsd-core.lo | |
17516 | ;; | |
252b5132 RH |
17517 | arm-*-riscix) COREFILE=trad-core.lo ;; |
17518 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
17519 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
17520 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
17521 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
17522 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
17523 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
17524 | COREFILE=netbsd-core.lo | |
17525 | ;; | |
17526 | ||
dc810e39 | 17527 | i370-*-*) |
5b93d8bb AM |
17528 | COREFILE=trad-core.lo |
17529 | TRAD_HEADER='"hosts/i370linux.h"' | |
17530 | ;; | |
17531 | ||
80c7c40a | 17532 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 17533 | COREFILE=trad-core.lo |
252b5132 RH |
17534 | TRAD_HEADER='"hosts/symmetry.h"' |
17535 | ;; | |
80c7c40a NC |
17536 | i[3-7]86-sequent-sysv4*) ;; |
17537 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
17538 | COREFILE=trad-core.lo |
17539 | TRAD_HEADER='"hosts/symmetry.h"' | |
17540 | ;; | |
80c7c40a | 17541 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
17542 | COREFILE= |
17543 | ;; | |
d2bef492 | 17544 | i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*) |
252b5132 RH |
17545 | COREFILE=trad-core.lo |
17546 | TRAD_HEADER='"hosts/i386bsd.h"' | |
17547 | ;; | |
0b3e17e9 | 17548 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) |
d4af9775 DB |
17549 | COREFILE='' |
17550 | TRAD_HEADER='"hosts/i386bsd.h"' | |
17551 | ;; | |
4615568e | 17552 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
17553 | COREFILE=netbsd-core.lo |
17554 | ;; | |
80c7c40a | 17555 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
17556 | COREFILE=trad-core.lo |
17557 | TRAD_HEADER='"hosts/esix.h"' | |
17558 | ;; | |
80c7c40a | 17559 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
17560 | COREFILE=sco5-core.lo |
17561 | ;; | |
80c7c40a | 17562 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
17563 | COREFILE=trad-core.lo |
17564 | TRAD_HEADER='"hosts/i386sco.h"' | |
17565 | ;; | |
80c7c40a | 17566 | i[3-7]86-*-mach3*) |
252b5132 RH |
17567 | COREFILE=trad-core.lo |
17568 | TRAD_HEADER='"hosts/i386mach3.h"' | |
17569 | ;; | |
ed84e695 | 17570 | i[3-7]86-*-linux-*) |
252b5132 RH |
17571 | COREFILE=trad-core.lo |
17572 | TRAD_HEADER='"hosts/i386linux.h"' | |
17573 | ;; | |
80c7c40a NC |
17574 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
17575 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
17576 | i860-*-mach3* | i860-*-osf1*) |
17577 | COREFILE=trad-core.lo | |
17578 | TRAD_HEADER='"hosts/i860mach3.h"' | |
17579 | ;; | |
252b5132 RH |
17580 | mips-*-netbsd* | mips*-*-openbsd*) |
17581 | COREFILE=netbsd-core.lo | |
17582 | ;; | |
17583 | mips-dec-*) | |
17584 | COREFILE=trad-core.lo | |
17585 | TRAD_HEADER='"hosts/decstation.h"' | |
17586 | ;; | |
17587 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
17588 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
17589 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
17590 | mips-*-sysv4*) ;; |
17591 | mips-*-sysv* | mips-*-riscos*) | |
17592 | COREFILE=trad-core.lo | |
17593 | TRAD_HEADER='"hosts/riscos.h"' | |
17594 | ;; | |
17595 | mips-sony-bsd*) | |
17596 | COREFILE=trad-core.lo | |
17597 | TRAD_HEADER='"hosts/news-mips.h"' | |
17598 | ;; | |
17599 | m68*-bull*-sysv*) | |
17600 | COREFILE=trad-core.lo | |
17601 | TRAD_HEADER='"hosts/dpx2.h"' | |
17602 | ;; | |
17603 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
17604 | m68*-hp-bsd*) | |
17605 | COREFILE=trad-core.lo | |
17606 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
17607 | ;; | |
ed84e695 | 17608 | m68*-*-linux-*) |
252b5132 RH |
17609 | COREFILE=trad-core.lo |
17610 | TRAD_HEADER='"hosts/m68klinux.h"' | |
17611 | ;; | |
17612 | m68*-motorola-sysv*) | |
17613 | COREFILE=trad-core.lo | |
17614 | TRAD_HEADER='"hosts/delta68.h"' | |
17615 | ;; | |
17616 | m68*-sony-*) | |
17617 | COREFILE=trad-core.lo | |
17618 | TRAD_HEADER='"hosts/news.h"' | |
17619 | ;; | |
17620 | m68*-*-netbsd* | m68*-*-openbsd*) | |
17621 | COREFILE=netbsd-core.lo | |
17622 | ;; | |
17623 | m68*-apple-aux*) | |
17624 | COREFILE=trad-core.lo | |
17625 | TRAD_HEADER='"hosts/m68kaux.h"' | |
17626 | ;; | |
eb1e0e80 NC |
17627 | m88*-*-sysv4*) |
17628 | ;; | |
17629 | m88*-motorola-sysv*) | |
17630 | COREFILE=ptrace-core.lo | |
17631 | ;; | |
252b5132 RH |
17632 | m88*-*-mach3*) |
17633 | COREFILE=trad-core.lo | |
17634 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
17635 | ;; | |
c6f8758f NC |
17636 | m88*-*-openbsd*) |
17637 | COREFILE=netbsd-core.lo | |
17638 | ;; | |
252b5132 RH |
17639 | ns32k-pc532-mach) |
17640 | COREFILE=trad-core.lo | |
17641 | TRAD_HEADER='"hosts/pc532mach.h"' | |
17642 | ;; | |
17643 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
17644 | COREFILE=netbsd-core.lo | |
17645 | ;; | |
eb1e0e80 NC |
17646 | rs6000-*-lynx*) |
17647 | COREFILE=lynx-core.lo | |
17648 | ;; | |
17649 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
17650 | COREFILE=rs6000-core.lo | |
17651 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
17652 | ;; | |
83954261 | 17653 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
17654 | COREFILE=rs6000-core.lo |
17655 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
17656 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
17657 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
17658 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
17659 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
17660 | cat >conftest.$ac_ext <<_ACEOF | |
17661 | /* confdefs.h. */ | |
17662 | _ACEOF | |
17663 | cat confdefs.h >>conftest.$ac_ext | |
17664 | cat >>conftest.$ac_ext <<_ACEOF | |
17665 | /* end confdefs.h. */ | |
83954261 | 17666 | #include <core.h> |
5464f5a1 NN |
17667 | int |
17668 | main () | |
17669 | { | |
83954261 | 17670 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
17671 | ; |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest.$ac_objext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17677 | (eval $ac_compile) 2>conftest.er1 | |
17678 | ac_status=$? | |
17679 | grep -v '^ *+' conftest.er1 >conftest.err | |
17680 | rm -f conftest.er1 | |
17681 | cat conftest.err >&5 | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); } && | |
49c96104 SE |
17684 | { ac_try='test -z "$ac_c_werror_flag" |
17685 | || test ! -s conftest.err' | |
5464f5a1 NN |
17686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17687 | (eval $ac_try) 2>&5 | |
17688 | ac_status=$? | |
17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17690 | (exit $ac_status); }; } && | |
17691 | { ac_try='test -s conftest.$ac_objext' | |
17692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17693 | (eval $ac_try) 2>&5 | |
17694 | ac_status=$? | |
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17696 | (exit $ac_status); }; }; then | |
17697 | ||
17698 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 17699 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 17700 | _ACEOF |
83954261 | 17701 | |
5464f5a1 NN |
17702 | echo "$as_me:$LINENO: result: yes" >&5 |
17703 | echo "${ECHO_T}yes" >&6 | |
83954261 | 17704 | else |
5464f5a1 NN |
17705 | echo "$as_me: failed program was:" >&5 |
17706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17707 | ||
17708 | echo "$as_me:$LINENO: result: no" >&5 | |
17709 | echo "${ECHO_T}no" >&6 | |
83954261 | 17710 | fi |
5464f5a1 | 17711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 17712 | ;; |
252b5132 RH |
17713 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
17714 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
17715 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
17716 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
17717 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
17718 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
17719 | COREFILE='' ;; | |
252b5132 | 17720 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 17721 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 17722 | s390*-*-*) COREFILE=trad-core.lo ;; |
a38b2659 MK |
17723 | sh*-*-netbsd* | sh*-*-openbsd*) |
17724 | COREFILE=netbsd-core.lo | |
17725 | ;; | |
a9bf1154 | 17726 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
17727 | COREFILE=netbsd-core.lo |
17728 | ;; | |
17729 | tahoe-*-*) | |
17730 | COREFILE=trad-core.lo | |
17731 | TRAD_HEADER='"hosts/tahoe.h"' | |
17732 | ;; | |
de6e5e1a NC |
17733 | vax-*-netbsd* | vax-*-openbsd*) |
17734 | COREFILE=netbsd-core.lo | |
17735 | ;; | |
252b5132 RH |
17736 | vax-*-ultrix2*) |
17737 | COREFILE=trad-core.lo | |
17738 | TRAD_HEADER='"hosts/vaxult2.h"' | |
17739 | ;; | |
17740 | vax-*-ultrix*) | |
17741 | COREFILE=trad-core.lo | |
17742 | TRAD_HEADER='"hosts/vaxult2.h"' | |
17743 | ;; | |
ed84e695 | 17744 | vax-*-linux-*) |
f8fc3443 NC |
17745 | COREFILE=trad-core.lo |
17746 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
17747 | ;; | |
252b5132 RH |
17748 | vax-*-*) |
17749 | COREFILE=trad-core.lo | |
17750 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
17751 | ;; | |
85cfd8d3 MK |
17752 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
17753 | COREFILE=netbsd-core.lo | |
17754 | ;; | |
252b5132 RH |
17755 | esac |
17756 | ||
17757 | case "$COREFILE" in | |
17758 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
17759 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
17760 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
17761 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
17762 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
17763 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
17764 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
17765 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
17766 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
17767 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
17768 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
17769 | esac | |
17770 | ||
17771 | # ELF corefile support has several flavors, but all of | |
17772 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
17773 | |
17774 | for ac_header in sys/procfs.h | |
252b5132 | 17775 | do |
5464f5a1 NN |
17776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17782 | fi | |
17783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17785 | else | |
17786 | # Is the header compilable? | |
17787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17789 | cat >conftest.$ac_ext <<_ACEOF | |
17790 | /* confdefs.h. */ | |
17791 | _ACEOF | |
17792 | cat confdefs.h >>conftest.$ac_ext | |
17793 | cat >>conftest.$ac_ext <<_ACEOF | |
17794 | /* end confdefs.h. */ | |
17795 | $ac_includes_default | |
17796 | #include <$ac_header> | |
17797 | _ACEOF | |
17798 | rm -f conftest.$ac_objext | |
17799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17800 | (eval $ac_compile) 2>conftest.er1 | |
17801 | ac_status=$? | |
17802 | grep -v '^ *+' conftest.er1 >conftest.err | |
17803 | rm -f conftest.er1 | |
17804 | cat conftest.err >&5 | |
17805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17806 | (exit $ac_status); } && | |
49c96104 SE |
17807 | { ac_try='test -z "$ac_c_werror_flag" |
17808 | || test ! -s conftest.err' | |
5464f5a1 NN |
17809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17810 | (eval $ac_try) 2>&5 | |
17811 | ac_status=$? | |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17813 | (exit $ac_status); }; } && | |
17814 | { ac_try='test -s conftest.$ac_objext' | |
17815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17816 | (eval $ac_try) 2>&5 | |
17817 | ac_status=$? | |
17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17819 | (exit $ac_status); }; }; then | |
17820 | ac_header_compiler=yes | |
17821 | else | |
17822 | echo "$as_me: failed program was:" >&5 | |
17823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17824 | ||
17825 | ac_header_compiler=no | |
17826 | fi | |
17827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17828 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17829 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17830 | ||
17831 | # Is the header present? | |
17832 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17834 | cat >conftest.$ac_ext <<_ACEOF | |
17835 | /* confdefs.h. */ | |
17836 | _ACEOF | |
17837 | cat confdefs.h >>conftest.$ac_ext | |
17838 | cat >>conftest.$ac_ext <<_ACEOF | |
17839 | /* end confdefs.h. */ | |
17840 | #include <$ac_header> | |
17841 | _ACEOF | |
17842 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17843 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17844 | ac_status=$? | |
17845 | grep -v '^ *+' conftest.er1 >conftest.err | |
17846 | rm -f conftest.er1 | |
17847 | cat conftest.err >&5 | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); } >/dev/null; then | |
17850 | if test -s conftest.err; then | |
17851 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
17853 | else | |
17854 | ac_cpp_err= | |
17855 | fi | |
252b5132 | 17856 | else |
5464f5a1 | 17857 | ac_cpp_err=yes |
252b5132 | 17858 | fi |
5464f5a1 NN |
17859 | if test -z "$ac_cpp_err"; then |
17860 | ac_header_preproc=yes | |
17861 | else | |
17862 | echo "$as_me: failed program was:" >&5 | |
17863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17864 | ||
17865 | ac_header_preproc=no | |
252b5132 | 17866 | fi |
5464f5a1 NN |
17867 | rm -f conftest.err conftest.$ac_ext |
17868 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17869 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17870 | ||
17871 | # So? What about this header? | |
17872 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17873 | yes:no: ) | |
17874 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17875 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17877 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17878 | ac_header_preproc=yes | |
17879 | ;; | |
17880 | no:yes:* ) | |
17881 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17882 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17883 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17884 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17885 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17886 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17887 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17888 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17891 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17892 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17893 | ( | |
17894 | cat <<\_ASBOX | |
17895 | ## ------------------------------------------ ## | |
17896 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17897 | ## ------------------------------------------ ## | |
17898 | _ASBOX | |
17899 | ) | | |
17900 | sed "s/^/$as_me: WARNING: /" >&2 | |
17901 | ;; | |
17902 | esac | |
17903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 17907 | else |
5464f5a1 NN |
17908 | eval "$as_ac_Header=\$ac_header_preproc" |
17909 | fi | |
17910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17912 | ||
252b5132 | 17913 | fi |
5464f5a1 NN |
17914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17915 | cat >>confdefs.h <<_ACEOF | |
17916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17917 | _ACEOF | |
17918 | ||
17919 | fi | |
17920 | ||
252b5132 RH |
17921 | done |
17922 | ||
17923 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
17924 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
17925 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
17926 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
17927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17928 | else | |
17929 | cat >conftest.$ac_ext <<_ACEOF | |
17930 | /* confdefs.h. */ | |
17931 | _ACEOF | |
17932 | cat confdefs.h >>conftest.$ac_ext | |
17933 | cat >>conftest.$ac_ext <<_ACEOF | |
17934 | /* end confdefs.h. */ | |
7ee38065 MS |
17935 | |
17936 | #define _SYSCALL32 | |
252b5132 | 17937 | #include <sys/procfs.h> |
5464f5a1 NN |
17938 | int |
17939 | main () | |
17940 | { | |
252b5132 | 17941 | prstatus_t avar |
5464f5a1 NN |
17942 | ; |
17943 | return 0; | |
17944 | } | |
17945 | _ACEOF | |
17946 | rm -f conftest.$ac_objext | |
17947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17948 | (eval $ac_compile) 2>conftest.er1 | |
17949 | ac_status=$? | |
17950 | grep -v '^ *+' conftest.er1 >conftest.err | |
17951 | rm -f conftest.er1 | |
17952 | cat conftest.err >&5 | |
17953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17954 | (exit $ac_status); } && | |
49c96104 SE |
17955 | { ac_try='test -z "$ac_c_werror_flag" |
17956 | || test ! -s conftest.err' | |
5464f5a1 NN |
17957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17958 | (eval $ac_try) 2>&5 | |
17959 | ac_status=$? | |
17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17961 | (exit $ac_status); }; } && | |
17962 | { ac_try='test -s conftest.$ac_objext' | |
17963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17964 | (eval $ac_try) 2>&5 | |
17965 | ac_status=$? | |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17967 | (exit $ac_status); }; }; then | |
252b5132 RH |
17968 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
17969 | else | |
5464f5a1 NN |
17970 | echo "$as_me: failed program was:" >&5 |
17971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17972 | ||
17973 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
17974 | ||
252b5132 | 17975 | fi |
5464f5a1 | 17976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
17977 | fi |
17978 | ||
17979 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
17980 | |
17981 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 17982 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 17983 | _ACEOF |
252b5132 RH |
17984 | |
17985 | fi | |
5464f5a1 NN |
17986 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
17987 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 17988 | |
5464f5a1 NN |
17989 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
17990 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
17991 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
17992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 17993 | else |
5464f5a1 NN |
17994 | cat >conftest.$ac_ext <<_ACEOF |
17995 | /* confdefs.h. */ | |
17996 | _ACEOF | |
17997 | cat confdefs.h >>conftest.$ac_ext | |
17998 | cat >>conftest.$ac_ext <<_ACEOF | |
17999 | /* end confdefs.h. */ | |
7ee38065 MS |
18000 | |
18001 | #define _SYSCALL32 | |
18002 | #include <sys/procfs.h> | |
5464f5a1 NN |
18003 | int |
18004 | main () | |
18005 | { | |
7ee38065 | 18006 | prstatus32_t avar |
5464f5a1 NN |
18007 | ; |
18008 | return 0; | |
18009 | } | |
18010 | _ACEOF | |
18011 | rm -f conftest.$ac_objext | |
18012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18013 | (eval $ac_compile) 2>conftest.er1 | |
18014 | ac_status=$? | |
18015 | grep -v '^ *+' conftest.er1 >conftest.err | |
18016 | rm -f conftest.er1 | |
18017 | cat conftest.err >&5 | |
18018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18019 | (exit $ac_status); } && | |
49c96104 SE |
18020 | { ac_try='test -z "$ac_c_werror_flag" |
18021 | || test ! -s conftest.err' | |
5464f5a1 NN |
18022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18023 | (eval $ac_try) 2>&5 | |
18024 | ac_status=$? | |
18025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18026 | (exit $ac_status); }; } && | |
18027 | { ac_try='test -s conftest.$ac_objext' | |
18028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18029 | (eval $ac_try) 2>&5 | |
18030 | ac_status=$? | |
18031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18032 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18033 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
18034 | else | |
5464f5a1 NN |
18035 | echo "$as_me: failed program was:" >&5 |
18036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18037 | ||
18038 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
18039 | ||
7ee38065 | 18040 | fi |
5464f5a1 | 18041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18042 | fi |
18043 | ||
18044 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
18045 | |
18046 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18047 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 18048 | _ACEOF |
7ee38065 MS |
18049 | |
18050 | fi | |
5464f5a1 NN |
18051 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
18052 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 18053 | |
5464f5a1 NN |
18054 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
18055 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
18056 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
18057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18058 | else |
5464f5a1 NN |
18059 | cat >conftest.$ac_ext <<_ACEOF |
18060 | /* confdefs.h. */ | |
18061 | _ACEOF | |
18062 | cat confdefs.h >>conftest.$ac_ext | |
18063 | cat >>conftest.$ac_ext <<_ACEOF | |
18064 | /* end confdefs.h. */ | |
7ee38065 MS |
18065 | |
18066 | #define _SYSCALL32 | |
252b5132 | 18067 | #include <sys/procfs.h> |
5464f5a1 NN |
18068 | int |
18069 | main () | |
18070 | { | |
252b5132 | 18071 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
18072 | ; |
18073 | return 0; | |
18074 | } | |
18075 | _ACEOF | |
18076 | rm -f conftest.$ac_objext | |
18077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18078 | (eval $ac_compile) 2>conftest.er1 | |
18079 | ac_status=$? | |
18080 | grep -v '^ *+' conftest.er1 >conftest.err | |
18081 | rm -f conftest.er1 | |
18082 | cat conftest.err >&5 | |
18083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18084 | (exit $ac_status); } && | |
49c96104 SE |
18085 | { ac_try='test -z "$ac_c_werror_flag" |
18086 | || test ! -s conftest.err' | |
5464f5a1 NN |
18087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18088 | (eval $ac_try) 2>&5 | |
18089 | ac_status=$? | |
18090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18091 | (exit $ac_status); }; } && | |
18092 | { ac_try='test -s conftest.$ac_objext' | |
18093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18094 | (eval $ac_try) 2>&5 | |
18095 | ac_status=$? | |
18096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18097 | (exit $ac_status); }; }; then | |
252b5132 RH |
18098 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
18099 | else | |
5464f5a1 NN |
18100 | echo "$as_me: failed program was:" >&5 |
18101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18102 | ||
18103 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
18104 | ||
252b5132 | 18105 | fi |
5464f5a1 | 18106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18107 | fi |
18108 | ||
18109 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
18110 | |
18111 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18112 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 18113 | _ACEOF |
252b5132 RH |
18114 | |
18115 | fi | |
5464f5a1 NN |
18116 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
18117 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 18118 | |
5464f5a1 NN |
18119 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
18120 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
18121 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18123 | else |
5464f5a1 NN |
18124 | cat >conftest.$ac_ext <<_ACEOF |
18125 | /* confdefs.h. */ | |
18126 | _ACEOF | |
18127 | cat confdefs.h >>conftest.$ac_ext | |
18128 | cat >>conftest.$ac_ext <<_ACEOF | |
18129 | /* end confdefs.h. */ | |
7ee38065 MS |
18130 | |
18131 | #define _SYSCALL32 | |
18132 | #include <sys/procfs.h> | |
5464f5a1 NN |
18133 | int |
18134 | main () | |
18135 | { | |
7ee38065 | 18136 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
18137 | ; |
18138 | return 0; | |
18139 | } | |
18140 | _ACEOF | |
18141 | rm -f conftest.$ac_objext | |
18142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18143 | (eval $ac_compile) 2>conftest.er1 | |
18144 | ac_status=$? | |
18145 | grep -v '^ *+' conftest.er1 >conftest.err | |
18146 | rm -f conftest.er1 | |
18147 | cat conftest.err >&5 | |
18148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18149 | (exit $ac_status); } && | |
49c96104 SE |
18150 | { ac_try='test -z "$ac_c_werror_flag" |
18151 | || test ! -s conftest.err' | |
5464f5a1 NN |
18152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18153 | (eval $ac_try) 2>&5 | |
18154 | ac_status=$? | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); }; } && | |
18157 | { ac_try='test -s conftest.$ac_objext' | |
18158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18159 | (eval $ac_try) 2>&5 | |
18160 | ac_status=$? | |
18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18162 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18163 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
18164 | else | |
5464f5a1 NN |
18165 | echo "$as_me: failed program was:" >&5 |
18166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18167 | ||
18168 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
18169 | ||
7ee38065 | 18170 | fi |
5464f5a1 | 18171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18172 | fi |
18173 | ||
18174 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
18175 | |
18176 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18177 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 18178 | _ACEOF |
7ee38065 MS |
18179 | |
18180 | fi | |
5464f5a1 NN |
18181 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
18182 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 18183 | |
5464f5a1 NN |
18184 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
18185 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18186 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
18187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18188 | else |
5464f5a1 NN |
18189 | cat >conftest.$ac_ext <<_ACEOF |
18190 | /* confdefs.h. */ | |
18191 | _ACEOF | |
18192 | cat confdefs.h >>conftest.$ac_ext | |
18193 | cat >>conftest.$ac_ext <<_ACEOF | |
18194 | /* end confdefs.h. */ | |
7ee38065 MS |
18195 | |
18196 | #define _SYSCALL32 | |
252b5132 | 18197 | #include <sys/procfs.h> |
5464f5a1 NN |
18198 | int |
18199 | main () | |
18200 | { | |
252b5132 | 18201 | pstatus_t avar |
5464f5a1 NN |
18202 | ; |
18203 | return 0; | |
18204 | } | |
18205 | _ACEOF | |
18206 | rm -f conftest.$ac_objext | |
18207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18208 | (eval $ac_compile) 2>conftest.er1 | |
18209 | ac_status=$? | |
18210 | grep -v '^ *+' conftest.er1 >conftest.err | |
18211 | rm -f conftest.er1 | |
18212 | cat conftest.err >&5 | |
18213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18214 | (exit $ac_status); } && | |
49c96104 SE |
18215 | { ac_try='test -z "$ac_c_werror_flag" |
18216 | || test ! -s conftest.err' | |
5464f5a1 NN |
18217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18218 | (eval $ac_try) 2>&5 | |
18219 | ac_status=$? | |
18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18221 | (exit $ac_status); }; } && | |
18222 | { ac_try='test -s conftest.$ac_objext' | |
18223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18224 | (eval $ac_try) 2>&5 | |
18225 | ac_status=$? | |
18226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18227 | (exit $ac_status); }; }; then | |
252b5132 RH |
18228 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
18229 | else | |
5464f5a1 NN |
18230 | echo "$as_me: failed program was:" >&5 |
18231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18232 | ||
18233 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
18234 | ||
252b5132 | 18235 | fi |
5464f5a1 | 18236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18237 | fi |
18238 | ||
18239 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
18240 | |
18241 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18242 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 18243 | _ACEOF |
252b5132 RH |
18244 | |
18245 | fi | |
5464f5a1 NN |
18246 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
18247 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 18248 | |
5464f5a1 NN |
18249 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
18250 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18251 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
18252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 18253 | else |
5464f5a1 NN |
18254 | cat >conftest.$ac_ext <<_ACEOF |
18255 | /* confdefs.h. */ | |
18256 | _ACEOF | |
18257 | cat confdefs.h >>conftest.$ac_ext | |
18258 | cat >>conftest.$ac_ext <<_ACEOF | |
18259 | /* end confdefs.h. */ | |
f572a39d AM |
18260 | |
18261 | #define _SYSCALL32 | |
18262 | #include <sys/procfs.h> | |
5464f5a1 NN |
18263 | int |
18264 | main () | |
18265 | { | |
f572a39d | 18266 | pxstatus_t avar |
5464f5a1 NN |
18267 | ; |
18268 | return 0; | |
18269 | } | |
18270 | _ACEOF | |
18271 | rm -f conftest.$ac_objext | |
18272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18273 | (eval $ac_compile) 2>conftest.er1 | |
18274 | ac_status=$? | |
18275 | grep -v '^ *+' conftest.er1 >conftest.err | |
18276 | rm -f conftest.er1 | |
18277 | cat conftest.err >&5 | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); } && | |
49c96104 SE |
18280 | { ac_try='test -z "$ac_c_werror_flag" |
18281 | || test ! -s conftest.err' | |
5464f5a1 NN |
18282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18283 | (eval $ac_try) 2>&5 | |
18284 | ac_status=$? | |
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18286 | (exit $ac_status); }; } && | |
18287 | { ac_try='test -s conftest.$ac_objext' | |
18288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18289 | (eval $ac_try) 2>&5 | |
18290 | ac_status=$? | |
18291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18292 | (exit $ac_status); }; }; then | |
f572a39d AM |
18293 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
18294 | else | |
5464f5a1 NN |
18295 | echo "$as_me: failed program was:" >&5 |
18296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18297 | ||
18298 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
18299 | ||
f572a39d | 18300 | fi |
5464f5a1 | 18301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
18302 | fi |
18303 | ||
18304 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
18305 | |
18306 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 18307 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 18308 | _ACEOF |
f572a39d AM |
18309 | |
18310 | fi | |
5464f5a1 NN |
18311 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
18312 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 18313 | |
5464f5a1 NN |
18314 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
18315 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
18316 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
18317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18318 | else |
5464f5a1 NN |
18319 | cat >conftest.$ac_ext <<_ACEOF |
18320 | /* confdefs.h. */ | |
18321 | _ACEOF | |
18322 | cat confdefs.h >>conftest.$ac_ext | |
18323 | cat >>conftest.$ac_ext <<_ACEOF | |
18324 | /* end confdefs.h. */ | |
7ee38065 MS |
18325 | |
18326 | #define _SYSCALL32 | |
18327 | #include <sys/procfs.h> | |
5464f5a1 NN |
18328 | int |
18329 | main () | |
18330 | { | |
7ee38065 | 18331 | pstatus32_t avar |
5464f5a1 NN |
18332 | ; |
18333 | return 0; | |
18334 | } | |
18335 | _ACEOF | |
18336 | rm -f conftest.$ac_objext | |
18337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18338 | (eval $ac_compile) 2>conftest.er1 | |
18339 | ac_status=$? | |
18340 | grep -v '^ *+' conftest.er1 >conftest.err | |
18341 | rm -f conftest.er1 | |
18342 | cat conftest.err >&5 | |
18343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18344 | (exit $ac_status); } && | |
49c96104 SE |
18345 | { ac_try='test -z "$ac_c_werror_flag" |
18346 | || test ! -s conftest.err' | |
5464f5a1 NN |
18347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18348 | (eval $ac_try) 2>&5 | |
18349 | ac_status=$? | |
18350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18351 | (exit $ac_status); }; } && | |
18352 | { ac_try='test -s conftest.$ac_objext' | |
18353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18354 | (eval $ac_try) 2>&5 | |
18355 | ac_status=$? | |
18356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18357 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18358 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
18359 | else | |
5464f5a1 NN |
18360 | echo "$as_me: failed program was:" >&5 |
18361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18362 | ||
18363 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
18364 | ||
7ee38065 | 18365 | fi |
5464f5a1 | 18366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18367 | fi |
18368 | ||
18369 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
18370 | |
18371 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18372 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 18373 | _ACEOF |
7ee38065 MS |
18374 | |
18375 | fi | |
5464f5a1 NN |
18376 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
18377 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 18378 | |
5464f5a1 NN |
18379 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
18380 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
18381 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
18382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18383 | else |
5464f5a1 NN |
18384 | cat >conftest.$ac_ext <<_ACEOF |
18385 | /* confdefs.h. */ | |
18386 | _ACEOF | |
18387 | cat confdefs.h >>conftest.$ac_ext | |
18388 | cat >>conftest.$ac_ext <<_ACEOF | |
18389 | /* end confdefs.h. */ | |
7ee38065 MS |
18390 | |
18391 | #define _SYSCALL32 | |
252b5132 | 18392 | #include <sys/procfs.h> |
5464f5a1 NN |
18393 | int |
18394 | main () | |
18395 | { | |
252b5132 | 18396 | prpsinfo_t avar |
5464f5a1 NN |
18397 | ; |
18398 | return 0; | |
18399 | } | |
18400 | _ACEOF | |
18401 | rm -f conftest.$ac_objext | |
18402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18403 | (eval $ac_compile) 2>conftest.er1 | |
18404 | ac_status=$? | |
18405 | grep -v '^ *+' conftest.er1 >conftest.err | |
18406 | rm -f conftest.er1 | |
18407 | cat conftest.err >&5 | |
18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18409 | (exit $ac_status); } && | |
49c96104 SE |
18410 | { ac_try='test -z "$ac_c_werror_flag" |
18411 | || test ! -s conftest.err' | |
5464f5a1 NN |
18412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18413 | (eval $ac_try) 2>&5 | |
18414 | ac_status=$? | |
18415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18416 | (exit $ac_status); }; } && | |
18417 | { ac_try='test -s conftest.$ac_objext' | |
18418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18419 | (eval $ac_try) 2>&5 | |
18420 | ac_status=$? | |
18421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18422 | (exit $ac_status); }; }; then | |
252b5132 RH |
18423 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
18424 | else | |
5464f5a1 NN |
18425 | echo "$as_me: failed program was:" >&5 |
18426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18427 | ||
18428 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
18429 | ||
252b5132 | 18430 | fi |
5464f5a1 | 18431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18432 | fi |
18433 | ||
18434 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
18435 | |
18436 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18437 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 18438 | _ACEOF |
252b5132 RH |
18439 | |
18440 | fi | |
5464f5a1 NN |
18441 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
18442 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 18443 | |
5464f5a1 NN |
18444 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
18445 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
18446 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
18447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18448 | else |
5464f5a1 NN |
18449 | cat >conftest.$ac_ext <<_ACEOF |
18450 | /* confdefs.h. */ | |
18451 | _ACEOF | |
18452 | cat confdefs.h >>conftest.$ac_ext | |
18453 | cat >>conftest.$ac_ext <<_ACEOF | |
18454 | /* end confdefs.h. */ | |
7ee38065 MS |
18455 | |
18456 | #define _SYSCALL32 | |
18457 | #include <sys/procfs.h> | |
5464f5a1 NN |
18458 | int |
18459 | main () | |
18460 | { | |
7ee38065 | 18461 | prpsinfo32_t avar |
5464f5a1 NN |
18462 | ; |
18463 | return 0; | |
18464 | } | |
18465 | _ACEOF | |
18466 | rm -f conftest.$ac_objext | |
18467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18468 | (eval $ac_compile) 2>conftest.er1 | |
18469 | ac_status=$? | |
18470 | grep -v '^ *+' conftest.er1 >conftest.err | |
18471 | rm -f conftest.er1 | |
18472 | cat conftest.err >&5 | |
18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18474 | (exit $ac_status); } && | |
49c96104 SE |
18475 | { ac_try='test -z "$ac_c_werror_flag" |
18476 | || test ! -s conftest.err' | |
5464f5a1 NN |
18477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18478 | (eval $ac_try) 2>&5 | |
18479 | ac_status=$? | |
18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18481 | (exit $ac_status); }; } && | |
18482 | { ac_try='test -s conftest.$ac_objext' | |
18483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18484 | (eval $ac_try) 2>&5 | |
18485 | ac_status=$? | |
18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18487 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18488 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
18489 | else | |
5464f5a1 NN |
18490 | echo "$as_me: failed program was:" >&5 |
18491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18492 | ||
18493 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
18494 | ||
7ee38065 | 18495 | fi |
5464f5a1 | 18496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18497 | fi |
18498 | ||
18499 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
18500 | |
18501 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18502 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 18503 | _ACEOF |
7ee38065 MS |
18504 | |
18505 | fi | |
5464f5a1 NN |
18506 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
18507 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 18508 | |
5464f5a1 NN |
18509 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
18510 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
18511 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
18512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18513 | else |
5464f5a1 NN |
18514 | cat >conftest.$ac_ext <<_ACEOF |
18515 | /* confdefs.h. */ | |
18516 | _ACEOF | |
18517 | cat confdefs.h >>conftest.$ac_ext | |
18518 | cat >>conftest.$ac_ext <<_ACEOF | |
18519 | /* end confdefs.h. */ | |
7ee38065 MS |
18520 | |
18521 | #define _SYSCALL32 | |
252b5132 | 18522 | #include <sys/procfs.h> |
5464f5a1 NN |
18523 | int |
18524 | main () | |
18525 | { | |
252b5132 | 18526 | psinfo_t avar |
5464f5a1 NN |
18527 | ; |
18528 | return 0; | |
18529 | } | |
18530 | _ACEOF | |
18531 | rm -f conftest.$ac_objext | |
18532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18533 | (eval $ac_compile) 2>conftest.er1 | |
18534 | ac_status=$? | |
18535 | grep -v '^ *+' conftest.er1 >conftest.err | |
18536 | rm -f conftest.er1 | |
18537 | cat conftest.err >&5 | |
18538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18539 | (exit $ac_status); } && | |
49c96104 SE |
18540 | { ac_try='test -z "$ac_c_werror_flag" |
18541 | || test ! -s conftest.err' | |
5464f5a1 NN |
18542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18543 | (eval $ac_try) 2>&5 | |
18544 | ac_status=$? | |
18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18546 | (exit $ac_status); }; } && | |
18547 | { ac_try='test -s conftest.$ac_objext' | |
18548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18549 | (eval $ac_try) 2>&5 | |
18550 | ac_status=$? | |
18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18552 | (exit $ac_status); }; }; then | |
252b5132 RH |
18553 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
18554 | else | |
5464f5a1 NN |
18555 | echo "$as_me: failed program was:" >&5 |
18556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18557 | ||
18558 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
18559 | ||
252b5132 | 18560 | fi |
5464f5a1 | 18561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18562 | fi |
18563 | ||
18564 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
18565 | |
18566 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18567 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 18568 | _ACEOF |
252b5132 RH |
18569 | |
18570 | fi | |
5464f5a1 NN |
18571 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
18572 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 18573 | |
5464f5a1 NN |
18574 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
18575 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
18576 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
18577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18578 | else |
5464f5a1 NN |
18579 | cat >conftest.$ac_ext <<_ACEOF |
18580 | /* confdefs.h. */ | |
18581 | _ACEOF | |
18582 | cat confdefs.h >>conftest.$ac_ext | |
18583 | cat >>conftest.$ac_ext <<_ACEOF | |
18584 | /* end confdefs.h. */ | |
7ee38065 MS |
18585 | |
18586 | #define _SYSCALL32 | |
18587 | #include <sys/procfs.h> | |
5464f5a1 NN |
18588 | int |
18589 | main () | |
18590 | { | |
7ee38065 | 18591 | psinfo32_t avar |
5464f5a1 NN |
18592 | ; |
18593 | return 0; | |
18594 | } | |
18595 | _ACEOF | |
18596 | rm -f conftest.$ac_objext | |
18597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18598 | (eval $ac_compile) 2>conftest.er1 | |
18599 | ac_status=$? | |
18600 | grep -v '^ *+' conftest.er1 >conftest.err | |
18601 | rm -f conftest.er1 | |
18602 | cat conftest.err >&5 | |
18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18604 | (exit $ac_status); } && | |
49c96104 SE |
18605 | { ac_try='test -z "$ac_c_werror_flag" |
18606 | || test ! -s conftest.err' | |
5464f5a1 NN |
18607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18608 | (eval $ac_try) 2>&5 | |
18609 | ac_status=$? | |
18610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18611 | (exit $ac_status); }; } && | |
18612 | { ac_try='test -s conftest.$ac_objext' | |
18613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18614 | (eval $ac_try) 2>&5 | |
18615 | ac_status=$? | |
18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18617 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18618 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
18619 | else | |
5464f5a1 NN |
18620 | echo "$as_me: failed program was:" >&5 |
18621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18622 | ||
18623 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
18624 | ||
7ee38065 | 18625 | fi |
5464f5a1 | 18626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18627 | fi |
18628 | ||
18629 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
18630 | |
18631 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18632 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 18633 | _ACEOF |
7ee38065 MS |
18634 | |
18635 | fi | |
5464f5a1 NN |
18636 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
18637 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 18638 | |
5464f5a1 NN |
18639 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
18640 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18641 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
18642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18643 | else |
5464f5a1 NN |
18644 | cat >conftest.$ac_ext <<_ACEOF |
18645 | /* confdefs.h. */ | |
18646 | _ACEOF | |
18647 | cat confdefs.h >>conftest.$ac_ext | |
18648 | cat >>conftest.$ac_ext <<_ACEOF | |
18649 | /* end confdefs.h. */ | |
7ee38065 MS |
18650 | |
18651 | #define _SYSCALL32 | |
252b5132 | 18652 | #include <sys/procfs.h> |
5464f5a1 NN |
18653 | int |
18654 | main () | |
18655 | { | |
252b5132 | 18656 | lwpstatus_t avar |
5464f5a1 NN |
18657 | ; |
18658 | return 0; | |
18659 | } | |
18660 | _ACEOF | |
18661 | rm -f conftest.$ac_objext | |
18662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18663 | (eval $ac_compile) 2>conftest.er1 | |
18664 | ac_status=$? | |
18665 | grep -v '^ *+' conftest.er1 >conftest.err | |
18666 | rm -f conftest.er1 | |
18667 | cat conftest.err >&5 | |
18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18669 | (exit $ac_status); } && | |
49c96104 SE |
18670 | { ac_try='test -z "$ac_c_werror_flag" |
18671 | || test ! -s conftest.err' | |
5464f5a1 NN |
18672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18673 | (eval $ac_try) 2>&5 | |
18674 | ac_status=$? | |
18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18676 | (exit $ac_status); }; } && | |
18677 | { ac_try='test -s conftest.$ac_objext' | |
18678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18679 | (eval $ac_try) 2>&5 | |
18680 | ac_status=$? | |
18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18682 | (exit $ac_status); }; }; then | |
252b5132 RH |
18683 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
18684 | else | |
5464f5a1 NN |
18685 | echo "$as_me: failed program was:" >&5 |
18686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18687 | ||
18688 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
18689 | ||
252b5132 | 18690 | fi |
5464f5a1 | 18691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18692 | fi |
18693 | ||
18694 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
18695 | |
18696 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18697 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 18698 | _ACEOF |
252b5132 RH |
18699 | |
18700 | fi | |
5464f5a1 NN |
18701 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
18702 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 18703 | |
5464f5a1 NN |
18704 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
18705 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18706 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
18707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 18708 | else |
5464f5a1 NN |
18709 | cat >conftest.$ac_ext <<_ACEOF |
18710 | /* confdefs.h. */ | |
18711 | _ACEOF | |
18712 | cat confdefs.h >>conftest.$ac_ext | |
18713 | cat >>conftest.$ac_ext <<_ACEOF | |
18714 | /* end confdefs.h. */ | |
f572a39d AM |
18715 | |
18716 | #define _SYSCALL32 | |
18717 | #include <sys/procfs.h> | |
5464f5a1 NN |
18718 | int |
18719 | main () | |
18720 | { | |
f572a39d | 18721 | lwpxstatus_t avar |
5464f5a1 NN |
18722 | ; |
18723 | return 0; | |
18724 | } | |
18725 | _ACEOF | |
18726 | rm -f conftest.$ac_objext | |
18727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18728 | (eval $ac_compile) 2>conftest.er1 | |
18729 | ac_status=$? | |
18730 | grep -v '^ *+' conftest.er1 >conftest.err | |
18731 | rm -f conftest.er1 | |
18732 | cat conftest.err >&5 | |
18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18734 | (exit $ac_status); } && | |
49c96104 SE |
18735 | { ac_try='test -z "$ac_c_werror_flag" |
18736 | || test ! -s conftest.err' | |
5464f5a1 NN |
18737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18738 | (eval $ac_try) 2>&5 | |
18739 | ac_status=$? | |
18740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18741 | (exit $ac_status); }; } && | |
18742 | { ac_try='test -s conftest.$ac_objext' | |
18743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18744 | (eval $ac_try) 2>&5 | |
18745 | ac_status=$? | |
18746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18747 | (exit $ac_status); }; }; then | |
f572a39d AM |
18748 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
18749 | else | |
5464f5a1 NN |
18750 | echo "$as_me: failed program was:" >&5 |
18751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18752 | ||
18753 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
18754 | ||
f572a39d | 18755 | fi |
5464f5a1 | 18756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
18757 | fi |
18758 | ||
18759 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
18760 | |
18761 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 18762 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 18763 | _ACEOF |
f572a39d AM |
18764 | |
18765 | fi | |
5464f5a1 NN |
18766 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
18767 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 18768 | |
5464f5a1 NN |
18769 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
18770 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
18771 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
18772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18773 | else |
5464f5a1 NN |
18774 | cat >conftest.$ac_ext <<_ACEOF |
18775 | /* confdefs.h. */ | |
18776 | _ACEOF | |
18777 | cat confdefs.h >>conftest.$ac_ext | |
18778 | cat >>conftest.$ac_ext <<_ACEOF | |
18779 | /* end confdefs.h. */ | |
7ee38065 MS |
18780 | |
18781 | #define _SYSCALL32 | |
252b5132 | 18782 | #include <sys/procfs.h> |
5464f5a1 NN |
18783 | int |
18784 | main () | |
18785 | { | |
252b5132 | 18786 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
18787 | ; |
18788 | return 0; | |
18789 | } | |
18790 | _ACEOF | |
18791 | rm -f conftest.$ac_objext | |
18792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18793 | (eval $ac_compile) 2>conftest.er1 | |
18794 | ac_status=$? | |
18795 | grep -v '^ *+' conftest.er1 >conftest.err | |
18796 | rm -f conftest.er1 | |
18797 | cat conftest.err >&5 | |
18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18799 | (exit $ac_status); } && | |
49c96104 SE |
18800 | { ac_try='test -z "$ac_c_werror_flag" |
18801 | || test ! -s conftest.err' | |
5464f5a1 NN |
18802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18803 | (eval $ac_try) 2>&5 | |
18804 | ac_status=$? | |
18805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18806 | (exit $ac_status); }; } && | |
18807 | { ac_try='test -s conftest.$ac_objext' | |
18808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18809 | (eval $ac_try) 2>&5 | |
18810 | ac_status=$? | |
18811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18812 | (exit $ac_status); }; }; then | |
252b5132 RH |
18813 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
18814 | else | |
5464f5a1 NN |
18815 | echo "$as_me: failed program was:" >&5 |
18816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18817 | ||
18818 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
18819 | ||
252b5132 | 18820 | fi |
5464f5a1 | 18821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18822 | fi |
18823 | ||
18824 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
18825 | |
18826 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18827 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 18828 | _ACEOF |
252b5132 RH |
18829 | |
18830 | fi | |
5464f5a1 NN |
18831 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
18832 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 18833 | |
5464f5a1 NN |
18834 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
18835 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
18836 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
18837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18838 | else |
5464f5a1 NN |
18839 | cat >conftest.$ac_ext <<_ACEOF |
18840 | /* confdefs.h. */ | |
18841 | _ACEOF | |
18842 | cat confdefs.h >>conftest.$ac_ext | |
18843 | cat >>conftest.$ac_ext <<_ACEOF | |
18844 | /* end confdefs.h. */ | |
7ee38065 MS |
18845 | |
18846 | #define _SYSCALL32 | |
252b5132 | 18847 | #include <sys/procfs.h> |
5464f5a1 NN |
18848 | int |
18849 | main () | |
18850 | { | |
252b5132 | 18851 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
18852 | ; |
18853 | return 0; | |
18854 | } | |
18855 | _ACEOF | |
18856 | rm -f conftest.$ac_objext | |
18857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18858 | (eval $ac_compile) 2>conftest.er1 | |
18859 | ac_status=$? | |
18860 | grep -v '^ *+' conftest.er1 >conftest.err | |
18861 | rm -f conftest.er1 | |
18862 | cat conftest.err >&5 | |
18863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18864 | (exit $ac_status); } && | |
49c96104 SE |
18865 | { ac_try='test -z "$ac_c_werror_flag" |
18866 | || test ! -s conftest.err' | |
5464f5a1 NN |
18867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18868 | (eval $ac_try) 2>&5 | |
18869 | ac_status=$? | |
18870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18871 | (exit $ac_status); }; } && | |
18872 | { ac_try='test -s conftest.$ac_objext' | |
18873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18874 | (eval $ac_try) 2>&5 | |
18875 | ac_status=$? | |
18876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18877 | (exit $ac_status); }; }; then | |
252b5132 RH |
18878 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
18879 | else | |
5464f5a1 NN |
18880 | echo "$as_me: failed program was:" >&5 |
18881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18882 | ||
18883 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
18884 | ||
252b5132 | 18885 | fi |
5464f5a1 | 18886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18887 | fi |
18888 | ||
18889 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
18890 | |
18891 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18892 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 18893 | _ACEOF |
252b5132 RH |
18894 | |
18895 | fi | |
5464f5a1 NN |
18896 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
18897 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 18898 | |
5464f5a1 NN |
18899 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
18900 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18901 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
18902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 18903 | else |
5464f5a1 NN |
18904 | cat >conftest.$ac_ext <<_ACEOF |
18905 | /* confdefs.h. */ | |
18906 | _ACEOF | |
18907 | cat confdefs.h >>conftest.$ac_ext | |
18908 | cat >>conftest.$ac_ext <<_ACEOF | |
18909 | /* end confdefs.h. */ | |
7ee38065 MS |
18910 | |
18911 | #define _SYSCALL32 | |
e3c976c4 | 18912 | #include <sys/procfs.h> |
5464f5a1 NN |
18913 | int |
18914 | main () | |
18915 | { | |
e3c976c4 | 18916 | win32_pstatus_t avar |
5464f5a1 NN |
18917 | ; |
18918 | return 0; | |
18919 | } | |
18920 | _ACEOF | |
18921 | rm -f conftest.$ac_objext | |
18922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18923 | (eval $ac_compile) 2>conftest.er1 | |
18924 | ac_status=$? | |
18925 | grep -v '^ *+' conftest.er1 >conftest.err | |
18926 | rm -f conftest.er1 | |
18927 | cat conftest.err >&5 | |
18928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18929 | (exit $ac_status); } && | |
49c96104 SE |
18930 | { ac_try='test -z "$ac_c_werror_flag" |
18931 | || test ! -s conftest.err' | |
5464f5a1 NN |
18932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18933 | (eval $ac_try) 2>&5 | |
18934 | ac_status=$? | |
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18936 | (exit $ac_status); }; } && | |
18937 | { ac_try='test -s conftest.$ac_objext' | |
18938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18939 | (eval $ac_try) 2>&5 | |
18940 | ac_status=$? | |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18942 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
18943 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
18944 | else | |
5464f5a1 NN |
18945 | echo "$as_me: failed program was:" >&5 |
18946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18947 | ||
18948 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
18949 | ||
e3c976c4 | 18950 | fi |
5464f5a1 | 18951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18952 | fi |
18953 | ||
e3c976c4 | 18954 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
18955 | |
18956 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 18957 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 18958 | _ACEOF |
16e9c715 NC |
18959 | |
18960 | fi | |
5464f5a1 NN |
18961 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
18962 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
18963 | |
18964 | fi | |
18965 | fi | |
16e9c715 | 18966 | |
b3baf5d0 | 18967 | |
6be7c12c | 18968 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
18969 | |
18970 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 18971 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 18972 | _ACEOF |
252b5132 | 18973 | |
3f9b03b5 | 18974 | fi |
252b5132 RH |
18975 | |
18976 | # Horrible hacks to build DLLs on Windows. | |
18977 | WIN32LDFLAGS= | |
18978 | WIN32LIBADD= | |
18979 | case "${host}" in | |
18980 | *-*-cygwin*) | |
18981 | if test "$enable_shared" = "yes"; then | |
18982 | WIN32LDFLAGS="-no-undefined" | |
18983 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
18984 | fi | |
18985 | ;; | |
78be1d6e | 18986 | *-*-linux*) |
39691762 L |
18987 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
18988 | # libiberty.a. | |
c5cb8442 TS |
18989 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
18990 | if test -n "$x"; then | |
18991 | WIN32LIBADD="-L../libiberty/pic -liberty" | |
18992 | fi | |
39691762 | 18993 | ;; |
252b5132 RH |
18994 | esac |
18995 | ||
6be7c12c AO |
18996 | |
18997 | ||
252b5132 RH |
18998 | # target stuff: |
18999 | ||
19000 | # Canonicalize the secondary target names. | |
19001 | if test -n "$enable_targets" ; then | |
19002 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
19003 | do | |
6d83c84b | 19004 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
19005 | if test -n "$result" ; then |
19006 | canon_targets="$canon_targets $result" | |
19007 | else | |
19008 | # Allow targets that config.sub doesn't recognize, like "all". | |
19009 | canon_targets="$canon_targets $targ" | |
19010 | fi | |
19011 | done | |
19012 | fi | |
19013 | ||
19014 | all_targets=false | |
19015 | defvec= | |
19016 | selvecs= | |
08f74004 | 19017 | assocvecs= |
252b5132 RH |
19018 | selarchs= |
19019 | TDEFINES= | |
19020 | for targ in $target $canon_targets | |
19021 | do | |
19022 | if test "x$targ" = "xall"; then | |
19023 | all_targets=true | |
08f74004 | 19024 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
19025 | else |
19026 | . $srcdir/config.bfd | |
19027 | if test "x$targ" = "x$target"; then | |
19028 | defvec=$targ_defvec | |
19029 | fi | |
19030 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
19031 | selarchs="$selarchs $targ_archs" | |
19032 | TDEFINES="$TDEFINES $targ_cflags" | |
19033 | fi | |
19034 | done | |
19035 | ||
6be7c12c | 19036 | |
252b5132 RH |
19037 | # This processing still needs to be done if we're to decide properly whether |
19038 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
19039 | # the default or any other explicitly requested target requires it; it | |
19040 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 19041 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
19042 | # used. |
19043 | ||
19044 | # uniq the default and selected vectors in all the configured targets. | |
19045 | f="" | |
19046 | for i in $selvecs ; do | |
19047 | case " $f " in | |
19048 | *" $i "*) ;; | |
19049 | *) f="$f $i" ;; | |
19050 | esac | |
19051 | done | |
19052 | selvecs="$f" | |
19053 | ||
6be7c12c | 19054 | |
08f74004 AM |
19055 | # uniq the associated vectors in all the configured targets. |
19056 | f="" | |
19057 | for i in $assocvecs ; do | |
19058 | case " $f " in | |
19059 | *" $i "*) ;; | |
19060 | *) f="$f $i" ;; | |
19061 | esac | |
19062 | done | |
19063 | assocvecs="$f" | |
19064 | ||
19065 | ||
252b5132 RH |
19066 | # uniq the architectures in all the configured targets. |
19067 | f="" | |
19068 | for i in $selarchs ; do | |
19069 | case " $f " in | |
19070 | *" $i "*) ;; | |
19071 | *) f="$f $i" ;; | |
19072 | esac | |
19073 | done | |
19074 | selarchs="$f" | |
19075 | ||
19076 | # Target backend .o files. | |
19077 | tb= | |
19078 | ||
104d59d1 | 19079 | elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
19080 | |
19081 | for vec in $selvecs | |
19082 | do | |
69263e90 | 19083 | target_size=32 |
252b5132 RH |
19084 | case "$vec" in |
19085 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
19086 | # with the two vector lists in targets.c. For the same reason, |
19087 | # use one entry per line, even though this leads to long lines. | |
252b5132 | 19088 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; |
341ca622 | 19089 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
19090 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
19091 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
19092 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 19093 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
19094 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
19095 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
19096 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
19097 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
7148cc28 NC |
19098 | arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; |
19099 | arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; | |
19100 | arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
19101 | arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
dc810e39 AM |
19102 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; |
19103 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
19104 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
19105 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
19106 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
19107 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
19108 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
19109 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
19110 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 19111 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
e81819a5 NC |
19112 | bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;; |
19113 | bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;; | |
faed74d6 | 19114 | bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;; |
e81819a5 NC |
19115 | bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;; |
19116 | bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;; | |
dc810e39 | 19117 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
e81819a5 NC |
19118 | bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
19119 | bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; | |
73c3cd1c | 19120 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 19121 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
0f64bb02 | 19122 | bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
48d502e1 | 19123 | bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
dc810e39 | 19124 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 19125 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
00a97672 | 19126 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
e5a52504 | 19127 | bfd_elf32_bigarm_symbian_vec) |
00a97672 | 19128 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 19129 | bfd_elf32_bigarm_vxworks_vec) |
00a97672 | 19130 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
0a44bf69 RS |
19131 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
19132 | bfd_elf32_bigmips_vxworks_vec) | |
19133 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
3d3d428f | 19134 | bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; |
0949843d | 19135 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 19136 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 19137 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
19138 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
19139 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 19140 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 19141 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 19142 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 19143 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 19144 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 19145 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 19146 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 19147 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 19148 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
0b3e17e9 NC |
19149 | bfd_elf32_i386_dragonfly_vec) |
19150 | tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
eac338cf PB |
19151 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; |
19152 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
19153 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 19154 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 19155 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 19156 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 19157 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 19158 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 19159 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 19160 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 19161 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 19162 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 19163 | bfd_elf32_littlearm_symbian_vec) |
00a97672 | 19164 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 19165 | bfd_elf32_littlearm_vxworks_vec) |
00a97672 RS |
19166 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
19167 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; | |
0a44bf69 RS |
19168 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
19169 | bfd_elf32_littlemips_vxworks_vec) | |
19170 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
e729279b | 19171 | bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; |
252b5132 | 19172 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
19173 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
19174 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
19175 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
19176 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
19177 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
19178 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
19179 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
19180 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
19181 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
d9352518 DB |
19182 | bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; |
19183 | bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; | |
252b5132 RH |
19184 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; |
19185 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
d031aafb | 19186 | bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; |
2469cfa2 | 19187 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
0a44bf69 RS |
19188 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
19189 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
19190 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
19191 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 19192 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 19193 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
19194 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
19195 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
9d8504b1 PB |
19196 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
19197 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
19198 | bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
a85d7ed0 | 19199 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
1c0d3aa6 NC |
19200 | bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;; |
19201 | bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;; | |
eb1e0e80 NC |
19202 | # FIXME: We include cofflink.lo not because it's needed for |
19203 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
19204 | # which needs it but does not list it. Should be fixed in right place. | |
55e6e397 RS |
19205 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
19206 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
19207 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
19208 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
19209 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
19210 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
19211 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
19212 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
19213 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
19214 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
19215 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
19216 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
19217 | bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
7b12cedc | 19218 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 19219 | bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
910600e9 RS |
19220 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
19221 | bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
e9f53129 | 19222 | bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; |
0a44bf69 RS |
19223 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
19224 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 19225 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 19226 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 19227 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 19228 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
d70c5fc7 | 19229 | bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; |
e0001a05 NC |
19230 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
19231 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 19232 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
19233 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
19234 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
0a44bf69 | 19235 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
19236 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
19237 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 19238 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 19239 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
19240 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
19241 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
0a44bf69 | 19242 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 19243 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
19244 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
19245 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
19246 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
19247 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
19248 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
19249 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
19250 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
19251 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
19252 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
910600e9 | 19253 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
71a75f6f | 19254 | bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 RS |
19255 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
19256 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
9d7cbccd | 19257 | bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 | 19258 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 19259 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
19260 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
19261 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
19262 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
19263 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 19264 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 19265 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 19266 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 19267 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
19268 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
19269 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
19270 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
19271 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
19272 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
19273 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
19274 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
19275 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
19276 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
19277 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
19278 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
19279 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
99ad8390 | 19280 | x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;; |
252b5132 RH |
19281 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; |
19282 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
19283 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
19284 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
19285 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
19286 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 19287 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
19288 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
19289 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
19290 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
19291 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
99ad8390 NC |
19292 | x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; |
19293 | x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; | |
252b5132 RH |
19294 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
19295 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
19296 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
19297 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
19298 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
19299 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
19300 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
19301 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
19302 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
252b5132 | 19303 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; |
252b5132 RH |
19304 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
19305 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 19306 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 19307 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 19308 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
19309 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
19310 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
19311 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
19312 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
19313 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
19314 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
19315 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
19316 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
19317 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 19318 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 19319 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 19320 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 19321 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 19322 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 19323 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 19324 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 19325 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
19326 | pef_vec) tb="$tb pef.lo" ;; |
19327 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 19328 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 19329 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 19330 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 19331 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 19332 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 19333 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 19334 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 19335 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 19336 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 19337 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
19338 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
19339 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 19340 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 19341 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
19342 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
19343 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
19344 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
19345 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
19346 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 19347 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 19348 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
19349 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
19350 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
19351 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
19352 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
19353 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
19354 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
19355 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
19356 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 19357 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 19358 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 19359 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 19360 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 19361 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 19362 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 19363 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 19364 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 19365 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 19366 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 19367 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 19368 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
19369 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
19370 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
19371 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
3c9b82ba | 19372 | z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; |
c0524131 | 19373 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; |
252b5132 | 19374 | |
341ca622 AM |
19375 | # These appear out of order in targets.c |
19376 | srec_vec) tb="$tb srec.lo" ;; | |
19377 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
19378 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
19379 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
19380 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
19381 | ||
252b5132 | 19382 | "") ;; |
5464f5a1 NN |
19383 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
19384 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
19385 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 19386 | esac |
69263e90 AM |
19387 | |
19388 | if test ${target_size} = 64; then | |
19389 | target64=true | |
19390 | fi | |
19391 | if test x"${vec}" = x"${defvec}"; then | |
19392 | bfd_default_target_size=${target_size} | |
19393 | fi | |
252b5132 RH |
19394 | done |
19395 | ||
19396 | # Target architecture .o files. | |
19397 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
19398 | # filesystems. | |
d031aafb | 19399 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` |
252b5132 RH |
19400 | |
19401 | # Weed out duplicate .o files. | |
19402 | f="" | |
19403 | for i in $tb ; do | |
19404 | case " $f " in | |
19405 | *" $i "*) ;; | |
19406 | *) f="$f $i" ;; | |
19407 | esac | |
19408 | done | |
19409 | tb="$f" | |
19410 | ||
19411 | f="" | |
19412 | for i in $ta ; do | |
19413 | case " $f " in | |
19414 | *" $i "*) ;; | |
19415 | *) f="$f $i" ;; | |
19416 | esac | |
19417 | done | |
19418 | ta="$f" | |
19419 | ||
19420 | bfd_backends="$tb" | |
19421 | bfd_machines="$ta" | |
19422 | ||
19423 | if test x${all_targets} = xtrue ; then | |
19424 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
19425 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
19426 | selvecs= | |
19427 | havevecs= | |
19428 | selarchs= | |
08f74004 AM |
19429 | test -n "$assocvecs" && |
19430 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
19431 | else # all_targets is true |
19432 | # Only set these if they will be nonempty, for the clever echo. | |
19433 | havevecs= | |
08f74004 | 19434 | assocvecs= |
252b5132 RH |
19435 | test -n "$selvecs" && |
19436 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
19437 | test -n "$selvecs" && | |
19438 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
19439 | test -n "$selarchs" && | |
19440 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
19441 | fi # all_targets is true | |
19442 | ||
19443 | case ${host64}-${target64}-${want64} in | |
19444 | *true*) | |
19445 | wordsize=64 | |
21e40a48 | 19446 | bfd64_libs='$(BFD64_LIBS)' |
252b5132 | 19447 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 19448 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
19449 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
19450 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
19451 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
19452 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 19453 | fi |
966abd70 HPN |
19454 | if test -n "$GCC" ; then |
19455 | bad_64bit_gcc=no; | |
5464f5a1 NN |
19456 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
19457 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 19458 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
19459 | cat >conftest.$ac_ext <<_ACEOF |
19460 | /* confdefs.h. */ | |
19461 | _ACEOF | |
19462 | cat confdefs.h >>conftest.$ac_ext | |
19463 | cat >>conftest.$ac_ext <<_ACEOF | |
19464 | /* end confdefs.h. */ | |
966abd70 | 19465 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 19466 | _ACEOF |
966abd70 | 19467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 19468 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 19469 | bad_64bit_gcc=yes; |
5464f5a1 NN |
19470 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
19471 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 19472 | else |
5464f5a1 NN |
19473 | echo "$as_me:$LINENO: result: no" >&5 |
19474 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
19475 | fi |
19476 | rm -f conftest* | |
19477 | ||
19478 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
19479 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
19480 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
19481 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
19482 | fi |
19483 | fi | |
252b5132 RH |
19484 | ;; |
19485 | false-false-false) | |
19486 | wordsize=32 | |
19487 | all_backends='$(BFD32_BACKENDS)' | |
19488 | ;; | |
19489 | esac | |
19490 | ||
6be7c12c AO |
19491 | |
19492 | ||
19493 | ||
19494 | ||
19495 | ||
69263e90 | 19496 | |
2858ef35 | 19497 | |
1012372a AC |
19498 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
19499 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
19500 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
19501 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
19502 | # upward compatible. | |
5464f5a1 NN |
19503 | |
19504 | ||
19505 | ||
19506 | ||
2e6f4fae DJ |
19507 | |
19508 | for ac_func in ftello ftello64 fseeko fseeko64 fopen64 | |
1012372a | 19509 | do |
5464f5a1 NN |
19510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19511 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19513 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19515 | else | |
2ba49b59 KC |
19516 | cat >conftest.$ac_ext <<_ACEOF |
19517 | /* confdefs.h. */ | |
19518 | _ACEOF | |
19519 | cat confdefs.h >>conftest.$ac_ext | |
19520 | cat >>conftest.$ac_ext <<_ACEOF | |
19521 | /* end confdefs.h. */ | |
19522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19524 | #define $ac_func innocuous_$ac_func | |
19525 | ||
19526 | /* System header to define __stub macros and hopefully few prototypes, | |
19527 | which can conflict with char $ac_func (); below. | |
19528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19529 | <limits.h> exists even on freestanding compilers. */ | |
19530 | ||
19531 | #ifdef __STDC__ | |
19532 | # include <limits.h> | |
19533 | #else | |
19534 | # include <assert.h> | |
19535 | #endif | |
19536 | ||
19537 | #undef $ac_func | |
19538 | ||
19539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19540 | #ifdef __cplusplus | |
19541 | extern "C" | |
19542 | { | |
19543 | #endif | |
19544 | /* We use char because int might match the return type of a gcc2 | |
19545 | builtin and then its argument prototype would still apply. */ | |
19546 | char $ac_func (); | |
19547 | /* The GNU C library defines this for functions which it implements | |
19548 | to always fail with ENOSYS. Some functions are actually named | |
19549 | something starting with __ and the normal name is an alias. */ | |
19550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19551 | choke me | |
19552 | #else | |
19553 | char (*f) () = $ac_func; | |
19554 | #endif | |
19555 | #ifdef __cplusplus | |
19556 | } | |
19557 | #endif | |
19558 | ||
19559 | int | |
19560 | main () | |
19561 | { | |
19562 | return f != $ac_func; | |
19563 | ; | |
19564 | return 0; | |
19565 | } | |
19566 | _ACEOF | |
19567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19569 | (eval $ac_link) 2>conftest.er1 | |
19570 | ac_status=$? | |
19571 | grep -v '^ *+' conftest.er1 >conftest.err | |
19572 | rm -f conftest.er1 | |
19573 | cat conftest.err >&5 | |
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19575 | (exit $ac_status); } && | |
49c96104 SE |
19576 | { ac_try='test -z "$ac_c_werror_flag" |
19577 | || test ! -s conftest.err' | |
2ba49b59 KC |
19578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19579 | (eval $ac_try) 2>&5 | |
19580 | ac_status=$? | |
19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19582 | (exit $ac_status); }; } && | |
19583 | { ac_try='test -s conftest$ac_exeext' | |
19584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19585 | (eval $ac_try) 2>&5 | |
19586 | ac_status=$? | |
19587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19588 | (exit $ac_status); }; }; then | |
19589 | eval "$as_ac_var=yes" | |
19590 | else | |
19591 | echo "$as_me: failed program was:" >&5 | |
19592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19593 | ||
19594 | eval "$as_ac_var=no" | |
19595 | fi | |
19596 | rm -f conftest.err conftest.$ac_objext \ | |
19597 | conftest$ac_exeext conftest.$ac_ext | |
19598 | fi | |
19599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19600 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19601 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19602 | cat >>confdefs.h <<_ACEOF | |
19603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19604 | _ACEOF | |
19605 | ||
19606 | fi | |
19607 | done | |
19608 | ||
19609 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then | |
19610 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
19611 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
19612 | if test "${ac_cv_type_off_t+set}" = set; then | |
19613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19614 | else | |
19615 | cat >conftest.$ac_ext <<_ACEOF | |
19616 | /* confdefs.h. */ | |
19617 | _ACEOF | |
19618 | cat confdefs.h >>conftest.$ac_ext | |
19619 | cat >>conftest.$ac_ext <<_ACEOF | |
19620 | /* end confdefs.h. */ | |
19621 | $ac_includes_default | |
19622 | int | |
19623 | main () | |
19624 | { | |
19625 | if ((off_t *) 0) | |
19626 | return 0; | |
19627 | if (sizeof (off_t)) | |
19628 | return 0; | |
19629 | ; | |
19630 | return 0; | |
19631 | } | |
19632 | _ACEOF | |
19633 | rm -f conftest.$ac_objext | |
19634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19635 | (eval $ac_compile) 2>conftest.er1 | |
19636 | ac_status=$? | |
19637 | grep -v '^ *+' conftest.er1 >conftest.err | |
19638 | rm -f conftest.er1 | |
19639 | cat conftest.err >&5 | |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); } && | |
49c96104 SE |
19642 | { ac_try='test -z "$ac_c_werror_flag" |
19643 | || test ! -s conftest.err' | |
2ba49b59 KC |
19644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19645 | (eval $ac_try) 2>&5 | |
19646 | ac_status=$? | |
19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19648 | (exit $ac_status); }; } && | |
19649 | { ac_try='test -s conftest.$ac_objext' | |
19650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19651 | (eval $ac_try) 2>&5 | |
19652 | ac_status=$? | |
19653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19654 | (exit $ac_status); }; }; then | |
19655 | ac_cv_type_off_t=yes | |
19656 | else | |
19657 | echo "$as_me: failed program was:" >&5 | |
19658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19659 | ||
19660 | ac_cv_type_off_t=no | |
19661 | fi | |
19662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19663 | fi | |
19664 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
19665 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
19666 | ||
19667 | echo "$as_me:$LINENO: checking size of off_t" >&5 | |
19668 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
19669 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
19670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19671 | else | |
19672 | if test "$ac_cv_type_off_t" = yes; then | |
19673 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19674 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19675 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19676 | # This bug is HP SR number 8606223364. | |
19677 | if test "$cross_compiling" = yes; then | |
19678 | # Depending upon the size, compute the lo and hi bounds. | |
19679 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
19680 | /* confdefs.h. */ |
19681 | _ACEOF | |
19682 | cat confdefs.h >>conftest.$ac_ext | |
19683 | cat >>conftest.$ac_ext <<_ACEOF | |
19684 | /* end confdefs.h. */ | |
2ba49b59 KC |
19685 | $ac_includes_default |
19686 | int | |
19687 | main () | |
19688 | { | |
19689 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; | |
19690 | test_array [0] = 0 | |
5464f5a1 | 19691 | |
2ba49b59 KC |
19692 | ; |
19693 | return 0; | |
19694 | } | |
19695 | _ACEOF | |
19696 | rm -f conftest.$ac_objext | |
19697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19698 | (eval $ac_compile) 2>conftest.er1 | |
19699 | ac_status=$? | |
19700 | grep -v '^ *+' conftest.er1 >conftest.err | |
19701 | rm -f conftest.er1 | |
19702 | cat conftest.err >&5 | |
19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19704 | (exit $ac_status); } && | |
49c96104 SE |
19705 | { ac_try='test -z "$ac_c_werror_flag" |
19706 | || test ! -s conftest.err' | |
2ba49b59 KC |
19707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19708 | (eval $ac_try) 2>&5 | |
19709 | ac_status=$? | |
19710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19711 | (exit $ac_status); }; } && | |
19712 | { ac_try='test -s conftest.$ac_objext' | |
19713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19714 | (eval $ac_try) 2>&5 | |
19715 | ac_status=$? | |
19716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19717 | (exit $ac_status); }; }; then | |
19718 | ac_lo=0 ac_mid=0 | |
19719 | while :; do | |
19720 | cat >conftest.$ac_ext <<_ACEOF | |
19721 | /* confdefs.h. */ | |
19722 | _ACEOF | |
19723 | cat confdefs.h >>conftest.$ac_ext | |
19724 | cat >>conftest.$ac_ext <<_ACEOF | |
19725 | /* end confdefs.h. */ | |
19726 | $ac_includes_default | |
19727 | int | |
19728 | main () | |
19729 | { | |
19730 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
19731 | test_array [0] = 0 | |
5464f5a1 | 19732 | |
2ba49b59 KC |
19733 | ; |
19734 | return 0; | |
19735 | } | |
19736 | _ACEOF | |
19737 | rm -f conftest.$ac_objext | |
19738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19739 | (eval $ac_compile) 2>conftest.er1 | |
19740 | ac_status=$? | |
19741 | grep -v '^ *+' conftest.er1 >conftest.err | |
19742 | rm -f conftest.er1 | |
19743 | cat conftest.err >&5 | |
19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19745 | (exit $ac_status); } && | |
49c96104 SE |
19746 | { ac_try='test -z "$ac_c_werror_flag" |
19747 | || test ! -s conftest.err' | |
2ba49b59 KC |
19748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19749 | (eval $ac_try) 2>&5 | |
19750 | ac_status=$? | |
19751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19752 | (exit $ac_status); }; } && | |
19753 | { ac_try='test -s conftest.$ac_objext' | |
19754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19755 | (eval $ac_try) 2>&5 | |
19756 | ac_status=$? | |
19757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19758 | (exit $ac_status); }; }; then | |
19759 | ac_hi=$ac_mid; break | |
19760 | else | |
19761 | echo "$as_me: failed program was:" >&5 | |
19762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19763 | |
2ba49b59 KC |
19764 | ac_lo=`expr $ac_mid + 1` |
19765 | if test $ac_lo -le $ac_mid; then | |
19766 | ac_lo= ac_hi= | |
19767 | break | |
19768 | fi | |
19769 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19770 | fi | |
19771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19772 | done | |
19773 | else | |
19774 | echo "$as_me: failed program was:" >&5 | |
19775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19776 | |
2ba49b59 KC |
19777 | cat >conftest.$ac_ext <<_ACEOF |
19778 | /* confdefs.h. */ | |
19779 | _ACEOF | |
19780 | cat confdefs.h >>conftest.$ac_ext | |
19781 | cat >>conftest.$ac_ext <<_ACEOF | |
19782 | /* end confdefs.h. */ | |
19783 | $ac_includes_default | |
19784 | int | |
19785 | main () | |
5464f5a1 | 19786 | { |
2ba49b59 KC |
19787 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; |
19788 | test_array [0] = 0 | |
1012372a | 19789 | |
2ba49b59 KC |
19790 | ; |
19791 | return 0; | |
19792 | } | |
19793 | _ACEOF | |
19794 | rm -f conftest.$ac_objext | |
19795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19796 | (eval $ac_compile) 2>conftest.er1 | |
19797 | ac_status=$? | |
19798 | grep -v '^ *+' conftest.er1 >conftest.err | |
19799 | rm -f conftest.er1 | |
19800 | cat conftest.err >&5 | |
19801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19802 | (exit $ac_status); } && | |
49c96104 SE |
19803 | { ac_try='test -z "$ac_c_werror_flag" |
19804 | || test ! -s conftest.err' | |
2ba49b59 KC |
19805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19806 | (eval $ac_try) 2>&5 | |
19807 | ac_status=$? | |
19808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19809 | (exit $ac_status); }; } && | |
19810 | { ac_try='test -s conftest.$ac_objext' | |
19811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19812 | (eval $ac_try) 2>&5 | |
19813 | ac_status=$? | |
19814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19815 | (exit $ac_status); }; }; then | |
19816 | ac_hi=-1 ac_mid=-1 | |
19817 | while :; do | |
19818 | cat >conftest.$ac_ext <<_ACEOF | |
19819 | /* confdefs.h. */ | |
19820 | _ACEOF | |
19821 | cat confdefs.h >>conftest.$ac_ext | |
19822 | cat >>conftest.$ac_ext <<_ACEOF | |
19823 | /* end confdefs.h. */ | |
19824 | $ac_includes_default | |
5464f5a1 NN |
19825 | int |
19826 | main () | |
19827 | { | |
2ba49b59 KC |
19828 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; |
19829 | test_array [0] = 0 | |
19830 | ||
5464f5a1 NN |
19831 | ; |
19832 | return 0; | |
19833 | } | |
19834 | _ACEOF | |
2ba49b59 KC |
19835 | rm -f conftest.$ac_objext |
19836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19837 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
19838 | ac_status=$? |
19839 | grep -v '^ *+' conftest.er1 >conftest.err | |
19840 | rm -f conftest.er1 | |
19841 | cat conftest.err >&5 | |
19842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19843 | (exit $ac_status); } && | |
49c96104 SE |
19844 | { ac_try='test -z "$ac_c_werror_flag" |
19845 | || test ! -s conftest.err' | |
5464f5a1 NN |
19846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19847 | (eval $ac_try) 2>&5 | |
19848 | ac_status=$? | |
19849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19850 | (exit $ac_status); }; } && | |
2ba49b59 | 19851 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
19852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19853 | (eval $ac_try) 2>&5 | |
19854 | ac_status=$? | |
19855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19856 | (exit $ac_status); }; }; then | |
2ba49b59 | 19857 | ac_lo=$ac_mid; break |
5464f5a1 NN |
19858 | else |
19859 | echo "$as_me: failed program was:" >&5 | |
19860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19861 | ||
2ba49b59 KC |
19862 | ac_hi=`expr '(' $ac_mid ')' - 1` |
19863 | if test $ac_mid -le $ac_hi; then | |
19864 | ac_lo= ac_hi= | |
19865 | break | |
19866 | fi | |
19867 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 19868 | fi |
2ba49b59 KC |
19869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19870 | done | |
19871 | else | |
19872 | echo "$as_me: failed program was:" >&5 | |
19873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19874 | |
2ba49b59 | 19875 | ac_lo= ac_hi= |
1012372a | 19876 | fi |
2ba49b59 KC |
19877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19878 | fi | |
19879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19880 | # Binary search between lo and hi bounds. | |
19881 | while test "x$ac_lo" != "x$ac_hi"; do | |
19882 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5464f5a1 NN |
19883 | cat >conftest.$ac_ext <<_ACEOF |
19884 | /* confdefs.h. */ | |
19885 | _ACEOF | |
19886 | cat confdefs.h >>conftest.$ac_ext | |
19887 | cat >>conftest.$ac_ext <<_ACEOF | |
19888 | /* end confdefs.h. */ | |
2ba49b59 | 19889 | $ac_includes_default |
5464f5a1 NN |
19890 | int |
19891 | main () | |
19892 | { | |
2ba49b59 KC |
19893 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; |
19894 | test_array [0] = 0 | |
19895 | ||
5464f5a1 NN |
19896 | ; |
19897 | return 0; | |
19898 | } | |
19899 | _ACEOF | |
19900 | rm -f conftest.$ac_objext | |
19901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19902 | (eval $ac_compile) 2>conftest.er1 | |
19903 | ac_status=$? | |
19904 | grep -v '^ *+' conftest.er1 >conftest.err | |
19905 | rm -f conftest.er1 | |
19906 | cat conftest.err >&5 | |
19907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19908 | (exit $ac_status); } && | |
49c96104 SE |
19909 | { ac_try='test -z "$ac_c_werror_flag" |
19910 | || test ! -s conftest.err' | |
5464f5a1 NN |
19911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19912 | (eval $ac_try) 2>&5 | |
19913 | ac_status=$? | |
19914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19915 | (exit $ac_status); }; } && | |
19916 | { ac_try='test -s conftest.$ac_objext' | |
19917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19918 | (eval $ac_try) 2>&5 | |
19919 | ac_status=$? | |
19920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19921 | (exit $ac_status); }; }; then | |
2ba49b59 | 19922 | ac_hi=$ac_mid |
1012372a | 19923 | else |
5464f5a1 NN |
19924 | echo "$as_me: failed program was:" >&5 |
19925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19926 | ||
2ba49b59 | 19927 | ac_lo=`expr '(' $ac_mid ')' + 1` |
1012372a | 19928 | fi |
5464f5a1 | 19929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a | 19930 | done |
2ba49b59 KC |
19931 | case $ac_lo in |
19932 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
7a283e07 RW |
19933 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
19934 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19935 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
2ba49b59 KC |
19936 | See \`config.log' for more details." >&5 |
19937 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
19938 | See \`config.log' for more details." >&2;} | |
7a283e07 | 19939 | { (exit 1); exit 1; }; }; } ;; |
2ba49b59 KC |
19940 | esac |
19941 | else | |
19942 | if test "$cross_compiling" = yes; then | |
7a283e07 RW |
19943 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
19944 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19945 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
49c96104 SE |
19946 | See \`config.log' for more details." >&5 |
19947 | echo "$as_me: error: cannot run test program while cross compiling | |
19948 | See \`config.log' for more details." >&2;} | |
7a283e07 | 19949 | { (exit 1); exit 1; }; }; } |
2ba49b59 KC |
19950 | else |
19951 | cat >conftest.$ac_ext <<_ACEOF | |
19952 | /* confdefs.h. */ | |
19953 | _ACEOF | |
19954 | cat confdefs.h >>conftest.$ac_ext | |
19955 | cat >>conftest.$ac_ext <<_ACEOF | |
19956 | /* end confdefs.h. */ | |
19957 | $ac_includes_default | |
19958 | long longval () { return (long) (sizeof (off_t)); } | |
19959 | unsigned long ulongval () { return (long) (sizeof (off_t)); } | |
19960 | #include <stdio.h> | |
19961 | #include <stdlib.h> | |
19962 | int | |
19963 | main () | |
19964 | { | |
1012372a | 19965 | |
2ba49b59 KC |
19966 | FILE *f = fopen ("conftest.val", "w"); |
19967 | if (! f) | |
19968 | exit (1); | |
19969 | if (((long) (sizeof (off_t))) < 0) | |
19970 | { | |
19971 | long i = longval (); | |
19972 | if (i != ((long) (sizeof (off_t)))) | |
19973 | exit (1); | |
19974 | fprintf (f, "%ld\n", i); | |
19975 | } | |
19976 | else | |
19977 | { | |
19978 | unsigned long i = ulongval (); | |
19979 | if (i != ((long) (sizeof (off_t)))) | |
19980 | exit (1); | |
19981 | fprintf (f, "%lu\n", i); | |
19982 | } | |
19983 | exit (ferror (f) || fclose (f) != 0); | |
19984 | ||
19985 | ; | |
19986 | return 0; | |
19987 | } | |
19988 | _ACEOF | |
19989 | rm -f conftest$ac_exeext | |
19990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19991 | (eval $ac_link) 2>&5 | |
19992 | ac_status=$? | |
19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19996 | (eval $ac_try) 2>&5 | |
19997 | ac_status=$? | |
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19999 | (exit $ac_status); }; }; then | |
20000 | ac_cv_sizeof_off_t=`cat conftest.val` | |
20001 | else | |
20002 | echo "$as_me: program exited with status $ac_status" >&5 | |
20003 | echo "$as_me: failed program was:" >&5 | |
20004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 20005 | |
2ba49b59 | 20006 | ( exit $ac_status ) |
7a283e07 RW |
20007 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
20008 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2ba49b59 KC |
20009 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 |
20010 | See \`config.log' for more details." >&5 | |
20011 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
20012 | See \`config.log' for more details." >&2;} | |
7a283e07 | 20013 | { (exit 1); exit 1; }; }; } |
1012372a | 20014 | fi |
2ba49b59 KC |
20015 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20016 | fi | |
20017 | fi | |
20018 | rm -f conftest.val | |
20019 | else | |
20020 | ac_cv_sizeof_off_t=0 | |
20021 | fi | |
20022 | fi | |
5464f5a1 NN |
20023 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
20024 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
5464f5a1 | 20025 | cat >>confdefs.h <<_ACEOF |
1012372a | 20026 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 20027 | _ACEOF |
1012372a AC |
20028 | |
20029 | ||
1012372a | 20030 | fi |
5464f5a1 NN |
20031 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
20032 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
20033 | bfd_file_ptr="long" |
20034 | bfd_ufile_ptr="unsigned long" | |
20035 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
20036 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
20037 | bfd_file_ptr=BFD_HOST_64_BIT |
20038 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
20039 | fi | |
5464f5a1 NN |
20040 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
20041 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
20042 | |
20043 | ||
20044 | ||
20045 | ||
252b5132 RH |
20046 | tdefaults="" |
20047 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
20048 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 20049 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
20050 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
20051 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
20052 | ||
6be7c12c | 20053 | |
5464f5a1 NN |
20054 | |
20055 | ||
20056 | for ac_header in stdlib.h unistd.h | |
252b5132 | 20057 | do |
5464f5a1 NN |
20058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20060 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20064 | fi | |
20065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20066 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20067 | else | |
20068 | # Is the header compilable? | |
20069 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20070 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20071 | cat >conftest.$ac_ext <<_ACEOF | |
20072 | /* confdefs.h. */ | |
20073 | _ACEOF | |
20074 | cat confdefs.h >>conftest.$ac_ext | |
20075 | cat >>conftest.$ac_ext <<_ACEOF | |
20076 | /* end confdefs.h. */ | |
20077 | $ac_includes_default | |
20078 | #include <$ac_header> | |
20079 | _ACEOF | |
20080 | rm -f conftest.$ac_objext | |
20081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20082 | (eval $ac_compile) 2>conftest.er1 | |
20083 | ac_status=$? | |
20084 | grep -v '^ *+' conftest.er1 >conftest.err | |
20085 | rm -f conftest.er1 | |
20086 | cat conftest.err >&5 | |
20087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20088 | (exit $ac_status); } && | |
49c96104 SE |
20089 | { ac_try='test -z "$ac_c_werror_flag" |
20090 | || test ! -s conftest.err' | |
5464f5a1 NN |
20091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20092 | (eval $ac_try) 2>&5 | |
20093 | ac_status=$? | |
20094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20095 | (exit $ac_status); }; } && | |
20096 | { ac_try='test -s conftest.$ac_objext' | |
20097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20098 | (eval $ac_try) 2>&5 | |
20099 | ac_status=$? | |
20100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20101 | (exit $ac_status); }; }; then | |
20102 | ac_header_compiler=yes | |
20103 | else | |
20104 | echo "$as_me: failed program was:" >&5 | |
20105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20106 | ||
20107 | ac_header_compiler=no | |
20108 | fi | |
20109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20110 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20111 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20112 | ||
20113 | # Is the header present? | |
20114 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20115 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20116 | cat >conftest.$ac_ext <<_ACEOF | |
20117 | /* confdefs.h. */ | |
20118 | _ACEOF | |
20119 | cat confdefs.h >>conftest.$ac_ext | |
20120 | cat >>conftest.$ac_ext <<_ACEOF | |
20121 | /* end confdefs.h. */ | |
20122 | #include <$ac_header> | |
20123 | _ACEOF | |
20124 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20126 | ac_status=$? | |
20127 | grep -v '^ *+' conftest.er1 >conftest.err | |
20128 | rm -f conftest.er1 | |
20129 | cat conftest.err >&5 | |
20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20131 | (exit $ac_status); } >/dev/null; then | |
20132 | if test -s conftest.err; then | |
20133 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20134 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20135 | else | |
20136 | ac_cpp_err= | |
20137 | fi | |
252b5132 | 20138 | else |
5464f5a1 | 20139 | ac_cpp_err=yes |
252b5132 | 20140 | fi |
5464f5a1 NN |
20141 | if test -z "$ac_cpp_err"; then |
20142 | ac_header_preproc=yes | |
20143 | else | |
20144 | echo "$as_me: failed program was:" >&5 | |
20145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20146 | ||
20147 | ac_header_preproc=no | |
252b5132 | 20148 | fi |
5464f5a1 NN |
20149 | rm -f conftest.err conftest.$ac_ext |
20150 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20151 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20152 | ||
20153 | # So? What about this header? | |
20154 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20155 | yes:no: ) | |
20156 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20157 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20158 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20159 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20160 | ac_header_preproc=yes | |
20161 | ;; | |
20162 | no:yes:* ) | |
20163 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20164 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20165 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20166 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20167 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20168 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20169 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20170 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20171 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20172 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20173 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20174 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20175 | ( | |
20176 | cat <<\_ASBOX | |
20177 | ## ------------------------------------------ ## | |
20178 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20179 | ## ------------------------------------------ ## | |
20180 | _ASBOX | |
20181 | ) | | |
20182 | sed "s/^/$as_me: WARNING: /" >&2 | |
20183 | ;; | |
20184 | esac | |
20185 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 20189 | else |
5464f5a1 NN |
20190 | eval "$as_ac_Header=\$ac_header_preproc" |
20191 | fi | |
20192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20194 | ||
20195 | fi | |
20196 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20197 | cat >>confdefs.h <<_ACEOF | |
20198 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20199 | _ACEOF | |
20200 | ||
252b5132 | 20201 | fi |
5464f5a1 | 20202 | |
252b5132 RH |
20203 | done |
20204 | ||
5464f5a1 | 20205 | |
252b5132 RH |
20206 | for ac_func in getpagesize |
20207 | do | |
5464f5a1 NN |
20208 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20209 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20210 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20211 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20213 | else | |
20214 | cat >conftest.$ac_ext <<_ACEOF | |
20215 | /* confdefs.h. */ | |
20216 | _ACEOF | |
20217 | cat confdefs.h >>conftest.$ac_ext | |
20218 | cat >>conftest.$ac_ext <<_ACEOF | |
20219 | /* end confdefs.h. */ | |
20220 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20221 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20222 | #define $ac_func innocuous_$ac_func | |
20223 | ||
252b5132 | 20224 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
20225 | which can conflict with char $ac_func (); below. |
20226 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20227 | <limits.h> exists even on freestanding compilers. */ | |
20228 | ||
20229 | #ifdef __STDC__ | |
20230 | # include <limits.h> | |
20231 | #else | |
20232 | # include <assert.h> | |
20233 | #endif | |
6be7c12c | 20234 | |
5464f5a1 | 20235 | #undef $ac_func |
252b5132 | 20236 | |
5464f5a1 NN |
20237 | /* Override any gcc2 internal prototype to avoid an error. */ |
20238 | #ifdef __cplusplus | |
20239 | extern "C" | |
20240 | { | |
20241 | #endif | |
20242 | /* We use char because int might match the return type of a gcc2 | |
20243 | builtin and then its argument prototype would still apply. */ | |
20244 | char $ac_func (); | |
252b5132 RH |
20245 | /* The GNU C library defines this for functions which it implements |
20246 | to always fail with ENOSYS. Some functions are actually named | |
20247 | something starting with __ and the normal name is an alias. */ | |
20248 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20249 | choke me | |
20250 | #else | |
5464f5a1 NN |
20251 | char (*f) () = $ac_func; |
20252 | #endif | |
20253 | #ifdef __cplusplus | |
20254 | } | |
252b5132 RH |
20255 | #endif |
20256 | ||
5464f5a1 NN |
20257 | int |
20258 | main () | |
20259 | { | |
20260 | return f != $ac_func; | |
20261 | ; | |
20262 | return 0; | |
20263 | } | |
20264 | _ACEOF | |
20265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20267 | (eval $ac_link) 2>conftest.er1 | |
20268 | ac_status=$? | |
20269 | grep -v '^ *+' conftest.er1 >conftest.err | |
20270 | rm -f conftest.er1 | |
20271 | cat conftest.err >&5 | |
20272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20273 | (exit $ac_status); } && | |
49c96104 SE |
20274 | { ac_try='test -z "$ac_c_werror_flag" |
20275 | || test ! -s conftest.err' | |
5464f5a1 NN |
20276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20277 | (eval $ac_try) 2>&5 | |
20278 | ac_status=$? | |
20279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20280 | (exit $ac_status); }; } && | |
20281 | { ac_try='test -s conftest$ac_exeext' | |
20282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20283 | (eval $ac_try) 2>&5 | |
20284 | ac_status=$? | |
20285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20286 | (exit $ac_status); }; }; then | |
20287 | eval "$as_ac_var=yes" | |
20288 | else | |
20289 | echo "$as_me: failed program was:" >&5 | |
20290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20291 | ||
20292 | eval "$as_ac_var=no" | |
20293 | fi | |
20294 | rm -f conftest.err conftest.$ac_objext \ | |
20295 | conftest$ac_exeext conftest.$ac_ext | |
20296 | fi | |
20297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20298 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20299 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20300 | cat >>confdefs.h <<_ACEOF | |
20301 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20302 | _ACEOF | |
252b5132 | 20303 | |
252b5132 RH |
20304 | fi |
20305 | done | |
20306 | ||
5464f5a1 NN |
20307 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
20308 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
20309 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
20310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
20311 | else |
20312 | if test "$cross_compiling" = yes; then | |
20313 | ac_cv_func_mmap_fixed_mapped=no | |
20314 | else | |
5464f5a1 NN |
20315 | cat >conftest.$ac_ext <<_ACEOF |
20316 | /* confdefs.h. */ | |
20317 | _ACEOF | |
20318 | cat confdefs.h >>conftest.$ac_ext | |
20319 | cat >>conftest.$ac_ext <<_ACEOF | |
20320 | /* end confdefs.h. */ | |
20321 | $ac_includes_default | |
20322 | /* malloc might have been renamed as rpl_malloc. */ | |
20323 | #undef malloc | |
6be7c12c | 20324 | |
252b5132 RH |
20325 | /* Thanks to Mike Haertel and Jim Avera for this test. |
20326 | Here is a matrix of mmap possibilities: | |
20327 | mmap private not fixed | |
20328 | mmap private fixed at somewhere currently unmapped | |
20329 | mmap private fixed at somewhere already mapped | |
20330 | mmap shared not fixed | |
20331 | mmap shared fixed at somewhere currently unmapped | |
20332 | mmap shared fixed at somewhere already mapped | |
20333 | For private mappings, we should verify that changes cannot be read() | |
20334 | back from the file, nor mmap's back from the file at a different | |
20335 | address. (There have been systems where private was not correctly | |
20336 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 20337 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
20338 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
20339 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 20340 | propagated back to all the places they're supposed to be. |
252b5132 RH |
20341 | |
20342 | Grep wants private fixed already mapped. | |
20343 | The main things grep needs to know about mmap are: | |
20344 | * does it exist and is it safe to write into the mmap'd area | |
20345 | * how to use it (BSD variants) */ | |
5464f5a1 | 20346 | |
252b5132 RH |
20347 | #include <fcntl.h> |
20348 | #include <sys/mman.h> | |
20349 | ||
5464f5a1 NN |
20350 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
20351 | char *malloc (); | |
20352 | #endif | |
6be7c12c | 20353 | |
5464f5a1 NN |
20354 | /* This mess was copied from the GNU getpagesize.h. */ |
20355 | #if !HAVE_GETPAGESIZE | |
252b5132 | 20356 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 20357 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
20358 | # define HAVE_SYS_PARAM_H 1 |
20359 | # endif | |
20360 | ||
20361 | # ifdef _SC_PAGESIZE | |
20362 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
20363 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 20364 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
20365 | # include <sys/param.h> |
20366 | # ifdef EXEC_PAGESIZE | |
20367 | # define getpagesize() EXEC_PAGESIZE | |
20368 | # else /* no EXEC_PAGESIZE */ | |
20369 | # ifdef NBPG | |
20370 | # define getpagesize() NBPG * CLSIZE | |
20371 | # ifndef CLSIZE | |
20372 | # define CLSIZE 1 | |
20373 | # endif /* no CLSIZE */ | |
20374 | # else /* no NBPG */ | |
20375 | # ifdef NBPC | |
20376 | # define getpagesize() NBPC | |
20377 | # else /* no NBPC */ | |
20378 | # ifdef PAGESIZE | |
20379 | # define getpagesize() PAGESIZE | |
20380 | # endif /* PAGESIZE */ | |
20381 | # endif /* no NBPC */ | |
20382 | # endif /* no NBPG */ | |
20383 | # endif /* no EXEC_PAGESIZE */ | |
20384 | # else /* no HAVE_SYS_PARAM_H */ | |
20385 | # define getpagesize() 8192 /* punt totally */ | |
20386 | # endif /* no HAVE_SYS_PARAM_H */ | |
20387 | # endif /* no _SC_PAGESIZE */ | |
20388 | ||
5464f5a1 NN |
20389 | #endif /* no HAVE_GETPAGESIZE */ |
20390 | ||
20391 | int | |
20392 | main () | |
20393 | { | |
20394 | char *data, *data2, *data3; | |
20395 | int i, pagesize; | |
20396 | int fd; | |
20397 | ||
20398 | pagesize = getpagesize (); | |
20399 | ||
20400 | /* First, make a file with some known garbage in it. */ | |
20401 | data = (char *) malloc (pagesize); | |
20402 | if (!data) | |
20403 | exit (1); | |
20404 | for (i = 0; i < pagesize; ++i) | |
20405 | *(data + i) = rand (); | |
20406 | umask (0); | |
20407 | fd = creat ("conftest.mmap", 0600); | |
20408 | if (fd < 0) | |
20409 | exit (1); | |
20410 | if (write (fd, data, pagesize) != pagesize) | |
20411 | exit (1); | |
20412 | close (fd); | |
20413 | ||
20414 | /* Next, try to mmap the file at a fixed address which already has | |
20415 | something else allocated at it. If we can, also make sure that | |
20416 | we see the same garbage. */ | |
20417 | fd = open ("conftest.mmap", O_RDWR); | |
20418 | if (fd < 0) | |
20419 | exit (1); | |
20420 | data2 = (char *) malloc (2 * pagesize); | |
20421 | if (!data2) | |
20422 | exit (1); | |
20423 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
20424 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
20425 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
20426 | exit (1); | |
20427 | for (i = 0; i < pagesize; ++i) | |
20428 | if (*(data + i) != *(data2 + i)) | |
20429 | exit (1); | |
20430 | ||
20431 | /* Finally, make sure that changes to the mapped area do not | |
20432 | percolate back to the file as seen by read(). (This is a bug on | |
20433 | some variants of i386 svr4.0.) */ | |
20434 | for (i = 0; i < pagesize; ++i) | |
20435 | *(data2 + i) = *(data2 + i) + 1; | |
20436 | data3 = (char *) malloc (pagesize); | |
20437 | if (!data3) | |
20438 | exit (1); | |
20439 | if (read (fd, data3, pagesize) != pagesize) | |
20440 | exit (1); | |
20441 | for (i = 0; i < pagesize; ++i) | |
20442 | if (*(data + i) != *(data3 + i)) | |
20443 | exit (1); | |
20444 | close (fd); | |
20445 | exit (0); | |
20446 | } | |
20447 | _ACEOF | |
20448 | rm -f conftest$ac_exeext | |
20449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20450 | (eval $ac_link) 2>&5 | |
20451 | ac_status=$? | |
20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20455 | (eval $ac_try) 2>&5 | |
20456 | ac_status=$? | |
20457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20458 | (exit $ac_status); }; }; then | |
20459 | ac_cv_func_mmap_fixed_mapped=yes | |
20460 | else | |
20461 | echo "$as_me: program exited with status $ac_status" >&5 | |
20462 | echo "$as_me: failed program was:" >&5 | |
20463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20464 | ||
20465 | ( exit $ac_status ) | |
20466 | ac_cv_func_mmap_fixed_mapped=no | |
20467 | fi | |
20468 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20469 | fi | |
20470 | fi | |
20471 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
20472 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
20473 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
20474 | ||
20475 | cat >>confdefs.h <<\_ACEOF | |
20476 | #define HAVE_MMAP 1 | |
20477 | _ACEOF | |
20478 | ||
20479 | fi | |
20480 | rm -f conftest.mmap | |
20481 | ||
20482 | ||
20483 | ||
20484 | for ac_func in madvise mprotect | |
20485 | do | |
20486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20487 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20489 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20491 | else | |
20492 | cat >conftest.$ac_ext <<_ACEOF | |
20493 | /* confdefs.h. */ | |
20494 | _ACEOF | |
20495 | cat confdefs.h >>conftest.$ac_ext | |
20496 | cat >>conftest.$ac_ext <<_ACEOF | |
20497 | /* end confdefs.h. */ | |
20498 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20499 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20500 | #define $ac_func innocuous_$ac_func | |
20501 | ||
20502 | /* System header to define __stub macros and hopefully few prototypes, | |
20503 | which can conflict with char $ac_func (); below. | |
20504 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20505 | <limits.h> exists even on freestanding compilers. */ | |
20506 | ||
20507 | #ifdef __STDC__ | |
20508 | # include <limits.h> | |
20509 | #else | |
20510 | # include <assert.h> | |
20511 | #endif | |
20512 | ||
20513 | #undef $ac_func | |
20514 | ||
20515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20516 | #ifdef __cplusplus | |
20517 | extern "C" | |
20518 | { | |
20519 | #endif | |
20520 | /* We use char because int might match the return type of a gcc2 | |
20521 | builtin and then its argument prototype would still apply. */ | |
20522 | char $ac_func (); | |
20523 | /* The GNU C library defines this for functions which it implements | |
20524 | to always fail with ENOSYS. Some functions are actually named | |
20525 | something starting with __ and the normal name is an alias. */ | |
20526 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20527 | choke me | |
20528 | #else | |
20529 | char (*f) () = $ac_func; | |
20530 | #endif | |
20531 | #ifdef __cplusplus | |
20532 | } | |
20533 | #endif | |
20534 | ||
20535 | int | |
20536 | main () | |
20537 | { | |
20538 | return f != $ac_func; | |
20539 | ; | |
20540 | return 0; | |
20541 | } | |
20542 | _ACEOF | |
20543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20545 | (eval $ac_link) 2>conftest.er1 | |
20546 | ac_status=$? | |
20547 | grep -v '^ *+' conftest.er1 >conftest.err | |
20548 | rm -f conftest.er1 | |
20549 | cat conftest.err >&5 | |
20550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20551 | (exit $ac_status); } && | |
49c96104 SE |
20552 | { ac_try='test -z "$ac_c_werror_flag" |
20553 | || test ! -s conftest.err' | |
5464f5a1 NN |
20554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20555 | (eval $ac_try) 2>&5 | |
20556 | ac_status=$? | |
20557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20558 | (exit $ac_status); }; } && | |
20559 | { ac_try='test -s conftest$ac_exeext' | |
20560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20561 | (eval $ac_try) 2>&5 | |
20562 | ac_status=$? | |
20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20564 | (exit $ac_status); }; }; then | |
20565 | eval "$as_ac_var=yes" | |
20566 | else | |
20567 | echo "$as_me: failed program was:" >&5 | |
20568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20569 | ||
20570 | eval "$as_ac_var=no" | |
20571 | fi | |
20572 | rm -f conftest.err conftest.$ac_objext \ | |
20573 | conftest$ac_exeext conftest.$ac_ext | |
20574 | fi | |
20575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20576 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20577 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20578 | cat >>confdefs.h <<_ACEOF | |
20579 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20580 | _ACEOF | |
20581 | ||
20582 | fi | |
20583 | done | |
20584 | ||
20585 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
20586 | true+yes ) | |
20587 | cat >>confdefs.h <<\_ACEOF | |
20588 | #define USE_MMAP 1 | |
20589 | _ACEOF | |
20590 | ;; | |
20591 | esac | |
20592 | ||
20593 | rm -f doc/config.status | |
20594 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
20595 | ||
20e95c23 | 20596 | |
5464f5a1 NN |
20597 | ac_config_commands="$ac_config_commands default" |
20598 | ||
108a6f8e CD |
20599 | |
20600 | ||
20601 | ||
20602 | ||
20603 | ||
5464f5a1 NN |
20604 | cat >confcache <<\_ACEOF |
20605 | # This file is a shell script that caches the results of configure | |
20606 | # tests run on this system so they can be shared between configure | |
20607 | # scripts and configure runs, see configure's option --config-cache. | |
20608 | # It is not useful on other systems. If it contains results you don't | |
20609 | # want to keep, you may remove or edit it. | |
20610 | # | |
20611 | # config.status only pays attention to the cache file if you give it | |
20612 | # the --recheck option to rerun configure. | |
20613 | # | |
20614 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20615 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20616 | # following values. | |
20617 | ||
20618 | _ACEOF | |
20619 | ||
20620 | # The following way of writing the cache mishandles newlines in values, | |
20621 | # but we know of no workaround that is simple, portable, and efficient. | |
20622 | # So, don't put newlines in cache variables' values. | |
20623 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20624 | # and sets the high bit in the cache file unless we assign to the vars. | |
20625 | { | |
20626 | (set) 2>&1 | | |
20627 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20628 | *ac_space=\ *) | |
20629 | # `set' does not quote correctly, so add quotes (double-quote | |
20630 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20631 | sed -n \ | |
20632 | "s/'/'\\\\''/g; | |
20633 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20634 | ;; | |
20635 | *) | |
20636 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20637 | sed -n \ | |
20638 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20639 | ;; | |
20640 | esac; | |
20641 | } | | |
20642 | sed ' | |
20643 | t clear | |
20644 | : clear | |
20645 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20646 | t end | |
20647 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20648 | : end' >>confcache | |
20649 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20650 | if test -w $cache_file; then | |
20651 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20652 | cat confcache >$cache_file | |
20653 | else | |
20654 | echo "not updating unwritable cache $cache_file" | |
20655 | fi | |
20656 | fi | |
20657 | rm -f confcache | |
20658 | ||
20659 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20660 | # Let make expand exec_prefix. | |
20661 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20662 | ||
20663 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20664 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20665 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20666 | # (actually we leave an empty line to preserve line numbers). | |
20667 | if test "x$srcdir" = x.; then | |
20668 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20669 | s/:*\$(srcdir):*/:/; | |
20670 | s/:*\${srcdir}:*/:/; | |
20671 | s/:*@srcdir@:*/:/; | |
20672 | s/^\([^=]*=[ ]*\):*/\1/; | |
20673 | s/:*$//; | |
20674 | s/^[^=]*=[ ]*$//; | |
20675 | }' | |
20676 | fi | |
20677 | ||
20678 | DEFS=-DHAVE_CONFIG_H | |
20679 | ||
20680 | ac_libobjs= | |
20681 | ac_ltlibobjs= | |
20682 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
20683 | # 1. Remove the extension, and $U if already installed. | |
20684 | ac_i=`echo "$ac_i" | | |
20685 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
20686 | # 2. Add them. | |
20687 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
20688 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
20689 | done | |
20690 | LIBOBJS=$ac_libobjs | |
20691 | ||
20692 | LTLIBOBJS=$ac_ltlibobjs | |
20693 | ||
20694 | ||
f5385ebf AM |
20695 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20696 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
20697 | Usually this means the macro was only invoked conditionally." >&5 | |
20698 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
20699 | Usually this means the macro was only invoked conditionally." >&2;} | |
20700 | { (exit 1); exit 1; }; } | |
20701 | fi | |
20702 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
20703 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
20704 | Usually this means the macro was only invoked conditionally." >&5 | |
20705 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
20706 | Usually this means the macro was only invoked conditionally." >&2;} | |
20707 | { (exit 1); exit 1; }; } | |
20708 | fi | |
20709 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
20710 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20711 | Usually this means the macro was only invoked conditionally." >&5 | |
20712 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20713 | Usually this means the macro was only invoked conditionally." >&2;} | |
20714 | { (exit 1); exit 1; }; } | |
20715 | fi | |
d5fbea21 DJ |
20716 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
20717 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
20718 | Usually this means the macro was only invoked conditionally." >&5 | |
20719 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
20720 | Usually this means the macro was only invoked conditionally." >&2;} | |
20721 | { (exit 1); exit 1; }; } | |
20722 | fi | |
f5385ebf AM |
20723 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then |
20724 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
20725 | Usually this means the macro was only invoked conditionally." >&5 | |
20726 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
20727 | Usually this means the macro was only invoked conditionally." >&2;} | |
20728 | { (exit 1); exit 1; }; } | |
20729 | fi | |
5464f5a1 NN |
20730 | |
20731 | : ${CONFIG_STATUS=./config.status} | |
20732 | ac_clean_files_save=$ac_clean_files | |
20733 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20734 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
20735 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20736 | cat >$CONFIG_STATUS <<_ACEOF | |
20737 | #! $SHELL | |
20738 | # Generated by $as_me. | |
20739 | # Run this file to recreate the current configuration. | |
20740 | # Compiler output produced by configure, useful for debugging | |
20741 | # configure, is in config.log if it exists. | |
20742 | ||
20743 | debug=false | |
20744 | ac_cs_recheck=false | |
20745 | ac_cs_silent=false | |
20746 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20747 | _ACEOF | |
20748 | ||
20749 | cat >>$CONFIG_STATUS <<\_ACEOF | |
20750 | ## --------------------- ## | |
20751 | ## M4sh Initialization. ## | |
20752 | ## --------------------- ## | |
20753 | ||
20754 | # Be Bourne compatible | |
20755 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20756 | emulate sh | |
20757 | NULLCMD=: | |
20758 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20759 | # is contrary to our usage. Disable this feature. | |
20760 | alias -g '${1+"$@"}'='"$@"' | |
20761 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20762 | set -o posix | |
20763 | fi | |
20764 | DUALCASE=1; export DUALCASE # for MKS sh | |
20765 | ||
20766 | # Support unset when possible. | |
20767 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
20768 | as_unset=unset | |
20769 | else | |
20770 | as_unset=false | |
20771 | fi | |
20772 | ||
20773 | ||
20774 | # Work around bugs in pre-3.0 UWIN ksh. | |
20775 | $as_unset ENV MAIL MAILPATH | |
20776 | PS1='$ ' | |
20777 | PS2='> ' | |
20778 | PS4='+ ' | |
20779 | ||
20780 | # NLS nuisances. | |
20781 | for as_var in \ | |
20782 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
20783 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
20784 | LC_TELEPHONE LC_TIME | |
20785 | do | |
20786 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
20787 | eval $as_var=C; export $as_var | |
20788 | else | |
20789 | $as_unset $as_var | |
20790 | fi | |
20791 | done | |
20792 | ||
20793 | # Required to use basename. | |
20794 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
20795 | as_expr=expr | |
20796 | else | |
20797 | as_expr=false | |
20798 | fi | |
20799 | ||
20800 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
20801 | as_basename=basename | |
20802 | else | |
20803 | as_basename=false | |
20804 | fi | |
252b5132 | 20805 | |
6be7c12c | 20806 | |
5464f5a1 NN |
20807 | # Name of the executable. |
20808 | as_me=`$as_basename "$0" || | |
20809 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20810 | X"$0" : 'X\(//\)$' \| \ | |
20811 | X"$0" : 'X\(/\)$' \| \ | |
20812 | . : '\(.\)' 2>/dev/null || | |
20813 | echo X/"$0" | | |
20814 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
20815 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
20816 | /^X\/\(\/\).*/{ s//\1/; q; } | |
20817 | s/.*/./; q'` | |
20818 | ||
20819 | ||
20820 | # PATH needs CR, and LINENO needs CR and PATH. | |
20821 | # Avoid depending upon Character Ranges. | |
20822 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20823 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20824 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20825 | as_cr_digits='0123456789' | |
20826 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20827 | ||
20828 | # The user is always right. | |
20829 | if test "${PATH_SEPARATOR+set}" != set; then | |
20830 | echo "#! /bin/sh" >conf$$.sh | |
20831 | echo "exit 0" >>conf$$.sh | |
20832 | chmod +x conf$$.sh | |
20833 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
20834 | PATH_SEPARATOR=';' | |
20835 | else | |
20836 | PATH_SEPARATOR=: | |
20837 | fi | |
20838 | rm -f conf$$.sh | |
20839 | fi | |
20840 | ||
20841 | ||
20842 | as_lineno_1=$LINENO | |
20843 | as_lineno_2=$LINENO | |
20844 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
20845 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
20846 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
20847 | # Find who we are. Look in the path if we contain no path at all | |
20848 | # relative or not. | |
20849 | case $0 in | |
20850 | *[\\/]* ) as_myself=$0 ;; | |
20851 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20852 | for as_dir in $PATH | |
20853 | do | |
20854 | IFS=$as_save_IFS | |
20855 | test -z "$as_dir" && as_dir=. | |
20856 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20857 | done | |
20858 | ||
20859 | ;; | |
20860 | esac | |
20861 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20862 | # in which case we are not to be found in the path. | |
20863 | if test "x$as_myself" = x; then | |
20864 | as_myself=$0 | |
20865 | fi | |
20866 | if test ! -f "$as_myself"; then | |
20867 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
20868 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
20869 | { (exit 1); exit 1; }; } | |
20870 | fi | |
20871 | case $CONFIG_SHELL in | |
20872 | '') | |
20873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20874 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
20875 | do | |
20876 | IFS=$as_save_IFS | |
20877 | test -z "$as_dir" && as_dir=. | |
20878 | for as_base in sh bash ksh sh5; do | |
20879 | case $as_dir in | |
20880 | /*) | |
20881 | if ("$as_dir/$as_base" -c ' | |
20882 | as_lineno_1=$LINENO | |
20883 | as_lineno_2=$LINENO | |
20884 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
20885 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
20886 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
20887 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
20888 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
20889 | CONFIG_SHELL=$as_dir/$as_base | |
20890 | export CONFIG_SHELL | |
20891 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
20892 | fi;; | |
20893 | esac | |
20894 | done | |
20895 | done | |
20896 | ;; | |
20897 | esac | |
20898 | ||
20899 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
20900 | # uniformly replaced by the line number. The first 'sed' inserts a | |
20901 | # line-number line before each line; the second 'sed' does the real | |
20902 | # work. The second script uses 'N' to pair each line-number line | |
20903 | # with the numbered line, and appends trailing '-' during | |
20904 | # substitution so that $LINENO is not a special case at line end. | |
20905 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
20906 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
20907 | sed '=' <$as_myself | | |
20908 | sed ' | |
20909 | N | |
20910 | s,$,-, | |
20911 | : loop | |
20912 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
20913 | t loop | |
20914 | s,-$,, | |
20915 | s,^['$as_cr_digits']*\n,, | |
20916 | ' >$as_me.lineno && | |
20917 | chmod +x $as_me.lineno || | |
20918 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
20919 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
20920 | { (exit 1); exit 1; }; } | |
20921 | ||
20922 | # Don't try to exec as it changes $[0], causing all sort of problems | |
20923 | # (the dirname of $[0] is not the place where we might find the | |
20924 | # original and so on. Autoconf is especially sensible to this). | |
20925 | . ./$as_me.lineno | |
20926 | # Exit status is that of the last command. | |
20927 | exit | |
252b5132 | 20928 | } |
6be7c12c | 20929 | |
5464f5a1 NN |
20930 | |
20931 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
20932 | *c*,-n*) ECHO_N= ECHO_C=' | |
20933 | ' ECHO_T=' ' ;; | |
20934 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
20935 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
20936 | esac | |
20937 | ||
20938 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
20939 | as_expr=expr | |
252b5132 | 20940 | else |
5464f5a1 | 20941 | as_expr=false |
252b5132 | 20942 | fi |
5464f5a1 NN |
20943 | |
20944 | rm -f conf$$ conf$$.exe conf$$.file | |
20945 | echo >conf$$.file | |
20946 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20947 | # We could just check for DJGPP; but this test a) works b) is more generic | |
20948 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
20949 | if test -f conf$$.exe; then | |
20950 | # Don't use ln at all; we don't have any links | |
20951 | as_ln_s='cp -p' | |
20952 | else | |
20953 | as_ln_s='ln -s' | |
20954 | fi | |
20955 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
20956 | as_ln_s=ln | |
20957 | else | |
20958 | as_ln_s='cp -p' | |
252b5132 | 20959 | fi |
5464f5a1 | 20960 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 20961 | |
5464f5a1 NN |
20962 | if mkdir -p . 2>/dev/null; then |
20963 | as_mkdir_p=: | |
20964 | else | |
20965 | test -d ./-p && rmdir ./-p | |
20966 | as_mkdir_p=false | |
252b5132 | 20967 | fi |
b3baf5d0 | 20968 | |
5464f5a1 | 20969 | as_executable_p="test -f" |
252b5132 | 20970 | |
5464f5a1 NN |
20971 | # Sed expression to map a string onto a valid CPP name. |
20972 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 20973 | |
5464f5a1 NN |
20974 | # Sed expression to map a string onto a valid variable name. |
20975 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 20976 | |
252b5132 | 20977 | |
5464f5a1 NN |
20978 | # IFS |
20979 | # We need space, tab and new line, in precisely that order. | |
20980 | as_nl=' | |
20981 | ' | |
20982 | IFS=" $as_nl" | |
252b5132 | 20983 | |
5464f5a1 NN |
20984 | # CDPATH. |
20985 | $as_unset CDPATH | |
20986 | ||
20987 | exec 6>&1 | |
20988 | ||
20989 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
20990 | # report actual input values of CONFIG_FILES etc. instead of their | |
20991 | # values after options handling. Logging --version etc. is OK. | |
20992 | exec 5>>config.log | |
20993 | { | |
20994 | echo | |
20995 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20996 | ## Running $as_me. ## | |
20997 | _ASBOX | |
20998 | } >&5 | |
20999 | cat >&5 <<_CSEOF | |
21000 | ||
21001 | This file was extended by $as_me, which was | |
21002 | generated by GNU Autoconf 2.59. Invocation command line was | |
21003 | ||
21004 | CONFIG_FILES = $CONFIG_FILES | |
21005 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21006 | CONFIG_LINKS = $CONFIG_LINKS | |
21007 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21008 | $ $0 $@ | |
21009 | ||
21010 | _CSEOF | |
21011 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21012 | echo >&5 | |
21013 | _ACEOF | |
21014 | ||
21015 | # Files that config.status was made for. | |
21016 | if test -n "$ac_config_files"; then | |
21017 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 21018 | fi |
5464f5a1 NN |
21019 | |
21020 | if test -n "$ac_config_headers"; then | |
21021 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 21022 | fi |
252b5132 | 21023 | |
5464f5a1 NN |
21024 | if test -n "$ac_config_links"; then |
21025 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 21026 | fi |
252b5132 | 21027 | |
5464f5a1 NN |
21028 | if test -n "$ac_config_commands"; then |
21029 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21030 | fi | |
252b5132 | 21031 | |
5464f5a1 NN |
21032 | cat >>$CONFIG_STATUS <<\_ACEOF |
21033 | ||
21034 | ac_cs_usage="\ | |
21035 | \`$as_me' instantiates files from templates according to the | |
21036 | current configuration. | |
21037 | ||
21038 | Usage: $0 [OPTIONS] [FILE]... | |
21039 | ||
21040 | -h, --help print this help, then exit | |
21041 | -V, --version print version number, then exit | |
21042 | -q, --quiet do not print progress messages | |
21043 | -d, --debug don't remove temporary files | |
21044 | --recheck update $as_me by reconfiguring in the same conditions | |
21045 | --file=FILE[:TEMPLATE] | |
21046 | instantiate the configuration file FILE | |
21047 | --header=FILE[:TEMPLATE] | |
21048 | instantiate the configuration header FILE | |
21049 | ||
21050 | Configuration files: | |
21051 | $config_files | |
21052 | ||
21053 | Configuration headers: | |
21054 | $config_headers | |
21055 | ||
21056 | Configuration commands: | |
21057 | $config_commands | |
21058 | ||
21059 | Report bugs to <[email protected]>." | |
21060 | _ACEOF | |
21061 | ||
21062 | cat >>$CONFIG_STATUS <<_ACEOF | |
21063 | ac_cs_version="\\ | |
21064 | config.status | |
21065 | configured by $0, generated by GNU Autoconf 2.59, | |
21066 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
21067 | ||
21068 | Copyright (C) 2003 Free Software Foundation, Inc. | |
21069 | This config.status script is free software; the Free Software Foundation | |
21070 | gives unlimited permission to copy, distribute and modify it." | |
21071 | srcdir=$srcdir | |
21072 | INSTALL="$INSTALL" | |
21073 | _ACEOF | |
21074 | ||
21075 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21076 | # If no file are specified by the user, then we need to provide default | |
21077 | # value. By we need to know if files were specified by the user. | |
21078 | ac_need_defaults=: | |
21079 | while test $# != 0 | |
21080 | do | |
21081 | case $1 in | |
21082 | --*=*) | |
21083 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21084 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
21085 | ac_shift=: | |
6be7c12c | 21086 | ;; |
5464f5a1 NN |
21087 | -*) |
21088 | ac_option=$1 | |
21089 | ac_optarg=$2 | |
21090 | ac_shift=shift | |
6be7c12c | 21091 | ;; |
5464f5a1 NN |
21092 | *) # This is not an option, so the user has probably given explicit |
21093 | # arguments. | |
21094 | ac_option=$1 | |
21095 | ac_need_defaults=false;; | |
21096 | esac | |
252b5132 | 21097 | |
5464f5a1 NN |
21098 | case $ac_option in |
21099 | # Handling of the options. | |
21100 | _ACEOF | |
21101 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21102 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21103 | ac_cs_recheck=: ;; | |
21104 | --version | --vers* | -V ) | |
21105 | echo "$ac_cs_version"; exit 0 ;; | |
21106 | --he | --h) | |
21107 | # Conflict between --help and --header | |
21108 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
21109 | Try \`$0 --help' for more information." >&5 | |
21110 | echo "$as_me: error: ambiguous option: $1 | |
21111 | Try \`$0 --help' for more information." >&2;} | |
21112 | { (exit 1); exit 1; }; };; | |
21113 | --help | --hel | -h ) | |
21114 | echo "$ac_cs_usage"; exit 0 ;; | |
21115 | --debug | --d* | -d ) | |
21116 | debug=: ;; | |
21117 | --file | --fil | --fi | --f ) | |
21118 | $ac_shift | |
21119 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
21120 | ac_need_defaults=false;; | |
21121 | --header | --heade | --head | --hea ) | |
21122 | $ac_shift | |
21123 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
21124 | ac_need_defaults=false;; | |
21125 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21126 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21127 | ac_cs_silent=: ;; | |
6be7c12c | 21128 | |
5464f5a1 NN |
21129 | # This is an error. |
21130 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
21131 | Try \`$0 --help' for more information." >&5 | |
21132 | echo "$as_me: error: unrecognized option: $1 | |
21133 | Try \`$0 --help' for more information." >&2;} | |
21134 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 21135 | |
5464f5a1 | 21136 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 21137 | |
5464f5a1 NN |
21138 | esac |
21139 | shift | |
21140 | done | |
6be7c12c | 21141 | |
5464f5a1 | 21142 | ac_configure_extra_args= |
252b5132 | 21143 | |
5464f5a1 NN |
21144 | if $ac_cs_silent; then |
21145 | exec 6>/dev/null | |
21146 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21147 | fi | |
6be7c12c | 21148 | |
5464f5a1 NN |
21149 | _ACEOF |
21150 | cat >>$CONFIG_STATUS <<_ACEOF | |
21151 | if \$ac_cs_recheck; then | |
21152 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21153 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21154 | fi | |
21155 | ||
21156 | _ACEOF | |
21157 | ||
21158 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 21159 | # |
5464f5a1 | 21160 | # INIT-COMMANDS section. |
6be7c12c | 21161 | # |
b3baf5d0 | 21162 | |
f5385ebf | 21163 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
21164 | |
21165 | ||
21166 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21167 | # if CDPATH is set. | |
21168 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21169 | ||
21170 | sed_quote_subst='$sed_quote_subst' | |
21171 | double_quote_subst='$double_quote_subst' | |
21172 | delay_variable_subst='$delay_variable_subst' | |
21173 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
21174 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21175 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
21176 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21177 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
21178 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
21179 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21180 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
21181 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21182 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21183 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
21184 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21185 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
21186 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
21187 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21188 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21189 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21190 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
21191 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
21192 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
21193 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
21194 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
21195 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
21196 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
21197 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
21198 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
21199 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21200 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21201 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
21202 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
21203 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
21204 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21205 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
21206 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
21207 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21208 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21209 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21210 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
21211 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21212 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
21213 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
21214 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
21215 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
21216 | lt_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"`' | |
21217 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
21218 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
21219 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
21220 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
21221 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21222 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
21223 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
21224 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21225 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
21226 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
21227 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
21228 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21229 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21230 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
21231 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
21232 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21233 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21234 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
21235 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21236 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21237 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21238 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21239 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21240 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21241 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21242 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21243 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21244 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21245 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21246 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
21247 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
21248 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
21249 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
21250 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21251 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
21252 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21253 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
21254 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
21255 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
21256 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21257 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21258 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21259 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21260 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21261 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
21262 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
21263 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21264 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
21265 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21266 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21267 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21268 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21269 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21270 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21271 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21272 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21273 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21274 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
21275 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
21276 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21277 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21278 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
21279 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
21280 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
21281 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21282 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21283 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21284 | ||
21285 | LTCC='$LTCC' | |
21286 | LTCFLAGS='$LTCFLAGS' | |
21287 | compiler='$compiler_DEFAULT' | |
21288 | ||
21289 | # Quote evaled strings. | |
21290 | for var in SED \ | |
21291 | GREP \ | |
21292 | EGREP \ | |
21293 | FGREP \ | |
21294 | LD \ | |
21295 | NM \ | |
21296 | LN_S \ | |
21297 | lt_SP2NL \ | |
21298 | lt_NL2SP \ | |
21299 | reload_flag \ | |
21300 | deplibs_check_method \ | |
21301 | file_magic_cmd \ | |
21302 | AR \ | |
21303 | AR_FLAGS \ | |
21304 | STRIP \ | |
21305 | RANLIB \ | |
21306 | CC \ | |
21307 | CFLAGS \ | |
21308 | compiler \ | |
21309 | lt_cv_sys_global_symbol_pipe \ | |
21310 | lt_cv_sys_global_symbol_to_cdecl \ | |
21311 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21312 | SHELL \ | |
21313 | ECHO \ | |
21314 | lt_prog_compiler_no_builtin_flag \ | |
21315 | lt_prog_compiler_wl \ | |
21316 | lt_prog_compiler_pic \ | |
21317 | lt_prog_compiler_static \ | |
21318 | lt_cv_prog_compiler_c_o \ | |
21319 | need_locks \ | |
21320 | shrext_cmds \ | |
21321 | export_dynamic_flag_spec \ | |
21322 | whole_archive_flag_spec \ | |
21323 | compiler_needs_object \ | |
21324 | with_gnu_ld \ | |
21325 | allow_undefined_flag \ | |
21326 | no_undefined_flag \ | |
21327 | hardcode_libdir_flag_spec \ | |
21328 | hardcode_libdir_flag_spec_ld \ | |
21329 | hardcode_libdir_separator \ | |
21330 | fix_srcfile_path \ | |
21331 | exclude_expsyms \ | |
21332 | include_expsyms \ | |
21333 | file_list_spec \ | |
21334 | variables_saved_for_relink \ | |
21335 | libname_spec \ | |
21336 | library_names_spec \ | |
21337 | soname_spec \ | |
21338 | finish_eval \ | |
21339 | old_striplib \ | |
21340 | striplib; do | |
21341 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21342 | *[\\\\\\\`\\"\\\$]*) | |
21343 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
21344 | ;; | |
21345 | *) | |
21346 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21347 | ;; | |
21348 | esac | |
21349 | done | |
21350 | ||
21351 | # Double-quote double-evaled strings. | |
21352 | for var in reload_cmds \ | |
21353 | old_postinstall_cmds \ | |
21354 | old_postuninstall_cmds \ | |
21355 | old_archive_cmds \ | |
21356 | extract_expsyms_cmds \ | |
21357 | old_archive_from_new_cmds \ | |
21358 | old_archive_from_expsyms_cmds \ | |
21359 | archive_cmds \ | |
21360 | archive_expsym_cmds \ | |
21361 | module_cmds \ | |
21362 | module_expsym_cmds \ | |
21363 | export_symbols_cmds \ | |
21364 | prelink_cmds \ | |
21365 | postinstall_cmds \ | |
21366 | postuninstall_cmds \ | |
21367 | finish_cmds \ | |
21368 | sys_lib_search_path_spec \ | |
21369 | sys_lib_dlsearch_path_spec; do | |
21370 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21371 | *[\\\\\\\`\\"\\\$]*) | |
21372 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
21373 | ;; | |
21374 | *) | |
21375 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21376 | ;; | |
21377 | esac | |
21378 | done | |
21379 | ||
21380 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
21381 | case \$lt_ECHO in | |
21382 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
21383 | ;; | |
21384 | esac | |
21385 | ||
21386 | ac_aux_dir='$ac_aux_dir' | |
21387 | xsi_shell='$xsi_shell' | |
21388 | lt_shell_append='$lt_shell_append' | |
21389 | ||
21390 | # See if we are running on zsh, and set the options which allow our | |
21391 | # commands through without removal of \ escapes INIT. | |
21392 | if test -n "\${ZSH_VERSION+set}" ; then | |
21393 | setopt NO_GLOB_SUBST | |
21394 | fi | |
21395 | ||
21396 | ||
21397 | PACKAGE='$PACKAGE' | |
21398 | VERSION='$VERSION' | |
21399 | TIMESTAMP='$TIMESTAMP' | |
21400 | RM='$RM' | |
21401 | ofile='$ofile' | |
21402 | ||
21403 | ||
21404 | ||
20e95c23 DJ |
21405 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
21406 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
21407 | # from automake. | |
21408 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
21409 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
21410 | LINGUAS="${LINGUAS-%UNSET%}" | |
21411 | ||
5464f5a1 | 21412 | |
d5efd9fc AM |
21413 | GCC="$GCC" |
21414 | CC="$CC" | |
21415 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
21416 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
21417 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
21418 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
21419 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
21420 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
21421 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
21422 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
21423 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
21424 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
21425 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
21426 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
21427 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
21428 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
21429 | ||
21430 | ||
5464f5a1 NN |
21431 | |
21432 | _ACEOF | |
21433 | ||
21434 | ||
21435 | ||
21436 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21437 | for ac_config_target in $ac_config_targets | |
252b5132 | 21438 | do |
5464f5a1 NN |
21439 | case "$ac_config_target" in |
21440 | # Handling of arguments. | |
21441 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21442 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
21443 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
21444 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 21445 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
d7040cdb | 21446 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 21447 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
d5efd9fc | 21448 | "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;; |
5464f5a1 NN |
21449 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
21450 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
21451 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
21452 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21453 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
21454 | esac |
21455 | done | |
21456 | ||
5464f5a1 NN |
21457 | # If the user did not use the arguments to specify the items to instantiate, |
21458 | # then the envvar interface is used. Set only those that are not. | |
21459 | # We use the long form for the default assignment because of an extremely | |
21460 | # bizarre bug on SunOS 4.1.3. | |
21461 | if $ac_need_defaults; then | |
21462 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21463 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21464 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21465 | fi | |
21466 | ||
21467 | # Have a temporary directory for convenience. Make it in the build tree | |
21468 | # simply because there is no reason to put it here, and in addition, | |
21469 | # creating and moving files from /tmp can sometimes cause problems. | |
21470 | # Create a temporary directory, and hook for its removal unless debugging. | |
21471 | $debug || | |
21472 | { | |
21473 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21474 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21475 | } | |
b3baf5d0 | 21476 | |
5464f5a1 | 21477 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 21478 | |
5464f5a1 NN |
21479 | { |
21480 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
21481 | test -n "$tmp" && test -d "$tmp" | |
21482 | } || | |
21483 | { | |
21484 | tmp=./confstat$$-$RANDOM | |
21485 | (umask 077 && mkdir $tmp) | |
21486 | } || | |
21487 | { | |
21488 | echo "$me: cannot create a temporary directory in ." >&2 | |
21489 | { (exit 1); exit 1; } | |
21490 | } | |
21491 | ||
21492 | _ACEOF | |
21493 | ||
21494 | cat >>$CONFIG_STATUS <<_ACEOF | |
21495 | ||
21496 | # | |
21497 | # CONFIG_FILES section. | |
21498 | # | |
b3baf5d0 | 21499 | |
5464f5a1 NN |
21500 | # No need to generate the scripts if there are no CONFIG_FILES. |
21501 | # This happens for instance when ./config.status config.h | |
21502 | if test -n "\$CONFIG_FILES"; then | |
21503 | # Protect against being on the right side of a sed subst in config.status. | |
21504 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21505 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21506 | s,@SHELL@,$SHELL,;t t | |
21507 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
21508 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21509 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21510 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21511 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21512 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
21513 | s,@exec_prefix@,$exec_prefix,;t t | |
21514 | s,@prefix@,$prefix,;t t | |
21515 | s,@program_transform_name@,$program_transform_name,;t t | |
21516 | s,@bindir@,$bindir,;t t | |
21517 | s,@sbindir@,$sbindir,;t t | |
21518 | s,@libexecdir@,$libexecdir,;t t | |
21519 | s,@datadir@,$datadir,;t t | |
21520 | s,@sysconfdir@,$sysconfdir,;t t | |
21521 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21522 | s,@localstatedir@,$localstatedir,;t t | |
21523 | s,@libdir@,$libdir,;t t | |
21524 | s,@includedir@,$includedir,;t t | |
21525 | s,@oldincludedir@,$oldincludedir,;t t | |
21526 | s,@infodir@,$infodir,;t t | |
21527 | s,@mandir@,$mandir,;t t | |
21528 | s,@build_alias@,$build_alias,;t t | |
21529 | s,@host_alias@,$host_alias,;t t | |
21530 | s,@target_alias@,$target_alias,;t t | |
21531 | s,@DEFS@,$DEFS,;t t | |
21532 | s,@ECHO_C@,$ECHO_C,;t t | |
21533 | s,@ECHO_N@,$ECHO_N,;t t | |
21534 | s,@ECHO_T@,$ECHO_T,;t t | |
21535 | s,@LIBS@,$LIBS,;t t | |
21536 | s,@build@,$build,;t t | |
21537 | s,@build_cpu@,$build_cpu,;t t | |
21538 | s,@build_vendor@,$build_vendor,;t t | |
21539 | s,@build_os@,$build_os,;t t | |
21540 | s,@host@,$host,;t t | |
21541 | s,@host_cpu@,$host_cpu,;t t | |
21542 | s,@host_vendor@,$host_vendor,;t t | |
21543 | s,@host_os@,$host_os,;t t | |
21544 | s,@target@,$target,;t t | |
21545 | s,@target_cpu@,$target_cpu,;t t | |
21546 | s,@target_vendor@,$target_vendor,;t t | |
21547 | s,@target_os@,$target_os,;t t | |
21548 | s,@CC@,$CC,;t t | |
21549 | s,@CFLAGS@,$CFLAGS,;t t | |
21550 | s,@LDFLAGS@,$LDFLAGS,;t t | |
21551 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
21552 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
21553 | s,@EXEEXT@,$EXEEXT,;t t | |
21554 | s,@OBJEXT@,$OBJEXT,;t t | |
21555 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
21556 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
21557 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 21558 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
21559 | s,@PACKAGE@,$PACKAGE,;t t |
21560 | s,@VERSION@,$VERSION,;t t | |
21561 | s,@ACLOCAL@,$ACLOCAL,;t t | |
21562 | s,@AUTOCONF@,$AUTOCONF,;t t | |
21563 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
21564 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
21565 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
21566 | s,@install_sh@,$install_sh,;t t |
21567 | s,@STRIP@,$STRIP,;t t | |
21568 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
21569 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
21570 | s,@mkdir_p@,$mkdir_p,;t t | |
21571 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 21572 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
21573 | s,@am__leading_dot@,$am__leading_dot,;t t |
21574 | s,@AMTAR@,$AMTAR,;t t | |
21575 | s,@am__tar@,$am__tar,;t t | |
21576 | s,@am__untar@,$am__untar,;t t | |
21577 | s,@DEPDIR@,$DEPDIR,;t t | |
21578 | s,@am__include@,$am__include,;t t | |
21579 | s,@am__quote@,$am__quote,;t t | |
21580 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
21581 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
21582 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
21583 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
21584 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
21585 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
21586 | s,@AR@,$AR,;t t |
21587 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
21588 | s,@RANLIB@,$RANLIB,;t t | |
21589 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
5464f5a1 | 21590 | s,@LIBTOOL@,$LIBTOOL,;t t |
d7040cdb SE |
21591 | s,@SED@,$SED,;t t |
21592 | s,@EGREP@,$EGREP,;t t | |
21593 | s,@FGREP@,$FGREP,;t t | |
21594 | s,@GREP@,$GREP,;t t | |
21595 | s,@LD@,$LD,;t t | |
21596 | s,@DUMPBIN@,$DUMPBIN,;t t | |
21597 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
21598 | s,@NM@,$NM,;t t | |
21599 | s,@LN_S@,$LN_S,;t t | |
21600 | s,@lt_ECHO@,$lt_ECHO,;t t | |
21601 | s,@CPP@,$CPP,;t t | |
0d4a1476 | 21602 | s,@DEBUGDIR@,$DEBUGDIR,;t t |
92f01d61 | 21603 | s,@PKGVERSION@,$PKGVERSION,;t t |
c428fa83 L |
21604 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t |
21605 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
5464f5a1 | 21606 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
9e9b66a9 | 21607 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
21608 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
21609 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
21610 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
21611 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
21612 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
5464f5a1 NN |
21613 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t |
21614 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
21615 | s,@host_noncanonical@,$host_noncanonical,;t t |
21616 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
21617 | s,@bfdlibdir@,$bfdlibdir,;t t |
21618 | s,@bfdincludedir@,$bfdincludedir,;t t | |
5464f5a1 | 21619 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
21620 | s,@LIBINTL@,$LIBINTL,;t t |
21621 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
21622 | s,@INCINTL@,$INCINTL,;t t | |
5464f5a1 | 21623 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
21624 | s,@GMSGFMT@,$GMSGFMT,;t t |
21625 | s,@POSUB@,$POSUB,;t t | |
5464f5a1 | 21626 | s,@CATALOGS@,$CATALOGS,;t t |
5464f5a1 | 21627 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
5464f5a1 | 21628 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
21629 | s,@GENCAT@,$GENCAT,;t t |
21630 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
5464f5a1 | 21631 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
21632 | s,@MSGFMT@,$MSGFMT,;t t |
21633 | s,@MSGMERGE@,$MSGMERGE,;t t | |
5464f5a1 NN |
21634 | s,@HDEFINES@,$HDEFINES,;t t |
21635 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
d2df793a | 21636 | s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t |
5464f5a1 NN |
21637 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t |
21638 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
21639 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
d2df793a | 21640 | s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t |
5464f5a1 NN |
21641 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
21642 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
21643 | s,@COREFILE@,$COREFILE,;t t | |
21644 | s,@COREFLAG@,$COREFLAG,;t t | |
21645 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
21646 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
21647 | s,@TDEFINES@,$TDEFINES,;t t | |
21648 | s,@wordsize@,$wordsize,;t t | |
21e40a48 | 21649 | s,@bfd64_libs@,$bfd64_libs,;t t |
5464f5a1 NN |
21650 | s,@all_backends@,$all_backends,;t t |
21651 | s,@bfd_backends@,$bfd_backends,;t t | |
21652 | s,@bfd_machines@,$bfd_machines,;t t | |
21653 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
21654 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
21655 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
21656 | s,@tdefaults@,$tdefaults,;t t | |
108a6f8e CD |
21657 | s,@datarootdir@,$datarootdir,;t t |
21658 | s,@docdir@,$docdir,;t t | |
21659 | s,@htmldir@,$htmldir,;t t | |
5464f5a1 NN |
21660 | s,@LIBOBJS@,$LIBOBJS,;t t |
21661 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 21662 | CEOF |
252b5132 | 21663 | |
5464f5a1 NN |
21664 | _ACEOF |
21665 | ||
21666 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21667 | # Split the substitutions into bite-sized pieces for seds with | |
21668 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21669 | ac_max_sed_lines=48 | |
21670 | ac_sed_frag=1 # Number of current file. | |
21671 | ac_beg=1 # First line for current file. | |
21672 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
21673 | ac_more_lines=: | |
21674 | ac_sed_cmds= | |
21675 | while $ac_more_lines; do | |
21676 | if test $ac_beg -gt 1; then | |
21677 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 21678 | else |
5464f5a1 NN |
21679 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
21680 | fi | |
21681 | if test ! -s $tmp/subs.frag; then | |
21682 | ac_more_lines=false | |
21683 | else | |
21684 | # The purpose of the label and of the branching condition is to | |
21685 | # speed up the sed processing (if there are no `@' at all, there | |
21686 | # is no need to browse any of the substitutions). | |
21687 | # These are the two extra sed commands mentioned above. | |
21688 | (echo ':t | |
21689 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
21690 | if test -z "$ac_sed_cmds"; then | |
21691 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
21692 | else | |
21693 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
21694 | fi | |
21695 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
21696 | ac_beg=$ac_end | |
21697 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 21698 | fi |
5464f5a1 NN |
21699 | done |
21700 | if test -z "$ac_sed_cmds"; then | |
21701 | ac_sed_cmds=cat | |
252b5132 | 21702 | fi |
5464f5a1 | 21703 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 21704 | |
5464f5a1 NN |
21705 | _ACEOF |
21706 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21707 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 21708 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
21709 | case $ac_file in |
21710 | - | *:- | *:-:* ) # input from stdin | |
21711 | cat >$tmp/stdin | |
21712 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21713 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21714 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21715 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21716 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
21717 | esac |
21718 | ||
5464f5a1 NN |
21719 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
21720 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
21721 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21722 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21723 | X"$ac_file" : 'X\(//\)$' \| \ | |
21724 | X"$ac_file" : 'X\(/\)' \| \ | |
21725 | . : '\(.\)' 2>/dev/null || | |
21726 | echo X"$ac_file" | | |
21727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21728 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21729 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21730 | /^X\(\/\).*/{ s//\1/; q; } | |
21731 | s/.*/./; q'` | |
21732 | { if $as_mkdir_p; then | |
21733 | mkdir -p "$ac_dir" | |
252b5132 | 21734 | else |
5464f5a1 NN |
21735 | as_dir="$ac_dir" |
21736 | as_dirs= | |
21737 | while test ! -d "$as_dir"; do | |
21738 | as_dirs="$as_dir $as_dirs" | |
21739 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21740 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21741 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21742 | X"$as_dir" : 'X\(//\)$' \| \ | |
21743 | X"$as_dir" : 'X\(/\)' \| \ | |
21744 | . : '\(.\)' 2>/dev/null || | |
21745 | echo X"$as_dir" | | |
21746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21747 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21748 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21749 | /^X\(\/\).*/{ s//\1/; q; } | |
21750 | s/.*/./; q'` | |
21751 | done | |
21752 | test ! -n "$as_dirs" || mkdir $as_dirs | |
21753 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
21754 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
21755 | { (exit 1); exit 1; }; }; } | |
21756 | ||
21757 | ac_builddir=. | |
21758 | ||
21759 | if test "$ac_dir" != .; then | |
21760 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
21761 | # A "../" for each directory in $ac_dir_suffix. | |
21762 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
21763 | else | |
21764 | ac_dir_suffix= ac_top_builddir= | |
21765 | fi | |
252b5132 | 21766 | |
5464f5a1 NN |
21767 | case $srcdir in |
21768 | .) # No --srcdir option. We are building in place. | |
21769 | ac_srcdir=. | |
21770 | if test -z "$ac_top_builddir"; then | |
21771 | ac_top_srcdir=. | |
21772 | else | |
21773 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
21774 | fi ;; | |
21775 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
21776 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21777 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 21778 | *) # Relative path. |
5464f5a1 NN |
21779 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
21780 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
21781 | esac | |
252b5132 | 21782 | |
5464f5a1 NN |
21783 | # Do not use `cd foo && pwd` to compute absolute paths, because |
21784 | # the directories may not exist. | |
21785 | case `pwd` in | |
21786 | .) ac_abs_builddir="$ac_dir";; | |
21787 | *) | |
21788 | case "$ac_dir" in | |
21789 | .) ac_abs_builddir=`pwd`;; | |
21790 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
21791 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
21792 | esac;; | |
21793 | esac | |
21794 | case $ac_abs_builddir in | |
21795 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21796 | *) | |
21797 | case ${ac_top_builddir}. in | |
21798 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
21799 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21800 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
21801 | esac;; | |
21802 | esac | |
21803 | case $ac_abs_builddir in | |
21804 | .) ac_abs_srcdir=$ac_srcdir;; | |
21805 | *) | |
21806 | case $ac_srcdir in | |
21807 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
21808 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
21809 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
21810 | esac;; | |
21811 | esac | |
21812 | case $ac_abs_builddir in | |
21813 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21814 | *) | |
21815 | case $ac_top_srcdir in | |
21816 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
21817 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21818 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
21819 | esac;; | |
21820 | esac | |
252b5132 | 21821 | |
5464f5a1 NN |
21822 | |
21823 | case $INSTALL in | |
21824 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21825 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 21826 | esac |
252b5132 | 21827 | |
49c96104 SE |
21828 | if test x"$ac_file" != x-; then |
21829 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21830 | echo "$as_me: creating $ac_file" >&6;} | |
21831 | rm -f "$ac_file" | |
21832 | fi | |
5464f5a1 NN |
21833 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21834 | # use $as_me), people would be surprised to read: | |
21835 | # /* config.h. Generated by config.status. */ | |
21836 | if test x"$ac_file" = x-; then | |
21837 | configure_input= | |
21838 | else | |
21839 | configure_input="$ac_file. " | |
21840 | fi | |
21841 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
21842 | sed 's,.*/,,'` by configure." | |
21843 | ||
21844 | # First look for the input files in the build tree, otherwise in the | |
21845 | # src tree. | |
21846 | ac_file_inputs=`IFS=: | |
21847 | for f in $ac_file_in; do | |
21848 | case $f in | |
21849 | -) echo $tmp/stdin ;; | |
21850 | [\\/$]*) | |
21851 | # Absolute (can't be DOS-style, as IFS=:) | |
21852 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21853 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21854 | { (exit 1); exit 1; }; } | |
21855 | echo "$f";; | |
21856 | *) # Relative | |
21857 | if test -f "$f"; then | |
21858 | # Build tree | |
21859 | echo "$f" | |
21860 | elif test -f "$srcdir/$f"; then | |
21861 | # Source tree | |
21862 | echo "$srcdir/$f" | |
21863 | else | |
21864 | # /dev/null tree | |
21865 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21866 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21867 | { (exit 1); exit 1; }; } | |
21868 | fi;; | |
21869 | esac | |
21870 | done` || { (exit 1); exit 1; } | |
5464f5a1 NN |
21871 | _ACEOF |
21872 | cat >>$CONFIG_STATUS <<_ACEOF | |
21873 | sed "$ac_vpsub | |
21874 | $extrasub | |
21875 | _ACEOF | |
21876 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21877 | :t | |
21878 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21879 | s,@configure_input@,$configure_input,;t t | |
21880 | s,@srcdir@,$ac_srcdir,;t t | |
21881 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
21882 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
21883 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
21884 | s,@builddir@,$ac_builddir,;t t | |
21885 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
21886 | s,@top_builddir@,$ac_top_builddir,;t t | |
21887 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
21888 | s,@INSTALL@,$ac_INSTALL,;t t | |
21889 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
21890 | rm -f $tmp/stdin | |
21891 | if test x"$ac_file" != x-; then | |
21892 | mv $tmp/out $ac_file | |
21893 | else | |
21894 | cat $tmp/out | |
21895 | rm -f $tmp/out | |
21896 | fi | |
21897 | ||
21898 | done | |
21899 | _ACEOF | |
21900 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21901 | ||
21902 | # | |
21903 | # CONFIG_HEADER section. | |
21904 | # | |
252b5132 RH |
21905 | |
21906 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21907 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21908 | # | |
21909 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
21910 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21911 | ac_dB='[ ].*$,\1#\2' | |
21912 | ac_dC=' ' | |
21913 | ac_dD=',;t' | |
21914 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21915 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21916 | ac_uB='$,\1#\2define\3' | |
252b5132 | 21917 | ac_uC=' ' |
5464f5a1 NN |
21918 | ac_uD=',;t' |
21919 | ||
21920 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 21921 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
21922 | case $ac_file in |
21923 | - | *:- | *:-:* ) # input from stdin | |
21924 | cat >$tmp/stdin | |
21925 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21926 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21927 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21928 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21929 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
21930 | esac |
21931 | ||
5464f5a1 NN |
21932 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21933 | echo "$as_me: creating $ac_file" >&6;} | |
21934 | ||
21935 | # First look for the input files in the build tree, otherwise in the | |
21936 | # src tree. | |
21937 | ac_file_inputs=`IFS=: | |
21938 | for f in $ac_file_in; do | |
21939 | case $f in | |
21940 | -) echo $tmp/stdin ;; | |
21941 | [\\/$]*) | |
21942 | # Absolute (can't be DOS-style, as IFS=:) | |
21943 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21944 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21945 | { (exit 1); exit 1; }; } | |
21946 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
21947 | echo "$f";; | |
21948 | *) # Relative | |
21949 | if test -f "$f"; then | |
21950 | # Build tree | |
21951 | echo "$f" | |
21952 | elif test -f "$srcdir/$f"; then | |
21953 | # Source tree | |
21954 | echo "$srcdir/$f" | |
21955 | else | |
21956 | # /dev/null tree | |
21957 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21958 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21959 | { (exit 1); exit 1; }; } | |
21960 | fi;; | |
21961 | esac | |
21962 | done` || { (exit 1); exit 1; } | |
21963 | # Remove the trailing spaces. | |
21964 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
21965 | ||
21966 | _ACEOF | |
21967 | ||
21968 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
21969 | # `conftest.undefs', that substitutes the proper values into | |
21970 | # config.h.in to produce config.h. The first handles `#define' | |
21971 | # templates, and the second `#undef' templates. | |
21972 | # And first: Protect against being on the right side of a sed subst in | |
21973 | # config.status. Protect against being in an unquoted here document | |
21974 | # in config.status. | |
21975 | rm -f conftest.defines conftest.undefs | |
21976 | # Using a here document instead of a string reduces the quoting nightmare. | |
21977 | # Putting comments in sed scripts is not portable. | |
21978 | # | |
21979 | # `end' is used to avoid that the second main sed command (meant for | |
21980 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
21981 | # See the Autoconf documentation for `clear'. | |
21982 | cat >confdef2sed.sed <<\_ACEOF | |
21983 | s/[\\&,]/\\&/g | |
21984 | s,[\\$`],\\&,g | |
21985 | t clear | |
21986 | : clear | |
21987 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
21988 | t end | |
21989 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
21990 | : end | |
21991 | _ACEOF | |
21992 | # If some macros were called several times there might be several times | |
21993 | # the same #defines, which is useless. Nevertheless, we may not want to | |
21994 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
21995 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
21996 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
21997 | rm -f confdef2sed.sed | |
252b5132 RH |
21998 | |
21999 | # This sed command replaces #undef with comments. This is necessary, for | |
22000 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22001 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
22002 | cat >>conftest.undefs <<\_ACEOF |
22003 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
22004 | _ACEOF | |
22005 | ||
22006 | # Break up conftest.defines because some shells have a limit on the size | |
22007 | # of here documents, and old seds have small limits too (100 cmds). | |
22008 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
22009 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
22010 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
22011 | echo ' :' >>$CONFIG_STATUS | |
22012 | rm -f conftest.tail | |
22013 | while grep . conftest.defines >/dev/null | |
22014 | do | |
22015 | # Write a limited-size here document to $tmp/defines.sed. | |
22016 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22017 | # Speed up: don't consider the non `#define' lines. | |
22018 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
22019 | # Work around the forget-to-reset-the-flag bug. | |
22020 | echo 't clr' >>$CONFIG_STATUS | |
22021 | echo ': clr' >>$CONFIG_STATUS | |
22022 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22023 | echo 'CEOF | |
22024 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22025 | rm -f $tmp/in | |
22026 | mv $tmp/out $tmp/in | |
22027 | ' >>$CONFIG_STATUS | |
22028 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22029 | rm -f conftest.defines | |
22030 | mv conftest.tail conftest.defines | |
22031 | done | |
22032 | rm -f conftest.defines | |
22033 | echo ' fi # grep' >>$CONFIG_STATUS | |
22034 | echo >>$CONFIG_STATUS | |
252b5132 | 22035 | |
5464f5a1 NN |
22036 | # Break up conftest.undefs because some shells have a limit on the size |
22037 | # of here documents, and old seds have small limits too (100 cmds). | |
22038 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 22039 | rm -f conftest.tail |
5464f5a1 | 22040 | while grep . conftest.undefs >/dev/null |
252b5132 | 22041 | do |
5464f5a1 NN |
22042 | # Write a limited-size here document to $tmp/undefs.sed. |
22043 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22044 | # Speed up: don't consider the non `#undef' | |
22045 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22046 | # Work around the forget-to-reset-the-flag bug. | |
22047 | echo 't clr' >>$CONFIG_STATUS | |
22048 | echo ': clr' >>$CONFIG_STATUS | |
22049 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 22050 | echo 'CEOF |
5464f5a1 NN |
22051 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
22052 | rm -f $tmp/in | |
22053 | mv $tmp/out $tmp/in | |
22054 | ' >>$CONFIG_STATUS | |
22055 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22056 | rm -f conftest.undefs | |
22057 | mv conftest.tail conftest.undefs | |
252b5132 | 22058 | done |
5464f5a1 NN |
22059 | rm -f conftest.undefs |
22060 | ||
22061 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22062 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22063 | # use $as_me), people would be surprised to read: | |
22064 | # /* config.h. Generated by config.status. */ | |
22065 | if test x"$ac_file" = x-; then | |
22066 | echo "/* Generated by configure. */" >$tmp/config.h | |
22067 | else | |
22068 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
22069 | fi | |
22070 | cat $tmp/in >>$tmp/config.h | |
22071 | rm -f $tmp/in | |
22072 | if test x"$ac_file" != x-; then | |
22073 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22074 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22075 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22076 | else | |
22077 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22078 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22079 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22080 | X"$ac_file" : 'X\(//\)$' \| \ | |
22081 | X"$ac_file" : 'X\(/\)' \| \ | |
22082 | . : '\(.\)' 2>/dev/null || | |
22083 | echo X"$ac_file" | | |
22084 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22085 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22086 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22087 | /^X\(\/\).*/{ s//\1/; q; } | |
22088 | s/.*/./; q'` | |
22089 | { if $as_mkdir_p; then | |
22090 | mkdir -p "$ac_dir" | |
252b5132 | 22091 | else |
5464f5a1 NN |
22092 | as_dir="$ac_dir" |
22093 | as_dirs= | |
22094 | while test ! -d "$as_dir"; do | |
22095 | as_dirs="$as_dir $as_dirs" | |
22096 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22097 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22098 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22099 | X"$as_dir" : 'X\(//\)$' \| \ | |
22100 | X"$as_dir" : 'X\(/\)' \| \ | |
22101 | . : '\(.\)' 2>/dev/null || | |
22102 | echo X"$as_dir" | | |
22103 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22104 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22105 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22106 | /^X\(\/\).*/{ s//\1/; q; } | |
22107 | s/.*/./; q'` | |
22108 | done | |
22109 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22110 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22111 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22112 | { (exit 1); exit 1; }; }; } | |
22113 | ||
22114 | rm -f $ac_file | |
22115 | mv $tmp/config.h $ac_file | |
252b5132 | 22116 | fi |
5464f5a1 NN |
22117 | else |
22118 | cat $tmp/config.h | |
22119 | rm -f $tmp/config.h | |
252b5132 | 22120 | fi |
f5385ebf AM |
22121 | # Compute $ac_file's index in $config_headers. |
22122 | _am_stamp_count=1 | |
22123 | for _am_header in $config_headers :; do | |
22124 | case $_am_header in | |
22125 | $ac_file | $ac_file:* ) | |
22126 | break ;; | |
22127 | * ) | |
22128 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22129 | esac | |
22130 | done | |
22131 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22132 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22133 | X$ac_file : 'X\(//\)[^/]' \| \ | |
22134 | X$ac_file : 'X\(//\)$' \| \ | |
22135 | X$ac_file : 'X\(/\)' \| \ | |
22136 | . : '\(.\)' 2>/dev/null || | |
22137 | echo X$ac_file | | |
22138 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22139 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22140 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22141 | /^X\(\/\).*/{ s//\1/; q; } | |
22142 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
22143 | done |
22144 | _ACEOF | |
22145 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 22146 | |
5464f5a1 NN |
22147 | # |
22148 | # CONFIG_COMMANDS section. | |
22149 | # | |
22150 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22151 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22152 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22153 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22154 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22155 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22156 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22157 | X"$ac_dest" : 'X\(/\)' \| \ | |
22158 | . : '\(.\)' 2>/dev/null || | |
22159 | echo X"$ac_dest" | | |
22160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22161 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22162 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22163 | /^X\(\/\).*/{ s//\1/; q; } | |
22164 | s/.*/./; q'` | |
22165 | { if $as_mkdir_p; then | |
22166 | mkdir -p "$ac_dir" | |
22167 | else | |
22168 | as_dir="$ac_dir" | |
22169 | as_dirs= | |
22170 | while test ! -d "$as_dir"; do | |
22171 | as_dirs="$as_dir $as_dirs" | |
22172 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22173 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22174 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22175 | X"$as_dir" : 'X\(//\)$' \| \ | |
22176 | X"$as_dir" : 'X\(/\)' \| \ | |
22177 | . : '\(.\)' 2>/dev/null || | |
22178 | echo X"$as_dir" | | |
22179 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22180 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22181 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22182 | /^X\(\/\).*/{ s//\1/; q; } | |
22183 | s/.*/./; q'` | |
22184 | done | |
22185 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22186 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22187 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22188 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 22189 | |
5464f5a1 | 22190 | ac_builddir=. |
b3baf5d0 | 22191 | |
5464f5a1 NN |
22192 | if test "$ac_dir" != .; then |
22193 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22194 | # A "../" for each directory in $ac_dir_suffix. | |
22195 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22196 | else | |
22197 | ac_dir_suffix= ac_top_builddir= | |
22198 | fi | |
22199 | ||
22200 | case $srcdir in | |
22201 | .) # No --srcdir option. We are building in place. | |
22202 | ac_srcdir=. | |
22203 | if test -z "$ac_top_builddir"; then | |
22204 | ac_top_srcdir=. | |
22205 | else | |
22206 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22207 | fi ;; | |
22208 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22209 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22210 | ac_top_srcdir=$srcdir ;; | |
22211 | *) # Relative path. | |
22212 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22213 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22214 | esac | |
22215 | ||
22216 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22217 | # the directories may not exist. | |
22218 | case `pwd` in | |
22219 | .) ac_abs_builddir="$ac_dir";; | |
22220 | *) | |
22221 | case "$ac_dir" in | |
22222 | .) ac_abs_builddir=`pwd`;; | |
22223 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22224 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22225 | esac;; | |
22226 | esac | |
22227 | case $ac_abs_builddir in | |
22228 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22229 | *) | |
22230 | case ${ac_top_builddir}. in | |
22231 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22232 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22233 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22234 | esac;; | |
22235 | esac | |
22236 | case $ac_abs_builddir in | |
22237 | .) ac_abs_srcdir=$ac_srcdir;; | |
22238 | *) | |
22239 | case $ac_srcdir in | |
22240 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22241 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22242 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22243 | esac;; | |
22244 | esac | |
22245 | case $ac_abs_builddir in | |
22246 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22247 | *) | |
22248 | case $ac_top_srcdir in | |
22249 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22250 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22251 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22252 | esac;; | |
22253 | esac | |
22254 | ||
22255 | ||
22256 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22257 | echo "$as_me: executing $ac_dest commands" >&6;} | |
22258 | case $ac_dest in | |
f5385ebf AM |
22259 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
22260 | # Strip MF so we end up with the name of the file. | |
22261 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22262 | # Check whether this is an Automake generated Makefile or not. | |
22263 | # We used to match only the files named `Makefile.in', but | |
22264 | # some people rename them; so instead we look at the file content. | |
22265 | # Grep'ing the first line is not enough: some people post-process | |
22266 | # each Makefile.in and add a new line on top of each file to say so. | |
22267 | # So let's grep whole file. | |
22268 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
22269 | dirpart=`(dirname "$mf") 2>/dev/null || | |
22270 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22271 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22272 | X"$mf" : 'X\(//\)$' \| \ | |
22273 | X"$mf" : 'X\(/\)' \| \ | |
22274 | . : '\(.\)' 2>/dev/null || | |
22275 | echo X"$mf" | | |
22276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22277 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22278 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22279 | /^X\(\/\).*/{ s//\1/; q; } | |
22280 | s/.*/./; q'` | |
22281 | else | |
22282 | continue | |
22283 | fi | |
22284 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22285 | # from the Makefile without running `make'. | |
22286 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22287 | test -z "$DEPDIR" && continue | |
22288 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22289 | test -z "am__include" && continue | |
22290 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22291 | # When using ansi2knr, U may be empty or an underscore; expand it | |
22292 | U=`sed -n 's/^U = //p' < "$mf"` | |
22293 | # Find all dependency output files, they are included files with | |
22294 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22295 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22296 | # expansion. | |
22297 | for file in `sed -n " | |
22298 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22299 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
22300 | # Make sure the directory exists. | |
22301 | test -f "$dirpart/$file" && continue | |
22302 | fdir=`(dirname "$file") 2>/dev/null || | |
22303 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22304 | X"$file" : 'X\(//\)[^/]' \| \ | |
22305 | X"$file" : 'X\(//\)$' \| \ | |
22306 | X"$file" : 'X\(/\)' \| \ | |
22307 | . : '\(.\)' 2>/dev/null || | |
22308 | echo X"$file" | | |
22309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22310 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22311 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22312 | /^X\(\/\).*/{ s//\1/; q; } | |
22313 | s/.*/./; q'` | |
22314 | { if $as_mkdir_p; then | |
22315 | mkdir -p $dirpart/$fdir | |
22316 | else | |
22317 | as_dir=$dirpart/$fdir | |
22318 | as_dirs= | |
22319 | while test ! -d "$as_dir"; do | |
22320 | as_dirs="$as_dir $as_dirs" | |
22321 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22322 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22323 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22324 | X"$as_dir" : 'X\(//\)$' \| \ | |
22325 | X"$as_dir" : 'X\(/\)' \| \ | |
22326 | . : '\(.\)' 2>/dev/null || | |
22327 | echo X"$as_dir" | | |
22328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22329 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22330 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22331 | /^X\(\/\).*/{ s//\1/; q; } | |
22332 | s/.*/./; q'` | |
22333 | done | |
22334 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22335 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
22336 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
22337 | { (exit 1); exit 1; }; }; } | |
22338 | ||
22339 | # echo "creating $dirpart/$file" | |
22340 | echo '# dummy' > "$dirpart/$file" | |
22341 | done | |
22342 | done | |
d7040cdb SE |
22343 | ;; |
22344 | libtool ) | |
22345 | ||
22346 | # See if we are running on zsh, and set the options which allow our | |
22347 | # commands through without removal of \ escapes. | |
22348 | if test -n "${ZSH_VERSION+set}" ; then | |
22349 | setopt NO_GLOB_SUBST | |
22350 | fi | |
22351 | ||
22352 | cfgfile="${ofile}T" | |
22353 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22354 | $RM "$cfgfile" | |
22355 | ||
22356 | cat <<_LT_EOF >> "$cfgfile" | |
22357 | #! $SHELL | |
22358 | ||
22359 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
22360 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
22361 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22362 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22363 | # | |
22364 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
22365 | # 2006, 2007 Free Software Foundation, Inc. | |
22366 | # | |
22367 | # This file is part of GNU Libtool: | |
22368 | # Originally by Gordon Matzigkeit <[email protected]>, 1996 | |
22369 | # | |
22370 | # This program is free software; you can redistribute it and/or modify | |
22371 | # it under the terms of the GNU General Public License as published by | |
0b3e17e9 | 22372 | # the Free Software Foundation; either version 2 of the License, or |
d7040cdb SE |
22373 | # (at your option) any later version. |
22374 | # | |
22375 | # This program is distributed in the hope that it will be useful, but | |
22376 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
22377 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
22378 | # General Public License for more details. | |
22379 | # | |
22380 | # You should have received a copy of the GNU General Public License | |
22381 | # along with this program; if not, a copy can be downloaded from | |
22382 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
22383 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
22384 | # MA 02110-1301, USA. | |
22385 | # | |
22386 | # As a special exception to the GNU General Public License, if you | |
22387 | # distribute this file as part of a program that contains a | |
22388 | # configuration script generated by Autoconf, you may include it under | |
22389 | # the same distribution terms that you use for the rest of that program. | |
22390 | ||
22391 | ||
22392 | # The names of the tagged configurations supported by this script. | |
22393 | available_tags="" | |
22394 | ||
22395 | # ### BEGIN LIBTOOL CONFIG | |
22396 | ||
22397 | # Whether or not to build shared libraries. | |
22398 | build_libtool_libs=$enable_shared | |
22399 | ||
22400 | # Which release of libtool.m4 was used? | |
22401 | macro_version=$macro_version | |
22402 | macro_revision=$macro_revision | |
22403 | ||
22404 | # Whether or not to build static libraries. | |
22405 | build_old_libs=$enable_static | |
22406 | ||
22407 | # What type of objects to build. | |
22408 | pic_mode=$pic_mode | |
22409 | ||
22410 | # Whether or not to optimize for fast installation. | |
22411 | fast_install=$enable_fast_install | |
22412 | ||
22413 | # The host system. | |
22414 | host_alias=$host_alias | |
22415 | host=$host | |
22416 | host_os=$host_os | |
22417 | ||
22418 | # The build system. | |
22419 | build_alias=$build_alias | |
22420 | build=$build | |
22421 | build_os=$build_os | |
22422 | ||
22423 | # A sed program that does not truncate output. | |
22424 | SED=$lt_SED | |
22425 | ||
22426 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22427 | Xsed="\$SED -e 1s/^X//" | |
22428 | ||
22429 | # A grep program that handles long lines. | |
22430 | GREP=$lt_GREP | |
22431 | ||
22432 | # An ERE matcher. | |
22433 | EGREP=$lt_EGREP | |
22434 | ||
22435 | # A literal string matcher. | |
22436 | FGREP=$lt_FGREP | |
22437 | ||
22438 | # A BSD- or MS-compatible name lister. | |
22439 | NM=$lt_NM | |
22440 | ||
22441 | # Whether we need soft or hard links. | |
22442 | LN_S=$lt_LN_S | |
22443 | ||
22444 | # What is the maximum length of a command? | |
22445 | max_cmd_len=$max_cmd_len | |
22446 | ||
22447 | # Object file suffix (normally "o"). | |
22448 | objext=$ac_objext | |
22449 | ||
22450 | # Executable file suffix (normally ""). | |
22451 | exeext=$exeext | |
22452 | ||
22453 | # whether the shell understands "unset". | |
22454 | lt_unset=$lt_unset | |
22455 | ||
22456 | # turn spaces into newlines. | |
22457 | SP2NL=$lt_lt_SP2NL | |
22458 | ||
22459 | # turn newlines into spaces. | |
22460 | NL2SP=$lt_lt_NL2SP | |
22461 | ||
22462 | # How to create reloadable object files. | |
22463 | reload_flag=$lt_reload_flag | |
22464 | reload_cmds=$lt_reload_cmds | |
22465 | ||
22466 | # Method to check whether dependent libraries are shared objects. | |
22467 | deplibs_check_method=$lt_deplibs_check_method | |
22468 | ||
22469 | # Command to use when deplibs_check_method == "file_magic". | |
22470 | file_magic_cmd=$lt_file_magic_cmd | |
22471 | ||
22472 | # The archiver. | |
22473 | AR=$lt_AR | |
22474 | AR_FLAGS=$lt_AR_FLAGS | |
22475 | ||
22476 | # A symbol stripping program. | |
22477 | STRIP=$lt_STRIP | |
22478 | ||
22479 | # Commands used to install an old-style archive. | |
22480 | RANLIB=$lt_RANLIB | |
22481 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22482 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22483 | ||
22484 | # A C compiler. | |
22485 | LTCC=$lt_CC | |
22486 | ||
22487 | # LTCC compiler flags. | |
22488 | LTCFLAGS=$lt_CFLAGS | |
22489 | ||
22490 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22491 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22492 | ||
22493 | # Transform the output of nm in a proper C declaration. | |
22494 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22495 | ||
22496 | # Transform the output of nm in a C name address pair. | |
22497 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22498 | ||
22499 | # The name of the directory that contains temporary libtool files. | |
22500 | objdir=$objdir | |
22501 | ||
22502 | # Shell to use when invoking shell scripts. | |
22503 | SHELL=$lt_SHELL | |
22504 | ||
22505 | # An echo program that does not interpret backslashes. | |
22506 | ECHO=$lt_ECHO | |
22507 | ||
22508 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22509 | MAGIC_CMD=$MAGIC_CMD | |
22510 | ||
22511 | # Must we lock files when doing compilation? | |
22512 | need_locks=$lt_need_locks | |
22513 | ||
22514 | # Old archive suffix (normally "a"). | |
22515 | libext=$libext | |
22516 | ||
22517 | # Shared library suffix (normally ".so"). | |
22518 | shrext_cmds=$lt_shrext_cmds | |
22519 | ||
22520 | # The commands to extract the exported symbol list from a shared archive. | |
22521 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
22522 | ||
22523 | # Variables whose values should be saved in libtool wrapper scripts and | |
22524 | # restored at link time. | |
22525 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
22526 | ||
22527 | # Do we need the "lib" prefix for modules? | |
22528 | need_lib_prefix=$need_lib_prefix | |
22529 | ||
22530 | # Do we need a version for libraries? | |
22531 | need_version=$need_version | |
22532 | ||
22533 | # Library versioning type. | |
22534 | version_type=$version_type | |
22535 | ||
22536 | # Shared library runtime path variable. | |
22537 | runpath_var=$runpath_var | |
22538 | ||
22539 | # Shared library path variable. | |
22540 | shlibpath_var=$shlibpath_var | |
22541 | ||
22542 | # Is shlibpath searched before the hard-coded library search path? | |
22543 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
22544 | ||
22545 | # Format of library name prefix. | |
22546 | libname_spec=$lt_libname_spec | |
22547 | ||
22548 | # List of archive names. First name is the real one, the rest are links. | |
22549 | # The last name is the one that the linker finds with -lNAME | |
22550 | library_names_spec=$lt_library_names_spec | |
22551 | ||
22552 | # The coded name of the library, if different from the real name. | |
22553 | soname_spec=$lt_soname_spec | |
22554 | ||
22555 | # Command to use after installation of a shared archive. | |
22556 | postinstall_cmds=$lt_postinstall_cmds | |
22557 | ||
22558 | # Command to use after uninstallation of a shared archive. | |
22559 | postuninstall_cmds=$lt_postuninstall_cmds | |
22560 | ||
22561 | # Commands used to finish a libtool library installation in a directory. | |
22562 | finish_cmds=$lt_finish_cmds | |
22563 | ||
22564 | # As "finish_cmds", except a single script fragment to be evaled but | |
22565 | # not shown. | |
22566 | finish_eval=$lt_finish_eval | |
22567 | ||
22568 | # Whether we should hardcode library paths into libraries. | |
22569 | hardcode_into_libs=$hardcode_into_libs | |
22570 | ||
22571 | # Compile-time system search path for libraries. | |
22572 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
22573 | ||
22574 | # Run-time system search path for libraries. | |
22575 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
22576 | ||
22577 | # Whether dlopen is supported. | |
22578 | dlopen_support=$enable_dlopen | |
22579 | ||
22580 | # Whether dlopen of programs is supported. | |
22581 | dlopen_self=$enable_dlopen_self | |
22582 | ||
22583 | # Whether dlopen of statically linked programs is supported. | |
22584 | dlopen_self_static=$enable_dlopen_self_static | |
22585 | ||
22586 | # Commands to strip libraries. | |
22587 | old_striplib=$lt_old_striplib | |
22588 | striplib=$lt_striplib | |
22589 | ||
22590 | ||
22591 | # The linker used to build libraries. | |
22592 | LD=$lt_LD | |
22593 | ||
22594 | # Commands used to build an old-style archive. | |
22595 | old_archive_cmds=$lt_old_archive_cmds | |
22596 | ||
22597 | # A language specific compiler. | |
22598 | CC=$lt_compiler | |
22599 | ||
22600 | # Is the compiler the GNU compiler? | |
22601 | with_gcc=$GCC | |
22602 | ||
22603 | # Compiler flag to turn off builtin functions. | |
22604 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
22605 | ||
22606 | # How to pass a linker flag through the compiler. | |
22607 | wl=$lt_lt_prog_compiler_wl | |
22608 | ||
22609 | # Additional compiler flags for building library objects. | |
22610 | pic_flag=$lt_lt_prog_compiler_pic | |
22611 | ||
22612 | # Compiler flag to prevent dynamic linking. | |
22613 | link_static_flag=$lt_lt_prog_compiler_static | |
22614 | ||
22615 | # Does compiler simultaneously support -c and -o options? | |
22616 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
22617 | ||
22618 | # Whether or not to add -lc for building shared libraries. | |
22619 | build_libtool_need_lc=$archive_cmds_need_lc | |
22620 | ||
22621 | # Whether or not to disallow shared libs when runtime libs are static. | |
22622 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
22623 | ||
22624 | # Compiler flag to allow reflexive dlopens. | |
22625 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
22626 | ||
22627 | # Compiler flag to generate shared objects directly from archives. | |
22628 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
22629 | ||
22630 | # Whether the compiler copes with passing no objects directly. | |
22631 | compiler_needs_object=$lt_compiler_needs_object | |
22632 | ||
22633 | # Create an old-style archive from a shared archive. | |
22634 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
22635 | ||
22636 | # Create a temporary old-style archive to link instead of a shared archive. | |
22637 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
22638 | ||
22639 | # Commands used to build a shared archive. | |
22640 | archive_cmds=$lt_archive_cmds | |
22641 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
22642 | ||
22643 | # Commands used to build a loadable module if different from building | |
22644 | # a shared archive. | |
22645 | module_cmds=$lt_module_cmds | |
22646 | module_expsym_cmds=$lt_module_expsym_cmds | |
22647 | ||
22648 | # Whether we are building with GNU ld or not. | |
22649 | with_gnu_ld=$lt_with_gnu_ld | |
22650 | ||
22651 | # Flag that allows shared libraries with undefined symbols to be built. | |
22652 | allow_undefined_flag=$lt_allow_undefined_flag | |
22653 | ||
22654 | # Flag that enforces no undefined symbols. | |
22655 | no_undefined_flag=$lt_no_undefined_flag | |
22656 | ||
22657 | # Flag to hardcode \$libdir into a binary during linking. | |
22658 | # This must work even if \$libdir does not exist | |
22659 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
22660 | ||
22661 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
22662 | # during linking. This must work even if \$libdir does not exist. | |
22663 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
22664 | ||
22665 | # Whether we need a single "-rpath" flag with a separated argument. | |
22666 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
22667 | ||
22668 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22669 | # DIR into the resulting binary. | |
22670 | hardcode_direct=$hardcode_direct | |
22671 | ||
22672 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22673 | # DIR into the resulting binary and the resulting library dependency is | |
22674 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22675 | # library is relocated. | |
22676 | hardcode_direct_absolute=$hardcode_direct_absolute | |
22677 | ||
22678 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
22679 | # into the resulting binary. | |
22680 | hardcode_minus_L=$hardcode_minus_L | |
22681 | ||
22682 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
22683 | # into the resulting binary. | |
22684 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
22685 | ||
22686 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
22687 | # into the library and all subsequent libraries and executables linked | |
22688 | # against it. | |
22689 | hardcode_automatic=$hardcode_automatic | |
22690 | ||
22691 | # Set to yes if linker adds runtime paths of dependent libraries | |
22692 | # to runtime path list. | |
22693 | inherit_rpath=$inherit_rpath | |
22694 | ||
22695 | # Whether libtool must link a program against all its dependency libraries. | |
22696 | link_all_deplibs=$link_all_deplibs | |
22697 | ||
22698 | # Fix the shell variable \$srcfile for the compiler. | |
22699 | fix_srcfile_path=$lt_fix_srcfile_path | |
22700 | ||
22701 | # Set to "yes" if exported symbols are required. | |
22702 | always_export_symbols=$always_export_symbols | |
22703 | ||
22704 | # The commands to list exported symbols. | |
22705 | export_symbols_cmds=$lt_export_symbols_cmds | |
22706 | ||
22707 | # Symbols that should not be listed in the preloaded symbols. | |
22708 | exclude_expsyms=$lt_exclude_expsyms | |
22709 | ||
22710 | # Symbols that must always be exported. | |
22711 | include_expsyms=$lt_include_expsyms | |
22712 | ||
22713 | # Commands necessary for linking programs (against libraries) with templates. | |
22714 | prelink_cmds=$lt_prelink_cmds | |
22715 | ||
22716 | # Specify filename containing input files. | |
22717 | file_list_spec=$lt_file_list_spec | |
22718 | ||
22719 | # How to hardcode a shared library path into an executable. | |
22720 | hardcode_action=$hardcode_action | |
22721 | ||
22722 | # ### END LIBTOOL CONFIG | |
22723 | ||
22724 | _LT_EOF | |
22725 | ||
22726 | case $host_os in | |
22727 | aix3*) | |
22728 | cat <<\_LT_EOF >> "$cfgfile" | |
22729 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22730 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22731 | # vanish in a puff of smoke. | |
22732 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22733 | COLLECT_NAMES= | |
22734 | export COLLECT_NAMES | |
22735 | fi | |
22736 | _LT_EOF | |
22737 | ;; | |
22738 | esac | |
22739 | ||
22740 | ||
22741 | ltmain="$ac_aux_dir/ltmain.sh" | |
22742 | ||
22743 | ||
22744 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22745 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22746 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22747 | # is reportedly fixed, but why not run on old versions too? | |
22748 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
22749 | || (rm -f "$cfgfile"; exit 1) | |
22750 | ||
22751 | case $xsi_shell in | |
22752 | yes) | |
22753 | cat << \_LT_EOF >> "$cfgfile" | |
22754 | # func_dirname file append nondir_replacement | |
22755 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22756 | # otherwise set result to NONDIR_REPLACEMENT. | |
22757 | func_dirname () | |
22758 | { | |
22759 | case ${1} in | |
22760 | */*) func_dirname_result="${1%/*}${2}" ;; | |
22761 | * ) func_dirname_result="${3}" ;; | |
22762 | esac | |
22763 | } | |
22764 | ||
22765 | # func_basename file | |
22766 | func_basename () | |
22767 | { | |
22768 | func_basename_result="${1##*/}" | |
22769 | } | |
22770 | ||
22771 | # func_stripname prefix suffix name | |
22772 | # strip PREFIX and SUFFIX off of NAME. | |
22773 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22774 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22775 | # dot (in which case that matches only a dot). | |
22776 | func_stripname () | |
22777 | { | |
22778 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
22779 | # positional parameters, so assign one to ordinary parameter first. | |
22780 | func_stripname_result=${3} | |
22781 | func_stripname_result=${func_stripname_result#"${1}"} | |
22782 | func_stripname_result=${func_stripname_result%"${2}"} | |
22783 | } | |
22784 | ||
22785 | # func_opt_split | |
22786 | func_opt_split () | |
22787 | { | |
22788 | func_opt_split_opt=${1%%=*} | |
22789 | func_opt_split_arg=${1#*=} | |
22790 | } | |
22791 | ||
22792 | # func_lo2o object | |
22793 | func_lo2o () | |
22794 | { | |
22795 | case ${1} in | |
22796 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
22797 | *) func_lo2o_result=${1} ;; | |
22798 | esac | |
22799 | } | |
22800 | _LT_EOF | |
22801 | ;; | |
22802 | *) # Bourne compatible functions. | |
22803 | cat << \_LT_EOF >> "$cfgfile" | |
22804 | # func_dirname file append nondir_replacement | |
22805 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22806 | # otherwise set result to NONDIR_REPLACEMENT. | |
22807 | func_dirname () | |
22808 | { | |
22809 | # Extract subdirectory from the argument. | |
22810 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
22811 | if test "X$func_dirname_result" = "X${1}"; then | |
22812 | func_dirname_result="${3}" | |
22813 | else | |
22814 | func_dirname_result="$func_dirname_result${2}" | |
22815 | fi | |
22816 | } | |
22817 | ||
22818 | # func_basename file | |
22819 | func_basename () | |
22820 | { | |
22821 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
22822 | } | |
22823 | ||
22824 | # func_stripname prefix suffix name | |
22825 | # strip PREFIX and SUFFIX off of NAME. | |
22826 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22827 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22828 | # dot (in which case that matches only a dot). | |
22829 | # func_strip_suffix prefix name | |
22830 | func_stripname () | |
22831 | { | |
22832 | case ${2} in | |
22833 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
22834 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
22835 | *) func_stripname_result=`$ECHO "X${3}" \ | |
22836 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
22837 | esac | |
22838 | } | |
22839 | ||
22840 | # sed scripts: | |
22841 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
22842 | my_sed_long_arg='1s/^-[^=]*=//' | |
22843 | ||
22844 | # func_opt_split | |
22845 | func_opt_split () | |
22846 | { | |
22847 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
22848 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
22849 | } | |
22850 | ||
22851 | # func_lo2o object | |
22852 | func_lo2o () | |
22853 | { | |
22854 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
22855 | } | |
22856 | _LT_EOF | |
22857 | esac | |
22858 | ||
22859 | case $lt_shell_append in | |
22860 | yes) | |
22861 | cat << \_LT_EOF >> "$cfgfile" | |
22862 | ||
22863 | # func_append var value | |
22864 | # Append VALUE to the end of shell variable VAR. | |
22865 | func_append () | |
22866 | { | |
22867 | eval "$1+=\$2" | |
22868 | } | |
22869 | _LT_EOF | |
22870 | ;; | |
22871 | *) | |
22872 | cat << \_LT_EOF >> "$cfgfile" | |
22873 | ||
22874 | # func_append var value | |
22875 | # Append VALUE to the end of shell variable VAR. | |
22876 | func_append () | |
22877 | { | |
22878 | eval "$1=\$$1\$2" | |
22879 | } | |
22880 | _LT_EOF | |
22881 | ;; | |
22882 | esac | |
22883 | ||
22884 | ||
22885 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
22886 | || (rm -f "$cfgfile"; exit 1) | |
22887 | ||
22888 | mv -f "$cfgfile" "$ofile" || | |
22889 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
22890 | chmod +x "$ofile" | |
22891 | ||
f5385ebf | 22892 | ;; |
20e95c23 DJ |
22893 | default-1 ) |
22894 | for ac_file in $CONFIG_FILES; do | |
22895 | # Support "outfile[:infile[:infile...]]" | |
22896 | case "$ac_file" in | |
22897 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22898 | esac | |
22899 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
22900 | case "$ac_file" in */Makefile.in) | |
22901 | # Adjust a relative srcdir. | |
22902 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
22903 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
22904 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
22905 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
22906 | # In autoconf-2.50 it is called $srcdir. | |
22907 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
22908 | case "$ac_given_srcdir" in | |
22909 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
22910 | /*) top_srcdir="$ac_given_srcdir" ;; | |
22911 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
22912 | esac | |
22913 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
22914 | rm -f "$ac_dir/POTFILES" | |
22915 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
22916 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
22917 | POMAKEFILEDEPS="POTFILES.in" | |
22918 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
22919 | # on $ac_dir but don't depend on user-specified configuration | |
22920 | # parameters. | |
22921 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
22922 | # The LINGUAS file contains the set of available languages. | |
22923 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
22924 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
22925 | fi | |
22926 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
22927 | # Hide the ALL_LINGUAS assigment from automake. | |
22928 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
22929 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
22930 | else | |
22931 | # The set of available languages was given in configure.in. | |
22932 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
22933 | fi | |
22934 | case "$ac_given_srcdir" in | |
22935 | .) srcdirpre= ;; | |
22936 | *) srcdirpre='$(srcdir)/' ;; | |
22937 | esac | |
22938 | POFILES= | |
22939 | GMOFILES= | |
22940 | UPDATEPOFILES= | |
22941 | DUMMYPOFILES= | |
22942 | for lang in $ALL_LINGUAS; do | |
22943 | POFILES="$POFILES $srcdirpre$lang.po" | |
22944 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
22945 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
22946 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
22947 | done | |
22948 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
22949 | # environment variable. | |
22950 | INST_LINGUAS= | |
22951 | if test -n "$ALL_LINGUAS"; then | |
22952 | for presentlang in $ALL_LINGUAS; do | |
22953 | useit=no | |
22954 | if test "%UNSET%" != "$LINGUAS"; then | |
22955 | desiredlanguages="$LINGUAS" | |
22956 | else | |
22957 | desiredlanguages="$ALL_LINGUAS" | |
22958 | fi | |
22959 | for desiredlang in $desiredlanguages; do | |
22960 | # Use the presentlang catalog if desiredlang is | |
22961 | # a. equal to presentlang, or | |
22962 | # b. a variant of presentlang (because in this case, | |
22963 | # presentlang can be used as a fallback for messages | |
22964 | # which are not translated in the desiredlang catalog). | |
22965 | case "$desiredlang" in | |
22966 | "$presentlang"*) useit=yes;; | |
22967 | esac | |
22968 | done | |
22969 | if test $useit = yes; then | |
22970 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
22971 | fi | |
22972 | done | |
22973 | fi | |
22974 | CATALOGS= | |
22975 | if test -n "$INST_LINGUAS"; then | |
22976 | for lang in $INST_LINGUAS; do | |
22977 | CATALOGS="$CATALOGS $lang.gmo" | |
22978 | done | |
22979 | fi | |
22980 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
22981 | 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" | |
22982 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
22983 | if test -f "$f"; then | |
22984 | case "$f" in | |
22985 | *.orig | *.bak | *~) ;; | |
22986 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
22987 | esac | |
22988 | fi | |
22989 | done | |
22990 | fi | |
22991 | ;; | |
22992 | esac | |
22993 | done ;; | |
d5efd9fc AM |
22994 | bfd_stdint.h ) |
22995 | if test "$GCC" = yes; then | |
22996 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
22997 | else | |
22998 | echo "/* generated for $CC */" > tmp-stdint.h | |
22999 | fi | |
23000 | ||
23001 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23002 | ||
23003 | #ifndef GCC_GENERATED_STDINT_H | |
23004 | #define GCC_GENERATED_STDINT_H 1 | |
23005 | ||
23006 | #include <sys/types.h> | |
23007 | EOF | |
23008 | ||
23009 | if test "$acx_cv_header_stdint" != stdint.h; then | |
23010 | echo "#include <stddef.h>" >> tmp-stdint.h | |
23011 | fi | |
23012 | if test "$acx_cv_header_stdint" != stddef.h; then | |
23013 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
23014 | fi | |
23015 | ||
23016 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23017 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
23018 | #ifdef __int8_t_defined | |
23019 | #define _INT8_T | |
23020 | #define _INT16_T | |
23021 | #define _INT32_T | |
23022 | #endif | |
23023 | #ifdef __uint32_t_defined | |
23024 | #define _UINT32_T | |
23025 | #endif | |
23026 | ||
23027 | EOF | |
23028 | ||
23029 | # ----------------- done header, emit basic int types ------------- | |
23030 | if test "$acx_cv_header_stdint" = stddef.h; then | |
23031 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23032 | ||
23033 | #ifndef _UINT8_T | |
23034 | #define _UINT8_T | |
23035 | #ifndef __uint8_t_defined | |
23036 | #define __uint8_t_defined | |
23037 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
23038 | #endif | |
23039 | #endif | |
23040 | ||
23041 | #ifndef _UINT16_T | |
23042 | #define _UINT16_T | |
23043 | #ifndef __uint16_t_defined | |
23044 | #define __uint16_t_defined | |
23045 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
23046 | #endif | |
23047 | #endif | |
23048 | ||
23049 | #ifndef _UINT32_T | |
23050 | #define _UINT32_T | |
23051 | #ifndef __uint32_t_defined | |
23052 | #define __uint32_t_defined | |
23053 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
23054 | #endif | |
23055 | #endif | |
23056 | ||
23057 | #ifndef _INT8_T | |
23058 | #define _INT8_T | |
23059 | #ifndef __int8_t_defined | |
23060 | #define __int8_t_defined | |
23061 | typedef $acx_cv_type_int8_t int8_t; | |
23062 | #endif | |
23063 | #endif | |
23064 | ||
23065 | #ifndef _INT16_T | |
23066 | #define _INT16_T | |
23067 | #ifndef __int16_t_defined | |
23068 | #define __int16_t_defined | |
23069 | typedef $acx_cv_type_int16_t int16_t; | |
23070 | #endif | |
23071 | #endif | |
23072 | ||
23073 | #ifndef _INT32_T | |
23074 | #define _INT32_T | |
23075 | #ifndef __int32_t_defined | |
23076 | #define __int32_t_defined | |
23077 | typedef $acx_cv_type_int32_t int32_t; | |
23078 | #endif | |
23079 | #endif | |
23080 | EOF | |
23081 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
23082 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23083 | ||
23084 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
23085 | #ifndef _INT8_T | |
23086 | #define _INT8_T | |
23087 | #endif | |
23088 | #ifndef _INT16_T | |
23089 | #define _INT16_T | |
23090 | #endif | |
23091 | #ifndef _INT32_T | |
23092 | #define _INT32_T | |
23093 | #endif | |
23094 | ||
23095 | #ifndef _UINT8_T | |
23096 | #define _UINT8_T | |
23097 | #ifndef __uint8_t_defined | |
23098 | #define __uint8_t_defined | |
23099 | typedef u_int8_t uint8_t; | |
23100 | #endif | |
23101 | #endif | |
23102 | ||
23103 | #ifndef _UINT16_T | |
23104 | #define _UINT16_T | |
23105 | #ifndef __uint16_t_defined | |
23106 | #define __uint16_t_defined | |
23107 | typedef u_int16_t uint16_t; | |
23108 | #endif | |
23109 | #endif | |
23110 | ||
23111 | #ifndef _UINT32_T | |
23112 | #define _UINT32_T | |
23113 | #ifndef __uint32_t_defined | |
23114 | #define __uint32_t_defined | |
23115 | typedef u_int32_t uint32_t; | |
23116 | #endif | |
23117 | #endif | |
23118 | EOF | |
23119 | else | |
23120 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23121 | ||
23122 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
23123 | #ifndef _INT8_T | |
23124 | #define _INT8_T | |
23125 | #endif | |
23126 | #ifndef _INT16_T | |
23127 | #define _INT16_T | |
23128 | #endif | |
23129 | #ifndef _INT32_T | |
23130 | #define _INT32_T | |
23131 | #endif | |
23132 | #ifndef _UINT8_T | |
23133 | #define _UINT8_T | |
23134 | #endif | |
23135 | #ifndef _UINT16_T | |
23136 | #define _UINT16_T | |
23137 | #endif | |
23138 | #ifndef _UINT32_T | |
23139 | #define _UINT32_T | |
23140 | #endif | |
23141 | EOF | |
23142 | fi | |
23143 | ||
23144 | # ------------- done basic int types, emit int64_t types ------------ | |
23145 | if test "$ac_cv_type_uint64_t" = yes; then | |
23146 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23147 | ||
23148 | /* system headers have good uint64_t and int64_t */ | |
23149 | #ifndef _INT64_T | |
23150 | #define _INT64_T | |
23151 | #endif | |
23152 | #ifndef _UINT64_T | |
23153 | #define _UINT64_T | |
23154 | #endif | |
23155 | EOF | |
23156 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
23157 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23158 | ||
23159 | /* system headers have an u_int64_t (and int64_t) */ | |
23160 | #ifndef _INT64_T | |
23161 | #define _INT64_T | |
23162 | #endif | |
23163 | #ifndef _UINT64_T | |
23164 | #define _UINT64_T | |
23165 | #ifndef __uint64_t_defined | |
23166 | #define __uint64_t_defined | |
23167 | typedef u_int64_t uint64_t; | |
23168 | #endif | |
23169 | #endif | |
23170 | EOF | |
23171 | elif test -n "$acx_cv_type_int64_t"; then | |
23172 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23173 | ||
23174 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
23175 | #ifndef _INT64_T | |
23176 | #define _INT64_T | |
23177 | typedef $acx_cv_type_int64_t int64_t; | |
23178 | #endif | |
23179 | #ifndef _UINT64_T | |
23180 | #define _UINT64_T | |
23181 | #ifndef __uint64_t_defined | |
23182 | #define __uint64_t_defined | |
23183 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
23184 | #endif | |
23185 | #endif | |
23186 | EOF | |
23187 | else | |
23188 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23189 | ||
23190 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
23191 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
23192 | #ifndef _INT64_T | |
23193 | #define _INT64_T | |
23194 | #ifndef __int64_t_defined | |
23195 | typedef long long int64_t; | |
23196 | #endif | |
23197 | #endif | |
23198 | #ifndef _UINT64_T | |
23199 | #define _UINT64_T | |
23200 | typedef unsigned long long uint64_t; | |
23201 | #endif | |
23202 | ||
23203 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
23204 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
23205 | does not implement __extension__. But that compiler doesn't define | |
23206 | __GNUC_MINOR__. */ | |
23207 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
23208 | # define __extension__ | |
23209 | # endif | |
23210 | ||
23211 | # ifndef _INT64_T | |
23212 | # define _INT64_T | |
23213 | __extension__ typedef long long int64_t; | |
23214 | # endif | |
23215 | # ifndef _UINT64_T | |
23216 | # define _UINT64_T | |
23217 | __extension__ typedef unsigned long long uint64_t; | |
23218 | # endif | |
23219 | ||
23220 | #elif !defined __STRICT_ANSI__ | |
23221 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
23222 | ||
23223 | # ifndef _INT64_T | |
23224 | # define _INT64_T | |
23225 | typedef __int64 int64_t; | |
23226 | # endif | |
23227 | # ifndef _UINT64_T | |
23228 | # define _UINT64_T | |
23229 | typedef unsigned __int64 uint64_t; | |
23230 | # endif | |
23231 | # endif /* compiler */ | |
23232 | ||
23233 | #endif /* ANSI version */ | |
23234 | EOF | |
23235 | fi | |
23236 | ||
23237 | # ------------- done int64_t types, emit intptr types ------------ | |
23238 | if test "$ac_cv_type_uintptr_t" != yes; then | |
23239 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23240 | ||
23241 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
23242 | #ifndef __uintptr_t_defined | |
23243 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
23244 | #endif | |
23245 | #ifndef __intptr_t_defined | |
23246 | typedef $acx_cv_type_intptr_t intptr_t; | |
23247 | #endif | |
23248 | EOF | |
23249 | fi | |
23250 | ||
23251 | # ------------- done intptr types, emit int_least types ------------ | |
23252 | if test "$ac_cv_type_int_least32_t" != yes; then | |
23253 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23254 | ||
23255 | /* Define int_least types */ | |
23256 | typedef int8_t int_least8_t; | |
23257 | typedef int16_t int_least16_t; | |
23258 | typedef int32_t int_least32_t; | |
23259 | #ifdef _INT64_T | |
23260 | typedef int64_t int_least64_t; | |
23261 | #endif | |
23262 | ||
23263 | typedef uint8_t uint_least8_t; | |
23264 | typedef uint16_t uint_least16_t; | |
23265 | typedef uint32_t uint_least32_t; | |
23266 | #ifdef _UINT64_T | |
23267 | typedef uint64_t uint_least64_t; | |
23268 | #endif | |
23269 | EOF | |
23270 | fi | |
23271 | ||
23272 | # ------------- done intptr types, emit int_fast types ------------ | |
23273 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
23274 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23275 | ||
23276 | /* Define int_fast types. short is often slow */ | |
23277 | typedef int8_t int_fast8_t; | |
23278 | typedef int int_fast16_t; | |
23279 | typedef int32_t int_fast32_t; | |
23280 | #ifdef _INT64_T | |
23281 | typedef int64_t int_fast64_t; | |
23282 | #endif | |
23283 | ||
23284 | typedef uint8_t uint_fast8_t; | |
23285 | typedef unsigned int uint_fast16_t; | |
23286 | typedef uint32_t uint_fast32_t; | |
23287 | #ifdef _UINT64_T | |
23288 | typedef uint64_t uint_fast64_t; | |
23289 | #endif | |
23290 | EOF | |
23291 | fi | |
23292 | ||
23293 | if test "$ac_cv_type_uintmax_t" != yes; then | |
23294 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23295 | ||
23296 | /* Define intmax based on what we found */ | |
23297 | #ifdef _INT64_T | |
23298 | typedef int64_t intmax_t; | |
23299 | #else | |
23300 | typedef long intmax_t; | |
23301 | #endif | |
23302 | #ifdef _UINT64_T | |
23303 | typedef uint64_t uintmax_t; | |
23304 | #else | |
23305 | typedef unsigned long uintmax_t; | |
23306 | #endif | |
23307 | EOF | |
23308 | fi | |
23309 | ||
23310 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23311 | ||
23312 | #endif /* GCC_GENERATED_STDINT_H */ | |
23313 | EOF | |
23314 | ||
23315 | if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then | |
23316 | rm -f tmp-stdint.h | |
23317 | else | |
23318 | mv -f tmp-stdint.h bfd_stdint.h | |
23319 | fi | |
23320 | ||
23321 | ;; | |
20e95c23 DJ |
23322 | default ) |
23323 | case "$srcdir" in | |
23324 | .) srcdirpre= ;; | |
23325 | *) srcdirpre='$(srcdir)/' ;; | |
23326 | esac | |
23327 | POFILES= | |
23328 | GMOFILES= | |
23329 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
23330 | if test $lang != dummy; then | |
23331 | POFILES="$POFILES $srcdirpre$lang.po" | |
23332 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
23333 | fi | |
23334 | done | |
23335 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ | |
23336 | -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ | |
23337 | -e "s,@POFILES@,$POFILES," \ | |
23338 | -e "s,@GMOFILES@,$GMOFILES," \ | |
23339 | po/Makefile.in > po/Makefile ;; | |
5464f5a1 NN |
23340 | esac |
23341 | done | |
23342 | _ACEOF | |
23343 | ||
23344 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23345 | ||
23346 | { (exit 0); exit 0; } | |
23347 | _ACEOF | |
252b5132 | 23348 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
23349 | ac_clean_files=$ac_clean_files_save |
23350 | ||
23351 | ||
23352 | # configure is writing to config.log, and then calls config.status. | |
23353 | # config.status does its own redirection, appending to config.log. | |
23354 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23355 | # by configure, so config.status won't be able to write to it; its | |
23356 | # output is simply discarded. So we exec the FD to /dev/null, | |
23357 | # effectively closing config.log, so it can be properly (re)opened and | |
23358 | # appended to by config.status. When coming back to configure, we | |
23359 | # need to make the FD available again. | |
23360 | if test "$no_create" != yes; then | |
23361 | ac_cs_success=: | |
23362 | ac_config_status_args= | |
23363 | test "$silent" = yes && | |
23364 | ac_config_status_args="$ac_config_status_args --quiet" | |
23365 | exec 5>/dev/null | |
23366 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23367 | exec 5>>config.log | |
23368 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23369 | # would make configure fail if this is the last instruction. | |
23370 | $ac_cs_success || { (exit 1); exit 1; } | |
23371 | fi | |
252b5132 | 23372 | |
55c80943 | 23373 |