Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ab509236 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
ab509236 | 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. | |
13b2be9c DJ |
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 | |
ab509236 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
13b2be9c DJ |
23 | |
24 | # Support unset when possible. | |
ab509236 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13b2be9c DJ |
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 | |
ab509236 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13b2be9c DJ |
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 | |
ab509236 | 221 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
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. | |
ab509236 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
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 | ||
13b2be9c DJ |
393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 397 | |
13b2be9c DJ |
398 | exec 6>&1 |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
252b5132 | 403 | ac_default_prefix=/usr/local |
13b2be9c DJ |
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="as.h" | |
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 | ||
7357c5b6 | 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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
13b2be9c | 462 | ac_subst_files='' |
7a283e07 | 463 | ac_pwd=`pwd` |
252b5132 RH |
464 | |
465 | # Initialize some variables set by options. | |
13b2be9c DJ |
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. | |
13b2be9c | 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 | |
13b2be9c DJ |
484 | |
485 | # Installation directory options. | |
486 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
487 | # and all the variables that are supposed to be based on exec_prefix | |
488 | # by default will actually change. | |
489 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
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 | ||
13b2be9c | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
13b2be9c | 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=*) | |
13b2be9c | 522 | bindir=$ac_optarg ;; |
252b5132 RH |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 525 | ac_prev=build_alias ;; |
252b5132 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 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=*) | |
13b2be9c DJ |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
252b5132 RH |
538 | |
539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
540 | ac_prev=datadir ;; | |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
542 | | --da=*) | |
13b2be9c | 543 | datadir=$ac_optarg ;; |
252b5132 RH |
544 | |
545 | -disable-* | --disable-*) | |
13b2be9c | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 547 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
550 | { (exit 1); exit 1; }; } | |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
552 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
553 | |
554 | -enable-* | --enable-*) | |
13b2be9c | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 556 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
559 | { (exit 1); exit 1; }; } | |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
563 | *) ac_optarg=yes ;; |
564 | esac | |
13b2be9c | 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=*) | |
13b2be9c | 574 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
13b2be9c DJ |
580 | -help | --help | --hel | --he | -h) |
581 | ac_init_help=long ;; | |
582 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
583 | ac_init_help=recursive ;; | |
584 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
585 | ac_init_help=short ;; | |
252b5132 RH |
586 | |
587 | -host | --host | --hos | --ho) | |
13b2be9c | 588 | ac_prev=host_alias ;; |
252b5132 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 602 | infodir=$ac_optarg ;; |
252b5132 RH |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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 \ | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 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=*) | |
13b2be9c | 706 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
13b2be9c | 711 | site=$ac_optarg ;; |
76bff705 | 712 | |
252b5132 RH |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 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=*) | |
13b2be9c | 723 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 726 | ac_prev=target_alias ;; |
252b5132 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 728 | target_alias=$ac_optarg ;; |
252b5132 RH |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
13b2be9c DJ |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
252b5132 RH |
735 | |
736 | -with-* | --with-*) | |
13b2be9c | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 738 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
741 | { (exit 1); exit 1; }; } | |
252b5132 | 742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
13b2be9c DJ |
743 | case $ac_option in |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
745 | *) ac_optarg=yes ;; |
746 | esac | |
13b2be9c | 747 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
748 | |
749 | -without-* | --without-*) | |
13b2be9c | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 751 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
754 | { (exit 1); exit 1; }; } | |
755 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
756 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
757 | |
758 | --x) | |
759 | # Obsolete; use --with-x. | |
760 | with_x=yes ;; | |
761 | ||
762 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
763 | | --x-incl | --x-inc | --x-in | --x-i) | |
764 | ac_prev=x_includes ;; | |
765 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
766 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 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=*) | |
13b2be9c | 774 | x_libraries=$ac_optarg ;; |
252b5132 | 775 | |
13b2be9c DJ |
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 | ||
13b2be9c DJ |
781 | *=*) |
782 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
783 | # Reject names that are not valid shell variable names. | |
784 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
785 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
786 | { (exit 1); exit 1; }; } | |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
788 | eval "$ac_envvar='$ac_optarg'" | |
789 | export $ac_envvar ;; | |
790 | ||
252b5132 | 791 | *) |
13b2be9c DJ |
792 | # FIXME: should be removed in autoconf 3.0. |
793 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
794 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
795 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
796 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
797 | ;; |
798 | ||
799 | esac | |
800 | done | |
801 | ||
802 | if test -n "$ac_prev"; then | |
13b2be9c DJ |
803 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
804 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
805 | { (exit 1); exit 1; }; } | |
c8615825 | 806 | fi |
c8615825 | 807 | |
13b2be9c DJ |
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 | |
252b5132 | 818 | |
13b2be9c DJ |
819 | # Be sure to have absolute paths. |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ab509236 | 821 | localstatedir libdir includedir oldincludedir infodir mandir |
252b5132 | 822 | do |
13b2be9c DJ |
823 | eval ac_val=$`echo $ac_var` |
824 | case $ac_val in | |
825 | [\\/$]* | ?:[\\/]* ) ;; | |
826 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
827 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
828 | esac |
829 | done | |
830 | ||
13b2be9c DJ |
831 | # There might be people who depend on the old broken behavior: `$host' |
832 | # used to hold the argument of --host etc. | |
833 | # FIXME: To remove some day. | |
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 | |
9b2b7d69 | 848 | |
13b2be9c DJ |
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. | |
13b2be9c DJ |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
861 | X"$0" : 'X\(//\)[^/]' \| \ |
862 | X"$0" : 'X\(//\)$' \| \ | |
863 | X"$0" : 'X\(/\)' \| \ | |
864 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
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 | |
13b2be9c DJ |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
881 | { (exit 1); exit 1; }; } | |
252b5132 | 882 | else |
13b2be9c DJ |
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 | |
13b2be9c DJ |
887 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
888 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
889 | { (exit 1); exit 1; }; } | |
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 | |
d6d788bd | 923 | |
13b2be9c DJ |
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. | |
9b2b7d69 | 932 | |
13b2be9c | 933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 934 | |
13b2be9c DJ |
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. | |
9b2b7d69 | 937 | |
13b2be9c | 938 | Defaults for the options are specified in brackets. |
9b2b7d69 | 939 | |
13b2be9c DJ |
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 | |
ab509236 | 956 | [$ac_default_prefix] |
13b2be9c | 957 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ab509236 | 958 | [PREFIX] |
9b2b7d69 | 959 | |
13b2be9c DJ |
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'. | |
9b2b7d69 | 964 | |
13b2be9c | 965 | For better control, use the options below. |
9b2b7d69 | 966 | |
13b2be9c DJ |
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 | |
9b2b7d69 | 981 | |
13b2be9c | 982 | cat <<\_ACEOF |
9b2b7d69 | 983 | |
13b2be9c DJ |
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 | |
9b2b7d69 | 988 | |
13b2be9c DJ |
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 | |
9b2b7d69 | 994 | fi |
9b2b7d69 | 995 | |
13b2be9c | 996 | if test -n "$ac_init_help"; then |
9b2b7d69 | 997 | |
13b2be9c | 998 | cat <<\_ACEOF |
9b2b7d69 | 999 | |
13b2be9c DJ |
1000 | Optional Features: |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab509236 L |
1003 | --disable-dependency-tracking speeds up one-time build |
1004 | --enable-dependency-tracking do not reject slow dependency extractors | |
d053aef8 | 1005 | --disable-largefile omit support for large files |
d7040cdb SE |
1006 | --enable-shared[=PKGS] |
1007 | build shared libraries [default=yes] | |
1008 | --enable-static[=PKGS] | |
1009 | build static libraries [default=yes] | |
1010 | --enable-fast-install[=PKGS] | |
1011 | optimize for fast installation [default=yes] | |
13b2be9c | 1012 | --disable-libtool-lock avoid locking (might break parallel builds) |
241a6c40 | 1013 | --enable-targets alternative target configurations besides the primary |
13b2be9c | 1014 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library |
c43a438d | 1015 | --enable-checking enable run-time checks |
241a6c40 AM |
1016 | --enable-werror treat compile warnings as errors |
1017 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1018 | --disable-nls do not use Native Language Support |
ab509236 L |
1019 | --enable-maintainer-mode enable make rules and dependencies not useful |
1020 | (and sometimes confusing) to the casual installer | |
9b2b7d69 | 1021 | |
13b2be9c DJ |
1022 | Optional Packages: |
1023 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1024 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1025 | --with-pic try to use only PIC/non-PIC objects [default=use |
1026 | both] | |
1027 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9b2b7d69 | 1028 | |
13b2be9c DJ |
1029 | Some influential environment variables: |
1030 | CC C compiler command | |
1031 | CFLAGS C compiler flags | |
1032 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1033 | nonstandard directory <lib dir> | |
1034 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1035 | headers in a nonstandard directory <include dir> | |
1036 | CPP C preprocessor | |
1037 | ||
1038 | Use these variables to override the choices made by `configure' or to help | |
1039 | it to find libraries and programs with nonstandard names/locations. | |
1040 | ||
1041 | _ACEOF | |
9b2b7d69 | 1042 | fi |
9b2b7d69 | 1043 | |
13b2be9c DJ |
1044 | if test "$ac_init_help" = "recursive"; then |
1045 | # If there are subdirs, report their specific --help. | |
1046 | ac_popdir=`pwd` | |
1047 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1048 | test -d $ac_dir || continue | |
1049 | ac_builddir=. | |
1050 | ||
1051 | if test "$ac_dir" != .; then | |
1052 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1053 | # A "../" for each directory in $ac_dir_suffix. | |
1054 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1055 | else | |
1056 | ac_dir_suffix= ac_top_builddir= | |
1057 | fi | |
9b2b7d69 | 1058 | |
13b2be9c DJ |
1059 | case $srcdir in |
1060 | .) # No --srcdir option. We are building in place. | |
1061 | ac_srcdir=. | |
1062 | if test -z "$ac_top_builddir"; then | |
1063 | ac_top_srcdir=. | |
1064 | else | |
1065 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
c8615825 | 1066 | fi ;; |
13b2be9c DJ |
1067 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1068 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1069 | ac_top_srcdir=$srcdir ;; | |
1070 | *) # Relative path. | |
1071 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1072 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
c8615825 | 1073 | esac |
ab509236 L |
1074 | |
1075 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1076 | # the directories may not exist. | |
1077 | case `pwd` in | |
1078 | .) ac_abs_builddir="$ac_dir";; | |
1079 | *) | |
1080 | case "$ac_dir" in | |
1081 | .) ac_abs_builddir=`pwd`;; | |
1082 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1083 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1084 | esac;; | |
1085 | esac | |
1086 | case $ac_abs_builddir in | |
1087 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1088 | *) | |
1089 | case ${ac_top_builddir}. in | |
1090 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1091 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1092 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1093 | esac;; | |
1094 | esac | |
1095 | case $ac_abs_builddir in | |
1096 | .) ac_abs_srcdir=$ac_srcdir;; | |
1097 | *) | |
1098 | case $ac_srcdir in | |
1099 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1100 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1101 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1102 | esac;; | |
1103 | esac | |
1104 | case $ac_abs_builddir in | |
1105 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1106 | *) | |
1107 | case $ac_top_srcdir in | |
1108 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1109 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1110 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1111 | esac;; | |
1112 | esac | |
13b2be9c DJ |
1113 | |
1114 | cd $ac_dir | |
1115 | # Check for guested configure; otherwise get Cygnus style configure. | |
1116 | if test -f $ac_srcdir/configure.gnu; then | |
1117 | echo | |
1118 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1119 | elif test -f $ac_srcdir/configure; then | |
1120 | echo | |
1121 | $SHELL $ac_srcdir/configure --help=recursive | |
1122 | elif test -f $ac_srcdir/configure.ac || | |
ab509236 | 1123 | test -f $ac_srcdir/configure.in; then |
13b2be9c DJ |
1124 | echo |
1125 | $ac_configure --help | |
1126 | else | |
1127 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1128 | fi | |
1ad12f97 | 1129 | cd $ac_popdir |
13b2be9c DJ |
1130 | done |
1131 | fi | |
6840198f | 1132 | |
13b2be9c DJ |
1133 | test -n "$ac_init_help" && exit 0 |
1134 | if $ac_init_version; then | |
1135 | cat <<\_ACEOF | |
c8615825 | 1136 | |
ab509236 | 1137 | Copyright (C) 2003 Free Software Foundation, Inc. |
13b2be9c DJ |
1138 | This configure script is free software; the Free Software Foundation |
1139 | gives unlimited permission to copy, distribute and modify it. | |
1140 | _ACEOF | |
1141 | exit 0 | |
1142 | fi | |
1143 | exec 5>config.log | |
1144 | cat >&5 <<_ACEOF | |
1145 | This file contains any messages produced by compilers while | |
1146 | running configure, to aid debugging if configure makes a mistake. | |
c8615825 | 1147 | |
13b2be9c | 1148 | It was created by $as_me, which was |
ab509236 | 1149 | generated by GNU Autoconf 2.59. Invocation command line was |
c8615825 | 1150 | |
13b2be9c | 1151 | $ $0 $@ |
c8615825 | 1152 | |
13b2be9c DJ |
1153 | _ACEOF |
1154 | { | |
1155 | cat <<_ASUNAME | |
1156 | ## --------- ## | |
1157 | ## Platform. ## | |
1158 | ## --------- ## | |
1159 | ||
1160 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1161 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1162 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1163 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1164 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1165 | ||
1166 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1167 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1168 | ||
1169 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1170 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1171 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1172 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1173 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1174 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1175 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1176 | ||
1177 | _ASUNAME | |
1178 | ||
1179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1180 | for as_dir in $PATH | |
1181 | do | |
1182 | IFS=$as_save_IFS | |
1183 | test -z "$as_dir" && as_dir=. | |
1184 | echo "PATH: $as_dir" | |
1185 | done | |
9b2b7d69 | 1186 | |
13b2be9c | 1187 | } >&5 |
6840198f | 1188 | |
13b2be9c | 1189 | cat >&5 <<_ACEOF |
c8615825 | 1190 | |
9b2b7d69 | 1191 | |
13b2be9c DJ |
1192 | ## ----------- ## |
1193 | ## Core tests. ## | |
1194 | ## ----------- ## | |
87ccc1b0 | 1195 | |
13b2be9c | 1196 | _ACEOF |
9b2b7d69 | 1197 | |
13b2be9c DJ |
1198 | |
1199 | # Keep a trace of the command line. | |
1200 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1201 | # Strip out --silent because we don't want to record it for future runs. | |
1202 | # Also quote any args containing shell meta-characters. | |
1203 | # Make two passes to allow for proper duplicate-argument suppression. | |
1204 | ac_configure_args= | |
1205 | ac_configure_args0= | |
1206 | ac_configure_args1= | |
1207 | ac_sep= | |
1208 | ac_must_keep_next=false | |
1209 | for ac_pass in 1 2 | |
1210 | do | |
1211 | for ac_arg | |
1212 | do | |
1213 | case $ac_arg in | |
1214 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1215 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1216 | | -silent | --silent | --silen | --sile | --sil) | |
1217 | continue ;; | |
1218 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1219 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1220 | esac | |
1221 | case $ac_pass in | |
1222 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1223 | 2) | |
1224 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1225 | if test $ac_must_keep_next = true; then | |
ab509236 | 1226 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 1227 | else |
ab509236 L |
1228 | case $ac_arg in |
1229 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1230 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1231 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1232 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1233 | case "$ac_configure_args0 " in | |
1234 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1235 | esac | |
1236 | ;; | |
1237 | -* ) ac_must_keep_next=true ;; | |
1238 | esac | |
13b2be9c DJ |
1239 | fi |
1240 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1241 | # Get rid of the leading space. | |
1242 | ac_sep=" " | |
c8615825 AM |
1243 | ;; |
1244 | esac | |
1245 | done | |
13b2be9c DJ |
1246 | done |
1247 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1248 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1249 | ||
1250 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1251 | # config.log. We remove comments because anyway the quotes in there | |
1252 | # would cause problems or look ugly. | |
1253 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1254 | # such as our DU 5.0 friend, will then `close' the trap. | |
1255 | trap 'exit_status=$? | |
1256 | # Save into config.log some information that might help in debugging. | |
1257 | { | |
1258 | echo | |
1259 | ||
1260 | cat <<\_ASBOX | |
1261 | ## ---------------- ## | |
1262 | ## Cache variables. ## | |
1263 | ## ---------------- ## | |
1264 | _ASBOX | |
1265 | echo | |
1266 | # The following way of writing the cache mishandles newlines in values, | |
1267 | { | |
1268 | (set) 2>&1 | | |
1269 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1270 | *ac_space=\ *) | |
1271 | sed -n \ | |
ab509236 L |
1272 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1273 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
13b2be9c DJ |
1274 | ;; |
1275 | *) | |
1276 | sed -n \ | |
ab509236 | 1277 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
1278 | ;; |
1279 | esac; | |
1280 | } | |
1281 | echo | |
1282 | ||
1283 | cat <<\_ASBOX | |
1284 | ## ----------------- ## | |
1285 | ## Output variables. ## | |
1286 | ## ----------------- ## | |
1287 | _ASBOX | |
1288 | echo | |
1289 | for ac_var in $ac_subst_vars | |
1290 | do | |
1291 | eval ac_val=$`echo $ac_var` | |
1292 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1293 | done | sort | |
1294 | echo | |
1295 | ||
1296 | if test -n "$ac_subst_files"; then | |
1297 | cat <<\_ASBOX | |
1298 | ## ------------- ## | |
1299 | ## Output files. ## | |
1300 | ## ------------- ## | |
1301 | _ASBOX | |
1302 | echo | |
1303 | for ac_var in $ac_subst_files | |
1304 | do | |
1305 | eval ac_val=$`echo $ac_var` | |
ab509236 | 1306 | echo "$ac_var='"'"'$ac_val'"'"'" |
13b2be9c DJ |
1307 | done | sort |
1308 | echo | |
1309 | fi | |
1310 | ||
1311 | if test -s confdefs.h; then | |
1312 | cat <<\_ASBOX | |
1313 | ## ----------- ## | |
1314 | ## confdefs.h. ## | |
1315 | ## ----------- ## | |
1316 | _ASBOX | |
1317 | echo | |
1318 | sed "/^$/d" confdefs.h | sort | |
1319 | echo | |
1320 | fi | |
1321 | test "$ac_signal" != 0 && | |
1322 | echo "$as_me: caught signal $ac_signal" | |
1323 | echo "$as_me: exit $exit_status" | |
1324 | } >&5 | |
ab509236 | 1325 | rm -f core *.core && |
13b2be9c DJ |
1326 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1327 | exit $exit_status | |
1328 | ' 0 | |
1329 | for ac_signal in 1 2 13 15; do | |
1330 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1331 | done | |
1332 | ac_signal=0 | |
1333 | ||
1334 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1335 | rm -rf conftest* confdefs.h | |
1336 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1337 | echo >confdefs.h | |
1338 | ||
1339 | # Predefined preprocessor variables. | |
1340 | ||
1341 | cat >>confdefs.h <<_ACEOF | |
1342 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1343 | _ACEOF | |
1344 | ||
1345 | ||
1346 | cat >>confdefs.h <<_ACEOF | |
1347 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1348 | _ACEOF | |
1349 | ||
1350 | ||
1351 | cat >>confdefs.h <<_ACEOF | |
1352 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1353 | _ACEOF | |
1354 | ||
1355 | ||
1356 | cat >>confdefs.h <<_ACEOF | |
1357 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1358 | _ACEOF | |
1359 | ||
1360 | ||
1361 | cat >>confdefs.h <<_ACEOF | |
1362 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1363 | _ACEOF | |
1364 | ||
1365 | ||
1366 | # Let the site file select an alternate cache file if it wants to. | |
1367 | # Prefer explicitly selected file to automatically selected ones. | |
1368 | if test -z "$CONFIG_SITE"; then | |
1369 | if test "x$prefix" != xNONE; then | |
1370 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1371 | else | |
1372 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1373 | fi | |
1374 | fi | |
1375 | for ac_site_file in $CONFIG_SITE; do | |
1376 | if test -r "$ac_site_file"; then | |
1377 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1378 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1379 | sed 's/^/| /' "$ac_site_file" >&5 | |
1380 | . "$ac_site_file" | |
1381 | fi | |
1382 | done | |
1383 | ||
1384 | if test -r "$cache_file"; then | |
1385 | # Some versions of bash will fail to source /dev/null (special | |
1386 | # files actually), so we avoid doing that. | |
1387 | if test -f "$cache_file"; then | |
1388 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1389 | echo "$as_me: loading cache $cache_file" >&6;} | |
1390 | case $cache_file in | |
1391 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1392 | *) . ./$cache_file;; | |
1393 | esac | |
1394 | fi | |
1395 | else | |
1396 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1397 | echo "$as_me: creating cache $cache_file" >&6;} | |
1398 | >$cache_file | |
1399 | fi | |
1400 | ||
1401 | # Check that the precious variables saved in the cache have kept the same | |
1402 | # value. | |
1403 | ac_cache_corrupted=false | |
1404 | for ac_var in `(set) 2>&1 | | |
ab509236 | 1405 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
13b2be9c DJ |
1406 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1407 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1408 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1409 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1410 | case $ac_old_set,$ac_new_set in | |
1411 | set,) | |
1412 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1413 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1414 | ac_cache_corrupted=: ;; | |
1415 | ,set) | |
1416 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1417 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1418 | ac_cache_corrupted=: ;; | |
1419 | ,);; | |
1420 | *) | |
1421 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1422 | # differences in whitespace do not lead to failure. |
1423 | ac_old_val_w=`echo x $ac_old_val` | |
1424 | ac_new_val_w=`echo x $ac_new_val` | |
1425 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1426 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
13b2be9c | 1427 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1428 | ac_cache_corrupted=: |
1429 | else | |
1430 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1431 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1432 | eval $ac_var=\$ac_old_val | |
1433 | fi | |
1434 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1435 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1436 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1437 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
1438 | fi;; |
1439 | esac | |
1440 | # Pass precious variables to config.status. | |
1441 | if test "$ac_new_set" = set; then | |
1442 | case $ac_new_val in | |
1443 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1444 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1445 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1446 | esac | |
1447 | case " $ac_configure_args " in | |
1448 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1449 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1450 | esac | |
1451 | fi | |
1452 | done | |
1453 | if $ac_cache_corrupted; then | |
7a283e07 RW |
1454 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1455 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13b2be9c DJ |
1456 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1457 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1458 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1459 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1460 | { (exit 1); exit 1; }; } | |
1461 | fi | |
1462 | ||
1463 | ac_ext=c | |
1464 | ac_cpp='$CPP $CPPFLAGS' | |
1465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
7a283e07 RW |
1485 | |
1486 | ||
1487 | ||
13b2be9c | 1488 | |
da594c4a | 1489 | |
13b2be9c DJ |
1490 | |
1491 | ||
1492 | ac_aux_dir= | |
1493 | for ac_dir in .. $srcdir/..; do | |
1494 | if test -f $ac_dir/install-sh; then | |
1495 | ac_aux_dir=$ac_dir | |
1496 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1497 | break | |
1498 | elif test -f $ac_dir/install.sh; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1501 | break | |
1502 | elif test -f $ac_dir/shtool; then | |
1503 | ac_aux_dir=$ac_dir | |
1504 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1505 | break | |
1506 | fi | |
1507 | done | |
1508 | if test -z "$ac_aux_dir"; then | |
1509 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
1510 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1514 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1515 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1516 | ||
1517 | # Make sure we can run config.sub. | |
1518 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1519 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1520 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | ||
1523 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1524 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1525 | if test "${ac_cv_build+set}" = set; then | |
1526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1527 | else | |
1528 | ac_cv_build_alias=$build_alias | |
1529 | test -z "$ac_cv_build_alias" && | |
1530 | ac_cv_build_alias=`$ac_config_guess` | |
1531 | test -z "$ac_cv_build_alias" && | |
1532 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1533 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1536 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1537 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1538 | { (exit 1); exit 1; }; } | |
1539 | ||
1540 | fi | |
1541 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1542 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1543 | build=$ac_cv_build | |
1544 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1545 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1546 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1547 | ||
1548 | ||
1549 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1550 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1551 | if test "${ac_cv_host+set}" = set; then | |
1552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1553 | else | |
1554 | ac_cv_host_alias=$host_alias | |
1555 | test -z "$ac_cv_host_alias" && | |
1556 | ac_cv_host_alias=$ac_cv_build_alias | |
1557 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1558 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1559 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1560 | { (exit 1); exit 1; }; } | |
1561 | ||
1562 | fi | |
1563 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1564 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1565 | host=$ac_cv_host | |
1566 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1567 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1568 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1569 | ||
1570 | ||
1571 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1572 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_target+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_target_alias=$target_alias | |
1577 | test "x$ac_cv_target_alias" = "x" && | |
1578 | ac_cv_target_alias=$ac_cv_host_alias | |
1579 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1580 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1581 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | fi | |
1585 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1586 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1587 | target=$ac_cv_target | |
1588 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1589 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1590 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1591 | ||
1592 | ||
1593 | # The aliases save the names the user supplied, while $host etc. | |
1594 | # will get canonicalized. | |
1595 | test -n "$target_alias" && | |
1596 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1597 | NONENONEs,x,x, && | |
1598 | program_prefix=${target_alias}- | |
1599 | ac_ext=c | |
1600 | ac_cpp='$CPP $CPPFLAGS' | |
1601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1604 | if test -n "$ac_tool_prefix"; then | |
1605 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1606 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1609 | if test "${ac_cv_prog_CC+set}" = set; then | |
1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1611 | else | |
1612 | if test -n "$CC"; then | |
1613 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1614 | else | |
1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1616 | for as_dir in $PATH | |
1617 | do | |
1618 | IFS=$as_save_IFS | |
1619 | test -z "$as_dir" && as_dir=. | |
1620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1622 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1624 | break 2 | |
1625 | fi | |
1626 | done | |
1627 | done | |
1628 | ||
1629 | fi | |
1630 | fi | |
1631 | CC=$ac_cv_prog_CC | |
1632 | if test -n "$CC"; then | |
1633 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1634 | echo "${ECHO_T}$CC" >&6 | |
1635 | else | |
1636 | echo "$as_me:$LINENO: result: no" >&5 | |
1637 | echo "${ECHO_T}no" >&6 | |
1638 | fi | |
1639 | ||
1640 | fi | |
1641 | if test -z "$ac_cv_prog_CC"; then | |
1642 | ac_ct_CC=$CC | |
1643 | # Extract the first word of "gcc", so it can be a program name with args. | |
1644 | set dummy gcc; ac_word=$2 | |
1645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1647 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1649 | else | |
1650 | if test -n "$ac_ct_CC"; then | |
1651 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1652 | else | |
1653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1654 | for as_dir in $PATH | |
1655 | do | |
1656 | IFS=$as_save_IFS | |
1657 | test -z "$as_dir" && as_dir=. | |
1658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1660 | ac_cv_prog_ac_ct_CC="gcc" | |
1661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1662 | break 2 | |
1663 | fi | |
1664 | done | |
1665 | done | |
1666 | ||
1667 | fi | |
1668 | fi | |
1669 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1670 | if test -n "$ac_ct_CC"; then | |
1671 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1672 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1673 | else | |
1674 | echo "$as_me:$LINENO: result: no" >&5 | |
1675 | echo "${ECHO_T}no" >&6 | |
1676 | fi | |
1677 | ||
1678 | CC=$ac_ct_CC | |
1679 | else | |
1680 | CC="$ac_cv_prog_CC" | |
1681 | fi | |
1682 | ||
1683 | if test -z "$CC"; then | |
1684 | if test -n "$ac_tool_prefix"; then | |
1685 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1686 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1687 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1689 | if test "${ac_cv_prog_CC+set}" = set; then | |
1690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1691 | else | |
1692 | if test -n "$CC"; then | |
1693 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1694 | else | |
1695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1696 | for as_dir in $PATH | |
1697 | do | |
1698 | IFS=$as_save_IFS | |
1699 | test -z "$as_dir" && as_dir=. | |
1700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1702 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1704 | break 2 | |
1705 | fi | |
1706 | done | |
1707 | done | |
1708 | ||
1709 | fi | |
1710 | fi | |
1711 | CC=$ac_cv_prog_CC | |
1712 | if test -n "$CC"; then | |
1713 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1714 | echo "${ECHO_T}$CC" >&6 | |
1715 | else | |
1716 | echo "$as_me:$LINENO: result: no" >&5 | |
1717 | echo "${ECHO_T}no" >&6 | |
1718 | fi | |
1719 | ||
1720 | fi | |
1721 | if test -z "$ac_cv_prog_CC"; then | |
1722 | ac_ct_CC=$CC | |
1723 | # Extract the first word of "cc", so it can be a program name with args. | |
1724 | set dummy cc; ac_word=$2 | |
1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1727 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1729 | else | |
1730 | if test -n "$ac_ct_CC"; then | |
1731 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1732 | else | |
1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1734 | for as_dir in $PATH | |
1735 | do | |
1736 | IFS=$as_save_IFS | |
1737 | test -z "$as_dir" && as_dir=. | |
1738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1740 | ac_cv_prog_ac_ct_CC="cc" | |
1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1742 | break 2 | |
1743 | fi | |
1744 | done | |
1745 | done | |
1746 | ||
1747 | fi | |
1748 | fi | |
1749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1750 | if test -n "$ac_ct_CC"; then | |
1751 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1752 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1753 | else | |
1754 | echo "$as_me:$LINENO: result: no" >&5 | |
1755 | echo "${ECHO_T}no" >&6 | |
1756 | fi | |
1757 | ||
1758 | CC=$ac_ct_CC | |
1759 | else | |
1760 | CC="$ac_cv_prog_CC" | |
1761 | fi | |
1762 | ||
1763 | fi | |
1764 | if test -z "$CC"; then | |
1765 | # Extract the first word of "cc", so it can be a program name with args. | |
1766 | set dummy cc; ac_word=$2 | |
1767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1769 | if test "${ac_cv_prog_CC+set}" = set; then | |
1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1771 | else | |
1772 | if test -n "$CC"; then | |
1773 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1774 | else | |
1775 | ac_prog_rejected=no | |
1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1777 | for as_dir in $PATH | |
1778 | do | |
1779 | IFS=$as_save_IFS | |
1780 | test -z "$as_dir" && as_dir=. | |
1781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1783 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1784 | ac_prog_rejected=yes | |
1785 | continue | |
1786 | fi | |
1787 | ac_cv_prog_CC="cc" | |
1788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1789 | break 2 | |
1790 | fi | |
1791 | done | |
1792 | done | |
1793 | ||
1794 | if test $ac_prog_rejected = yes; then | |
1795 | # We found a bogon in the path, so make sure we never use it. | |
1796 | set dummy $ac_cv_prog_CC | |
1797 | shift | |
1798 | if test $# != 0; then | |
1799 | # We chose a different compiler from the bogus one. | |
1800 | # However, it has the same basename, so the bogon will be chosen | |
1801 | # first if we set CC to just the basename; use the full file name. | |
1802 | shift | |
1803 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1804 | fi | |
1805 | fi | |
1806 | fi | |
1807 | fi | |
1808 | CC=$ac_cv_prog_CC | |
1809 | if test -n "$CC"; then | |
1810 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1811 | echo "${ECHO_T}$CC" >&6 | |
1812 | else | |
1813 | echo "$as_me:$LINENO: result: no" >&5 | |
1814 | echo "${ECHO_T}no" >&6 | |
1815 | fi | |
1816 | ||
1817 | fi | |
1818 | if test -z "$CC"; then | |
1819 | if test -n "$ac_tool_prefix"; then | |
1820 | for ac_prog in cl | |
1821 | do | |
1822 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1823 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1826 | if test "${ac_cv_prog_CC+set}" = set; then | |
1827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1828 | else | |
1829 | if test -n "$CC"; then | |
1830 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1831 | else | |
1832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1833 | for as_dir in $PATH | |
1834 | do | |
1835 | IFS=$as_save_IFS | |
1836 | test -z "$as_dir" && as_dir=. | |
1837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1839 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1841 | break 2 | |
1842 | fi | |
1843 | done | |
1844 | done | |
1845 | ||
1846 | fi | |
1847 | fi | |
1848 | CC=$ac_cv_prog_CC | |
1849 | if test -n "$CC"; then | |
1850 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1851 | echo "${ECHO_T}$CC" >&6 | |
1852 | else | |
1853 | echo "$as_me:$LINENO: result: no" >&5 | |
1854 | echo "${ECHO_T}no" >&6 | |
1855 | fi | |
1856 | ||
1857 | test -n "$CC" && break | |
1858 | done | |
1859 | fi | |
1860 | if test -z "$CC"; then | |
1861 | ac_ct_CC=$CC | |
1862 | for ac_prog in cl | |
1863 | do | |
1864 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1865 | set dummy $ac_prog; ac_word=$2 | |
1866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1868 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1870 | else | |
1871 | if test -n "$ac_ct_CC"; then | |
1872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1873 | else | |
1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1875 | for as_dir in $PATH | |
1876 | do | |
1877 | IFS=$as_save_IFS | |
1878 | test -z "$as_dir" && as_dir=. | |
1879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1881 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1883 | break 2 | |
1884 | fi | |
1885 | done | |
1886 | done | |
1887 | ||
1888 | fi | |
1889 | fi | |
1890 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1891 | if test -n "$ac_ct_CC"; then | |
1892 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1893 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1894 | else | |
1895 | echo "$as_me:$LINENO: result: no" >&5 | |
1896 | echo "${ECHO_T}no" >&6 | |
1897 | fi | |
1898 | ||
1899 | test -n "$ac_ct_CC" && break | |
1900 | done | |
1901 | ||
1902 | CC=$ac_ct_CC | |
1903 | fi | |
1904 | ||
1905 | fi | |
1906 | ||
1907 | ||
7a283e07 RW |
1908 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1909 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1910 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
13b2be9c DJ |
1911 | See \`config.log' for more details." >&5 |
1912 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1913 | See \`config.log' for more details." >&2;} | |
7a283e07 | 1914 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
1915 | |
1916 | # Provide some information about the compiler. | |
1917 | echo "$as_me:$LINENO:" \ | |
1918 | "checking for C compiler version" >&5 | |
1919 | ac_compiler=`set X $ac_compile; echo $2` | |
1920 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1921 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1922 | ac_status=$? | |
1923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1924 | (exit $ac_status); } | |
1925 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1926 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1927 | ac_status=$? | |
1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1929 | (exit $ac_status); } | |
1930 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1931 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1932 | ac_status=$? | |
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1934 | (exit $ac_status); } | |
1935 | ||
1936 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
1937 | /* confdefs.h. */ |
1938 | _ACEOF | |
1939 | cat confdefs.h >>conftest.$ac_ext | |
1940 | cat >>conftest.$ac_ext <<_ACEOF | |
1941 | /* end confdefs.h. */ | |
1942 | ||
1943 | int | |
1944 | main () | |
1945 | { | |
1946 | ||
1947 | ; | |
1948 | return 0; | |
1949 | } | |
1950 | _ACEOF | |
1951 | ac_clean_files_save=$ac_clean_files | |
1952 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1953 | # Try to create an executable without -o first, disregard a.out. | |
1954 | # It will help us diagnose broken compilers, and finding out an intuition | |
1955 | # of exeext. | |
ab509236 L |
1956 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1957 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
13b2be9c DJ |
1958 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1959 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1960 | (eval $ac_link_default) 2>&5 | |
1961 | ac_status=$? | |
1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1963 | (exit $ac_status); }; then | |
1964 | # Find the output, starting from the most likely. This scheme is | |
1965 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1966 | # resort. | |
1967 | ||
1968 | # Be careful to initialize this variable, since it used to be cached. | |
1969 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1970 | ac_cv_exeext= | |
1971 | # b.out is created by i960 compilers. | |
1972 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1973 | do | |
1974 | test -f "$ac_file" || continue | |
1975 | case $ac_file in | |
1976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ab509236 | 1977 | ;; |
13b2be9c | 1978 | conftest.$ac_ext ) |
ab509236 L |
1979 | # This is the source file. |
1980 | ;; | |
13b2be9c | 1981 | [ab].out ) |
ab509236 L |
1982 | # We found the default executable, but exeext='' is most |
1983 | # certainly right. | |
1984 | break;; | |
13b2be9c | 1985 | *.* ) |
ab509236 L |
1986 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1987 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1988 | # but it would be cool to find out if it's true. Does anybody | |
1989 | # maintain Libtool? --akim. | |
1990 | export ac_cv_exeext | |
1991 | break;; | |
13b2be9c | 1992 | * ) |
ab509236 | 1993 | break;; |
13b2be9c DJ |
1994 | esac |
1995 | done | |
1996 | else | |
1997 | echo "$as_me: failed program was:" >&5 | |
1998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1999 | ||
7a283e07 RW |
2000 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2001 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13b2be9c DJ |
2002 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2003 | See \`config.log' for more details." >&5 | |
2004 | echo "$as_me: error: C compiler cannot create executables | |
2005 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2006 | { (exit 77); exit 77; }; }; } |
13b2be9c DJ |
2007 | fi |
2008 | ||
2009 | ac_exeext=$ac_cv_exeext | |
2010 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2011 | echo "${ECHO_T}$ac_file" >&6 | |
2012 | ||
2013 | # Check the compiler produces executables we can run. If not, either | |
2014 | # the compiler is broken, or we cross compile. | |
2015 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2016 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2017 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2018 | # If not cross compiling, check that we can run a simple program. | |
2019 | if test "$cross_compiling" != yes; then | |
2020 | if { ac_try='./$ac_file' | |
2021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2022 | (eval $ac_try) 2>&5 | |
2023 | ac_status=$? | |
2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2025 | (exit $ac_status); }; }; then | |
2026 | cross_compiling=no | |
2027 | else | |
2028 | if test "$cross_compiling" = maybe; then | |
2029 | cross_compiling=yes | |
2030 | else | |
7a283e07 RW |
2031 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2032 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2033 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
13b2be9c DJ |
2034 | If you meant to cross compile, use \`--host'. |
2035 | See \`config.log' for more details." >&5 | |
2036 | echo "$as_me: error: cannot run C compiled programs. | |
2037 | If you meant to cross compile, use \`--host'. | |
2038 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2039 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
2040 | fi |
2041 | fi | |
2042 | fi | |
2043 | echo "$as_me:$LINENO: result: yes" >&5 | |
2044 | echo "${ECHO_T}yes" >&6 | |
2045 | ||
2046 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2047 | ac_clean_files=$ac_clean_files_save | |
2048 | # Check the compiler produces executables we can run. If not, either | |
2049 | # the compiler is broken, or we cross compile. | |
2050 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2051 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2052 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2053 | echo "${ECHO_T}$cross_compiling" >&6 | |
2054 | ||
2055 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2056 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2058 | (eval $ac_link) 2>&5 | |
2059 | ac_status=$? | |
2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2061 | (exit $ac_status); }; then | |
2062 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2063 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2064 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2065 | # `rm'. | |
2066 | for ac_file in conftest.exe conftest conftest.*; do | |
2067 | test -f "$ac_file" || continue | |
2068 | case $ac_file in | |
2069 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2070 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ab509236 L |
2071 | export ac_cv_exeext |
2072 | break;; | |
13b2be9c DJ |
2073 | * ) break;; |
2074 | esac | |
2075 | done | |
2076 | else | |
7a283e07 RW |
2077 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2078 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2079 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
13b2be9c DJ |
2080 | See \`config.log' for more details." >&5 |
2081 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2082 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2083 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
2084 | fi |
2085 | ||
2086 | rm -f conftest$ac_cv_exeext | |
2087 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2088 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2089 | ||
2090 | rm -f conftest.$ac_ext | |
2091 | EXEEXT=$ac_cv_exeext | |
2092 | ac_exeext=$EXEEXT | |
2093 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2094 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2095 | if test "${ac_cv_objext+set}" = set; then | |
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2097 | else | |
2098 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2099 | /* confdefs.h. */ |
2100 | _ACEOF | |
2101 | cat confdefs.h >>conftest.$ac_ext | |
2102 | cat >>conftest.$ac_ext <<_ACEOF | |
2103 | /* end confdefs.h. */ | |
2104 | ||
2105 | int | |
2106 | main () | |
2107 | { | |
2108 | ||
2109 | ; | |
2110 | return 0; | |
2111 | } | |
2112 | _ACEOF | |
2113 | rm -f conftest.o conftest.obj | |
2114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2115 | (eval $ac_compile) 2>&5 | |
2116 | ac_status=$? | |
2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2118 | (exit $ac_status); }; then | |
2119 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2120 | case $ac_file in | |
2121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2122 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2123 | break;; | |
2124 | esac | |
2125 | done | |
2126 | else | |
2127 | echo "$as_me: failed program was:" >&5 | |
2128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2129 | ||
7a283e07 RW |
2130 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2131 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13b2be9c DJ |
2132 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2133 | See \`config.log' for more details." >&5 | |
2134 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2135 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2136 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
2137 | fi |
2138 | ||
2139 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2140 | fi | |
2141 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2142 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2143 | OBJEXT=$ac_cv_objext | |
2144 | ac_objext=$OBJEXT | |
2145 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2146 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2147 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2149 | else | |
2150 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2151 | /* confdefs.h. */ |
2152 | _ACEOF | |
2153 | cat confdefs.h >>conftest.$ac_ext | |
2154 | cat >>conftest.$ac_ext <<_ACEOF | |
2155 | /* end confdefs.h. */ | |
2156 | ||
2157 | int | |
2158 | main () | |
2159 | { | |
2160 | #ifndef __GNUC__ | |
2161 | choke me | |
2162 | #endif | |
2163 | ||
2164 | ; | |
2165 | return 0; | |
2166 | } | |
2167 | _ACEOF | |
2168 | rm -f conftest.$ac_objext | |
2169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2170 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2171 | ac_status=$? |
ab509236 L |
2172 | grep -v '^ *+' conftest.er1 >conftest.err |
2173 | rm -f conftest.er1 | |
2174 | cat conftest.err >&5 | |
13b2be9c DJ |
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2176 | (exit $ac_status); } && | |
1ad12f97 NC |
2177 | { ac_try='test -z "$ac_c_werror_flag" |
2178 | || test ! -s conftest.err' | |
ab509236 L |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2180 | (eval $ac_try) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; } && | |
2184 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2186 | (eval $ac_try) 2>&5 | |
2187 | ac_status=$? | |
2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2189 | (exit $ac_status); }; }; then | |
2190 | ac_compiler_gnu=yes | |
2191 | else | |
2192 | echo "$as_me: failed program was:" >&5 | |
2193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2194 | ||
2195 | ac_compiler_gnu=no | |
2196 | fi | |
ab509236 | 2197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2198 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2199 | ||
2200 | fi | |
2201 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2202 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2203 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2204 | ac_test_CFLAGS=${CFLAGS+set} | |
2205 | ac_save_CFLAGS=$CFLAGS | |
2206 | CFLAGS="-g" | |
2207 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2208 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2209 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2211 | else | |
2212 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2213 | /* confdefs.h. */ |
2214 | _ACEOF | |
2215 | cat confdefs.h >>conftest.$ac_ext | |
2216 | cat >>conftest.$ac_ext <<_ACEOF | |
2217 | /* end confdefs.h. */ | |
2218 | ||
2219 | int | |
2220 | main () | |
2221 | { | |
2222 | ||
2223 | ; | |
2224 | return 0; | |
2225 | } | |
2226 | _ACEOF | |
2227 | rm -f conftest.$ac_objext | |
2228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2229 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2230 | ac_status=$? |
ab509236 L |
2231 | grep -v '^ *+' conftest.er1 >conftest.err |
2232 | rm -f conftest.er1 | |
2233 | cat conftest.err >&5 | |
13b2be9c DJ |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2235 | (exit $ac_status); } && | |
1ad12f97 NC |
2236 | { ac_try='test -z "$ac_c_werror_flag" |
2237 | || test ! -s conftest.err' | |
ab509236 L |
2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2239 | (eval $ac_try) 2>&5 | |
2240 | ac_status=$? | |
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2242 | (exit $ac_status); }; } && | |
2243 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2245 | (eval $ac_try) 2>&5 | |
2246 | ac_status=$? | |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; }; then | |
2249 | ac_cv_prog_cc_g=yes | |
2250 | else | |
2251 | echo "$as_me: failed program was:" >&5 | |
2252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2253 | ||
2254 | ac_cv_prog_cc_g=no | |
2255 | fi | |
ab509236 | 2256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2257 | fi |
2258 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2259 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2260 | if test "$ac_test_CFLAGS" = set; then | |
2261 | CFLAGS=$ac_save_CFLAGS | |
2262 | elif test $ac_cv_prog_cc_g = yes; then | |
2263 | if test "$GCC" = yes; then | |
2264 | CFLAGS="-g -O2" | |
2265 | else | |
2266 | CFLAGS="-g" | |
2267 | fi | |
2268 | else | |
2269 | if test "$GCC" = yes; then | |
2270 | CFLAGS="-O2" | |
2271 | else | |
2272 | CFLAGS= | |
2273 | fi | |
2274 | fi | |
2275 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2276 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2277 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2279 | else | |
2280 | ac_cv_prog_cc_stdc=no | |
2281 | ac_save_CC=$CC | |
2282 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2283 | /* confdefs.h. */ |
2284 | _ACEOF | |
2285 | cat confdefs.h >>conftest.$ac_ext | |
2286 | cat >>conftest.$ac_ext <<_ACEOF | |
2287 | /* end confdefs.h. */ | |
2288 | #include <stdarg.h> | |
2289 | #include <stdio.h> | |
2290 | #include <sys/types.h> | |
2291 | #include <sys/stat.h> | |
2292 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2293 | struct buf { int x; }; | |
2294 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2295 | static char *e (p, i) | |
2296 | char **p; | |
2297 | int i; | |
2298 | { | |
2299 | return p[i]; | |
2300 | } | |
2301 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2302 | { | |
2303 | char *s; | |
2304 | va_list v; | |
2305 | va_start (v,p); | |
2306 | s = g (p, va_arg (v,int)); | |
2307 | va_end (v); | |
2308 | return s; | |
2309 | } | |
ab509236 L |
2310 | |
2311 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2312 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2313 | These don't provoke an error unfortunately, instead are silently treated | |
2314 | as 'x'. The following induces an error, until -std1 is added to get | |
2315 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2316 | array size at least. It's necessary to write '\x00'==0 to get something | |
2317 | that's true only with -std1. */ | |
2318 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2319 | ||
13b2be9c DJ |
2320 | int test (int i, double x); |
2321 | struct s1 {int (*f) (int a);}; | |
2322 | struct s2 {int (*f) (double a);}; | |
2323 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2324 | int argc; | |
2325 | char **argv; | |
2326 | int | |
2327 | main () | |
2328 | { | |
2329 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2330 | ; | |
2331 | return 0; | |
2332 | } | |
2333 | _ACEOF | |
2334 | # Don't try gcc -ansi; that turns off useful extensions and | |
2335 | # breaks some systems' header files. | |
2336 | # AIX -qlanglvl=ansi | |
2337 | # Ultrix and OSF/1 -std1 | |
2338 | # HP-UX 10.20 and later -Ae | |
2339 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2340 | # SVR4 -Xc -D__EXTENSIONS__ | |
2341 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2342 | do | |
2343 | CC="$ac_save_CC $ac_arg" | |
2344 | rm -f conftest.$ac_objext | |
2345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2346 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2347 | ac_status=$? |
ab509236 L |
2348 | grep -v '^ *+' conftest.er1 >conftest.err |
2349 | rm -f conftest.er1 | |
2350 | cat conftest.err >&5 | |
13b2be9c DJ |
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2352 | (exit $ac_status); } && | |
1ad12f97 NC |
2353 | { ac_try='test -z "$ac_c_werror_flag" |
2354 | || test ! -s conftest.err' | |
ab509236 L |
2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2356 | (eval $ac_try) 2>&5 | |
2357 | ac_status=$? | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2359 | (exit $ac_status); }; } && | |
2360 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2362 | (eval $ac_try) 2>&5 | |
2363 | ac_status=$? | |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2365 | (exit $ac_status); }; }; then | |
2366 | ac_cv_prog_cc_stdc=$ac_arg | |
2367 | break | |
2368 | else | |
2369 | echo "$as_me: failed program was:" >&5 | |
2370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2371 | ||
2372 | fi | |
ab509236 | 2373 | rm -f conftest.err conftest.$ac_objext |
13b2be9c DJ |
2374 | done |
2375 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2376 | CC=$ac_save_CC | |
2377 | ||
2378 | fi | |
2379 | ||
2380 | case "x$ac_cv_prog_cc_stdc" in | |
2381 | x|xno) | |
2382 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2383 | echo "${ECHO_T}none needed" >&6 ;; | |
2384 | *) | |
2385 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2386 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2387 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2388 | esac | |
2389 | ||
2390 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2391 | # in C++ we need to declare it. In case someone uses the same compiler | |
2392 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2393 | # the declaration of exit, since it's the most demanding environment. | |
2394 | cat >conftest.$ac_ext <<_ACEOF | |
2395 | #ifndef __cplusplus | |
2396 | choke me | |
2397 | #endif | |
2398 | _ACEOF | |
2399 | rm -f conftest.$ac_objext | |
2400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2401 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2402 | ac_status=$? |
ab509236 L |
2403 | grep -v '^ *+' conftest.er1 >conftest.err |
2404 | rm -f conftest.er1 | |
2405 | cat conftest.err >&5 | |
13b2be9c DJ |
2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2407 | (exit $ac_status); } && | |
1ad12f97 NC |
2408 | { ac_try='test -z "$ac_c_werror_flag" |
2409 | || test ! -s conftest.err' | |
ab509236 L |
2410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2411 | (eval $ac_try) 2>&5 | |
2412 | ac_status=$? | |
2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2414 | (exit $ac_status); }; } && | |
2415 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2417 | (eval $ac_try) 2>&5 | |
2418 | ac_status=$? | |
2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2420 | (exit $ac_status); }; }; then | |
2421 | for ac_declaration in \ | |
ab509236 | 2422 | '' \ |
13b2be9c DJ |
2423 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2424 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2425 | 'extern "C" void exit (int) throw ();' \ | |
2426 | 'extern "C" void exit (int);' \ | |
2427 | 'void exit (int);' | |
2428 | do | |
2429 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2430 | /* confdefs.h. */ |
2431 | _ACEOF | |
2432 | cat confdefs.h >>conftest.$ac_ext | |
2433 | cat >>conftest.$ac_ext <<_ACEOF | |
2434 | /* end confdefs.h. */ | |
13dfd2d0 | 2435 | $ac_declaration |
ab509236 | 2436 | #include <stdlib.h> |
13b2be9c DJ |
2437 | int |
2438 | main () | |
2439 | { | |
2440 | exit (42); | |
2441 | ; | |
2442 | return 0; | |
2443 | } | |
2444 | _ACEOF | |
2445 | rm -f conftest.$ac_objext | |
2446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2447 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2448 | ac_status=$? |
ab509236 L |
2449 | grep -v '^ *+' conftest.er1 >conftest.err |
2450 | rm -f conftest.er1 | |
2451 | cat conftest.err >&5 | |
13b2be9c DJ |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2453 | (exit $ac_status); } && | |
1ad12f97 NC |
2454 | { ac_try='test -z "$ac_c_werror_flag" |
2455 | || test ! -s conftest.err' | |
ab509236 L |
2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2457 | (eval $ac_try) 2>&5 | |
2458 | ac_status=$? | |
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2460 | (exit $ac_status); }; } && | |
2461 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2463 | (eval $ac_try) 2>&5 | |
2464 | ac_status=$? | |
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2466 | (exit $ac_status); }; }; then | |
2467 | : | |
2468 | else | |
2469 | echo "$as_me: failed program was:" >&5 | |
2470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2471 | ||
2472 | continue | |
2473 | fi | |
ab509236 | 2474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 2475 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
2476 | /* confdefs.h. */ |
2477 | _ACEOF | |
2478 | cat confdefs.h >>conftest.$ac_ext | |
2479 | cat >>conftest.$ac_ext <<_ACEOF | |
2480 | /* end confdefs.h. */ | |
2481 | $ac_declaration | |
2482 | int | |
2483 | main () | |
2484 | { | |
2485 | exit (42); | |
2486 | ; | |
2487 | return 0; | |
2488 | } | |
2489 | _ACEOF | |
2490 | rm -f conftest.$ac_objext | |
2491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2492 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2493 | ac_status=$? |
ab509236 L |
2494 | grep -v '^ *+' conftest.er1 >conftest.err |
2495 | rm -f conftest.er1 | |
2496 | cat conftest.err >&5 | |
13b2be9c DJ |
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2498 | (exit $ac_status); } && | |
1ad12f97 NC |
2499 | { ac_try='test -z "$ac_c_werror_flag" |
2500 | || test ! -s conftest.err' | |
ab509236 L |
2501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2502 | (eval $ac_try) 2>&5 | |
2503 | ac_status=$? | |
2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2505 | (exit $ac_status); }; } && | |
2506 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2508 | (eval $ac_try) 2>&5 | |
2509 | ac_status=$? | |
2510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2511 | (exit $ac_status); }; }; then | |
2512 | break | |
2513 | else | |
2514 | echo "$as_me: failed program was:" >&5 | |
2515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2516 | ||
2517 | fi | |
ab509236 | 2518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2519 | done |
2520 | rm -f conftest* | |
2521 | if test -n "$ac_declaration"; then | |
2522 | echo '#ifdef __cplusplus' >>confdefs.h | |
2523 | echo $ac_declaration >>confdefs.h | |
2524 | echo '#endif' >>confdefs.h | |
2525 | fi | |
2526 | ||
2527 | else | |
2528 | echo "$as_me: failed program was:" >&5 | |
2529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2530 | ||
2531 | fi | |
ab509236 | 2532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2533 | ac_ext=c |
2534 | ac_cpp='$CPP $CPPFLAGS' | |
2535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2538 | ||
2539 | ||
ab509236 L |
2540 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2541 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2542 | if test "${ac_cv_search_strerror+set}" = set; then | |
13b2be9c DJ |
2543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2544 | else | |
ab509236 L |
2545 | ac_func_search_save_LIBS=$LIBS |
2546 | ac_cv_search_strerror=no | |
13b2be9c | 2547 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
2548 | /* confdefs.h. */ |
2549 | _ACEOF | |
2550 | cat confdefs.h >>conftest.$ac_ext | |
2551 | cat >>conftest.$ac_ext <<_ACEOF | |
2552 | /* end confdefs.h. */ | |
2553 | ||
2554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2555 | #ifdef __cplusplus | |
2556 | extern "C" | |
2557 | #endif | |
2558 | /* We use char because int might match the return type of a gcc2 | |
2559 | builtin and then its argument prototype would still apply. */ | |
2560 | char strerror (); | |
2561 | int | |
2562 | main () | |
2563 | { | |
2564 | strerror (); | |
2565 | ; | |
2566 | return 0; | |
2567 | } | |
2568 | _ACEOF | |
2569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 2571 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 2572 | ac_status=$? |
ab509236 L |
2573 | grep -v '^ *+' conftest.er1 >conftest.err |
2574 | rm -f conftest.er1 | |
2575 | cat conftest.err >&5 | |
13b2be9c DJ |
2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2577 | (exit $ac_status); } && | |
1ad12f97 NC |
2578 | { ac_try='test -z "$ac_c_werror_flag" |
2579 | || test ! -s conftest.err' | |
ab509236 L |
2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2581 | (eval $ac_try) 2>&5 | |
2582 | ac_status=$? | |
2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2584 | (exit $ac_status); }; } && | |
2585 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
2586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2587 | (eval $ac_try) 2>&5 | |
2588 | ac_status=$? | |
2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2590 | (exit $ac_status); }; }; then | |
ab509236 | 2591 | ac_cv_search_strerror="none required" |
13b2be9c DJ |
2592 | else |
2593 | echo "$as_me: failed program was:" >&5 | |
2594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2595 | ||
13b2be9c | 2596 | fi |
ab509236 L |
2597 | rm -f conftest.err conftest.$ac_objext \ |
2598 | conftest$ac_exeext conftest.$ac_ext | |
2599 | if test "$ac_cv_search_strerror" = no; then | |
2600 | for ac_lib in cposix; do | |
2601 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2602 | cat >conftest.$ac_ext <<_ACEOF | |
2603 | /* confdefs.h. */ | |
2604 | _ACEOF | |
2605 | cat confdefs.h >>conftest.$ac_ext | |
2606 | cat >>conftest.$ac_ext <<_ACEOF | |
2607 | /* end confdefs.h. */ | |
2608 | ||
2609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2610 | #ifdef __cplusplus | |
2611 | extern "C" | |
2612 | #endif | |
2613 | /* We use char because int might match the return type of a gcc2 | |
2614 | builtin and then its argument prototype would still apply. */ | |
2615 | char strerror (); | |
2616 | int | |
2617 | main () | |
2618 | { | |
2619 | strerror (); | |
2620 | ; | |
2621 | return 0; | |
2622 | } | |
2623 | _ACEOF | |
2624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2626 | (eval $ac_link) 2>conftest.er1 | |
2627 | ac_status=$? | |
2628 | grep -v '^ *+' conftest.er1 >conftest.err | |
2629 | rm -f conftest.er1 | |
2630 | cat conftest.err >&5 | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); } && | |
1ad12f97 NC |
2633 | { ac_try='test -z "$ac_c_werror_flag" |
2634 | || test ! -s conftest.err' | |
ab509236 L |
2635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2636 | (eval $ac_try) 2>&5 | |
2637 | ac_status=$? | |
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2639 | (exit $ac_status); }; } && | |
2640 | { ac_try='test -s conftest$ac_exeext' | |
2641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2642 | (eval $ac_try) 2>&5 | |
2643 | ac_status=$? | |
2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2645 | (exit $ac_status); }; }; then | |
2646 | ac_cv_search_strerror="-l$ac_lib" | |
2647 | break | |
2648 | else | |
2649 | echo "$as_me: failed program was:" >&5 | |
2650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2651 | ||
13b2be9c | 2652 | fi |
ab509236 L |
2653 | rm -f conftest.err conftest.$ac_objext \ |
2654 | conftest$ac_exeext conftest.$ac_ext | |
2655 | done | |
13b2be9c | 2656 | fi |
ab509236 L |
2657 | LIBS=$ac_func_search_save_LIBS |
2658 | fi | |
2659 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2660 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2661 | if test "$ac_cv_search_strerror" != no; then | |
2662 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
13b2be9c | 2663 | |
ab509236 | 2664 | fi |
13b2be9c DJ |
2665 | |
2666 | ||
2667 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
8ea2b00f | 2668 | am__api_version="1.9" |
13b2be9c DJ |
2669 | # Find a good install program. We prefer a C program (faster), |
2670 | # so one script is as good as another. But avoid the broken or | |
2671 | # incompatible versions: | |
2672 | # SysV /etc/install, /usr/sbin/install | |
2673 | # SunOS /usr/etc/install | |
2674 | # IRIX /sbin/install | |
2675 | # AIX /bin/install | |
2676 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2677 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2678 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2679 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ab509236 | 2680 | # OS/2's system install, which has a completely different semantic |
13b2be9c | 2681 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2682 | # Reject install programs that cannot install multiple files. |
13b2be9c DJ |
2683 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2684 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2685 | if test -z "$INSTALL"; then | |
2686 | if test "${ac_cv_path_install+set}" = set; then | |
2687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2688 | else | |
2689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2690 | for as_dir in $PATH | |
2691 | do | |
2692 | IFS=$as_save_IFS | |
2693 | test -z "$as_dir" && as_dir=. | |
2694 | # Account for people who put trailing slashes in PATH elements. | |
2695 | case $as_dir/ in | |
2696 | ./ | .// | /cC/* | \ | |
2697 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ab509236 | 2698 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
13b2be9c DJ |
2699 | /usr/ucb/* ) ;; |
2700 | *) | |
2701 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2702 | # Don't use installbsd from OSF since it installs stuff as root | |
2703 | # by default. | |
2704 | for ac_prog in ginstall scoinst install; do | |
2705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ab509236 L |
2706 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2707 | if test $ac_prog = install && | |
2708 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2709 | # AIX install. It has an incompatible calling convention. | |
2710 | : | |
2711 | elif test $ac_prog = install && | |
2712 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2713 | # program-specific install script used by HP pwplus--don't use. | |
2714 | : | |
2715 | else | |
58c85be7 RW |
2716 | rm -rf conftest.one conftest.two conftest.dir |
2717 | echo one > conftest.one | |
2718 | echo two > conftest.two | |
2719 | mkdir conftest.dir | |
2720 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2721 | test -s conftest.one && test -s conftest.two && | |
2722 | test -s conftest.dir/conftest.one && | |
2723 | test -s conftest.dir/conftest.two | |
2724 | then | |
2725 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2726 | break 3 | |
2727 | fi | |
ab509236 L |
2728 | fi |
2729 | fi | |
13b2be9c DJ |
2730 | done |
2731 | done | |
2732 | ;; | |
2733 | esac | |
2734 | done | |
2735 | ||
58c85be7 | 2736 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2737 | |
2738 | fi | |
2739 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 2740 | INSTALL=$ac_cv_path_install |
252b5132 | 2741 | else |
58c85be7 RW |
2742 | # As a last resort, use the slow shell script. Don't cache a |
2743 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2744 | # break other packages using the cache if that directory is |
58c85be7 | 2745 | # removed, or if the value is a relative name. |
13b2be9c | 2746 | INSTALL=$ac_install_sh |
252b5132 RH |
2747 | fi |
2748 | fi | |
13b2be9c DJ |
2749 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2750 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2751 | |
2752 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2753 | # It thinks the first close brace ends the variable substitution. | |
2754 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2755 | ||
13b2be9c | 2756 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2757 | |
2758 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2759 | ||
13b2be9c DJ |
2760 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2761 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2762 | # Just in case |
2763 | sleep 1 | |
13b2be9c | 2764 | echo timestamp > conftest.file |
252b5132 RH |
2765 | # Do `set' in a subshell so we don't clobber the current shell's |
2766 | # arguments. Must try -L first in case configure is actually a | |
2767 | # symlink; some systems play weird games with the mod time of symlinks | |
2768 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2769 | # directory). | |
2770 | if ( | |
13b2be9c | 2771 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2772 | if test "$*" = "X"; then |
2773 | # -L didn't work. | |
13b2be9c | 2774 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2775 | fi |
13b2be9c DJ |
2776 | rm -f conftest.file |
2777 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2778 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2779 | |
2780 | # If neither matched, then we have a broken ls. This can happen | |
2781 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2782 | # broken ls alias from the environment. This has actually | |
2783 | # happened. Such a system could not be considered "sane". | |
13b2be9c DJ |
2784 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2785 | alias in your environment" >&5 | |
2786 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2787 | alias in your environment" >&2;} | |
2788 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2789 | fi |
2790 | ||
13b2be9c DJ |
2791 | test "$2" = conftest.file |
2792 | ) | |
2793 | then | |
2794 | # Ok. | |
2795 | : | |
2796 | else | |
2797 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2798 | Check your system clock" >&5 | |
2799 | echo "$as_me: error: newly created file is older than distributed files! | |
2800 | Check your system clock" >&2;} | |
2801 | { (exit 1); exit 1; }; } | |
2802 | fi | |
2803 | echo "$as_me:$LINENO: result: yes" >&5 | |
2804 | echo "${ECHO_T}yes" >&6 | |
2805 | test "$program_prefix" != NONE && | |
2806 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
2807 | # Use a double $ so make ignores it. | |
2808 | test "$program_suffix" != NONE && | |
2809 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
2810 | # Double any \ or $. echo might interpret backslashes. | |
2811 | # By default was `s,x,x', remove it if useless. | |
2812 | cat <<\_ACEOF >conftest.sed | |
2813 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2814 | _ACEOF | |
2815 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2816 | rm conftest.sed | |
2817 | ||
13b2be9c DJ |
2818 | # expand $ac_aux_dir to an absolute path |
2819 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2820 | ||
2821 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2822 | # Use eval to expand $SHELL | |
2823 | if eval "$MISSING --run true"; then | |
2824 | am_missing_run="$MISSING --run " | |
2825 | else | |
2826 | am_missing_run= | |
2827 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2828 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2829 | fi | |
2830 | ||
4b363073 | 2831 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
8ea2b00f AM |
2832 | # We used to keeping the `.' as first argument, in order to |
2833 | # allow $(mkdir_p) to be used without argument. As in | |
ab509236 | 2834 | # $(mkdir_p) $(somedir) |
8ea2b00f AM |
2835 | # where $(somedir) is conditionally defined. However this is wrong |
2836 | # for two reasons: | |
2837 | # 1. if the package is installed by a user who cannot write `.' | |
2838 | # make install will fail, | |
2839 | # 2. the above comment should most certainly read | |
2840 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2841 | # so it does not work when $(somedir) is undefined and | |
2842 | # $(DESTDIR) is not. | |
2843 | # To support the latter case, we have to write | |
2844 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2845 | # so the `.' trick is pointless. | |
2846 | mkdir_p='mkdir -p --' | |
ab509236 L |
2847 | else |
2848 | # On NextStep and OpenStep, the `mkdir' command does not | |
2849 | # recognize any option. It will interpret all options as | |
2850 | # directories to create, and then abort because `.' already | |
2851 | # exists. | |
4b363073 | 2852 | for d in ./-p ./--version; |
ab509236 L |
2853 | do |
2854 | test -d $d && rmdir $d | |
2855 | done | |
2856 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2857 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2858 | mkdir_p='$(mkinstalldirs)' | |
2859 | else | |
2860 | mkdir_p='$(install_sh) -d' | |
2861 | fi | |
2862 | fi | |
2863 | ||
13b2be9c DJ |
2864 | for ac_prog in gawk mawk nawk awk |
2865 | do | |
2866 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2867 | set dummy $ac_prog; ac_word=$2 | |
2868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2870 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2872 | else | |
2873 | if test -n "$AWK"; then | |
2874 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2875 | else | |
2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2877 | for as_dir in $PATH | |
2878 | do | |
2879 | IFS=$as_save_IFS | |
2880 | test -z "$as_dir" && as_dir=. | |
2881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2883 | ac_cv_prog_AWK="$ac_prog" | |
2884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2885 | break 2 | |
2886 | fi | |
2887 | done | |
2888 | done | |
2889 | ||
2890 | fi | |
2891 | fi | |
2892 | AWK=$ac_cv_prog_AWK | |
2893 | if test -n "$AWK"; then | |
2894 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2895 | echo "${ECHO_T}$AWK" >&6 | |
2896 | else | |
2897 | echo "$as_me:$LINENO: result: no" >&5 | |
2898 | echo "${ECHO_T}no" >&6 | |
2899 | fi | |
2900 | ||
2901 | test -n "$AWK" && break | |
2902 | done | |
2903 | ||
2904 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2905 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ab509236 | 2906 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
13b2be9c DJ |
2907 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | else | |
2910 | cat >conftest.make <<\_ACEOF | |
2911 | all: | |
2912 | @echo 'ac_maketemp="$(MAKE)"' | |
2913 | _ACEOF | |
2914 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2915 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2916 | if test -n "$ac_maketemp"; then | |
2917 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2918 | else | |
2919 | eval ac_cv_prog_make_${ac_make}_set=no | |
2920 | fi | |
2921 | rm -f conftest.make | |
2922 | fi | |
2923 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2924 | echo "$as_me:$LINENO: result: yes" >&5 | |
2925 | echo "${ECHO_T}yes" >&6 | |
2926 | SET_MAKE= | |
2927 | else | |
2928 | echo "$as_me:$LINENO: result: no" >&5 | |
2929 | echo "${ECHO_T}no" >&6 | |
2930 | SET_MAKE="MAKE=${MAKE-make}" | |
2931 | fi | |
2932 | ||
2933 | rm -rf .tst 2>/dev/null | |
2934 | mkdir .tst 2>/dev/null | |
2935 | if test -d .tst; then | |
2936 | am__leading_dot=. | |
2937 | else | |
2938 | am__leading_dot=_ | |
2939 | fi | |
2940 | rmdir .tst 2>/dev/null | |
2941 | ||
2942 | DEPDIR="${am__leading_dot}deps" | |
2943 | ||
2944 | ac_config_commands="$ac_config_commands depfiles" | |
2945 | ||
2946 | ||
2947 | am_make=${MAKE-make} | |
2948 | cat > confinc << 'END' | |
2949 | am__doit: | |
2950 | @echo done | |
2951 | .PHONY: am__doit | |
2952 | END | |
2953 | # If we don't find an include directive, just comment out the code. | |
2954 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2955 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2956 | am__include="#" | |
2957 | am__quote= | |
2958 | _am_result=none | |
2959 | # First try GNU make style include. | |
2960 | echo "include confinc" > confmf | |
2961 | # We grep out `Entering directory' and `Leaving directory' | |
2962 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2963 | # In particular we don't look at `^make:' because GNU make might | |
2964 | # be invoked under some other name (usually "gmake"), in which | |
2965 | # case it prints its new name instead of `make'. | |
2966 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2967 | am__include=include | |
2968 | am__quote= | |
2969 | _am_result=GNU | |
2970 | fi | |
2971 | # Now try BSD make style include. | |
2972 | if test "$am__include" = "#"; then | |
2973 | echo '.include "confinc"' > confmf | |
2974 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2975 | am__include=.include | |
2976 | am__quote="\"" | |
2977 | _am_result=BSD | |
2978 | fi | |
2979 | fi | |
2980 | ||
2981 | ||
2982 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2983 | echo "${ECHO_T}$_am_result" >&6 | |
2984 | rm -f confinc confmf | |
2985 | ||
2986 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2987 | if test "${enable_dependency_tracking+set}" = set; then | |
2988 | enableval="$enable_dependency_tracking" | |
2989 | ||
2990 | fi; | |
2991 | if test "x$enable_dependency_tracking" != xno; then | |
2992 | am_depcomp="$ac_aux_dir/depcomp" | |
2993 | AMDEPBACKSLASH='\' | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | if test "x$enable_dependency_tracking" != xno; then | |
2998 | AMDEP_TRUE= | |
2999 | AMDEP_FALSE='#' | |
3000 | else | |
3001 | AMDEP_TRUE='#' | |
3002 | AMDEP_FALSE= | |
3003 | fi | |
3004 | ||
3005 | ||
3006 | ||
ab509236 | 3007 | # test to see if srcdir already configured |
13b2be9c DJ |
3008 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
3009 | test -f $srcdir/config.status; then | |
3010 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
3011 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3012 | { (exit 1); exit 1; }; } | |
3013 | fi | |
3014 | ||
3015 | # test whether we have cygpath | |
3016 | if test -z "$CYGPATH_W"; then | |
3017 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3018 | CYGPATH_W='cygpath -w' | |
3019 | else | |
3020 | CYGPATH_W=echo | |
3021 | fi | |
3022 | fi | |
3023 | ||
3024 | ||
3025 | # Define the identity of the package. | |
3026 | PACKAGE=gas | |
3027 | VERSION=${BFD_VERSION} | |
3028 | ||
3029 | ||
3030 | cat >>confdefs.h <<_ACEOF | |
3031 | #define PACKAGE "$PACKAGE" | |
3032 | _ACEOF | |
3033 | ||
3034 | ||
3035 | cat >>confdefs.h <<_ACEOF | |
3036 | #define VERSION "$VERSION" | |
3037 | _ACEOF | |
3038 | ||
3039 | # Some tools Automake needs. | |
3040 | ||
3041 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3042 | ||
3043 | ||
3044 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3045 | ||
3046 | ||
3047 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3048 | ||
3049 | ||
3050 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3051 | ||
3052 | ||
3053 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3054 | ||
13b2be9c DJ |
3055 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
3056 | ||
3057 | # Installed binaries are usually stripped using `strip' when the user | |
3058 | # run `make install-strip'. However `strip' might not be the right | |
3059 | # tool to use in cross-compilation environments, therefore Automake | |
3060 | # will honor the `STRIP' environment variable to overrule this program. | |
3061 | if test "$cross_compiling" != no; then | |
3062 | if test -n "$ac_tool_prefix"; then | |
3063 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3064 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3067 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3069 | else | |
3070 | if test -n "$STRIP"; then | |
3071 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 3072 | else |
13b2be9c DJ |
3073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3074 | for as_dir in $PATH | |
3075 | do | |
3076 | IFS=$as_save_IFS | |
3077 | test -z "$as_dir" && as_dir=. | |
3078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3080 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3081 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3082 | break 2 | |
3083 | fi | |
3084 | done | |
3085 | done | |
3086 | ||
252b5132 | 3087 | fi |
13b2be9c DJ |
3088 | fi |
3089 | STRIP=$ac_cv_prog_STRIP | |
3090 | if test -n "$STRIP"; then | |
3091 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3092 | echo "${ECHO_T}$STRIP" >&6 | |
c8615825 | 3093 | else |
13b2be9c DJ |
3094 | echo "$as_me:$LINENO: result: no" >&5 |
3095 | echo "${ECHO_T}no" >&6 | |
c8615825 | 3096 | fi |
c8615825 | 3097 | |
13b2be9c DJ |
3098 | fi |
3099 | if test -z "$ac_cv_prog_STRIP"; then | |
3100 | ac_ct_STRIP=$STRIP | |
3101 | # Extract the first word of "strip", so it can be a program name with args. | |
3102 | set dummy strip; ac_word=$2 | |
3103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3105 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c8615825 | 3107 | else |
13b2be9c DJ |
3108 | if test -n "$ac_ct_STRIP"; then |
3109 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
252b5132 | 3110 | else |
13b2be9c DJ |
3111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3112 | for as_dir in $PATH | |
3113 | do | |
3114 | IFS=$as_save_IFS | |
3115 | test -z "$as_dir" && as_dir=. | |
3116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3117 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3118 | ac_cv_prog_ac_ct_STRIP="strip" | |
3119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3120 | break 2 | |
3121 | fi | |
3122 | done | |
3123 | done | |
3124 | ||
3125 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
252b5132 | 3126 | fi |
252b5132 | 3127 | fi |
13b2be9c DJ |
3128 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3129 | if test -n "$ac_ct_STRIP"; then | |
3130 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3131 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3132 | else |
13b2be9c DJ |
3133 | echo "$as_me:$LINENO: result: no" >&5 |
3134 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3135 | fi |
3136 | ||
13b2be9c DJ |
3137 | STRIP=$ac_ct_STRIP |
3138 | else | |
3139 | STRIP="$ac_cv_prog_STRIP" | |
3140 | fi | |
d6d788bd | 3141 | |
252b5132 | 3142 | fi |
13b2be9c | 3143 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
252b5132 | 3144 | |
13b2be9c DJ |
3145 | # We need awk for the "check" target. The system "awk" is bad on |
3146 | # some platforms. | |
8ea2b00f AM |
3147 | # Always define AMTAR for backward compatibility. |
3148 | ||
3149 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3150 | ||
3151 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3152 | ||
3153 | ||
252b5132 | 3154 | |
d6d788bd | 3155 | |
13b2be9c | 3156 | depcc="$CC" am_compiler_list= |
d6d788bd | 3157 | |
13b2be9c DJ |
3158 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3159 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3160 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3162 | else |
13b2be9c DJ |
3163 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3164 | # We make a subdir and do the tests there. Otherwise we can end up | |
3165 | # making bogus files that we don't know about and never remove. For | |
3166 | # instance it was reported that on HP-UX the gcc test will end up | |
3167 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3168 | # in D'. | |
3169 | mkdir conftest.dir | |
3170 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3171 | # using a relative directory. | |
3172 | cp "$am_depcomp" conftest.dir | |
3173 | cd conftest.dir | |
3174 | # We will build objects and dependencies in a subdirectory because | |
3175 | # it helps to detect inapplicable dependency modes. For instance | |
3176 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3177 | # side effect of compilation, but ICC will put the dependencies in | |
3178 | # the current directory while Tru64 will put them in the object | |
3179 | # directory. | |
3180 | mkdir sub | |
252b5132 | 3181 | |
13b2be9c DJ |
3182 | am_cv_CC_dependencies_compiler_type=none |
3183 | if test "$am_compiler_list" = ""; then | |
3184 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3185 | fi | |
3186 | for depmode in $am_compiler_list; do | |
3187 | # Setup a source with many dependencies, because some compilers | |
3188 | # like to wrap large dependency lists on column 80 (with \), and | |
3189 | # we should not choose a depcomp mode which is confused by this. | |
3190 | # | |
3191 | # We need to recreate these files for each test, as the compiler may | |
3192 | # overwrite some of them when testing with obscure command lines. | |
3193 | # This happens at least with the AIX C compiler. | |
3194 | : > sub/conftest.c | |
3195 | for i in 1 2 3 4 5 6; do | |
3196 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4b363073 NC |
3197 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3198 | # Solaris 8's {/usr,}/bin/sh. | |
3199 | touch sub/conftst$i.h | |
13b2be9c DJ |
3200 | done |
3201 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3202 | ||
3203 | case $depmode in | |
3204 | nosideeffect) | |
3205 | # after this tag, mechanisms are not by side-effect, so they'll | |
3206 | # only be used when explicitly requested | |
3207 | if test "x$enable_dependency_tracking" = xyes; then | |
3208 | continue | |
3209 | else | |
3210 | break | |
3211 | fi | |
3212 | ;; | |
3213 | none) break ;; | |
3214 | esac | |
3215 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3216 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3217 | # handle `-M -o', and we need to detect this. | |
3218 | if depmode=$depmode \ | |
3219 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3220 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3221 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3222 | >/dev/null 2>conftest.err && | |
3223 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3224 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3225 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3226 | # icc doesn't choke on unknown options, it will just issue warnings | |
4b363073 NC |
3227 | # or remarks (even with -Werror). So we grep stderr for any message |
3228 | # that says an option was ignored or not supported. | |
3229 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3230 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3231 | # The diagnosis changed in icc 8.0: | |
3232 | # icc: Command line remark: option '-MP' not supported | |
3233 | if (grep 'ignoring option' conftest.err || | |
3234 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13b2be9c DJ |
3235 | am_cv_CC_dependencies_compiler_type=$depmode |
3236 | break | |
3237 | fi | |
3238 | fi | |
3239 | done | |
252b5132 | 3240 | |
13b2be9c DJ |
3241 | cd .. |
3242 | rm -rf conftest.dir | |
252b5132 | 3243 | else |
13b2be9c | 3244 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3245 | fi |
3246 | ||
252b5132 | 3247 | fi |
13b2be9c DJ |
3248 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3249 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3250 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3251 | |
13b2be9c DJ |
3252 | |
3253 | ||
3254 | if | |
3255 | test "x$enable_dependency_tracking" != xno \ | |
3256 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3257 | am__fastdepCC_TRUE= | |
3258 | am__fastdepCC_FALSE='#' | |
252b5132 | 3259 | else |
13b2be9c DJ |
3260 | am__fastdepCC_TRUE='#' |
3261 | am__fastdepCC_FALSE= | |
252b5132 RH |
3262 | fi |
3263 | ||
d6d788bd L |
3264 | |
3265 | ||
13b2be9c | 3266 | |
ce2cded5 L |
3267 | ac_ext=c |
3268 | ac_cpp='$CPP $CPPFLAGS' | |
3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3272 | if test -n "$ac_tool_prefix"; then | |
3273 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3274 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3277 | if test "${ac_cv_prog_CC+set}" = set; then | |
3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3279 | else |
ce2cded5 L |
3280 | if test -n "$CC"; then |
3281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3282 | else |
ce2cded5 L |
3283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3284 | for as_dir in $PATH | |
3285 | do | |
3286 | IFS=$as_save_IFS | |
3287 | test -z "$as_dir" && as_dir=. | |
3288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3290 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3292 | break 2 | |
3293 | fi | |
3294 | done | |
3295 | done | |
d7040cdb | 3296 | |
ce2cded5 L |
3297 | fi |
3298 | fi | |
3299 | CC=$ac_cv_prog_CC | |
3300 | if test -n "$CC"; then | |
3301 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3302 | echo "${ECHO_T}$CC" >&6 | |
bedf545c | 3303 | else |
ce2cded5 L |
3304 | echo "$as_me:$LINENO: result: no" >&5 |
3305 | echo "${ECHO_T}no" >&6 | |
3306 | fi | |
d7040cdb | 3307 | |
ce2cded5 L |
3308 | fi |
3309 | if test -z "$ac_cv_prog_CC"; then | |
3310 | ac_ct_CC=$CC | |
3311 | # Extract the first word of "gcc", so it can be a program name with args. | |
3312 | set dummy gcc; ac_word=$2 | |
3313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3315 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
d7040cdb SE |
3316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3317 | else | |
ce2cded5 L |
3318 | if test -n "$ac_ct_CC"; then |
3319 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3320 | else | |
d7040cdb SE |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3322 | for as_dir in $PATH | |
3323 | do | |
3324 | IFS=$as_save_IFS | |
3325 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
3326 | for ac_exec_ext in '' $ac_executable_extensions; do |
3327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3328 | ac_cv_prog_ac_ct_CC="gcc" | |
3329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3330 | break 2 | |
d7040cdb | 3331 | fi |
ce2cded5 | 3332 | done |
d7040cdb SE |
3333 | done |
3334 | ||
ce2cded5 L |
3335 | fi |
3336 | fi | |
3337 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3338 | if test -n "$ac_ct_CC"; then | |
3339 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3340 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3341 | else | |
3342 | echo "$as_me:$LINENO: result: no" >&5 | |
3343 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
3344 | fi |
3345 | ||
ce2cded5 L |
3346 | CC=$ac_ct_CC |
3347 | else | |
3348 | CC="$ac_cv_prog_CC" | |
3349 | fi | |
d7040cdb | 3350 | |
ce2cded5 L |
3351 | if test -z "$CC"; then |
3352 | if test -n "$ac_tool_prefix"; then | |
3353 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3354 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3357 | if test "${ac_cv_prog_CC+set}" = set; then | |
d7040cdb SE |
3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3359 | else | |
ce2cded5 L |
3360 | if test -n "$CC"; then |
3361 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3362 | else |
ce2cded5 L |
3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3364 | for as_dir in $PATH | |
3365 | do | |
3366 | IFS=$as_save_IFS | |
3367 | test -z "$as_dir" && as_dir=. | |
3368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3369 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3370 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3372 | break 2 | |
3373 | fi | |
3374 | done | |
3375 | done | |
d7040cdb | 3376 | |
252b5132 RH |
3377 | fi |
3378 | fi | |
ce2cded5 L |
3379 | CC=$ac_cv_prog_CC |
3380 | if test -n "$CC"; then | |
3381 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3382 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3383 | else |
13b2be9c DJ |
3384 | echo "$as_me:$LINENO: result: no" >&5 |
3385 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3386 | fi |
d7040cdb | 3387 | |
252b5132 | 3388 | fi |
ce2cded5 L |
3389 | if test -z "$ac_cv_prog_CC"; then |
3390 | ac_ct_CC=$CC | |
3391 | # Extract the first word of "cc", so it can be a program name with args. | |
3392 | set dummy cc; ac_word=$2 | |
d7040cdb SE |
3393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3395 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
13b2be9c | 3396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3397 | else |
ce2cded5 L |
3398 | if test -n "$ac_ct_CC"; then |
3399 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3400 | else |
3401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3402 | for as_dir in $PATH | |
3403 | do | |
3404 | IFS=$as_save_IFS | |
3405 | test -z "$as_dir" && as_dir=. | |
3406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 3408 | ac_cv_prog_ac_ct_CC="cc" |
d7040cdb SE |
3409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3410 | break 2 | |
3411 | fi | |
3412 | done | |
3413 | done | |
ac48eca1 | 3414 | |
d7040cdb SE |
3415 | fi |
3416 | fi | |
ce2cded5 L |
3417 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3418 | if test -n "$ac_ct_CC"; then | |
3419 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3420 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3421 | else | |
3422 | echo "$as_me:$LINENO: result: no" >&5 | |
d7040cdb SE |
3423 | echo "${ECHO_T}no" >&6 |
3424 | fi | |
f9c19112 | 3425 | |
ce2cded5 L |
3426 | CC=$ac_ct_CC |
3427 | else | |
3428 | CC="$ac_cv_prog_CC" | |
3429 | fi | |
3430 | ||
3431 | fi | |
3432 | if test -z "$CC"; then | |
3433 | # Extract the first word of "cc", so it can be a program name with args. | |
3434 | set dummy cc; ac_word=$2 | |
3435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3437 | if test "${ac_cv_prog_CC+set}" = set; then | |
3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3439 | else | |
3440 | if test -n "$CC"; then | |
3441 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3442 | else | |
3443 | ac_prog_rejected=no | |
3444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3445 | for as_dir in $PATH | |
3446 | do | |
3447 | IFS=$as_save_IFS | |
3448 | test -z "$as_dir" && as_dir=. | |
3449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3451 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3452 | ac_prog_rejected=yes | |
3453 | continue | |
3454 | fi | |
3455 | ac_cv_prog_CC="cc" | |
3456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3457 | break 2 | |
3458 | fi | |
3459 | done | |
3460 | done | |
3461 | ||
3462 | if test $ac_prog_rejected = yes; then | |
3463 | # We found a bogon in the path, so make sure we never use it. | |
3464 | set dummy $ac_cv_prog_CC | |
3465 | shift | |
3466 | if test $# != 0; then | |
3467 | # We chose a different compiler from the bogus one. | |
3468 | # However, it has the same basename, so the bogon will be chosen | |
3469 | # first if we set CC to just the basename; use the full file name. | |
3470 | shift | |
3471 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3472 | fi | |
3473 | fi | |
3474 | fi | |
3475 | fi | |
3476 | CC=$ac_cv_prog_CC | |
3477 | if test -n "$CC"; then | |
3478 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3479 | echo "${ECHO_T}$CC" >&6 | |
3480 | else | |
3481 | echo "$as_me:$LINENO: result: no" >&5 | |
3482 | echo "${ECHO_T}no" >&6 | |
3483 | fi | |
3484 | ||
3485 | fi | |
3486 | if test -z "$CC"; then | |
3487 | if test -n "$ac_tool_prefix"; then | |
3488 | for ac_prog in cl | |
3489 | do | |
3490 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3491 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3494 | if test "${ac_cv_prog_CC+set}" = set; then | |
3495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3496 | else | |
3497 | if test -n "$CC"; then | |
3498 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3499 | else | |
3500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3501 | for as_dir in $PATH | |
3502 | do | |
3503 | IFS=$as_save_IFS | |
3504 | test -z "$as_dir" && as_dir=. | |
3505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3507 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3509 | break 2 | |
3510 | fi | |
3511 | done | |
3512 | done | |
3513 | ||
3514 | fi | |
3515 | fi | |
3516 | CC=$ac_cv_prog_CC | |
3517 | if test -n "$CC"; then | |
3518 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3519 | echo "${ECHO_T}$CC" >&6 | |
3520 | else | |
3521 | echo "$as_me:$LINENO: result: no" >&5 | |
3522 | echo "${ECHO_T}no" >&6 | |
3523 | fi | |
3524 | ||
3525 | test -n "$CC" && break | |
d7040cdb SE |
3526 | done |
3527 | fi | |
ce2cded5 L |
3528 | if test -z "$CC"; then |
3529 | ac_ct_CC=$CC | |
3530 | for ac_prog in cl | |
d7040cdb SE |
3531 | do |
3532 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3533 | set dummy $ac_prog; ac_word=$2 | |
3534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3536 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb SE |
3537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3538 | else | |
ce2cded5 L |
3539 | if test -n "$ac_ct_CC"; then |
3540 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3541 | else |
3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3543 | for as_dir in $PATH | |
3544 | do | |
3545 | IFS=$as_save_IFS | |
3546 | test -z "$as_dir" && as_dir=. | |
3547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 3549 | ac_cv_prog_ac_ct_CC="$ac_prog" |
d7040cdb SE |
3550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3551 | break 2 | |
ac48eca1 | 3552 | fi |
d7040cdb SE |
3553 | done |
3554 | done | |
ac48eca1 | 3555 | |
d7040cdb SE |
3556 | fi |
3557 | fi | |
ce2cded5 L |
3558 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3559 | if test -n "$ac_ct_CC"; then | |
3560 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3561 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
d7040cdb SE |
3562 | else |
3563 | echo "$as_me:$LINENO: result: no" >&5 | |
3564 | echo "${ECHO_T}no" >&6 | |
3565 | fi | |
ac48eca1 | 3566 | |
ce2cded5 | 3567 | test -n "$ac_ct_CC" && break |
d7040cdb | 3568 | done |
ac48eca1 | 3569 | |
ce2cded5 | 3570 | CC=$ac_ct_CC |
d7040cdb | 3571 | fi |
ac48eca1 | 3572 | |
d7040cdb | 3573 | fi |
ac48eca1 | 3574 | |
ac48eca1 | 3575 | |
7a283e07 RW |
3576 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3577 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3578 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ce2cded5 L |
3579 | See \`config.log' for more details." >&5 |
3580 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3581 | See \`config.log' for more details." >&2;} | |
7a283e07 | 3582 | { (exit 1); exit 1; }; }; } |
6be7c12c | 3583 | |
ce2cded5 L |
3584 | # Provide some information about the compiler. |
3585 | echo "$as_me:$LINENO:" \ | |
3586 | "checking for C compiler version" >&5 | |
3587 | ac_compiler=`set X $ac_compile; echo $2` | |
3588 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3589 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3590 | ac_status=$? | |
3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3592 | (exit $ac_status); } | |
3593 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3594 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3595 | ac_status=$? | |
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3597 | (exit $ac_status); } | |
3598 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3599 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3600 | ac_status=$? | |
3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3602 | (exit $ac_status); } | |
ac48eca1 | 3603 | |
ce2cded5 L |
3604 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3605 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3606 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
d7040cdb SE |
3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3608 | else | |
ce2cded5 L |
3609 | cat >conftest.$ac_ext <<_ACEOF |
3610 | /* confdefs.h. */ | |
3611 | _ACEOF | |
3612 | cat confdefs.h >>conftest.$ac_ext | |
3613 | cat >>conftest.$ac_ext <<_ACEOF | |
3614 | /* end confdefs.h. */ | |
c8615825 | 3615 | |
ce2cded5 L |
3616 | int |
3617 | main () | |
3618 | { | |
3619 | #ifndef __GNUC__ | |
3620 | choke me | |
3621 | #endif | |
3622 | ||
3623 | ; | |
3624 | return 0; | |
3625 | } | |
3626 | _ACEOF | |
3627 | rm -f conftest.$ac_objext | |
3628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3629 | (eval $ac_compile) 2>conftest.er1 | |
3630 | ac_status=$? | |
3631 | grep -v '^ *+' conftest.er1 >conftest.err | |
3632 | rm -f conftest.er1 | |
3633 | cat conftest.err >&5 | |
3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3635 | (exit $ac_status); } && | |
3636 | { ac_try='test -z "$ac_c_werror_flag" | |
3637 | || test ! -s conftest.err' | |
3638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3639 | (eval $ac_try) 2>&5 | |
3640 | ac_status=$? | |
3641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3642 | (exit $ac_status); }; } && | |
3643 | { ac_try='test -s conftest.$ac_objext' | |
3644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3645 | (eval $ac_try) 2>&5 | |
3646 | ac_status=$? | |
3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3648 | (exit $ac_status); }; }; then | |
3649 | ac_compiler_gnu=yes | |
d7040cdb | 3650 | else |
ce2cded5 L |
3651 | echo "$as_me: failed program was:" >&5 |
3652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3653 | ||
3654 | ac_compiler_gnu=no | |
d7040cdb | 3655 | fi |
ce2cded5 L |
3656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3657 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3658 | |
ce2cded5 L |
3659 | fi |
3660 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3661 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3662 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3663 | ac_test_CFLAGS=${CFLAGS+set} | |
3664 | ac_save_CFLAGS=$CFLAGS | |
3665 | CFLAGS="-g" | |
3666 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3667 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3668 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
d70c5fc7 NC |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3670 | else | |
ce2cded5 L |
3671 | cat >conftest.$ac_ext <<_ACEOF |
3672 | /* confdefs.h. */ | |
3673 | _ACEOF | |
3674 | cat confdefs.h >>conftest.$ac_ext | |
3675 | cat >>conftest.$ac_ext <<_ACEOF | |
3676 | /* end confdefs.h. */ | |
d7040cdb | 3677 | |
ce2cded5 L |
3678 | int |
3679 | main () | |
3680 | { | |
d7040cdb | 3681 | |
ce2cded5 L |
3682 | ; |
3683 | return 0; | |
3684 | } | |
3685 | _ACEOF | |
3686 | rm -f conftest.$ac_objext | |
3687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3688 | (eval $ac_compile) 2>conftest.er1 | |
3689 | ac_status=$? | |
3690 | grep -v '^ *+' conftest.er1 >conftest.err | |
3691 | rm -f conftest.er1 | |
3692 | cat conftest.err >&5 | |
3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3694 | (exit $ac_status); } && | |
3695 | { ac_try='test -z "$ac_c_werror_flag" | |
3696 | || test ! -s conftest.err' | |
3697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3698 | (eval $ac_try) 2>&5 | |
3699 | ac_status=$? | |
3700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3701 | (exit $ac_status); }; } && | |
3702 | { ac_try='test -s conftest.$ac_objext' | |
3703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3704 | (eval $ac_try) 2>&5 | |
3705 | ac_status=$? | |
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); }; }; then | |
3708 | ac_cv_prog_cc_g=yes | |
3709 | else | |
3710 | echo "$as_me: failed program was:" >&5 | |
3711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d70c5fc7 | 3712 | |
ce2cded5 | 3713 | ac_cv_prog_cc_g=no |
d70c5fc7 | 3714 | fi |
ce2cded5 | 3715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 3716 | fi |
ce2cded5 L |
3717 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3718 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3719 | if test "$ac_test_CFLAGS" = set; then | |
3720 | CFLAGS=$ac_save_CFLAGS | |
3721 | elif test $ac_cv_prog_cc_g = yes; then | |
3722 | if test "$GCC" = yes; then | |
3723 | CFLAGS="-g -O2" | |
3724 | else | |
3725 | CFLAGS="-g" | |
3726 | fi | |
ac48eca1 | 3727 | else |
ce2cded5 L |
3728 | if test "$GCC" = yes; then |
3729 | CFLAGS="-O2" | |
3730 | else | |
3731 | CFLAGS= | |
3732 | fi | |
ac48eca1 | 3733 | fi |
ce2cded5 L |
3734 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3735 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3736 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
13b2be9c | 3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3738 | else |
ce2cded5 L |
3739 | ac_cv_prog_cc_stdc=no |
3740 | ac_save_CC=$CC | |
3741 | cat >conftest.$ac_ext <<_ACEOF | |
3742 | /* confdefs.h. */ | |
3743 | _ACEOF | |
3744 | cat confdefs.h >>conftest.$ac_ext | |
3745 | cat >>conftest.$ac_ext <<_ACEOF | |
3746 | /* end confdefs.h. */ | |
3747 | #include <stdarg.h> | |
3748 | #include <stdio.h> | |
3749 | #include <sys/types.h> | |
3750 | #include <sys/stat.h> | |
3751 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3752 | struct buf { int x; }; | |
3753 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3754 | static char *e (p, i) | |
3755 | char **p; | |
3756 | int i; | |
3757 | { | |
3758 | return p[i]; | |
3759 | } | |
3760 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3761 | { | |
3762 | char *s; | |
3763 | va_list v; | |
3764 | va_start (v,p); | |
3765 | s = g (p, va_arg (v,int)); | |
3766 | va_end (v); | |
3767 | return s; | |
3768 | } | |
3769 | ||
3770 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3771 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3772 | These don't provoke an error unfortunately, instead are silently treated | |
3773 | as 'x'. The following induces an error, until -std1 is added to get | |
3774 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3775 | array size at least. It's necessary to write '\x00'==0 to get something | |
3776 | that's true only with -std1. */ | |
3777 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3778 | ||
3779 | int test (int i, double x); | |
3780 | struct s1 {int (*f) (int a);}; | |
3781 | struct s2 {int (*f) (double a);}; | |
3782 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3783 | int argc; | |
3784 | char **argv; | |
3785 | int | |
3786 | main () | |
3787 | { | |
3788 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3789 | ; | |
3790 | return 0; | |
3791 | } | |
3792 | _ACEOF | |
3793 | # Don't try gcc -ansi; that turns off useful extensions and | |
3794 | # breaks some systems' header files. | |
3795 | # AIX -qlanglvl=ansi | |
3796 | # Ultrix and OSF/1 -std1 | |
3797 | # HP-UX 10.20 and later -Ae | |
3798 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3799 | # SVR4 -Xc -D__EXTENSIONS__ | |
3800 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3801 | do | |
3802 | CC="$ac_save_CC $ac_arg" | |
3803 | rm -f conftest.$ac_objext | |
3804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3805 | (eval $ac_compile) 2>conftest.er1 | |
3806 | ac_status=$? | |
3807 | grep -v '^ *+' conftest.er1 >conftest.err | |
3808 | rm -f conftest.er1 | |
3809 | cat conftest.err >&5 | |
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3811 | (exit $ac_status); } && | |
3812 | { ac_try='test -z "$ac_c_werror_flag" | |
3813 | || test ! -s conftest.err' | |
3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3815 | (eval $ac_try) 2>&5 | |
3816 | ac_status=$? | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); }; } && | |
3819 | { ac_try='test -s conftest.$ac_objext' | |
3820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3821 | (eval $ac_try) 2>&5 | |
3822 | ac_status=$? | |
3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3824 | (exit $ac_status); }; }; then | |
3825 | ac_cv_prog_cc_stdc=$ac_arg | |
3826 | break | |
3827 | else | |
3828 | echo "$as_me: failed program was:" >&5 | |
3829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3830 | ||
3831 | fi | |
3832 | rm -f conftest.err conftest.$ac_objext | |
3833 | done | |
3834 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3835 | CC=$ac_save_CC | |
3836 | ||
3837 | fi | |
3838 | ||
3839 | case "x$ac_cv_prog_cc_stdc" in | |
3840 | x|xno) | |
3841 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3842 | echo "${ECHO_T}none needed" >&6 ;; | |
3843 | *) | |
3844 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3845 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3846 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
d7040cdb SE |
3847 | esac |
3848 | ||
ce2cded5 L |
3849 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3850 | # in C++ we need to declare it. In case someone uses the same compiler | |
3851 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3852 | # the declaration of exit, since it's the most demanding environment. | |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
3854 | #ifndef __cplusplus | |
3855 | choke me | |
3856 | #endif | |
3857 | _ACEOF | |
3858 | rm -f conftest.$ac_objext | |
3859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3860 | (eval $ac_compile) 2>conftest.er1 | |
3861 | ac_status=$? | |
3862 | grep -v '^ *+' conftest.er1 >conftest.err | |
3863 | rm -f conftest.er1 | |
3864 | cat conftest.err >&5 | |
3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3866 | (exit $ac_status); } && | |
3867 | { ac_try='test -z "$ac_c_werror_flag" | |
3868 | || test ! -s conftest.err' | |
3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3870 | (eval $ac_try) 2>&5 | |
3871 | ac_status=$? | |
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3873 | (exit $ac_status); }; } && | |
3874 | { ac_try='test -s conftest.$ac_objext' | |
3875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3876 | (eval $ac_try) 2>&5 | |
3877 | ac_status=$? | |
3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3879 | (exit $ac_status); }; }; then | |
3880 | for ac_declaration in \ | |
3881 | '' \ | |
3882 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3883 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3884 | 'extern "C" void exit (int) throw ();' \ | |
3885 | 'extern "C" void exit (int);' \ | |
3886 | 'void exit (int);' | |
3887 | do | |
3888 | cat >conftest.$ac_ext <<_ACEOF | |
3889 | /* confdefs.h. */ | |
3890 | _ACEOF | |
3891 | cat confdefs.h >>conftest.$ac_ext | |
3892 | cat >>conftest.$ac_ext <<_ACEOF | |
3893 | /* end confdefs.h. */ | |
3894 | $ac_declaration | |
3895 | #include <stdlib.h> | |
3896 | int | |
3897 | main () | |
3898 | { | |
3899 | exit (42); | |
3900 | ; | |
3901 | return 0; | |
3902 | } | |
3903 | _ACEOF | |
3904 | rm -f conftest.$ac_objext | |
3905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3906 | (eval $ac_compile) 2>conftest.er1 | |
3907 | ac_status=$? | |
3908 | grep -v '^ *+' conftest.er1 >conftest.err | |
3909 | rm -f conftest.er1 | |
3910 | cat conftest.err >&5 | |
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3912 | (exit $ac_status); } && | |
3913 | { ac_try='test -z "$ac_c_werror_flag" | |
3914 | || test ! -s conftest.err' | |
3915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3916 | (eval $ac_try) 2>&5 | |
3917 | ac_status=$? | |
3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3919 | (exit $ac_status); }; } && | |
3920 | { ac_try='test -s conftest.$ac_objext' | |
3921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3922 | (eval $ac_try) 2>&5 | |
3923 | ac_status=$? | |
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3925 | (exit $ac_status); }; }; then | |
3926 | : | |
3927 | else | |
3928 | echo "$as_me: failed program was:" >&5 | |
3929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3930 | |
ce2cded5 L |
3931 | continue |
3932 | fi | |
3933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3934 | cat >conftest.$ac_ext <<_ACEOF | |
3935 | /* confdefs.h. */ | |
3936 | _ACEOF | |
3937 | cat confdefs.h >>conftest.$ac_ext | |
3938 | cat >>conftest.$ac_ext <<_ACEOF | |
3939 | /* end confdefs.h. */ | |
3940 | $ac_declaration | |
3941 | int | |
3942 | main () | |
3943 | { | |
3944 | exit (42); | |
3945 | ; | |
3946 | return 0; | |
3947 | } | |
3948 | _ACEOF | |
3949 | rm -f conftest.$ac_objext | |
3950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3951 | (eval $ac_compile) 2>conftest.er1 | |
3952 | ac_status=$? | |
3953 | grep -v '^ *+' conftest.er1 >conftest.err | |
3954 | rm -f conftest.er1 | |
3955 | cat conftest.err >&5 | |
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3957 | (exit $ac_status); } && | |
3958 | { ac_try='test -z "$ac_c_werror_flag" | |
3959 | || test ! -s conftest.err' | |
3960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3961 | (eval $ac_try) 2>&5 | |
3962 | ac_status=$? | |
3963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3964 | (exit $ac_status); }; } && | |
3965 | { ac_try='test -s conftest.$ac_objext' | |
3966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3967 | (eval $ac_try) 2>&5 | |
3968 | ac_status=$? | |
3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3970 | (exit $ac_status); }; }; then | |
3971 | break | |
3972 | else | |
3973 | echo "$as_me: failed program was:" >&5 | |
3974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3975 | |
ce2cded5 L |
3976 | fi |
3977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3978 | done | |
3979 | rm -f conftest* | |
3980 | if test -n "$ac_declaration"; then | |
3981 | echo '#ifdef __cplusplus' >>confdefs.h | |
3982 | echo $ac_declaration >>confdefs.h | |
3983 | echo '#endif' >>confdefs.h | |
3984 | fi | |
d7040cdb | 3985 | |
ce2cded5 L |
3986 | else |
3987 | echo "$as_me: failed program was:" >&5 | |
3988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3989 | |
ce2cded5 L |
3990 | fi |
3991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3992 | ac_ext=c | |
3993 | ac_cpp='$CPP $CPPFLAGS' | |
3994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
3997 | |
3998 | ||
ce2cded5 L |
3999 | cat >>confdefs.h <<\_ACEOF |
4000 | #define _GNU_SOURCE 1 | |
4001 | _ACEOF | |
d7040cdb SE |
4002 | |
4003 | ||
7357c5b6 AM |
4004 | ac_ext=c |
4005 | ac_cpp='$CPP $CPPFLAGS' | |
4006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4009 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4010 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4011 | # On Suns, sometimes $CPP names a directory. | |
4012 | if test -n "$CPP" && test -d "$CPP"; then | |
4013 | CPP= | |
4014 | fi | |
4015 | if test -z "$CPP"; then | |
4016 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4018 | else | |
4019 | # Double quotes because CPP needs to be expanded | |
4020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4021 | do | |
4022 | ac_preproc_ok=false | |
4023 | for ac_c_preproc_warn_flag in '' yes | |
4024 | do | |
4025 | # Use a header file that comes with gcc, so configuring glibc | |
4026 | # with a fresh cross-compiler works. | |
4027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4028 | # <limits.h> exists even on freestanding compilers. | |
4029 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4030 | # not just through cpp. "Syntax error" is here to catch this case. | |
4031 | cat >conftest.$ac_ext <<_ACEOF | |
4032 | /* confdefs.h. */ | |
4033 | _ACEOF | |
4034 | cat confdefs.h >>conftest.$ac_ext | |
4035 | cat >>conftest.$ac_ext <<_ACEOF | |
4036 | /* end confdefs.h. */ | |
4037 | #ifdef __STDC__ | |
4038 | # include <limits.h> | |
4039 | #else | |
4040 | # include <assert.h> | |
4041 | #endif | |
4042 | Syntax error | |
4043 | _ACEOF | |
4044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4046 | ac_status=$? | |
4047 | grep -v '^ *+' conftest.er1 >conftest.err | |
4048 | rm -f conftest.er1 | |
4049 | cat conftest.err >&5 | |
4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4051 | (exit $ac_status); } >/dev/null; then | |
4052 | if test -s conftest.err; then | |
4053 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4055 | else | |
4056 | ac_cpp_err= | |
4057 | fi | |
4058 | else | |
4059 | ac_cpp_err=yes | |
4060 | fi | |
4061 | if test -z "$ac_cpp_err"; then | |
4062 | : | |
4063 | else | |
4064 | echo "$as_me: failed program was:" >&5 | |
4065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4066 | |
7357c5b6 AM |
4067 | # Broken: fails on valid input. |
4068 | continue | |
4069 | fi | |
4070 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4071 | |
7357c5b6 AM |
4072 | # OK, works on sane cases. Now check whether non-existent headers |
4073 | # can be detected and how. | |
4074 | cat >conftest.$ac_ext <<_ACEOF | |
4075 | /* confdefs.h. */ | |
4076 | _ACEOF | |
4077 | cat confdefs.h >>conftest.$ac_ext | |
4078 | cat >>conftest.$ac_ext <<_ACEOF | |
4079 | /* end confdefs.h. */ | |
4080 | #include <ac_nonexistent.h> | |
4081 | _ACEOF | |
4082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4084 | ac_status=$? | |
4085 | grep -v '^ *+' conftest.er1 >conftest.err | |
4086 | rm -f conftest.er1 | |
4087 | cat conftest.err >&5 | |
4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4089 | (exit $ac_status); } >/dev/null; then | |
4090 | if test -s conftest.err; then | |
4091 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4093 | else | |
4094 | ac_cpp_err= | |
4095 | fi | |
4096 | else | |
4097 | ac_cpp_err=yes | |
4098 | fi | |
4099 | if test -z "$ac_cpp_err"; then | |
4100 | # Broken: success on invalid input. | |
4101 | continue | |
4102 | else | |
4103 | echo "$as_me: failed program was:" >&5 | |
4104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4105 | |
7357c5b6 AM |
4106 | # Passes both tests. |
4107 | ac_preproc_ok=: | |
4108 | break | |
4109 | fi | |
4110 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4111 | |
7357c5b6 AM |
4112 | done |
4113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4114 | rm -f conftest.err conftest.$ac_ext | |
4115 | if $ac_preproc_ok; then | |
4116 | break | |
4117 | fi | |
d7040cdb | 4118 | |
7357c5b6 AM |
4119 | done |
4120 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4121 | |
7357c5b6 AM |
4122 | fi |
4123 | CPP=$ac_cv_prog_CPP | |
4124 | else | |
4125 | ac_cv_prog_CPP=$CPP | |
4126 | fi | |
4127 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4128 | echo "${ECHO_T}$CPP" >&6 | |
4129 | ac_preproc_ok=false | |
4130 | for ac_c_preproc_warn_flag in '' yes | |
4131 | do | |
4132 | # Use a header file that comes with gcc, so configuring glibc | |
4133 | # with a fresh cross-compiler works. | |
4134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4135 | # <limits.h> exists even on freestanding compilers. | |
4136 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4137 | # not just through cpp. "Syntax error" is here to catch this case. | |
4138 | cat >conftest.$ac_ext <<_ACEOF | |
4139 | /* confdefs.h. */ | |
4140 | _ACEOF | |
4141 | cat confdefs.h >>conftest.$ac_ext | |
4142 | cat >>conftest.$ac_ext <<_ACEOF | |
4143 | /* end confdefs.h. */ | |
4144 | #ifdef __STDC__ | |
4145 | # include <limits.h> | |
4146 | #else | |
4147 | # include <assert.h> | |
4148 | #endif | |
4149 | Syntax error | |
4150 | _ACEOF | |
4151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4153 | ac_status=$? | |
4154 | grep -v '^ *+' conftest.er1 >conftest.err | |
4155 | rm -f conftest.er1 | |
4156 | cat conftest.err >&5 | |
4157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4158 | (exit $ac_status); } >/dev/null; then | |
4159 | if test -s conftest.err; then | |
4160 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4162 | else | |
4163 | ac_cpp_err= | |
4164 | fi | |
4165 | else | |
4166 | ac_cpp_err=yes | |
4167 | fi | |
4168 | if test -z "$ac_cpp_err"; then | |
4169 | : | |
4170 | else | |
4171 | echo "$as_me: failed program was:" >&5 | |
4172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4173 | |
7357c5b6 AM |
4174 | # Broken: fails on valid input. |
4175 | continue | |
4176 | fi | |
4177 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4178 | |
7357c5b6 AM |
4179 | # OK, works on sane cases. Now check whether non-existent headers |
4180 | # can be detected and how. | |
4181 | cat >conftest.$ac_ext <<_ACEOF | |
4182 | /* confdefs.h. */ | |
4183 | _ACEOF | |
4184 | cat confdefs.h >>conftest.$ac_ext | |
4185 | cat >>conftest.$ac_ext <<_ACEOF | |
4186 | /* end confdefs.h. */ | |
4187 | #include <ac_nonexistent.h> | |
4188 | _ACEOF | |
4189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4191 | ac_status=$? | |
4192 | grep -v '^ *+' conftest.er1 >conftest.err | |
4193 | rm -f conftest.er1 | |
4194 | cat conftest.err >&5 | |
4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4196 | (exit $ac_status); } >/dev/null; then | |
4197 | if test -s conftest.err; then | |
4198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4200 | else | |
4201 | ac_cpp_err= | |
4202 | fi | |
4203 | else | |
4204 | ac_cpp_err=yes | |
4205 | fi | |
4206 | if test -z "$ac_cpp_err"; then | |
4207 | # Broken: success on invalid input. | |
4208 | continue | |
4209 | else | |
4210 | echo "$as_me: failed program was:" >&5 | |
4211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4212 | |
7357c5b6 AM |
4213 | # Passes both tests. |
4214 | ac_preproc_ok=: | |
4215 | break | |
4216 | fi | |
4217 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4218 | |
7357c5b6 AM |
4219 | done |
4220 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4221 | rm -f conftest.err conftest.$ac_ext | |
4222 | if $ac_preproc_ok; then | |
4223 | : | |
4224 | else | |
4225 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4226 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4227 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4228 | See \`config.log' for more details." >&5 | |
4229 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4230 | See \`config.log' for more details." >&2;} | |
4231 | { (exit 1); exit 1; }; }; } | |
4232 | fi | |
ac48eca1 | 4233 | |
7357c5b6 AM |
4234 | ac_ext=c |
4235 | ac_cpp='$CPP $CPPFLAGS' | |
4236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4239 | |
ac48eca1 | 4240 | |
7357c5b6 AM |
4241 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4242 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4243 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4245 | else | |
4246 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4247 | then ac_cv_prog_egrep='grep -E' | |
4248 | else ac_cv_prog_egrep='egrep' | |
4249 | fi | |
4250 | fi | |
4251 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4252 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4253 | EGREP=$ac_cv_prog_egrep | |
ac48eca1 | 4254 | |
d7040cdb | 4255 | |
7357c5b6 AM |
4256 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4257 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4258 | if test "${ac_cv_header_stdc+set}" = set; then | |
4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4260 | else | |
4261 | cat >conftest.$ac_ext <<_ACEOF | |
4262 | /* confdefs.h. */ | |
4263 | _ACEOF | |
4264 | cat confdefs.h >>conftest.$ac_ext | |
4265 | cat >>conftest.$ac_ext <<_ACEOF | |
4266 | /* end confdefs.h. */ | |
4267 | #include <stdlib.h> | |
4268 | #include <stdarg.h> | |
4269 | #include <string.h> | |
4270 | #include <float.h> | |
d7040cdb | 4271 | |
7357c5b6 AM |
4272 | int |
4273 | main () | |
4274 | { | |
d7040cdb | 4275 | |
7357c5b6 AM |
4276 | ; |
4277 | return 0; | |
4278 | } | |
4279 | _ACEOF | |
4280 | rm -f conftest.$ac_objext | |
4281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4282 | (eval $ac_compile) 2>conftest.er1 | |
4283 | ac_status=$? | |
4284 | grep -v '^ *+' conftest.er1 >conftest.err | |
4285 | rm -f conftest.er1 | |
4286 | cat conftest.err >&5 | |
4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4288 | (exit $ac_status); } && | |
4289 | { ac_try='test -z "$ac_c_werror_flag" | |
4290 | || test ! -s conftest.err' | |
4291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4292 | (eval $ac_try) 2>&5 | |
4293 | ac_status=$? | |
4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4295 | (exit $ac_status); }; } && | |
4296 | { ac_try='test -s conftest.$ac_objext' | |
4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4298 | (eval $ac_try) 2>&5 | |
4299 | ac_status=$? | |
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4301 | (exit $ac_status); }; }; then | |
4302 | ac_cv_header_stdc=yes | |
4303 | else | |
4304 | echo "$as_me: failed program was:" >&5 | |
4305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4306 | |
7357c5b6 AM |
4307 | ac_cv_header_stdc=no |
4308 | fi | |
4309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4310 | |
7357c5b6 AM |
4311 | if test $ac_cv_header_stdc = yes; then |
4312 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4313 | cat >conftest.$ac_ext <<_ACEOF | |
4314 | /* confdefs.h. */ | |
4315 | _ACEOF | |
4316 | cat confdefs.h >>conftest.$ac_ext | |
4317 | cat >>conftest.$ac_ext <<_ACEOF | |
4318 | /* end confdefs.h. */ | |
4319 | #include <string.h> | |
d7040cdb | 4320 | |
7357c5b6 AM |
4321 | _ACEOF |
4322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4323 | $EGREP "memchr" >/dev/null 2>&1; then | |
4324 | : | |
ce2cded5 | 4325 | else |
7357c5b6 AM |
4326 | ac_cv_header_stdc=no |
4327 | fi | |
4328 | rm -f conftest* | |
d7040cdb | 4329 | |
7357c5b6 | 4330 | fi |
d7040cdb | 4331 | |
7357c5b6 AM |
4332 | if test $ac_cv_header_stdc = yes; then |
4333 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4334 | cat >conftest.$ac_ext <<_ACEOF | |
4335 | /* confdefs.h. */ | |
4336 | _ACEOF | |
4337 | cat confdefs.h >>conftest.$ac_ext | |
4338 | cat >>conftest.$ac_ext <<_ACEOF | |
4339 | /* end confdefs.h. */ | |
4340 | #include <stdlib.h> | |
ac48eca1 | 4341 | |
7357c5b6 AM |
4342 | _ACEOF |
4343 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4344 | $EGREP "free" >/dev/null 2>&1; then | |
4345 | : | |
4346 | else | |
4347 | ac_cv_header_stdc=no | |
4348 | fi | |
4349 | rm -f conftest* | |
d7040cdb | 4350 | |
7357c5b6 | 4351 | fi |
d7040cdb | 4352 | |
7357c5b6 AM |
4353 | if test $ac_cv_header_stdc = yes; then |
4354 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4355 | if test "$cross_compiling" = yes; then | |
4356 | : | |
4357 | else | |
4358 | cat >conftest.$ac_ext <<_ACEOF | |
4359 | /* confdefs.h. */ | |
4360 | _ACEOF | |
4361 | cat confdefs.h >>conftest.$ac_ext | |
4362 | cat >>conftest.$ac_ext <<_ACEOF | |
4363 | /* end confdefs.h. */ | |
4364 | #include <ctype.h> | |
4365 | #if ((' ' & 0x0FF) == 0x020) | |
4366 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4367 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4368 | #else | |
4369 | # define ISLOWER(c) \ | |
4370 | (('a' <= (c) && (c) <= 'i') \ | |
4371 | || ('j' <= (c) && (c) <= 'r') \ | |
4372 | || ('s' <= (c) && (c) <= 'z')) | |
4373 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4374 | #endif | |
d7040cdb | 4375 | |
7357c5b6 AM |
4376 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4377 | int | |
4378 | main () | |
4379 | { | |
4380 | int i; | |
4381 | for (i = 0; i < 256; i++) | |
4382 | if (XOR (islower (i), ISLOWER (i)) | |
4383 | || toupper (i) != TOUPPER (i)) | |
4384 | exit(2); | |
4385 | exit (0); | |
4386 | } | |
4387 | _ACEOF | |
4388 | rm -f conftest$ac_exeext | |
4389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4390 | (eval $ac_link) 2>&5 | |
4391 | ac_status=$? | |
4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4395 | (eval $ac_try) 2>&5 | |
4396 | ac_status=$? | |
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4398 | (exit $ac_status); }; }; then | |
4399 | : | |
4400 | else | |
4401 | echo "$as_me: program exited with status $ac_status" >&5 | |
4402 | echo "$as_me: failed program was:" >&5 | |
4403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4404 | |
7357c5b6 AM |
4405 | ( exit $ac_status ) |
4406 | ac_cv_header_stdc=no | |
4407 | fi | |
4408 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4409 | fi | |
4410 | fi | |
4411 | fi | |
4412 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4413 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4414 | if test $ac_cv_header_stdc = yes; then | |
d7040cdb | 4415 | |
7357c5b6 AM |
4416 | cat >>confdefs.h <<\_ACEOF |
4417 | #define STDC_HEADERS 1 | |
4418 | _ACEOF | |
d7040cdb | 4419 | |
7357c5b6 | 4420 | fi |
d7040cdb | 4421 | |
7357c5b6 | 4422 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb SE |
4423 | |
4424 | ||
4425 | ||
4426 | ||
4427 | ||
ce2cded5 L |
4428 | |
4429 | ||
13b2be9c | 4430 | |
ce2cded5 | 4431 | |
7357c5b6 AM |
4432 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4433 | inttypes.h stdint.h unistd.h | |
4434 | do | |
4435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4440 | else | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
4442 | /* confdefs.h. */ | |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | $ac_includes_default | |
ce2cded5 | 4448 | |
7357c5b6 AM |
4449 | #include <$ac_header> |
4450 | _ACEOF | |
4451 | rm -f conftest.$ac_objext | |
4452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4453 | (eval $ac_compile) 2>conftest.er1 | |
4454 | ac_status=$? | |
4455 | grep -v '^ *+' conftest.er1 >conftest.err | |
4456 | rm -f conftest.er1 | |
4457 | cat conftest.err >&5 | |
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4459 | (exit $ac_status); } && | |
4460 | { ac_try='test -z "$ac_c_werror_flag" | |
4461 | || test ! -s conftest.err' | |
4462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4463 | (eval $ac_try) 2>&5 | |
4464 | ac_status=$? | |
4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4466 | (exit $ac_status); }; } && | |
4467 | { ac_try='test -s conftest.$ac_objext' | |
4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4469 | (eval $ac_try) 2>&5 | |
4470 | ac_status=$? | |
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4472 | (exit $ac_status); }; }; then | |
4473 | eval "$as_ac_Header=yes" | |
4474 | else | |
4475 | echo "$as_me: failed program was:" >&5 | |
4476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ce2cded5 | 4477 | |
7357c5b6 AM |
4478 | eval "$as_ac_Header=no" |
4479 | fi | |
4480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4481 | fi | |
4482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4485 | cat >>confdefs.h <<_ACEOF | |
4486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4487 | _ACEOF | |
ce2cded5 | 4488 | |
7357c5b6 | 4489 | fi |
ce2cded5 | 4490 | |
7357c5b6 | 4491 | done |
ce2cded5 L |
4492 | |
4493 | ||
4494 | ||
7357c5b6 AM |
4495 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4496 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4497 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4498 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4500 | fi | |
4501 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4502 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
4503 | else | |
4504 | # Is the header compilable? | |
4505 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4506 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
4507 | cat >conftest.$ac_ext <<_ACEOF | |
4508 | /* confdefs.h. */ | |
4509 | _ACEOF | |
4510 | cat confdefs.h >>conftest.$ac_ext | |
4511 | cat >>conftest.$ac_ext <<_ACEOF | |
4512 | /* end confdefs.h. */ | |
4513 | $ac_includes_default | |
4514 | #include <minix/config.h> | |
4515 | _ACEOF | |
4516 | rm -f conftest.$ac_objext | |
4517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4518 | (eval $ac_compile) 2>conftest.er1 | |
4519 | ac_status=$? | |
4520 | grep -v '^ *+' conftest.er1 >conftest.err | |
4521 | rm -f conftest.er1 | |
4522 | cat conftest.err >&5 | |
4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4524 | (exit $ac_status); } && | |
4525 | { ac_try='test -z "$ac_c_werror_flag" | |
4526 | || test ! -s conftest.err' | |
4527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4528 | (eval $ac_try) 2>&5 | |
4529 | ac_status=$? | |
4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4531 | (exit $ac_status); }; } && | |
4532 | { ac_try='test -s conftest.$ac_objext' | |
4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4534 | (eval $ac_try) 2>&5 | |
4535 | ac_status=$? | |
4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4537 | (exit $ac_status); }; }; then | |
4538 | ac_header_compiler=yes | |
4539 | else | |
4540 | echo "$as_me: failed program was:" >&5 | |
4541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ce2cded5 | 4542 | |
7357c5b6 AM |
4543 | ac_header_compiler=no |
4544 | fi | |
4545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4546 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4547 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
ce2cded5 | 4548 | |
7357c5b6 AM |
4549 | # Is the header present? |
4550 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4551 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
4552 | cat >conftest.$ac_ext <<_ACEOF | |
4553 | /* confdefs.h. */ | |
4554 | _ACEOF | |
4555 | cat confdefs.h >>conftest.$ac_ext | |
4556 | cat >>conftest.$ac_ext <<_ACEOF | |
4557 | /* end confdefs.h. */ | |
4558 | #include <minix/config.h> | |
4559 | _ACEOF | |
4560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4562 | ac_status=$? | |
4563 | grep -v '^ *+' conftest.er1 >conftest.err | |
4564 | rm -f conftest.er1 | |
4565 | cat conftest.err >&5 | |
4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4567 | (exit $ac_status); } >/dev/null; then | |
4568 | if test -s conftest.err; then | |
4569 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4570 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4571 | else | |
4572 | ac_cpp_err= | |
4573 | fi | |
4574 | else | |
4575 | ac_cpp_err=yes | |
4576 | fi | |
4577 | if test -z "$ac_cpp_err"; then | |
4578 | ac_header_preproc=yes | |
4579 | else | |
4580 | echo "$as_me: failed program was:" >&5 | |
4581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ce2cded5 | 4582 | |
7357c5b6 AM |
4583 | ac_header_preproc=no |
4584 | fi | |
4585 | rm -f conftest.err conftest.$ac_ext | |
4586 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4587 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
ce2cded5 | 4588 | |
7357c5b6 AM |
4589 | # So? What about this header? |
4590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4591 | yes:no: ) | |
4592 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4593 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4594 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4595 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4596 | ac_header_preproc=yes | |
4597 | ;; | |
4598 | no:yes:* ) | |
4599 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4600 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4601 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4602 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4603 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4604 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4605 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4606 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4607 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4608 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4609 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4610 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4611 | ( | |
4612 | cat <<\_ASBOX | |
4613 | ## ------------------------------------------ ## | |
4614 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4615 | ## ------------------------------------------ ## | |
4616 | _ASBOX | |
4617 | ) | | |
4618 | sed "s/^/$as_me: WARNING: /" >&2 | |
4619 | ;; | |
4620 | esac | |
4621 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4622 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4623 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
13b2be9c | 4624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d6d788bd | 4625 | else |
7357c5b6 | 4626 | ac_cv_header_minix_config_h=$ac_header_preproc |
ac48eca1 | 4627 | fi |
7357c5b6 AM |
4628 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4629 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
ac48eca1 | 4630 | |
7357c5b6 AM |
4631 | fi |
4632 | if test $ac_cv_header_minix_config_h = yes; then | |
4633 | MINIX=yes | |
4634 | else | |
4635 | MINIX= | |
4636 | fi | |
d7040cdb SE |
4637 | |
4638 | ||
7357c5b6 | 4639 | if test "$MINIX" = yes; then |
d7040cdb | 4640 | |
7357c5b6 AM |
4641 | cat >>confdefs.h <<\_ACEOF |
4642 | #define _POSIX_SOURCE 1 | |
4643 | _ACEOF | |
d7040cdb SE |
4644 | |
4645 | ||
7357c5b6 AM |
4646 | cat >>confdefs.h <<\_ACEOF |
4647 | #define _POSIX_1_SOURCE 2 | |
4648 | _ACEOF | |
d7040cdb SE |
4649 | |
4650 | ||
7357c5b6 AM |
4651 | cat >>confdefs.h <<\_ACEOF |
4652 | #define _MINIX 1 | |
4653 | _ACEOF | |
d7040cdb | 4654 | |
7357c5b6 | 4655 | fi |
d7040cdb SE |
4656 | |
4657 | ||
13b2be9c | 4658 | |
7357c5b6 AM |
4659 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4660 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
4661 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
ce2cded5 | 4662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 4663 | else |
7357c5b6 AM |
4664 | cat >conftest.$ac_ext <<_ACEOF |
4665 | /* confdefs.h. */ | |
4666 | _ACEOF | |
4667 | cat confdefs.h >>conftest.$ac_ext | |
4668 | cat >>conftest.$ac_ext <<_ACEOF | |
4669 | /* end confdefs.h. */ | |
ac48eca1 | 4670 | |
7357c5b6 AM |
4671 | # define __EXTENSIONS__ 1 |
4672 | $ac_includes_default | |
4673 | int | |
4674 | main () | |
4675 | { | |
13b2be9c | 4676 | |
7357c5b6 AM |
4677 | ; |
4678 | return 0; | |
4679 | } | |
4680 | _ACEOF | |
4681 | rm -f conftest.$ac_objext | |
4682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4683 | (eval $ac_compile) 2>conftest.er1 | |
4684 | ac_status=$? | |
4685 | grep -v '^ *+' conftest.er1 >conftest.err | |
4686 | rm -f conftest.er1 | |
4687 | cat conftest.err >&5 | |
4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4689 | (exit $ac_status); } && | |
4690 | { ac_try='test -z "$ac_c_werror_flag" | |
4691 | || test ! -s conftest.err' | |
4692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4693 | (eval $ac_try) 2>&5 | |
4694 | ac_status=$? | |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4696 | (exit $ac_status); }; } && | |
4697 | { ac_try='test -s conftest.$ac_objext' | |
4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4699 | (eval $ac_try) 2>&5 | |
4700 | ac_status=$? | |
4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4702 | (exit $ac_status); }; }; then | |
4703 | ac_cv_safe_to_define___extensions__=yes | |
d6d788bd | 4704 | else |
7357c5b6 AM |
4705 | echo "$as_me: failed program was:" >&5 |
4706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4707 | ||
4708 | ac_cv_safe_to_define___extensions__=no | |
d6d788bd | 4709 | fi |
7357c5b6 AM |
4710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4711 | fi | |
4712 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4713 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
4714 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4715 | cat >>confdefs.h <<\_ACEOF | |
4716 | #define __EXTENSIONS__ 1 | |
4717 | _ACEOF | |
d6d788bd | 4718 | |
7357c5b6 AM |
4719 | cat >>confdefs.h <<\_ACEOF |
4720 | #define _ALL_SOURCE 1 | |
4721 | _ACEOF | |
d6d788bd | 4722 | |
7357c5b6 AM |
4723 | cat >>confdefs.h <<\_ACEOF |
4724 | #define _GNU_SOURCE 1 | |
4725 | _ACEOF | |
252b5132 | 4726 | |
7357c5b6 AM |
4727 | cat >>confdefs.h <<\_ACEOF |
4728 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4729 | _ACEOF | |
252b5132 | 4730 | |
7357c5b6 AM |
4731 | cat >>confdefs.h <<\_ACEOF |
4732 | #define _TANDEM_SOURCE 1 | |
4733 | _ACEOF | |
d6d788bd | 4734 | |
a74801ba | 4735 | |
d053aef8 JK |
4736 | # Check whether --enable-largefile or --disable-largefile was given. |
4737 | if test "${enable_largefile+set}" = set; then | |
4738 | enableval="$enable_largefile" | |
4739 | ||
4740 | fi; | |
4741 | if test "$enable_largefile" != no; then | |
4742 | ||
4743 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4744 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4745 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4747 | else | |
4748 | ac_cv_sys_largefile_CC=no | |
4749 | if test "$GCC" != yes; then | |
4750 | ac_save_CC=$CC | |
4751 | while :; do | |
4752 | # IRIX 6.2 and later do not support large files by default, | |
4753 | # so use the C compiler's -n32 option if that helps. | |
4754 | cat >conftest.$ac_ext <<_ACEOF | |
4755 | /* confdefs.h. */ | |
4756 | _ACEOF | |
4757 | cat confdefs.h >>conftest.$ac_ext | |
4758 | cat >>conftest.$ac_ext <<_ACEOF | |
4759 | /* end confdefs.h. */ | |
4760 | #include <sys/types.h> | |
4761 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4762 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4763 | since some C++ compilers masquerading as C compilers | |
4764 | incorrectly reject 9223372036854775807. */ | |
4765 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4766 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4767 | && LARGE_OFF_T % 2147483647 == 1) | |
4768 | ? 1 : -1]; | |
4769 | int | |
4770 | main () | |
4771 | { | |
4772 | ||
4773 | ; | |
4774 | return 0; | |
4775 | } | |
4776 | _ACEOF | |
4777 | rm -f conftest.$ac_objext | |
4778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4779 | (eval $ac_compile) 2>conftest.er1 | |
4780 | ac_status=$? | |
4781 | grep -v '^ *+' conftest.er1 >conftest.err | |
4782 | rm -f conftest.er1 | |
4783 | cat conftest.err >&5 | |
4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4785 | (exit $ac_status); } && | |
4786 | { ac_try='test -z "$ac_c_werror_flag" | |
4787 | || test ! -s conftest.err' | |
4788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4789 | (eval $ac_try) 2>&5 | |
4790 | ac_status=$? | |
4791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4792 | (exit $ac_status); }; } && | |
4793 | { ac_try='test -s conftest.$ac_objext' | |
4794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4795 | (eval $ac_try) 2>&5 | |
4796 | ac_status=$? | |
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4798 | (exit $ac_status); }; }; then | |
4799 | break | |
4800 | else | |
4801 | echo "$as_me: failed program was:" >&5 | |
4802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4803 | ||
4804 | fi | |
4805 | rm -f conftest.err conftest.$ac_objext | |
4806 | CC="$CC -n32" | |
4807 | rm -f conftest.$ac_objext | |
4808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4809 | (eval $ac_compile) 2>conftest.er1 | |
4810 | ac_status=$? | |
4811 | grep -v '^ *+' conftest.er1 >conftest.err | |
4812 | rm -f conftest.er1 | |
4813 | cat conftest.err >&5 | |
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4815 | (exit $ac_status); } && | |
4816 | { ac_try='test -z "$ac_c_werror_flag" | |
4817 | || test ! -s conftest.err' | |
4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4819 | (eval $ac_try) 2>&5 | |
4820 | ac_status=$? | |
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4822 | (exit $ac_status); }; } && | |
4823 | { ac_try='test -s conftest.$ac_objext' | |
4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4825 | (eval $ac_try) 2>&5 | |
4826 | ac_status=$? | |
4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4828 | (exit $ac_status); }; }; then | |
4829 | ac_cv_sys_largefile_CC=' -n32'; break | |
4830 | else | |
4831 | echo "$as_me: failed program was:" >&5 | |
4832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4833 | ||
4834 | fi | |
4835 | rm -f conftest.err conftest.$ac_objext | |
4836 | break | |
4837 | done | |
4838 | CC=$ac_save_CC | |
4839 | rm -f conftest.$ac_ext | |
4840 | fi | |
4841 | fi | |
4842 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4843 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4844 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4845 | CC=$CC$ac_cv_sys_largefile_CC | |
4846 | fi | |
4847 | ||
4848 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4849 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4850 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4852 | else | |
4853 | while :; do | |
4854 | ac_cv_sys_file_offset_bits=no | |
4855 | cat >conftest.$ac_ext <<_ACEOF | |
4856 | /* confdefs.h. */ | |
4857 | _ACEOF | |
4858 | cat confdefs.h >>conftest.$ac_ext | |
4859 | cat >>conftest.$ac_ext <<_ACEOF | |
4860 | /* end confdefs.h. */ | |
4861 | #include <sys/types.h> | |
4862 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4863 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4864 | since some C++ compilers masquerading as C compilers | |
4865 | incorrectly reject 9223372036854775807. */ | |
4866 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4867 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4868 | && LARGE_OFF_T % 2147483647 == 1) | |
4869 | ? 1 : -1]; | |
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | ||
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
4878 | rm -f conftest.$ac_objext | |
4879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4880 | (eval $ac_compile) 2>conftest.er1 | |
4881 | ac_status=$? | |
4882 | grep -v '^ *+' conftest.er1 >conftest.err | |
4883 | rm -f conftest.er1 | |
4884 | cat conftest.err >&5 | |
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4886 | (exit $ac_status); } && | |
4887 | { ac_try='test -z "$ac_c_werror_flag" | |
4888 | || test ! -s conftest.err' | |
4889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4890 | (eval $ac_try) 2>&5 | |
4891 | ac_status=$? | |
4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4893 | (exit $ac_status); }; } && | |
4894 | { ac_try='test -s conftest.$ac_objext' | |
4895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4896 | (eval $ac_try) 2>&5 | |
4897 | ac_status=$? | |
4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4899 | (exit $ac_status); }; }; then | |
4900 | break | |
4901 | else | |
4902 | echo "$as_me: failed program was:" >&5 | |
4903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4904 | ||
4905 | fi | |
4906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4907 | cat >conftest.$ac_ext <<_ACEOF | |
4908 | /* confdefs.h. */ | |
4909 | _ACEOF | |
4910 | cat confdefs.h >>conftest.$ac_ext | |
4911 | cat >>conftest.$ac_ext <<_ACEOF | |
4912 | /* end confdefs.h. */ | |
4913 | #define _FILE_OFFSET_BITS 64 | |
4914 | #include <sys/types.h> | |
4915 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4916 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4917 | since some C++ compilers masquerading as C compilers | |
4918 | incorrectly reject 9223372036854775807. */ | |
4919 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4920 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4921 | && LARGE_OFF_T % 2147483647 == 1) | |
4922 | ? 1 : -1]; | |
4923 | int | |
4924 | main () | |
4925 | { | |
4926 | ||
4927 | ; | |
4928 | return 0; | |
4929 | } | |
4930 | _ACEOF | |
4931 | rm -f conftest.$ac_objext | |
4932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4933 | (eval $ac_compile) 2>conftest.er1 | |
4934 | ac_status=$? | |
4935 | grep -v '^ *+' conftest.er1 >conftest.err | |
4936 | rm -f conftest.er1 | |
4937 | cat conftest.err >&5 | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); } && | |
4940 | { ac_try='test -z "$ac_c_werror_flag" | |
4941 | || test ! -s conftest.err' | |
4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4943 | (eval $ac_try) 2>&5 | |
4944 | ac_status=$? | |
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4946 | (exit $ac_status); }; } && | |
4947 | { ac_try='test -s conftest.$ac_objext' | |
4948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4949 | (eval $ac_try) 2>&5 | |
4950 | ac_status=$? | |
4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4952 | (exit $ac_status); }; }; then | |
4953 | ac_cv_sys_file_offset_bits=64; break | |
4954 | else | |
4955 | echo "$as_me: failed program was:" >&5 | |
4956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4957 | ||
4958 | fi | |
4959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4960 | break | |
4961 | done | |
4962 | fi | |
4963 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4964 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4965 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4966 | ||
4967 | cat >>confdefs.h <<_ACEOF | |
4968 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4969 | _ACEOF | |
4970 | ||
4971 | fi | |
4972 | rm -f conftest* | |
4973 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4974 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4975 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4977 | else | |
4978 | while :; do | |
4979 | ac_cv_sys_large_files=no | |
4980 | cat >conftest.$ac_ext <<_ACEOF | |
4981 | /* confdefs.h. */ | |
4982 | _ACEOF | |
4983 | cat confdefs.h >>conftest.$ac_ext | |
4984 | cat >>conftest.$ac_ext <<_ACEOF | |
4985 | /* end confdefs.h. */ | |
4986 | #include <sys/types.h> | |
4987 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4988 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4989 | since some C++ compilers masquerading as C compilers | |
4990 | incorrectly reject 9223372036854775807. */ | |
4991 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4992 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4993 | && LARGE_OFF_T % 2147483647 == 1) | |
4994 | ? 1 : -1]; | |
4995 | int | |
4996 | main () | |
4997 | { | |
4998 | ||
4999 | ; | |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
5003 | rm -f conftest.$ac_objext | |
5004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5005 | (eval $ac_compile) 2>conftest.er1 | |
5006 | ac_status=$? | |
5007 | grep -v '^ *+' conftest.er1 >conftest.err | |
5008 | rm -f conftest.er1 | |
5009 | cat conftest.err >&5 | |
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5011 | (exit $ac_status); } && | |
5012 | { ac_try='test -z "$ac_c_werror_flag" | |
5013 | || test ! -s conftest.err' | |
5014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5015 | (eval $ac_try) 2>&5 | |
5016 | ac_status=$? | |
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5018 | (exit $ac_status); }; } && | |
5019 | { ac_try='test -s conftest.$ac_objext' | |
5020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5021 | (eval $ac_try) 2>&5 | |
5022 | ac_status=$? | |
5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5024 | (exit $ac_status); }; }; then | |
5025 | break | |
5026 | else | |
5027 | echo "$as_me: failed program was:" >&5 | |
5028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5029 | ||
5030 | fi | |
5031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5032 | cat >conftest.$ac_ext <<_ACEOF | |
5033 | /* confdefs.h. */ | |
5034 | _ACEOF | |
5035 | cat confdefs.h >>conftest.$ac_ext | |
5036 | cat >>conftest.$ac_ext <<_ACEOF | |
5037 | /* end confdefs.h. */ | |
5038 | #define _LARGE_FILES 1 | |
5039 | #include <sys/types.h> | |
5040 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5041 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5042 | since some C++ compilers masquerading as C compilers | |
5043 | incorrectly reject 9223372036854775807. */ | |
5044 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5045 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5046 | && LARGE_OFF_T % 2147483647 == 1) | |
5047 | ? 1 : -1]; | |
5048 | int | |
5049 | main () | |
5050 | { | |
5051 | ||
5052 | ; | |
5053 | return 0; | |
5054 | } | |
5055 | _ACEOF | |
5056 | rm -f conftest.$ac_objext | |
5057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5058 | (eval $ac_compile) 2>conftest.er1 | |
5059 | ac_status=$? | |
5060 | grep -v '^ *+' conftest.er1 >conftest.err | |
5061 | rm -f conftest.er1 | |
5062 | cat conftest.err >&5 | |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5064 | (exit $ac_status); } && | |
5065 | { ac_try='test -z "$ac_c_werror_flag" | |
5066 | || test ! -s conftest.err' | |
5067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5068 | (eval $ac_try) 2>&5 | |
5069 | ac_status=$? | |
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5071 | (exit $ac_status); }; } && | |
5072 | { ac_try='test -s conftest.$ac_objext' | |
5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5074 | (eval $ac_try) 2>&5 | |
5075 | ac_status=$? | |
5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5077 | (exit $ac_status); }; }; then | |
5078 | ac_cv_sys_large_files=1; break | |
5079 | else | |
5080 | echo "$as_me: failed program was:" >&5 | |
5081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5082 | ||
5083 | fi | |
5084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5085 | break | |
5086 | done | |
5087 | fi | |
5088 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5089 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5090 | if test "$ac_cv_sys_large_files" != no; then | |
5091 | ||
5092 | cat >>confdefs.h <<_ACEOF | |
5093 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5094 | _ACEOF | |
5095 | ||
5096 | fi | |
5097 | rm -f conftest* | |
5098 | fi | |
5099 | ||
a74801ba | 5100 | |
13b2be9c | 5101 | |
252b5132 | 5102 | |
7357c5b6 AM |
5103 | macro_version='2.1a' |
5104 | macro_revision='1.2435' | |
4867be41 | 5105 | |
ce2cded5 L |
5106 | |
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | ||
5113 | ||
5114 | ||
5115 | ||
5116 | ||
7357c5b6 AM |
5117 | ltmain="$ac_aux_dir/ltmain.sh" |
5118 | ||
5119 | # Set options | |
5120 | ||
5121 | enable_dlopen=no | |
5122 | ||
5123 | ||
5124 | enable_win32_dll=no | |
5125 | ||
5126 | ||
5127 | # Check whether --enable-shared or --disable-shared was given. | |
5128 | if test "${enable_shared+set}" = set; then | |
5129 | enableval="$enable_shared" | |
5130 | p=${PACKAGE-default} | |
5131 | case $enableval in | |
5132 | yes) enable_shared=yes ;; | |
5133 | no) enable_shared=no ;; | |
5134 | *) | |
5135 | enable_shared=no | |
5136 | # Look at the argument we got. We use all the common list separators. | |
5137 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5138 | for pkg in $enableval; do | |
5139 | IFS="$lt_save_ifs" | |
5140 | if test "X$pkg" = "X$p"; then | |
5141 | enable_shared=yes | |
5142 | fi | |
5143 | done | |
5144 | IFS="$lt_save_ifs" | |
5145 | ;; | |
5146 | esac | |
5147 | else | |
5148 | enable_shared=yes | |
5149 | fi; | |
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
5157 | ||
5158 | # Check whether --enable-static or --disable-static was given. | |
5159 | if test "${enable_static+set}" = set; then | |
5160 | enableval="$enable_static" | |
5161 | p=${PACKAGE-default} | |
5162 | case $enableval in | |
5163 | yes) enable_static=yes ;; | |
5164 | no) enable_static=no ;; | |
5165 | *) | |
5166 | enable_static=no | |
5167 | # Look at the argument we got. We use all the common list separators. | |
5168 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5169 | for pkg in $enableval; do | |
5170 | IFS="$lt_save_ifs" | |
5171 | if test "X$pkg" = "X$p"; then | |
5172 | enable_static=yes | |
5173 | fi | |
5174 | done | |
5175 | IFS="$lt_save_ifs" | |
5176 | ;; | |
5177 | esac | |
5178 | else | |
5179 | enable_static=yes | |
5180 | fi; | |
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | # Check whether --with-pic or --without-pic was given. | |
5191 | if test "${with_pic+set}" = set; then | |
5192 | withval="$with_pic" | |
5193 | pic_mode="$withval" | |
5194 | else | |
5195 | pic_mode=default | |
5196 | fi; | |
5197 | ||
5198 | test -z "$pic_mode" && pic_mode=default | |
5199 | ||
5200 | ||
5201 | ||
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
5207 | if test "${enable_fast_install+set}" = set; then | |
5208 | enableval="$enable_fast_install" | |
5209 | p=${PACKAGE-default} | |
5210 | case $enableval in | |
5211 | yes) enable_fast_install=yes ;; | |
5212 | no) enable_fast_install=no ;; | |
5213 | *) | |
5214 | enable_fast_install=no | |
5215 | # Look at the argument we got. We use all the common list separators. | |
5216 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5217 | for pkg in $enableval; do | |
5218 | IFS="$lt_save_ifs" | |
5219 | if test "X$pkg" = "X$p"; then | |
5220 | enable_fast_install=yes | |
5221 | fi | |
5222 | done | |
5223 | IFS="$lt_save_ifs" | |
5224 | ;; | |
5225 | esac | |
5226 | else | |
5227 | enable_fast_install=yes | |
5228 | fi; | |
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5238 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
5239 | if test "${lt_cv_path_SED+set}" = set; then | |
5240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5241 | else | |
5242 | # Loop through the user's path and test for sed and gsed. | |
5243 | # Then use that list of sed's as ones to test for truncation. | |
5244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5245 | for as_dir in $PATH | |
5246 | do | |
5247 | IFS=$as_save_IFS | |
5248 | test -z "$as_dir" && as_dir=. | |
5249 | for lt_ac_prog in sed gsed; do | |
5250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5251 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
5252 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5253 | fi | |
5254 | done | |
5255 | done | |
5256 | done | |
5257 | IFS=$as_save_IFS | |
5258 | lt_ac_max=0 | |
5259 | lt_ac_count=0 | |
5260 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5261 | # along with /bin/sed that truncates output. | |
5262 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5263 | test ! -f $lt_ac_sed && continue | |
5264 | cat /dev/null > conftest.in | |
5265 | lt_ac_count=0 | |
5266 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5267 | # Check for GNU sed and select it if it is found. | |
5268 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5269 | lt_cv_path_SED=$lt_ac_sed | |
5270 | break | |
5271 | fi | |
5272 | while true; do | |
5273 | cat conftest.in conftest.in >conftest.tmp | |
5274 | mv conftest.tmp conftest.in | |
5275 | cp conftest.in conftest.nl | |
5276 | echo >>conftest.nl | |
5277 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5278 | cmp -s conftest.out conftest.nl || break | |
5279 | # 10000 chars as input seems more than enough | |
5280 | test $lt_ac_count -gt 10 && break | |
5281 | lt_ac_count=`expr $lt_ac_count + 1` | |
5282 | if test $lt_ac_count -gt $lt_ac_max; then | |
5283 | lt_ac_max=$lt_ac_count | |
5284 | lt_cv_path_SED=$lt_ac_sed | |
5285 | fi | |
5286 | done | |
5287 | done | |
5288 | ||
5289 | fi | |
5290 | ||
5291 | SED=$lt_cv_path_SED | |
5292 | ||
5293 | echo "$as_me:$LINENO: result: $SED" >&5 | |
5294 | echo "${ECHO_T}$SED" >&6 | |
5295 | ||
5296 | test -z "$SED" && SED=sed | |
5297 | Xsed="$SED -e 1s/^X//" | |
5298 | ||
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | ||
5306 | ||
5307 | ||
5308 | ||
5309 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
5310 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
5311 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
5312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5313 | else | |
5314 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
5315 | then ac_cv_prog_fgrep='grep -F' | |
5316 | else ac_cv_prog_fgrep='fgrep' | |
5317 | fi | |
5318 | fi | |
5319 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
5320 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
5321 | FGREP=$ac_cv_prog_fgrep | |
5322 | ||
5323 | ||
5324 | test -z "$GREP" && GREP=grep | |
5325 | ||
5326 | ||
5327 | ||
5328 | ||
5329 | ||
5330 | ||
5331 | ||
5332 | ||
5333 | ||
5334 | ||
5335 | ||
5336 | ||
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5345 | if test "${with_gnu_ld+set}" = set; then | |
5346 | withval="$with_gnu_ld" | |
5347 | test "$withval" = no || with_gnu_ld=yes | |
5348 | else | |
5349 | with_gnu_ld=no | |
ce2cded5 L |
5350 | fi; |
5351 | ac_prog=ld | |
5352 | if test "$GCC" = yes; then | |
5353 | # Check if gcc -print-prog-name=ld gives a path. | |
5354 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5355 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
5356 | case $host in | |
5357 | *-*-mingw*) | |
5358 | # gcc leaves a trailing carriage return which upsets mingw | |
5359 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5360 | *) | |
5361 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5362 | esac | |
5363 | case $ac_prog in | |
5364 | # Accept absolute paths. | |
5365 | [\\/]* | ?:[\\/]*) | |
5366 | re_direlt='/[^/][^/]*/\.\./' | |
5367 | # Canonicalize the pathname of ld | |
5368 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5369 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5370 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5371 | done | |
5372 | test -z "$LD" && LD="$ac_prog" | |
5373 | ;; | |
5374 | "") | |
5375 | # If it fails, then pretend we aren't using GCC. | |
5376 | ac_prog=ld | |
5377 | ;; | |
5378 | *) | |
5379 | # If it is relative, then search for the first ld in PATH. | |
5380 | with_gnu_ld=unknown | |
5381 | ;; | |
5382 | esac | |
5383 | elif test "$with_gnu_ld" = yes; then | |
5384 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5385 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5388 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5389 | fi | |
5390 | if test "${lt_cv_path_LD+set}" = set; then | |
5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5392 | else | |
5393 | if test -z "$LD"; then | |
5394 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5395 | for ac_dir in $PATH; do | |
5396 | IFS="$lt_save_ifs" | |
5397 | test -z "$ac_dir" && ac_dir=. | |
5398 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5399 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5400 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5401 | # but apparently some variants of GNU ld only accept -v. | |
5402 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5403 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5404 | *GNU* | *'with BFD'*) | |
5405 | test "$with_gnu_ld" != no && break | |
5406 | ;; | |
5407 | *) | |
5408 | test "$with_gnu_ld" != yes && break | |
5409 | ;; | |
5410 | esac | |
5411 | fi | |
5412 | done | |
5413 | IFS="$lt_save_ifs" | |
5414 | else | |
5415 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5416 | fi | |
5417 | fi | |
5418 | ||
5419 | LD="$lt_cv_path_LD" | |
5420 | if test -n "$LD"; then | |
5421 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5422 | echo "${ECHO_T}$LD" >&6 | |
5423 | else | |
5424 | echo "$as_me:$LINENO: result: no" >&5 | |
5425 | echo "${ECHO_T}no" >&6 | |
5426 | fi | |
5427 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5428 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5429 | { (exit 1); exit 1; }; } | |
5430 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5431 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5432 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5434 | else | |
5435 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5436 | case `$LD -v 2>&1 </dev/null` in | |
5437 | *GNU* | *'with BFD'*) | |
5438 | lt_cv_prog_gnu_ld=yes | |
5439 | ;; | |
5440 | *) | |
5441 | lt_cv_prog_gnu_ld=no | |
5442 | ;; | |
5443 | esac | |
5444 | fi | |
5445 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
5446 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
5447 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5459 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
5460 | if test "${lt_cv_path_NM+set}" = set; then | |
5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5462 | else | |
5463 | if test -n "$NM"; then | |
5464 | # Let the user override the test. | |
5465 | lt_cv_path_NM="$NM" | |
5466 | else | |
5467 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5468 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5469 | lt_nm_to_check="$lt_nm_to_check nm" | |
5470 | fi | |
5471 | for lt_tmp_nm in $lt_nm_to_check; do | |
5472 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5473 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5474 | IFS="$lt_save_ifs" | |
5475 | test -z "$ac_dir" && ac_dir=. | |
5476 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5477 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5478 | # Check to see if the nm accepts a BSD-compat flag. | |
5479 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5480 | # nm: unknown option "B" ignored | |
5481 | # Tru64's nm complains that /dev/null is an invalid object file | |
5482 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5483 | */dev/null* | *'Invalid file or object type'*) | |
5484 | lt_cv_path_NM="$tmp_nm -B" | |
5485 | break | |
5486 | ;; | |
5487 | *) | |
5488 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5489 | */dev/null*) | |
5490 | lt_cv_path_NM="$tmp_nm -p" | |
5491 | break | |
5492 | ;; | |
5493 | *) | |
5494 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5495 | continue # so that we can try to find one that supports BSD flags | |
5496 | ;; | |
5497 | esac | |
5498 | ;; | |
5499 | esac | |
5500 | fi | |
5501 | done | |
5502 | IFS="$lt_save_ifs" | |
5503 | done | |
5504 | : ${lt_cv_path_NM=no} | |
5505 | fi | |
5506 | fi | |
5507 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
5508 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
5509 | if test "$lt_cv_path_NM" != "no"; then | |
5510 | NM="$lt_cv_path_NM" | |
5511 | else | |
5512 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5513 | if test -n "$ac_tool_prefix"; then | |
5514 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5515 | do | |
5516 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5517 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
d7040cdb SE |
5518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 5520 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
d7040cdb SE |
5521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5522 | else | |
ce2cded5 L |
5523 | if test -n "$DUMPBIN"; then |
5524 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5525 | else |
5526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5527 | for as_dir in $PATH | |
5528 | do | |
5529 | IFS=$as_save_IFS | |
5530 | test -z "$as_dir" && as_dir=. | |
5531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 5533 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
d7040cdb SE |
5534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5535 | break 2 | |
d70c5fc7 | 5536 | fi |
d7040cdb SE |
5537 | done |
5538 | done | |
d70c5fc7 | 5539 | |
d7040cdb SE |
5540 | fi |
5541 | fi | |
ce2cded5 L |
5542 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5543 | if test -n "$DUMPBIN"; then | |
5544 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
5545 | echo "${ECHO_T}$DUMPBIN" >&6 | |
bedf545c | 5546 | else |
d7040cdb SE |
5547 | echo "$as_me:$LINENO: result: no" >&5 |
5548 | echo "${ECHO_T}no" >&6 | |
5549 | fi | |
13b2be9c | 5550 | |
ce2cded5 L |
5551 | test -n "$DUMPBIN" && break |
5552 | done | |
5553 | fi | |
5554 | if test -z "$DUMPBIN"; then | |
5555 | ac_ct_DUMPBIN=$DUMPBIN | |
5556 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5557 | do | |
5558 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5559 | set dummy $ac_prog; ac_word=$2 | |
5560 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5562 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
5563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 5564 | else |
ce2cded5 L |
5565 | if test -n "$ac_ct_DUMPBIN"; then |
5566 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5567 | else | |
5568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5569 | for as_dir in $PATH | |
5570 | do | |
5571 | IFS=$as_save_IFS | |
5572 | test -z "$as_dir" && as_dir=. | |
5573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5575 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5577 | break 2 | |
5578 | fi | |
5579 | done | |
5580 | done | |
5581 | ||
5582 | fi | |
5583 | fi | |
5584 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5585 | if test -n "$ac_ct_DUMPBIN"; then | |
5586 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
5587 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
5588 | else | |
5589 | echo "$as_me:$LINENO: result: no" >&5 | |
5590 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
5591 | fi |
5592 | ||
ce2cded5 L |
5593 | test -n "$ac_ct_DUMPBIN" && break |
5594 | done | |
5595 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
13b2be9c | 5596 | |
ce2cded5 L |
5597 | DUMPBIN=$ac_ct_DUMPBIN |
5598 | fi | |
13b2be9c | 5599 | |
bedf545c | 5600 | |
ce2cded5 L |
5601 | if test "$DUMPBIN" != ":"; then |
5602 | NM="$DUMPBIN" | |
5603 | fi | |
5604 | fi | |
5605 | test -z "$NM" && NM=nm | |
6840198f | 5606 | |
13b2be9c | 5607 | |
ac48eca1 | 5608 | |
d7040cdb | 5609 | |
ce2cded5 L |
5610 | |
5611 | ||
5612 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
5613 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
5614 | if test "${lt_cv_nm_interface+set}" = set; then | |
5615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5616 | else | |
5617 | lt_cv_nm_interface="BSD nm" | |
5618 | echo "int some_variable = 0;" > conftest.$ac_ext | |
da594c4a | 5619 | (eval echo "\"\$as_me:5254: $ac_compile\"" >&5) |
ce2cded5 L |
5620 | (eval "$ac_compile" 2>conftest.err) |
5621 | cat conftest.err >&5 | |
da594c4a | 5622 | (eval echo "\"\$as_me:5257: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5623 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5624 | cat conftest.err >&5 | |
da594c4a | 5625 | (eval echo "\"\$as_me:5260: output\"" >&5) |
ce2cded5 L |
5626 | cat conftest.out >&5 |
5627 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5628 | lt_cv_nm_interface="MS dumpbin" | |
5629 | fi | |
5630 | rm -f conftest* | |
5631 | fi | |
5632 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
5633 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
5634 | ||
5635 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
5636 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
5637 | LN_S=$as_ln_s | |
5638 | if test "$LN_S" = "ln -s"; then | |
5639 | echo "$as_me:$LINENO: result: yes" >&5 | |
5640 | echo "${ECHO_T}yes" >&6 | |
5641 | else | |
5642 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5643 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5644 | fi | |
5645 | ||
5646 | # find the maximum length of command line arguments | |
5647 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5648 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5649 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5651 | else | |
5652 | i=0 | |
5653 | teststring="ABCD" | |
5654 | ||
5655 | case $build_os in | |
5656 | msdosdjgpp*) | |
5657 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5658 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5659 | # during glob expansion). Even if it were fixed, the result of this | |
5660 | # check would be larger than it should be. | |
5661 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5662 | ;; | |
5663 | ||
5664 | gnu*) | |
5665 | # Under GNU Hurd, this test is not required because there is | |
5666 | # no limit to the length of command line arguments. | |
5667 | # Libtool will interpret -1 as no limit whatsoever | |
5668 | lt_cv_sys_max_cmd_len=-1; | |
5669 | ;; | |
5670 | ||
5671 | cygwin* | mingw*) | |
5672 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5673 | # about 5 minutes as the teststring grows exponentially. | |
5674 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5675 | # you end up with a "frozen" computer, even though with patience | |
5676 | # the test eventually succeeds (with a max line length of 256k). | |
5677 | # Instead, let's just punt: use the minimum linelength reported by | |
5678 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5679 | lt_cv_sys_max_cmd_len=8192; | |
5680 | ;; | |
5681 | ||
5682 | amigaos*) | |
5683 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5684 | # So we just punt and use a minimum line length of 8192. | |
5685 | lt_cv_sys_max_cmd_len=8192; | |
5686 | ;; | |
5687 | ||
5688 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5689 | # This has been around since 386BSD, at least. Likely further. | |
5690 | if test -x /sbin/sysctl; then | |
5691 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5692 | elif test -x /usr/sbin/sysctl; then | |
5693 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5694 | else | |
5695 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5696 | fi | |
5697 | # And add a safety zone | |
5698 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5699 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5700 | ;; | |
5701 | ||
5702 | interix*) | |
5703 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5704 | lt_cv_sys_max_cmd_len=196608 | |
5705 | ;; | |
5706 | ||
5707 | osf*) | |
5708 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5709 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5710 | # nice to cause kernel panics so lets avoid the loop below. | |
5711 | # First set a reasonable default. | |
5712 | lt_cv_sys_max_cmd_len=16384 | |
5713 | # | |
5714 | if test -x /sbin/sysconfig; then | |
5715 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5716 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5717 | esac | |
5718 | fi | |
5719 | ;; | |
5720 | sco3.2v5*) | |
5721 | lt_cv_sys_max_cmd_len=102400 | |
5722 | ;; | |
5723 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5724 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5725 | if test -n "$kargmax"; then | |
5726 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5727 | else | |
5728 | lt_cv_sys_max_cmd_len=32768 | |
5729 | fi | |
d7040cdb SE |
5730 | ;; |
5731 | *) | |
ce2cded5 L |
5732 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
5733 | if test -n $lt_cv_sys_max_cmd_len; then | |
5734 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5735 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5736 | else | |
5737 | # Make teststring a little bigger before we do anything with it. | |
5738 | # a 1K string should be a reasonable start. | |
5739 | for i in 1 2 3 4 5 6 7 8 ; do | |
5740 | teststring=$teststring$teststring | |
5741 | done | |
5742 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5743 | # If test is not a shell built-in, we'll probably end up computing a | |
5744 | # maximum length that is only half of the actual maximum length, but | |
5745 | # we can't tell. | |
5746 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5747 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5748 | test $i != 17 # 1/2 MB should be enough | |
5749 | do | |
5750 | i=`expr $i + 1` | |
5751 | teststring=$teststring$teststring | |
5752 | done | |
5753 | # Only check the string length outside the loop. | |
5754 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5755 | teststring= | |
5756 | # Add a significant safety factor because C++ compilers can tack on | |
5757 | # massive amounts of additional arguments before passing them to the | |
5758 | # linker. It appears as though 1/2 is a usable value. | |
5759 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5760 | fi | |
d7040cdb SE |
5761 | ;; |
5762 | esac | |
252b5132 | 5763 | |
ce2cded5 | 5764 | fi |
d6d788bd | 5765 | |
ce2cded5 L |
5766 | if test -n $lt_cv_sys_max_cmd_len ; then |
5767 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5768 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5769 | else | |
5770 | echo "$as_me:$LINENO: result: none" >&5 | |
5771 | echo "${ECHO_T}none" >&6 | |
5772 | fi | |
5773 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5774 | |
d6d788bd | 5775 | |
13b2be9c | 5776 | |
13b2be9c | 5777 | |
bedf545c | 5778 | |
252b5132 | 5779 | |
bedf545c | 5780 | |
ce2cded5 L |
5781 | : ${CP="cp -f"} |
5782 | : ${MV="mv -f"} | |
5783 | : ${RM="rm -f"} | |
d6d788bd | 5784 | |
ce2cded5 L |
5785 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
5786 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
5787 | # Try some XSI features | |
5788 | xsi_shell=no | |
5789 | ( _lt_dummy="a/b/c" | |
5790 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5791 | = c,a/b,, ) >/dev/null 2>&1 \ | |
5792 | && xsi_shell=yes | |
5793 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5794 | echo "${ECHO_T}$xsi_shell" >&6 | |
bedf545c | 5795 | |
bedf545c | 5796 | |
ce2cded5 L |
5797 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
5798 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
5799 | lt_shell_append=no | |
5800 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5801 | >/dev/null 2>&1 \ | |
5802 | && lt_shell_append=yes | |
5803 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5804 | echo "${ECHO_T}$lt_shell_append" >&6 | |
252b5132 | 5805 | |
d6d788bd | 5806 | |
ce2cded5 L |
5807 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5808 | lt_unset=unset | |
5809 | else | |
5810 | lt_unset=false | |
5811 | fi | |
13b2be9c DJ |
5812 | |
5813 | ||
5814 | ||
5815 | ||
d6d788bd | 5816 | |
ce2cded5 L |
5817 | # test EBCDIC or ASCII |
5818 | case `echo X|tr X '\101'` in | |
5819 | A) # ASCII based system | |
5820 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5821 | lt_SP2NL='tr \040 \012' | |
5822 | lt_NL2SP='tr \015\012 \040\040' | |
5823 | ;; | |
5824 | *) # EBCDIC based system | |
5825 | lt_SP2NL='tr \100 \n' | |
5826 | lt_NL2SP='tr \r\n \100\100' | |
5827 | ;; | |
5828 | esac | |
c43a438d | 5829 | |
c43a438d | 5830 | |
c43a438d | 5831 | |
252b5132 | 5832 | |
ad22bfe8 | 5833 | |
1ad12f97 | 5834 | |
1ad12f97 | 5835 | |
9e9b66a9 | 5836 | |
1ad12f97 | 5837 | |
ce2cded5 L |
5838 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5839 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
5840 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5842 | else | |
5843 | lt_cv_ld_reload_flag='-r' | |
5844 | fi | |
5845 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5846 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
5847 | reload_flag=$lt_cv_ld_reload_flag | |
5848 | case $reload_flag in | |
5849 | "" | " "*) ;; | |
5850 | *) reload_flag=" $reload_flag" ;; | |
5851 | esac | |
5852 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5853 | case $host_os in | |
5854 | darwin*) | |
5855 | if test "$GCC" = yes; then | |
5856 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5857 | else | |
5858 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5859 | fi | |
5860 | ;; | |
5861 | esac | |
a541e3ce | 5862 | |
9e9b66a9 | 5863 | |
a2d91340 | 5864 | |
d6d788bd | 5865 | |
9e9b66a9 AM |
5866 | |
5867 | ||
5868 | ||
d6d788bd | 5869 | |
252b5132 | 5870 | |
13b2be9c | 5871 | |
ce2cded5 L |
5872 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5873 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
5874 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
d7040cdb SE |
5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5876 | else | |
ce2cded5 L |
5877 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5878 | lt_cv_file_magic_test_file= | |
5879 | lt_cv_deplibs_check_method='unknown' | |
5880 | # Need to set the preceding variable on all platforms that support | |
5881 | # interlibrary dependencies. | |
5882 | # 'none' -- dependencies not supported. | |
5883 | # `unknown' -- same as none, but documents that we really don't know. | |
5884 | # 'pass_all' -- all dependencies passed with no checks. | |
5885 | # 'test_compile' -- check by making test program. | |
5886 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5887 | # which responds to the $file_magic_cmd with a given extended regex. | |
5888 | # If you have `file' or equivalent on your system and you're not sure | |
5889 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 5890 | |
ce2cded5 | 5891 | case $host_os in |
50e7d84b | 5892 | aix[4-9]*) |
ce2cded5 L |
5893 | lt_cv_deplibs_check_method=pass_all |
5894 | ;; | |
d7040cdb | 5895 | |
ce2cded5 L |
5896 | beos*) |
5897 | lt_cv_deplibs_check_method=pass_all | |
5898 | ;; | |
d7040cdb | 5899 | |
ce2cded5 L |
5900 | bsdi[45]*) |
5901 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5902 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5903 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5904 | ;; | |
d7040cdb | 5905 | |
ce2cded5 L |
5906 | cygwin*) |
5907 | # func_win32_libid is a shell function defined in ltmain.sh | |
5908 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5909 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5910 | ;; |
ce2cded5 L |
5911 | |
5912 | mingw* | pw32*) | |
5913 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5914 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5915 | # unless we find 'file', for example because we are cross-compiling. | |
5916 | if ( file / ) >/dev/null 2>&1; then | |
5917 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5918 | lt_cv_file_magic_cmd='func_win32_libid' | |
5919 | else | |
5920 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5921 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5922 | fi | |
d7040cdb | 5923 | ;; |
ce2cded5 L |
5924 | |
5925 | darwin* | rhapsody*) | |
5926 | lt_cv_deplibs_check_method=pass_all | |
5927 | ;; | |
5928 | ||
5929 | freebsd* | dragonfly*) | |
5930 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5931 | case $host_cpu in | |
5932 | i*86 ) | |
5933 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5934 | # Let's accept both of them until this is cleared up. | |
5935 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5936 | lt_cv_file_magic_cmd=/usr/bin/file | |
5937 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5938 | ;; | |
5939 | esac | |
5940 | else | |
5941 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5942 | fi |
5943 | ;; | |
ce2cded5 L |
5944 | |
5945 | gnu*) | |
5946 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5947 | ;; |
ce2cded5 L |
5948 | |
5949 | hpux10.20* | hpux11*) | |
5950 | lt_cv_file_magic_cmd=/usr/bin/file | |
5951 | case $host_cpu in | |
5952 | ia64*) | |
5953 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5954 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5955 | ;; | |
5956 | hppa*64*) | |
5957 | 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]' | |
5958 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5959 | ;; | |
5960 | *) | |
5961 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5962 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5963 | ;; | |
5964 | esac | |
d7040cdb | 5965 | ;; |
ce2cded5 L |
5966 | |
5967 | interix[3-9]*) | |
5968 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5969 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 5970 | ;; |
ce2cded5 L |
5971 | |
5972 | irix5* | irix6* | nonstopux*) | |
5973 | case $LD in | |
5974 | *-32|*"-32 ") libmagic=32-bit;; | |
5975 | *-n32|*"-n32 ") libmagic=N32;; | |
5976 | *-64|*"-64 ") libmagic=64-bit;; | |
5977 | *) libmagic=never-match;; | |
5978 | esac | |
5979 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5980 | ;; |
ce2cded5 L |
5981 | |
5982 | # This must be Linux ELF. | |
5983 | linux* | k*bsd*-gnu) | |
5984 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5985 | ;; |
ce2cded5 L |
5986 | |
5987 | netbsd*) | |
5988 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5989 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5990 | else | |
5991 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5992 | fi | |
d7040cdb | 5993 | ;; |
ce2cded5 L |
5994 | |
5995 | newos6*) | |
5996 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5997 | lt_cv_file_magic_cmd=/usr/bin/file | |
5998 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 5999 | ;; |
76a27922 | 6000 | |
ce2cded5 L |
6001 | *nto* | *qnx*) |
6002 | lt_cv_deplibs_check_method=pass_all | |
6003 | ;; | |
d6d788bd | 6004 | |
ce2cded5 L |
6005 | openbsd*) |
6006 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6007 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6008 | else | |
6009 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6010 | fi | |
6011 | ;; | |
44f2f9d2 | 6012 | |
ce2cded5 L |
6013 | osf3* | osf4* | osf5*) |
6014 | lt_cv_deplibs_check_method=pass_all | |
6015 | ;; | |
44f2f9d2 | 6016 | |
ce2cded5 L |
6017 | rdos*) |
6018 | lt_cv_deplibs_check_method=pass_all | |
6019 | ;; | |
6020 | ||
6021 | solaris*) | |
6022 | lt_cv_deplibs_check_method=pass_all | |
6023 | ;; | |
6024 | ||
6025 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6026 | lt_cv_deplibs_check_method=pass_all | |
6027 | ;; | |
6028 | ||
6029 | sysv4 | sysv4.3*) | |
6030 | case $host_vendor in | |
6031 | motorola) | |
6032 | 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]' | |
6033 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6034 | ;; | |
6035 | ncr) | |
6036 | lt_cv_deplibs_check_method=pass_all | |
6037 | ;; | |
6038 | sequent) | |
6039 | lt_cv_file_magic_cmd='/bin/file' | |
6040 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6041 | ;; | |
6042 | sni) | |
6043 | lt_cv_file_magic_cmd='/bin/file' | |
6044 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6045 | lt_cv_file_magic_test_file=/lib/libc.so | |
6046 | ;; | |
6047 | siemens) | |
6048 | lt_cv_deplibs_check_method=pass_all | |
6049 | ;; | |
6050 | pc) | |
6051 | lt_cv_deplibs_check_method=pass_all | |
6052 | ;; | |
6053 | esac | |
6054 | ;; | |
6055 | ||
6056 | tpf*) | |
6057 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6058 | ;; |
6059 | esac | |
6060 | ||
ce2cded5 L |
6061 | fi |
6062 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
6063 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
6064 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6065 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6066 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6067 | |
d7040cdb | 6068 | |
d7040cdb | 6069 | |
d7040cdb | 6070 | |
d7040cdb | 6071 | |
44f2f9d2 | 6072 | |
d7040cdb | 6073 | |
d7040cdb | 6074 | |
d7040cdb | 6075 | |
d7040cdb | 6076 | |
44f2f9d2 | 6077 | |
d7040cdb | 6078 | |
ce2cded5 L |
6079 | if test -n "$ac_tool_prefix"; then |
6080 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6081 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6084 | if test "${ac_cv_prog_AR+set}" = set; then | |
6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6086 | else | |
6087 | if test -n "$AR"; then | |
6088 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6089 | else | |
6090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6091 | for as_dir in $PATH | |
6092 | do | |
6093 | IFS=$as_save_IFS | |
6094 | test -z "$as_dir" && as_dir=. | |
6095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6097 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6099 | break 2 | |
d7040cdb SE |
6100 | fi |
6101 | done | |
ce2cded5 | 6102 | done |
44f2f9d2 | 6103 | |
ce2cded5 L |
6104 | fi |
6105 | fi | |
6106 | AR=$ac_cv_prog_AR | |
6107 | if test -n "$AR"; then | |
6108 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6109 | echo "${ECHO_T}$AR" >&6 | |
6110 | else | |
6111 | echo "$as_me:$LINENO: result: no" >&5 | |
6112 | echo "${ECHO_T}no" >&6 | |
44f2f9d2 | 6113 | fi |
d7040cdb | 6114 | |
d7040cdb | 6115 | fi |
ce2cded5 L |
6116 | if test -z "$ac_cv_prog_AR"; then |
6117 | ac_ct_AR=$AR | |
6118 | # Extract the first word of "ar", so it can be a program name with args. | |
6119 | set dummy ar; ac_word=$2 | |
6120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6122 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44f2f9d2 | 6124 | else |
ce2cded5 L |
6125 | if test -n "$ac_ct_AR"; then |
6126 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6127 | else | |
6128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6129 | for as_dir in $PATH | |
6130 | do | |
6131 | IFS=$as_save_IFS | |
6132 | test -z "$as_dir" && as_dir=. | |
6133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6135 | ac_cv_prog_ac_ct_AR="ar" | |
6136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6137 | break 2 | |
6138 | fi | |
6139 | done | |
6140 | done | |
6141 | ||
6142 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
6143 | fi | |
6144 | fi | |
6145 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6146 | if test -n "$ac_ct_AR"; then | |
6147 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6148 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6149 | else | |
6150 | echo "$as_me:$LINENO: result: no" >&5 | |
6151 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 6152 | fi |
44f2f9d2 | 6153 | |
ce2cded5 L |
6154 | AR=$ac_ct_AR |
6155 | else | |
6156 | AR="$ac_cv_prog_AR" | |
6157 | fi | |
d7040cdb | 6158 | |
ce2cded5 L |
6159 | test -z "$AR" && AR=ar |
6160 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6161 | |
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | ||
6167 | ||
6168 | ||
6169 | ||
6170 | ||
6171 | ||
ce2cded5 L |
6172 | if test -n "$ac_tool_prefix"; then |
6173 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6174 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6175 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6177 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6179 | else | |
6180 | if test -n "$STRIP"; then | |
6181 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6182 | else | |
6183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6184 | for as_dir in $PATH | |
6185 | do | |
6186 | IFS=$as_save_IFS | |
6187 | test -z "$as_dir" && as_dir=. | |
6188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6190 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6192 | break 2 | |
6193 | fi | |
6194 | done | |
6195 | done | |
d7040cdb | 6196 | |
ce2cded5 L |
6197 | fi |
6198 | fi | |
6199 | STRIP=$ac_cv_prog_STRIP | |
6200 | if test -n "$STRIP"; then | |
6201 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6202 | echo "${ECHO_T}$STRIP" >&6 | |
6203 | else | |
6204 | echo "$as_me:$LINENO: result: no" >&5 | |
6205 | echo "${ECHO_T}no" >&6 | |
6206 | fi | |
d7040cdb | 6207 | |
ce2cded5 L |
6208 | fi |
6209 | if test -z "$ac_cv_prog_STRIP"; then | |
6210 | ac_ct_STRIP=$STRIP | |
6211 | # Extract the first word of "strip", so it can be a program name with args. | |
6212 | set dummy strip; ac_word=$2 | |
6213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6215 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6217 | else | |
6218 | if test -n "$ac_ct_STRIP"; then | |
6219 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6220 | else | |
6221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6222 | for as_dir in $PATH | |
6223 | do | |
6224 | IFS=$as_save_IFS | |
6225 | test -z "$as_dir" && as_dir=. | |
6226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6228 | ac_cv_prog_ac_ct_STRIP="strip" | |
6229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6230 | break 2 | |
6231 | fi | |
6232 | done | |
6233 | done | |
d7040cdb | 6234 | |
ce2cded5 L |
6235 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6236 | fi | |
6237 | fi | |
6238 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6239 | if test -n "$ac_ct_STRIP"; then | |
6240 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6241 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6242 | else | |
6243 | echo "$as_me:$LINENO: result: no" >&5 | |
6244 | echo "${ECHO_T}no" >&6 | |
6245 | fi | |
d7040cdb | 6246 | |
ce2cded5 L |
6247 | STRIP=$ac_ct_STRIP |
6248 | else | |
6249 | STRIP="$ac_cv_prog_STRIP" | |
6250 | fi | |
d7040cdb | 6251 | |
ce2cded5 | 6252 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6253 | |
d7040cdb | 6254 | |
d7040cdb | 6255 | |
d7040cdb | 6256 | |
d7040cdb | 6257 | |
d7040cdb | 6258 | |
ce2cded5 L |
6259 | if test -n "$ac_tool_prefix"; then |
6260 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6261 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6264 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44f2f9d2 | 6266 | else |
ce2cded5 L |
6267 | if test -n "$RANLIB"; then |
6268 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6269 | else | |
6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6271 | for as_dir in $PATH | |
6272 | do | |
6273 | IFS=$as_save_IFS | |
6274 | test -z "$as_dir" && as_dir=. | |
6275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6277 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6279 | break 2 | |
6280 | fi | |
6281 | done | |
6282 | done | |
44f2f9d2 | 6283 | |
d7040cdb | 6284 | fi |
44f2f9d2 | 6285 | fi |
ce2cded5 L |
6286 | RANLIB=$ac_cv_prog_RANLIB |
6287 | if test -n "$RANLIB"; then | |
6288 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6289 | echo "${ECHO_T}$RANLIB" >&6 | |
6290 | else | |
6291 | echo "$as_me:$LINENO: result: no" >&5 | |
6292 | echo "${ECHO_T}no" >&6 | |
6293 | fi | |
d7040cdb | 6294 | |
d7040cdb | 6295 | fi |
ce2cded5 L |
6296 | if test -z "$ac_cv_prog_RANLIB"; then |
6297 | ac_ct_RANLIB=$RANLIB | |
6298 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6299 | set dummy ranlib; ac_word=$2 | |
6300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6302 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
d7040cdb | 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44f2f9d2 | 6304 | else |
ce2cded5 L |
6305 | if test -n "$ac_ct_RANLIB"; then |
6306 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6307 | else | |
6308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6309 | for as_dir in $PATH | |
d7040cdb | 6310 | do |
ce2cded5 L |
6311 | IFS=$as_save_IFS |
6312 | test -z "$as_dir" && as_dir=. | |
6313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6315 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6317 | break 2 | |
d7040cdb | 6318 | fi |
ce2cded5 L |
6319 | done |
6320 | done | |
6321 | ||
6322 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
d7040cdb | 6323 | fi |
ce2cded5 L |
6324 | fi |
6325 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6326 | if test -n "$ac_ct_RANLIB"; then | |
6327 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6328 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
d7040cdb | 6329 | else |
ce2cded5 L |
6330 | echo "$as_me:$LINENO: result: no" >&5 |
6331 | echo "${ECHO_T}no" >&6 | |
44f2f9d2 | 6332 | fi |
44f2f9d2 | 6333 | |
ce2cded5 | 6334 | RANLIB=$ac_ct_RANLIB |
d7040cdb | 6335 | else |
ce2cded5 | 6336 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6337 | fi |
252b5132 | 6338 | |
ce2cded5 | 6339 | test -z "$RANLIB" && RANLIB=: |
252b5132 | 6340 | |
252b5132 | 6341 | |
ae57792d | 6342 | |
252b5132 | 6343 | |
13b2be9c | 6344 | |
14ee9f48 | 6345 | |
ce2cded5 L |
6346 | # Determine commands to create old-style static archives. |
6347 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6348 | old_postinstall_cmds='chmod 644 $oldlib' | |
6349 | old_postuninstall_cmds= | |
14ee9f48 | 6350 | |
ce2cded5 L |
6351 | if test -n "$RANLIB"; then |
6352 | case $host_os in | |
6353 | openbsd*) | |
6354 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6355 | ;; | |
6356 | *) | |
6357 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6358 | ;; | |
6359 | esac | |
6360 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6361 | fi |
14ee9f48 | 6362 | |
f8fc3443 | 6363 | |
f8fc3443 | 6364 | |
252b5132 | 6365 | |
85fbca6a | 6366 | |
85fbca6a | 6367 | |
13b2be9c | 6368 | |
13b2be9c | 6369 | |
d7040cdb | 6370 | |
d7040cdb SE |
6371 | |
6372 | ||
6373 | ||
252b5132 | 6374 | |
93fbbb04 | 6375 | |
93fbbb04 | 6376 | |
d70c5fc7 | 6377 | |
e0001a05 | 6378 | |
252b5132 | 6379 | |
252b5132 | 6380 | |
252b5132 | 6381 | |
252b5132 | 6382 | |
252b5132 | 6383 | |
3bcbcc3d | 6384 | |
252b5132 | 6385 | |
252b5132 | 6386 | |
252b5132 | 6387 | |
15886821 | 6388 | |
252b5132 | 6389 | |
252b5132 | 6390 | |
13b2be9c DJ |
6391 | |
6392 | ||
252b5132 | 6393 | |
252b5132 | 6394 | |
d6d788bd | 6395 | |
ce2cded5 L |
6396 | # If no C compiler was specified, use CC. |
6397 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6398 | |
ce2cded5 L |
6399 | # If no C compiler flags were specified, use CFLAGS. |
6400 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6401 | |
ce2cded5 L |
6402 | # Allow CC to be a program name with arguments. |
6403 | compiler=$CC | |
252b5132 | 6404 | |
252b5132 | 6405 | |
ce2cded5 L |
6406 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6407 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6408 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
6409 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6411 | else | |
252b5132 | 6412 | |
ce2cded5 L |
6413 | # These are sane defaults that work on at least a few old systems. |
6414 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6415 | |
ce2cded5 L |
6416 | # Character class describing NM global symbol codes. |
6417 | symcode='[BCDEGRST]' | |
252b5132 | 6418 | |
ce2cded5 L |
6419 | # Regexp to match symbols that can be accessed directly from C. |
6420 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6421 | |
ce2cded5 L |
6422 | # Define system-specific variables. |
6423 | case $host_os in | |
6424 | aix*) | |
6425 | symcode='[BCDT]' | |
6426 | ;; | |
6427 | cygwin* | mingw* | pw32*) | |
6428 | symcode='[ABCDGISTW]' | |
6429 | ;; | |
6430 | hpux*) | |
6431 | if test "$host_cpu" = ia64; then | |
6432 | symcode='[ABCDEGRST]' | |
6433 | fi | |
6434 | ;; | |
6435 | irix* | nonstopux*) | |
6436 | symcode='[BCDEGRST]' | |
6437 | ;; | |
6438 | osf*) | |
6439 | symcode='[BCDEGQRST]' | |
6440 | ;; | |
6441 | solaris*) | |
6442 | symcode='[BDRT]' | |
6443 | ;; | |
6444 | sco3.2v5*) | |
6445 | symcode='[DT]' | |
6446 | ;; | |
6447 | sysv4.2uw2*) | |
6448 | symcode='[DT]' | |
6449 | ;; | |
6450 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6451 | symcode='[ABDT]' | |
6452 | ;; | |
6453 | sysv4) | |
6454 | symcode='[DFNSTU]' | |
6455 | ;; | |
6456 | esac | |
6457 | ||
6458 | # If we're using GNU nm, then use its standard symbol codes. | |
6459 | case `$NM -V 2>&1` in | |
6460 | *GNU* | *'with BFD'*) | |
6461 | symcode='[ABCDGIRSTW]' ;; | |
6462 | esac | |
252b5132 | 6463 | |
ce2cded5 L |
6464 | # Transform an extracted symbol line into a proper C declaration. |
6465 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6466 | # so use this general approach. | |
6467 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6468 | |
ce2cded5 | 6469 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6470 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
d7040cdb | 6471 | |
7357c5b6 AM |
6472 | # Handle CRLF in mingw tool chain |
6473 | opt_cr= | |
6474 | case $build_os in | |
6475 | mingw*) | |
6476 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6477 | ;; | |
6478 | esac | |
d7040cdb | 6479 | |
7357c5b6 AM |
6480 | # Try without a prefix underscore, then with it. |
6481 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6482 | |
7357c5b6 AM |
6483 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6484 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6485 | |
7357c5b6 AM |
6486 | # Write the raw and C identifiers. |
6487 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6488 | # Fake it for dumpbin and say T for any non-static function | |
6489 | # and D for any global variable. | |
6490 | # Also find C++ and __fastcall symbols from MSVC++, | |
6491 | # which start with @ or ?. | |
6492 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6493 | " {last_section=section; section=\$ 3};"\ | |
6494 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6495 | " \$ 0!~/External *\|/{next};"\ | |
6496 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6497 | " {if(hide[section]) next};"\ | |
6498 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6499 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6500 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6501 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6502 | " ' prfx=^$ac_symprfx" | |
6503 | else | |
6504 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6505 | fi | |
d7040cdb | 6506 | |
7357c5b6 AM |
6507 | # Check to see that the pipe works correctly. |
6508 | pipe_works=no | |
d7040cdb | 6509 | |
7357c5b6 AM |
6510 | rm -f conftest* |
6511 | cat > conftest.$ac_ext <<_LT_EOF | |
6512 | #ifdef __cplusplus | |
6513 | extern "C" { | |
6514 | #endif | |
6515 | char nm_test_var; | |
6516 | void nm_test_func(void); | |
6517 | void nm_test_func(void){} | |
6518 | #ifdef __cplusplus | |
ce2cded5 | 6519 | } |
7357c5b6 AM |
6520 | #endif |
6521 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6522 | _LT_EOF | |
6523 | ||
6524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6525 | (eval $ac_compile) 2>&5 | |
ce2cded5 L |
6526 | ac_status=$? |
6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6528 | (exit $ac_status); }; then |
6529 | # Now try to grab the symbols. | |
6530 | nlist=conftest.nm | |
6531 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6532 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
ce2cded5 L |
6533 | ac_status=$? |
6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6535 | (exit $ac_status); } && test -s "$nlist"; then |
6536 | # Try sorting and uniquifying the output. | |
6537 | if sort "$nlist" | uniq > "$nlist"T; then | |
6538 | mv -f "$nlist"T "$nlist" | |
6539 | else | |
6540 | rm -f "$nlist"T | |
6541 | fi | |
13b2be9c | 6542 | |
7357c5b6 AM |
6543 | # Make sure that we snagged all the symbols we need. |
6544 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6545 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6546 | cat <<_LT_EOF > conftest.$ac_ext | |
6547 | #ifdef __cplusplus | |
6548 | extern "C" { | |
6549 | #endif | |
13b2be9c | 6550 | |
7357c5b6 AM |
6551 | _LT_EOF |
6552 | # Now generate the symbol file. | |
6553 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6554 | |
7357c5b6 | 6555 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6556 | |
7357c5b6 AM |
6557 | /* The mapping between symbol names and symbols. */ |
6558 | const struct { | |
6559 | const char *name; | |
6560 | void *address; | |
6561 | } | |
6562 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6563 | { | |
6564 | { "@PROGRAM@", (void *) 0 }, | |
6565 | _LT_EOF | |
6566 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6567 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6568 | {0, (void *) 0} | |
6569 | }; | |
d7040cdb | 6570 | |
7357c5b6 AM |
6571 | /* This works around a problem in FreeBSD linker */ |
6572 | #ifdef FREEBSD_WORKAROUND | |
6573 | static const void *lt_preloaded_setup() { | |
6574 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6575 | } | |
ce2cded5 | 6576 | #endif |
d7040cdb | 6577 | |
7357c5b6 | 6578 | #ifdef __cplusplus |
ce2cded5 | 6579 | } |
7357c5b6 AM |
6580 | #endif |
6581 | _LT_EOF | |
6582 | # Now try linking the two files. | |
6583 | mv conftest.$ac_objext conftstm.$ac_objext | |
6584 | lt_save_LIBS="$LIBS" | |
6585 | lt_save_CFLAGS="$CFLAGS" | |
6586 | LIBS="conftstm.$ac_objext" | |
6587 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ce2cded5 L |
6589 | (eval $ac_link) 2>&5 |
6590 | ac_status=$? | |
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6592 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6593 | pipe_works=yes | |
6594 | fi | |
6595 | LIBS="$lt_save_LIBS" | |
6596 | CFLAGS="$lt_save_CFLAGS" | |
6597 | else | |
6598 | echo "cannot find nm_test_func in $nlist" >&5 | |
6599 | fi | |
6600 | else | |
6601 | echo "cannot find nm_test_var in $nlist" >&5 | |
6602 | fi | |
6603 | else | |
6604 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6605 | fi | |
6606 | else | |
6607 | echo "$progname: failed program was:" >&5 | |
6608 | cat conftest.$ac_ext >&5 | |
6609 | fi | |
6610 | rm -f conftest* conftst* | |
6611 | ||
6612 | # Do not use the global_symbol_pipe unless it works. | |
6613 | if test "$pipe_works" = yes; then | |
6614 | break | |
6615 | else | |
6616 | lt_cv_sys_global_symbol_pipe= | |
6617 | fi | |
6618 | done | |
d7040cdb | 6619 | |
ce2cded5 | 6620 | fi |
7357c5b6 AM |
6621 | |
6622 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6623 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6624 | fi |
7357c5b6 AM |
6625 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6626 | echo "$as_me:$LINENO: result: failed" >&5 | |
6627 | echo "${ECHO_T}failed" >&6 | |
6628 | else | |
6629 | echo "$as_me:$LINENO: result: ok" >&5 | |
6630 | echo "${ECHO_T}ok" >&6 | |
ce2cded5 | 6631 | fi |
d7040cdb | 6632 | |
d7040cdb | 6633 | |
d7040cdb | 6634 | |
d7040cdb | 6635 | |
d7040cdb | 6636 | |
d7040cdb | 6637 | |
d7040cdb | 6638 | |
d7040cdb | 6639 | |
d7040cdb | 6640 | |
d7040cdb | 6641 | |
d7040cdb | 6642 | |
d7040cdb | 6643 | |
7357c5b6 AM |
6644 | |
6645 | ||
6646 | ||
6647 | ||
6648 | ||
6649 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6650 | if test "${enable_libtool_lock+set}" = set; then | |
6651 | enableval="$enable_libtool_lock" | |
6652 | ||
6653 | fi; | |
6654 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6655 | ||
6656 | # Some flags need to be propagated to the compiler or linker for good | |
6657 | # libtool support. | |
6658 | case $host in | |
6659 | ia64-*-hpux*) | |
6660 | # Find out which ABI we are using. | |
6661 | echo 'int i;' > conftest.$ac_ext | |
6662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6663 | (eval $ac_compile) 2>&5 | |
6664 | ac_status=$? | |
6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6666 | (exit $ac_status); }; then | |
6667 | case `/usr/bin/file conftest.$ac_objext` in | |
6668 | *ELF-32*) | |
6669 | HPUX_IA64_MODE="32" | |
6670 | ;; | |
6671 | *ELF-64*) | |
6672 | HPUX_IA64_MODE="64" | |
6673 | ;; | |
6674 | esac | |
6675 | fi | |
6676 | rm -rf conftest* | |
6677 | ;; | |
6678 | *-*-irix6*) | |
6679 | # Find out which ABI we are using. | |
da594c4a | 6680 | echo '#line 6315 "configure"' > conftest.$ac_ext |
7357c5b6 AM |
6681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6682 | (eval $ac_compile) 2>&5 | |
6683 | ac_status=$? | |
6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6685 | (exit $ac_status); }; then | |
6686 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6687 | case `/usr/bin/file conftest.$ac_objext` in | |
6688 | *32-bit*) | |
6689 | LD="${LD-ld} -melf32bsmip" | |
6690 | ;; | |
6691 | *N32*) | |
6692 | LD="${LD-ld} -melf32bmipn32" | |
6693 | ;; | |
6694 | *64-bit*) | |
6695 | LD="${LD-ld} -melf64bmip" | |
6696 | ;; | |
6697 | esac | |
6698 | else | |
6699 | case `/usr/bin/file conftest.$ac_objext` in | |
6700 | *32-bit*) | |
6701 | LD="${LD-ld} -32" | |
6702 | ;; | |
6703 | *N32*) | |
6704 | LD="${LD-ld} -n32" | |
6705 | ;; | |
6706 | *64-bit*) | |
6707 | LD="${LD-ld} -64" | |
6708 | ;; | |
6709 | esac | |
6710 | fi | |
6711 | fi | |
6712 | rm -rf conftest* | |
6713 | ;; | |
6714 | ||
6715 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6716 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6717 | # Find out which ABI we are using. | |
6718 | echo 'int i;' > conftest.$ac_ext | |
6719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6720 | (eval $ac_compile) 2>&5 | |
6721 | ac_status=$? | |
6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6723 | (exit $ac_status); }; then | |
6724 | case `/usr/bin/file conftest.o` in | |
6725 | *32-bit*) | |
6726 | case $host in | |
6727 | x86_64-*kfreebsd*-gnu) | |
6728 | LD="${LD-ld} -m elf_i386_fbsd" | |
6729 | ;; | |
6730 | x86_64-*linux*) | |
6731 | LD="${LD-ld} -m elf_i386" | |
6732 | ;; | |
6733 | ppc64-*linux*|powerpc64-*linux*) | |
6734 | LD="${LD-ld} -m elf32ppclinux" | |
6735 | ;; | |
6736 | s390x-*linux*) | |
6737 | LD="${LD-ld} -m elf_s390" | |
6738 | ;; | |
6739 | sparc64-*linux*) | |
6740 | LD="${LD-ld} -m elf32_sparc" | |
6741 | ;; | |
6742 | esac | |
6743 | ;; | |
6744 | *64-bit*) | |
6745 | case $host in | |
6746 | x86_64-*kfreebsd*-gnu) | |
6747 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6748 | ;; | |
6749 | x86_64-*linux*) | |
6750 | LD="${LD-ld} -m elf_x86_64" | |
6751 | ;; | |
6752 | ppc*-*linux*|powerpc*-*linux*) | |
6753 | LD="${LD-ld} -m elf64ppc" | |
6754 | ;; | |
6755 | s390*-*linux*|s390*-*tpf*) | |
6756 | LD="${LD-ld} -m elf64_s390" | |
6757 | ;; | |
6758 | sparc*-*linux*) | |
6759 | LD="${LD-ld} -m elf64_sparc" | |
6760 | ;; | |
6761 | esac | |
6762 | ;; | |
6763 | esac | |
6764 | fi | |
6765 | rm -rf conftest* | |
6766 | ;; | |
6767 | ||
6768 | *-*-sco3.2v5*) | |
6769 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6770 | SAVE_CFLAGS="$CFLAGS" | |
6771 | CFLAGS="$CFLAGS -belf" | |
6772 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6773 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
6774 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
ce2cded5 L |
6775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6776 | else | |
7357c5b6 AM |
6777 | ac_ext=c |
6778 | ac_cpp='$CPP $CPPFLAGS' | |
6779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6782 | ||
6783 | cat >conftest.$ac_ext <<_ACEOF | |
ce2cded5 L |
6784 | /* confdefs.h. */ |
6785 | _ACEOF | |
6786 | cat confdefs.h >>conftest.$ac_ext | |
6787 | cat >>conftest.$ac_ext <<_ACEOF | |
6788 | /* end confdefs.h. */ | |
d7040cdb | 6789 | |
7357c5b6 AM |
6790 | int |
6791 | main () | |
6792 | { | |
6793 | ||
6794 | ; | |
6795 | return 0; | |
6796 | } | |
ce2cded5 | 6797 | _ACEOF |
7357c5b6 AM |
6798 | rm -f conftest.$ac_objext conftest$ac_exeext |
6799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6800 | (eval $ac_link) 2>conftest.er1 | |
ce2cded5 L |
6801 | ac_status=$? |
6802 | grep -v '^ *+' conftest.er1 >conftest.err | |
6803 | rm -f conftest.er1 | |
6804 | cat conftest.err >&5 | |
6805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6806 | (exit $ac_status); } && | |
6807 | { ac_try='test -z "$ac_c_werror_flag" | |
6808 | || test ! -s conftest.err' | |
6809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6810 | (eval $ac_try) 2>&5 | |
6811 | ac_status=$? | |
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6813 | (exit $ac_status); }; } && | |
7357c5b6 | 6814 | { ac_try='test -s conftest$ac_exeext' |
ce2cded5 L |
6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6816 | (eval $ac_try) 2>&5 | |
6817 | ac_status=$? | |
6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6819 | (exit $ac_status); }; }; then | |
7357c5b6 | 6820 | lt_cv_cc_needs_belf=yes |
ce2cded5 L |
6821 | else |
6822 | echo "$as_me: failed program was:" >&5 | |
6823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6824 | |
7357c5b6 | 6825 | lt_cv_cc_needs_belf=no |
ce2cded5 | 6826 | fi |
7357c5b6 AM |
6827 | rm -f conftest.err conftest.$ac_objext \ |
6828 | conftest$ac_exeext conftest.$ac_ext | |
6829 | ac_ext=c | |
6830 | ac_cpp='$CPP $CPPFLAGS' | |
6831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6834 | |
ce2cded5 | 6835 | fi |
7357c5b6 AM |
6836 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6837 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
6838 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6839 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6840 | CFLAGS="$SAVE_CFLAGS" | |
6841 | fi | |
6842 | ;; | |
6843 | sparc*-*solaris*) | |
6844 | # Find out which ABI we are using. | |
6845 | echo 'int i;' > conftest.$ac_ext | |
6846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6847 | (eval $ac_compile) 2>&5 | |
6848 | ac_status=$? | |
6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6850 | (exit $ac_status); }; then | |
6851 | case `/usr/bin/file conftest.o` in | |
6852 | *64-bit*) | |
6853 | case $lt_cv_prog_gnu_ld in | |
6854 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6855 | *) LD="${LD-ld} -64" ;; | |
6856 | esac | |
6857 | ;; | |
6858 | esac | |
6859 | fi | |
6860 | rm -rf conftest* | |
6861 | ;; | |
6862 | esac | |
d7040cdb | 6863 | |
7357c5b6 | 6864 | need_locks="$enable_libtool_lock" |
d7040cdb | 6865 | |
d7040cdb | 6866 | |
ce2cded5 L |
6867 | for ac_header in dlfcn.h |
6868 | do | |
6869 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6870 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6871 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6874 | else | |
6875 | cat >conftest.$ac_ext <<_ACEOF | |
6876 | /* confdefs.h. */ | |
6877 | _ACEOF | |
6878 | cat confdefs.h >>conftest.$ac_ext | |
6879 | cat >>conftest.$ac_ext <<_ACEOF | |
6880 | /* end confdefs.h. */ | |
6881 | $ac_includes_default | |
d7040cdb | 6882 | |
ce2cded5 L |
6883 | #include <$ac_header> |
6884 | _ACEOF | |
6885 | rm -f conftest.$ac_objext | |
6886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6887 | (eval $ac_compile) 2>conftest.er1 | |
6888 | ac_status=$? | |
6889 | grep -v '^ *+' conftest.er1 >conftest.err | |
6890 | rm -f conftest.er1 | |
6891 | cat conftest.err >&5 | |
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6893 | (exit $ac_status); } && | |
6894 | { ac_try='test -z "$ac_c_werror_flag" | |
6895 | || test ! -s conftest.err' | |
6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6897 | (eval $ac_try) 2>&5 | |
6898 | ac_status=$? | |
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6900 | (exit $ac_status); }; } && | |
6901 | { ac_try='test -s conftest.$ac_objext' | |
6902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6903 | (eval $ac_try) 2>&5 | |
6904 | ac_status=$? | |
6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6906 | (exit $ac_status); }; }; then | |
6907 | eval "$as_ac_Header=yes" | |
6908 | else | |
6909 | echo "$as_me: failed program was:" >&5 | |
6910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6911 | |
ce2cded5 L |
6912 | eval "$as_ac_Header=no" |
6913 | fi | |
6914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6915 | fi | |
6916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6917 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6919 | cat >>confdefs.h <<_ACEOF | |
6920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6921 | _ACEOF | |
d7040cdb | 6922 | |
ce2cded5 | 6923 | fi |
d7040cdb | 6924 | |
ce2cded5 | 6925 | done |
d7040cdb | 6926 | |
d7040cdb | 6927 | |
d7040cdb | 6928 | |
ce2cded5 L |
6929 | # This can be used to rebuild libtool when needed |
6930 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 6931 | |
ce2cded5 L |
6932 | # Always use our own libtool. |
6933 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 6934 | |
d7040cdb | 6935 | |
d7040cdb | 6936 | |
d7040cdb SE |
6937 | |
6938 | ||
6939 | ||
6940 | ||
6941 | ||
6942 | ||
d7040cdb | 6943 | |
d7040cdb | 6944 | |
ab509236 | 6945 | |
ab509236 | 6946 | |
d7040cdb SE |
6947 | |
6948 | ||
6949 | ||
6950 | ||
6951 | ||
13b2be9c | 6952 | |
13b2be9c | 6953 | |
13b2be9c | 6954 | |
13b2be9c | 6955 | |
d7040cdb SE |
6956 | |
6957 | ||
6958 | ||
ce2cded5 | 6959 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
6960 | |
6961 | ||
d7040cdb | 6962 | |
d7040cdb | 6963 | |
d7040cdb SE |
6964 | |
6965 | ||
6966 | ||
6967 | ||
6968 | ||
6969 | ||
ce2cded5 L |
6970 | |
6971 | ||
6972 | ||
6973 | ||
6974 | if test -n "${ZSH_VERSION+set}" ; then | |
6975 | setopt NO_GLOB_SUBST | |
6976 | fi | |
6977 | ||
6978 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6979 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6980 | if test "${lt_cv_objdir+set}" = set; then | |
d7040cdb SE |
6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6982 | else | |
ce2cded5 L |
6983 | rm -f .libs 2>/dev/null |
6984 | mkdir .libs 2>/dev/null | |
6985 | if test -d .libs; then | |
6986 | lt_cv_objdir=.libs | |
6987 | else | |
6988 | # MS-DOS does not allow filenames that begin with a dot. | |
6989 | lt_cv_objdir=_libs | |
d7040cdb | 6990 | fi |
ce2cded5 L |
6991 | rmdir .libs 2>/dev/null |
6992 | fi | |
6993 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6994 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6995 | objdir=$lt_cv_objdir | |
d7040cdb SE |
6996 | |
6997 | ||
6998 | ||
6999 | ||
d7040cdb | 7000 | |
ce2cded5 L |
7001 | cat >>confdefs.h <<_ACEOF |
7002 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7003 | _ACEOF | |
d7040cdb SE |
7004 | |
7005 | ||
7006 | ||
7007 | ||
7008 | ||
d7040cdb | 7009 | |
d7040cdb | 7010 | |
d7040cdb | 7011 | |
d7040cdb | 7012 | |
d7040cdb | 7013 | |
d7040cdb | 7014 | |
d7040cdb | 7015 | |
d7040cdb | 7016 | |
d7040cdb | 7017 | |
d7040cdb | 7018 | |
d7040cdb | 7019 | |
d7040cdb | 7020 | |
ce2cded5 L |
7021 | case $host_os in |
7022 | aix3*) | |
7023 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7024 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7025 | # vanish in a puff of smoke. | |
7026 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7027 | COLLECT_NAMES= | |
7028 | export COLLECT_NAMES | |
7029 | fi | |
7030 | ;; | |
7031 | esac | |
d7040cdb | 7032 | |
ce2cded5 L |
7033 | # Sed substitution that helps us do robust quoting. It backslashifies |
7034 | # metacharacters that are still active within double-quoted strings. | |
7035 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 7036 | |
ce2cded5 L |
7037 | # Same as above, but do not quote variable references. |
7038 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 7039 | |
ce2cded5 L |
7040 | # Sed substitution to delay expansion of an escaped shell variable in a |
7041 | # double_quote_subst'ed string. | |
7042 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 7043 | |
ce2cded5 L |
7044 | # Sed substitution to delay expansion of an escaped single quote. |
7045 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 7046 | |
ce2cded5 L |
7047 | # Sed substitution to avoid accidental globbing in evaled expressions |
7048 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 7049 | |
ce2cded5 L |
7050 | # Global variables: |
7051 | ofile=libtool | |
7052 | can_build_shared=yes | |
d7040cdb | 7053 | |
ce2cded5 L |
7054 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7055 | # which needs '.lib'). | |
7056 | libext=a | |
d7040cdb | 7057 | |
ce2cded5 | 7058 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7059 | |
ce2cded5 L |
7060 | old_CC="$CC" |
7061 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7062 | |
ce2cded5 L |
7063 | # Set sane defaults for various variables |
7064 | test -z "$CC" && CC=cc | |
7065 | test -z "$LTCC" && LTCC=$CC | |
7066 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7067 | test -z "$LD" && LD=ld | |
7068 | test -z "$ac_objext" && ac_objext=o | |
7069 | ||
7070 | for cc_temp in $compiler""; do | |
7071 | case $cc_temp in | |
7072 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7073 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7074 | \-*) ;; | |
7075 | *) break;; | |
7076 | esac | |
7077 | done | |
7078 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7079 | ||
7080 | ||
7081 | # Only perform the check for file, if the check method requires it | |
7082 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7083 | case $deplibs_check_method in | |
7084 | file_magic*) | |
7085 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7086 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7087 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
7088 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7090 | else | |
7091 | case $MAGIC_CMD in | |
7092 | [\\/*] | ?:[\\/]*) | |
7093 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7094 | ;; | |
7095 | *) | |
7096 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7097 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7098 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7099 | for ac_dir in $ac_dummy; do | |
7100 | IFS="$lt_save_ifs" | |
7101 | test -z "$ac_dir" && ac_dir=. | |
7102 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7103 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7104 | if test -n "$file_magic_test_file"; then | |
7105 | case $deplibs_check_method in | |
7106 | "file_magic "*) | |
7107 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7108 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7109 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7110 | $EGREP "$file_magic_regex" > /dev/null; then | |
7111 | : | |
d7040cdb | 7112 | else |
ce2cded5 | 7113 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7114 | |
ce2cded5 L |
7115 | *** Warning: the command libtool uses to detect shared libraries, |
7116 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7117 | *** The result is that libtool may fail to recognize shared libraries | |
7118 | *** as such. This will affect the creation of libtool libraries that | |
7119 | *** depend on shared libraries, but programs linked with such libtool | |
7120 | *** libraries will work regardless of this problem. Nevertheless, you | |
7121 | *** may want to report the problem to your system manager and/or to | |
7122 | *** bug-libtool@gnu.org | |
d7040cdb | 7123 | |
ce2cded5 L |
7124 | _LT_EOF |
7125 | fi ;; | |
7126 | esac | |
d7040cdb | 7127 | fi |
ce2cded5 | 7128 | break |
d7040cdb | 7129 | fi |
ce2cded5 L |
7130 | done |
7131 | IFS="$lt_save_ifs" | |
7132 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7133 | ;; | |
7134 | esac | |
7135 | fi | |
d7040cdb | 7136 | |
ce2cded5 L |
7137 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7138 | if test -n "$MAGIC_CMD"; then | |
7139 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7140 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7141 | else | |
7142 | echo "$as_me:$LINENO: result: no" >&5 | |
7143 | echo "${ECHO_T}no" >&6 | |
7144 | fi | |
d7040cdb | 7145 | |
d7040cdb | 7146 | |
d7040cdb | 7147 | |
d7040cdb | 7148 | |
d7040cdb | 7149 | |
ce2cded5 L |
7150 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7151 | if test -n "$ac_tool_prefix"; then | |
7152 | echo "$as_me:$LINENO: checking for file" >&5 | |
7153 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
7154 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7156 | else | |
7157 | case $MAGIC_CMD in | |
7158 | [\\/*] | ?:[\\/]*) | |
7159 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7160 | ;; | |
7161 | *) | |
7162 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7163 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7164 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7165 | for ac_dir in $ac_dummy; do | |
7166 | IFS="$lt_save_ifs" | |
7167 | test -z "$ac_dir" && ac_dir=. | |
7168 | if test -f $ac_dir/file; then | |
7169 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7170 | if test -n "$file_magic_test_file"; then | |
7171 | case $deplibs_check_method in | |
7172 | "file_magic "*) | |
7173 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7174 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7175 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7176 | $EGREP "$file_magic_regex" > /dev/null; then | |
7177 | : | |
d7040cdb | 7178 | else |
ce2cded5 L |
7179 | cat <<_LT_EOF 1>&2 |
7180 | ||
7181 | *** Warning: the command libtool uses to detect shared libraries, | |
7182 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7183 | *** The result is that libtool may fail to recognize shared libraries | |
7184 | *** as such. This will affect the creation of libtool libraries that | |
7185 | *** depend on shared libraries, but programs linked with such libtool | |
7186 | *** libraries will work regardless of this problem. Nevertheless, you | |
7187 | *** may want to report the problem to your system manager and/or to | |
7188 | *** bug-libtool@gnu.org | |
7189 | ||
7190 | _LT_EOF | |
7191 | fi ;; | |
d7040cdb | 7192 | esac |
d7040cdb | 7193 | fi |
ce2cded5 L |
7194 | break |
7195 | fi | |
7196 | done | |
7197 | IFS="$lt_save_ifs" | |
7198 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7199 | ;; | |
7200 | esac | |
7201 | fi | |
d7040cdb | 7202 | |
ce2cded5 L |
7203 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7204 | if test -n "$MAGIC_CMD"; then | |
7205 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7206 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7207 | else | |
7208 | echo "$as_me:$LINENO: result: no" >&5 | |
7209 | echo "${ECHO_T}no" >&6 | |
7210 | fi | |
d7040cdb | 7211 | |
d7040cdb | 7212 | |
ce2cded5 L |
7213 | else |
7214 | MAGIC_CMD=: | |
7215 | fi | |
d7040cdb | 7216 | fi |
d7040cdb | 7217 | |
ce2cded5 L |
7218 | fi |
7219 | ;; | |
7220 | esac | |
d7040cdb | 7221 | |
ce2cded5 | 7222 | # Use C for the default configuration in the libtool script |
d7040cdb | 7223 | |
ce2cded5 L |
7224 | lt_save_CC="$CC" |
7225 | ac_ext=c | |
7226 | ac_cpp='$CPP $CPPFLAGS' | |
7227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7230 | |
d7040cdb | 7231 | |
ce2cded5 L |
7232 | # Source file extension for C test sources. |
7233 | ac_ext=c | |
d7040cdb | 7234 | |
ce2cded5 L |
7235 | # Object file extension for compiled C test sources. |
7236 | objext=o | |
7237 | objext=$objext | |
d7040cdb | 7238 | |
ce2cded5 L |
7239 | # Code to be used in simple compile tests |
7240 | lt_simple_compile_test_code="int some_variable = 0;" | |
7241 | ||
7242 | # Code to be used in simple link tests | |
7243 | lt_simple_link_test_code='int main(){return(0);}' | |
7244 | ||
7245 | ||
7246 | ||
7247 | ||
7248 | ||
7249 | ||
7250 | ||
7251 | # If no C compiler was specified, use CC. | |
7252 | LTCC=${LTCC-"$CC"} | |
7253 | ||
7254 | # If no C compiler flags were specified, use CFLAGS. | |
7255 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7256 | ||
7257 | # Allow CC to be a program name with arguments. | |
7258 | compiler=$CC | |
7259 | ||
7260 | # Save the default compiler, since it gets overwritten when the other | |
7261 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7262 | compiler_DEFAULT=$CC | |
7263 | ||
7264 | # save warnings/boilerplate of simple test code | |
7265 | ac_outfile=conftest.$ac_objext | |
7266 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7267 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7268 | _lt_compiler_boilerplate=`cat conftest.err` | |
7269 | $RM conftest* | |
7270 | ||
7271 | ac_outfile=conftest.$ac_objext | |
7272 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7273 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7274 | _lt_linker_boilerplate=`cat conftest.err` | |
7275 | $RM conftest* | |
7276 | ||
7277 | ||
7278 | ## CAVEAT EMPTOR: | |
7279 | ## There is no encapsulation within the following macros, do not change | |
7280 | ## the running order or otherwise move them around unless you know exactly | |
7281 | ## what you are doing... | |
7282 | if test -n "$compiler"; then | |
7283 | ||
7284 | lt_prog_compiler_no_builtin_flag= | |
7285 | ||
7286 | if test "$GCC" = yes; then | |
7287 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7288 | ||
7289 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7290 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
7291 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7293 | else | |
7294 | lt_cv_prog_compiler_rtti_exceptions=no | |
7295 | ac_outfile=conftest.$ac_objext | |
7296 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7297 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7298 | # Insert the option either (1) after the last *FLAGS variable, or | |
7299 | # (2) before a word containing "conftest.", or (3) at the end. | |
7300 | # Note that $ac_compile itself does not contain backslashes and begins | |
7301 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7302 | # The option is referenced via a variable to avoid confusing sed. | |
7303 | lt_compile=`echo "$ac_compile" | $SED \ | |
7304 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7305 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7306 | -e 's:$: $lt_compiler_flag:'` | |
da594c4a | 7307 | (eval echo "\"\$as_me:6942: $lt_compile\"" >&5) |
ce2cded5 L |
7308 | (eval "$lt_compile" 2>conftest.err) |
7309 | ac_status=$? | |
7310 | cat conftest.err >&5 | |
da594c4a | 7311 | echo "$as_me:6946: \$? = $ac_status" >&5 |
ce2cded5 L |
7312 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7313 | # The compiler can only warn and ignore the option if not recognized | |
7314 | # So say no if there are warnings other than the usual output. | |
7315 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7316 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7317 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7318 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7319 | fi | |
7320 | fi | |
7321 | $RM conftest* | |
7322 | ||
7323 | fi | |
7324 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7325 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
7326 | ||
7327 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7328 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7329 | else | |
7330 | : | |
7331 | fi | |
7332 | ||
7333 | fi | |
7334 | ||
7335 | ||
7336 | ||
7337 | ||
7338 | ||
7339 | ||
7340 | lt_prog_compiler_wl= | |
7341 | lt_prog_compiler_pic= | |
7342 | lt_prog_compiler_static= | |
7343 | ||
7344 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7345 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
7346 | ||
7347 | if test "$GCC" = yes; then | |
7348 | lt_prog_compiler_wl='-Wl,' | |
7349 | lt_prog_compiler_static='-static' | |
7350 | ||
7351 | case $host_os in | |
7352 | aix*) | |
7353 | # All AIX code is PIC. | |
7354 | if test "$host_cpu" = ia64; then | |
7355 | # AIX 5 now supports IA64 processor | |
7356 | lt_prog_compiler_static='-Bstatic' | |
7357 | fi | |
7358 | ;; | |
d7040cdb SE |
7359 | |
7360 | amigaos*) | |
7361 | if test "$host_cpu" = m68k; then | |
ce2cded5 L |
7362 | # FIXME: we need at least 68020 code to build shared libraries, but |
7363 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7364 | # like `-m68040'. | |
7365 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
d7040cdb | 7366 | fi |
d7040cdb SE |
7367 | ;; |
7368 | ||
ce2cded5 L |
7369 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7370 | # PIC is the default for these OSes. | |
d7040cdb SE |
7371 | ;; |
7372 | ||
ce2cded5 L |
7373 | mingw* | cygwin* | pw32* | os2*) |
7374 | # This hack is so that the source file can tell whether it is being | |
7375 | # built for inclusion in a dll (and should export symbols for example). | |
7376 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7377 | # (--disable-auto-import) libraries | |
7378 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7379 | ;; |
7380 | ||
7381 | darwin* | rhapsody*) | |
ce2cded5 L |
7382 | # PIC is the default on this platform |
7383 | # Common symbols not allowed in MH_DYLIB files | |
7384 | lt_prog_compiler_pic='-fno-common' | |
7385 | ;; | |
7386 | ||
7387 | hpux*) | |
7388 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7389 | # not for PA HP-UX. | |
7390 | case $host_cpu in | |
7391 | hppa*64*|ia64*) | |
7392 | # +Z the default | |
d7040cdb | 7393 | ;; |
ce2cded5 L |
7394 | *) |
7395 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
7396 | ;; |
7397 | esac | |
ce2cded5 | 7398 | ;; |
d7040cdb | 7399 | |
ce2cded5 L |
7400 | interix[3-9]*) |
7401 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7402 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
7403 | ;; |
7404 | ||
ce2cded5 L |
7405 | msdosdjgpp*) |
7406 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7407 | # on systems that don't support them. | |
7408 | lt_prog_compiler_can_build_shared=no | |
7409 | enable_shared=no | |
d7040cdb SE |
7410 | ;; |
7411 | ||
ce2cded5 L |
7412 | *nto* | *qnx*) |
7413 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7414 | # it will coredump. | |
7415 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7416 | ;; |
7417 | ||
ce2cded5 L |
7418 | sysv4*MP*) |
7419 | if test -d /usr/nec; then | |
7420 | lt_prog_compiler_pic=-Kconform_pic | |
7421 | fi | |
d7040cdb SE |
7422 | ;; |
7423 | ||
ce2cded5 L |
7424 | *) |
7425 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 7426 | ;; |
ce2cded5 L |
7427 | esac |
7428 | else | |
7429 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7430 | case $host_os in | |
7431 | aix*) | |
7432 | lt_prog_compiler_wl='-Wl,' | |
7433 | if test "$host_cpu" = ia64; then | |
7434 | # AIX 5 now supports IA64 processor | |
7435 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 7436 | else |
ce2cded5 | 7437 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 7438 | fi |
ce2cded5 L |
7439 | ;; |
7440 | darwin*) | |
7441 | # PIC is the default on this platform | |
7442 | # Common symbols not allowed in MH_DYLIB files | |
7443 | case $cc_basename in | |
7444 | xlc*) | |
7445 | lt_prog_compiler_pic='-qnocommon' | |
7446 | lt_prog_compiler_wl='-Wl,' | |
7447 | ;; | |
7448 | esac | |
7449 | ;; | |
d7040cdb | 7450 | |
ce2cded5 L |
7451 | mingw* | cygwin* | pw32* | os2*) |
7452 | # This hack is so that the source file can tell whether it is being | |
7453 | # built for inclusion in a dll (and should export symbols for example). | |
7454 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7455 | ;; |
7456 | ||
ce2cded5 L |
7457 | hpux9* | hpux10* | hpux11*) |
7458 | lt_prog_compiler_wl='-Wl,' | |
7459 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7460 | # not for PA HP-UX. | |
7461 | case $host_cpu in | |
7462 | hppa*64*|ia64*) | |
7463 | # +Z the default | |
7464 | ;; | |
7465 | *) | |
7466 | lt_prog_compiler_pic='+Z' | |
7467 | ;; | |
7468 | esac | |
7469 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7470 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
7471 | ;; |
7472 | ||
ce2cded5 L |
7473 | irix5* | irix6* | nonstopux*) |
7474 | lt_prog_compiler_wl='-Wl,' | |
7475 | # PIC (with -KPIC) is the default. | |
7476 | lt_prog_compiler_static='-non_shared' | |
7477 | ;; | |
d7040cdb | 7478 | |
ce2cded5 L |
7479 | linux* | k*bsd*-gnu) |
7480 | case $cc_basename in | |
7481 | icc* | ecc*) | |
7482 | lt_prog_compiler_wl='-Wl,' | |
7483 | lt_prog_compiler_pic='-KPIC' | |
7484 | lt_prog_compiler_static='-static' | |
7485 | ;; | |
7486 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7487 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7488 | # which looks to be a dead project) | |
7489 | lt_prog_compiler_wl='-Wl,' | |
7490 | lt_prog_compiler_pic='-fpic' | |
7491 | lt_prog_compiler_static='-Bstatic' | |
7492 | ;; | |
7493 | ccc*) | |
7494 | lt_prog_compiler_wl='-Wl,' | |
7495 | # All Alpha code is PIC. | |
7496 | lt_prog_compiler_static='-non_shared' | |
7497 | ;; | |
7498 | *) | |
7499 | case `$CC -V 2>&1 | sed 5q` in | |
7500 | *Sun\ C*) | |
7501 | # Sun C 5.9 | |
7502 | lt_prog_compiler_pic='-KPIC' | |
7503 | lt_prog_compiler_static='-Bstatic' | |
7504 | lt_prog_compiler_wl='-Wl,' | |
d7040cdb | 7505 | ;; |
ce2cded5 L |
7506 | *Sun\ F*) |
7507 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7508 | lt_prog_compiler_pic='-KPIC' | |
7509 | lt_prog_compiler_static='-Bstatic' | |
7510 | lt_prog_compiler_wl='' | |
d7040cdb SE |
7511 | ;; |
7512 | esac | |
ce2cded5 L |
7513 | ;; |
7514 | esac | |
d7040cdb SE |
7515 | ;; |
7516 | ||
ce2cded5 L |
7517 | newsos6) |
7518 | lt_prog_compiler_pic='-KPIC' | |
7519 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7520 | ;; |
7521 | ||
ce2cded5 L |
7522 | *nto* | *qnx*) |
7523 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7524 | # it will coredump. | |
7525 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7526 | ;; |
7527 | ||
ce2cded5 L |
7528 | osf3* | osf4* | osf5*) |
7529 | lt_prog_compiler_wl='-Wl,' | |
7530 | # All OSF/1 code is PIC. | |
7531 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
7532 | ;; |
7533 | ||
ce2cded5 L |
7534 | rdos*) |
7535 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
7536 | ;; |
7537 | ||
7538 | solaris*) | |
ce2cded5 L |
7539 | lt_prog_compiler_pic='-KPIC' |
7540 | lt_prog_compiler_static='-Bstatic' | |
7541 | case $cc_basename in | |
7542 | f77* | f90* | f95*) | |
7543 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 7544 | *) |
ce2cded5 | 7545 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 7546 | esac |
d7040cdb SE |
7547 | ;; |
7548 | ||
7549 | sunos4*) | |
ce2cded5 L |
7550 | lt_prog_compiler_wl='-Qoption ld ' |
7551 | lt_prog_compiler_pic='-PIC' | |
7552 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7553 | ;; |
7554 | ||
ce2cded5 L |
7555 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7556 | lt_prog_compiler_wl='-Wl,' | |
7557 | lt_prog_compiler_pic='-KPIC' | |
7558 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7559 | ;; |
7560 | ||
7561 | sysv4*MP*) | |
ce2cded5 L |
7562 | if test -d /usr/nec ;then |
7563 | lt_prog_compiler_pic='-Kconform_pic' | |
7564 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7565 | fi |
7566 | ;; | |
7567 | ||
ce2cded5 L |
7568 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7569 | lt_prog_compiler_wl='-Wl,' | |
7570 | lt_prog_compiler_pic='-KPIC' | |
7571 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7572 | ;; |
7573 | ||
ce2cded5 L |
7574 | unicos*) |
7575 | lt_prog_compiler_wl='-Wl,' | |
7576 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
7577 | ;; |
7578 | ||
7579 | uts4*) | |
ce2cded5 L |
7580 | lt_prog_compiler_pic='-pic' |
7581 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7582 | ;; |
7583 | ||
7584 | *) | |
ce2cded5 | 7585 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
7586 | ;; |
7587 | esac | |
d7040cdb SE |
7588 | fi |
7589 | ||
ce2cded5 L |
7590 | case $host_os in |
7591 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7592 | *djgpp*) | |
7593 | lt_prog_compiler_pic= | |
7594 | ;; | |
7595 | *) | |
7596 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7597 | ;; | |
7598 | esac | |
7599 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7600 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
d7040cdb SE |
7601 | |
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | # | |
ce2cded5 | 7608 | # Check to make sure the PIC flag actually works. |
d7040cdb | 7609 | # |
ce2cded5 L |
7610 | if test -n "$lt_prog_compiler_pic"; then |
7611 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7612 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7613 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7615 | else | |
7616 | lt_prog_compiler_pic_works=no | |
7617 | ac_outfile=conftest.$ac_objext | |
7618 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7619 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7620 | # Insert the option either (1) after the last *FLAGS variable, or | |
7621 | # (2) before a word containing "conftest.", or (3) at the end. | |
7622 | # Note that $ac_compile itself does not contain backslashes and begins | |
7623 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7624 | # The option is referenced via a variable to avoid confusing sed. | |
7625 | lt_compile=`echo "$ac_compile" | $SED \ | |
7626 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7627 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7628 | -e 's:$: $lt_compiler_flag:'` | |
da594c4a | 7629 | (eval echo "\"\$as_me:7264: $lt_compile\"" >&5) |
ce2cded5 L |
7630 | (eval "$lt_compile" 2>conftest.err) |
7631 | ac_status=$? | |
7632 | cat conftest.err >&5 | |
da594c4a | 7633 | echo "$as_me:7268: \$? = $ac_status" >&5 |
ce2cded5 L |
7634 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7635 | # The compiler can only warn and ignore the option if not recognized | |
7636 | # So say no if there are warnings other than the usual output. | |
7637 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7638 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7639 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7640 | lt_prog_compiler_pic_works=yes | |
7641 | fi | |
7642 | fi | |
7643 | $RM conftest* | |
d7040cdb | 7644 | |
ce2cded5 L |
7645 | fi |
7646 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7647 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
d7040cdb | 7648 | |
ce2cded5 L |
7649 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7650 | case $lt_prog_compiler_pic in | |
7651 | "" | " "*) ;; | |
7652 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7653 | esac | |
7654 | else | |
7655 | lt_prog_compiler_pic= | |
7656 | lt_prog_compiler_can_build_shared=no | |
7657 | fi | |
d7040cdb | 7658 | |
ce2cded5 | 7659 | fi |
d7040cdb SE |
7660 | |
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
ce2cded5 L |
7666 | # |
7667 | # Check to make sure the static flag actually works. | |
7668 | # | |
7669 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7670 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7671 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7672 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7674 | else | |
7675 | lt_prog_compiler_static_works=no | |
7676 | save_LDFLAGS="$LDFLAGS" | |
7677 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7678 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7679 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7680 | # The linker can only warn and ignore the option if not recognized | |
7681 | # So say no if there are warnings | |
7682 | if test -s conftest.err; then | |
7683 | # Append any errors to the config.log. | |
7684 | cat conftest.err 1>&5 | |
7685 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7686 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7687 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7688 | lt_prog_compiler_static_works=yes | |
7689 | fi | |
7690 | else | |
7691 | lt_prog_compiler_static_works=yes | |
7692 | fi | |
7693 | fi | |
7694 | $RM conftest* | |
7695 | LDFLAGS="$save_LDFLAGS" | |
d7040cdb | 7696 | |
ce2cded5 L |
7697 | fi |
7698 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7699 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
d7040cdb | 7700 | |
ce2cded5 L |
7701 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7702 | : | |
7703 | else | |
7704 | lt_prog_compiler_static= | |
7705 | fi | |
d7040cdb SE |
7706 | |
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
ce2cded5 L |
7713 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7714 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7715 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7717 | else | |
7718 | lt_cv_prog_compiler_c_o=no | |
7719 | $RM -r conftest 2>/dev/null | |
7720 | mkdir conftest | |
7721 | cd conftest | |
7722 | mkdir out | |
7723 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 7724 | |
ce2cded5 L |
7725 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7726 | # Insert the option either (1) after the last *FLAGS variable, or | |
7727 | # (2) before a word containing "conftest.", or (3) at the end. | |
7728 | # Note that $ac_compile itself does not contain backslashes and begins | |
7729 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7730 | lt_compile=`echo "$ac_compile" | $SED \ | |
7731 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7732 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7733 | -e 's:$: $lt_compiler_flag:'` | |
da594c4a | 7734 | (eval echo "\"\$as_me:7369: $lt_compile\"" >&5) |
ce2cded5 L |
7735 | (eval "$lt_compile" 2>out/conftest.err) |
7736 | ac_status=$? | |
7737 | cat out/conftest.err >&5 | |
da594c4a | 7738 | echo "$as_me:7373: \$? = $ac_status" >&5 |
ce2cded5 L |
7739 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7740 | then | |
7741 | # The compiler can only warn and ignore the option if not recognized | |
7742 | # So say no if there are warnings | |
7743 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7744 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7745 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7746 | lt_cv_prog_compiler_c_o=yes | |
7747 | fi | |
7748 | fi | |
7749 | chmod u+w . 2>&5 | |
7750 | $RM conftest* | |
7751 | # SGI C++ compiler will create directory out/ii_files/ for | |
7752 | # template instantiation | |
7753 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7754 | $RM out/* && rmdir out | |
7755 | cd .. | |
7756 | $RM -r conftest | |
7757 | $RM conftest* | |
d7040cdb | 7758 | |
ce2cded5 L |
7759 | fi |
7760 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7761 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb SE |
7762 | |
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
ce2cded5 L |
7768 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7769 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7770 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7772 | else | |
7773 | lt_cv_prog_compiler_c_o=no | |
7774 | $RM -r conftest 2>/dev/null | |
7775 | mkdir conftest | |
7776 | cd conftest | |
7777 | mkdir out | |
7778 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 7779 | |
ce2cded5 L |
7780 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7781 | # Insert the option either (1) after the last *FLAGS variable, or | |
7782 | # (2) before a word containing "conftest.", or (3) at the end. | |
7783 | # Note that $ac_compile itself does not contain backslashes and begins | |
7784 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7785 | lt_compile=`echo "$ac_compile" | $SED \ | |
7786 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7787 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7788 | -e 's:$: $lt_compiler_flag:'` | |
da594c4a | 7789 | (eval echo "\"\$as_me:7424: $lt_compile\"" >&5) |
ce2cded5 L |
7790 | (eval "$lt_compile" 2>out/conftest.err) |
7791 | ac_status=$? | |
7792 | cat out/conftest.err >&5 | |
da594c4a | 7793 | echo "$as_me:7428: \$? = $ac_status" >&5 |
ce2cded5 L |
7794 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7795 | then | |
7796 | # The compiler can only warn and ignore the option if not recognized | |
7797 | # So say no if there are warnings | |
7798 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7799 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7800 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7801 | lt_cv_prog_compiler_c_o=yes | |
7802 | fi | |
7803 | fi | |
7804 | chmod u+w . 2>&5 | |
7805 | $RM conftest* | |
7806 | # SGI C++ compiler will create directory out/ii_files/ for | |
7807 | # template instantiation | |
7808 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7809 | $RM out/* && rmdir out | |
7810 | cd .. | |
7811 | $RM -r conftest | |
7812 | $RM conftest* | |
d7040cdb | 7813 | |
ce2cded5 L |
7814 | fi |
7815 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7816 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb SE |
7817 | |
7818 | ||
7819 | ||
7820 | ||
ce2cded5 L |
7821 | hard_links="nottested" |
7822 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7823 | # do not overwrite the value of need_locks provided by the user | |
7824 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7825 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7826 | hard_links=yes | |
7827 | $RM conftest* | |
7828 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7829 | touch conftest.a | |
7830 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7831 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7832 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7833 | echo "${ECHO_T}$hard_links" >&6 | |
7834 | if test "$hard_links" = no; then | |
7835 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7836 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7837 | need_locks=warn | |
7838 | fi | |
7839 | else | |
7840 | need_locks=no | |
7841 | fi | |
d7040cdb SE |
7842 | |
7843 | ||
7844 | ||
7845 | ||
7846 | ||
7847 | ||
ce2cded5 L |
7848 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7849 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
d7040cdb | 7850 | |
ce2cded5 L |
7851 | runpath_var= |
7852 | allow_undefined_flag= | |
7853 | always_export_symbols=no | |
7854 | archive_cmds= | |
7855 | archive_expsym_cmds= | |
7856 | compiler_needs_object=no | |
7857 | enable_shared_with_static_runtimes=no | |
7858 | export_dynamic_flag_spec= | |
7859 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7860 | hardcode_automatic=no | |
7861 | hardcode_direct=no | |
7862 | hardcode_direct_absolute=no | |
7863 | hardcode_libdir_flag_spec= | |
7864 | hardcode_libdir_flag_spec_ld= | |
7865 | hardcode_libdir_separator= | |
7866 | hardcode_minus_L=no | |
7867 | hardcode_shlibpath_var=unsupported | |
7868 | inherit_rpath=no | |
7869 | link_all_deplibs=unknown | |
7870 | module_cmds= | |
7871 | module_expsym_cmds= | |
7872 | old_archive_from_new_cmds= | |
7873 | old_archive_from_expsyms_cmds= | |
7874 | thread_safe_flag_spec= | |
7875 | whole_archive_flag_spec= | |
7876 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7877 | # included in the symbol list | |
7878 | include_expsyms= | |
7879 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7880 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7881 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7882 | # as well as any symbol that contains `d'. | |
7883 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7884 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7885 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7886 | # the symbol is explicitly referenced. Since portable code cannot | |
7887 | # rely on this symbol name, it's probably fine to never include it in | |
7888 | # preloaded symbol tables. | |
7889 | extract_expsyms_cmds= | |
d7040cdb | 7890 | |
ce2cded5 L |
7891 | case $host_os in |
7892 | cygwin* | mingw* | pw32*) | |
7893 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7894 | # When not using gcc, we currently assume that we are using | |
7895 | # Microsoft Visual C++. | |
7896 | if test "$GCC" != yes; then | |
7897 | with_gnu_ld=no | |
7898 | fi | |
7899 | ;; | |
7900 | interix*) | |
7901 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7902 | with_gnu_ld=yes | |
7903 | ;; | |
7904 | openbsd*) | |
7905 | with_gnu_ld=no | |
7906 | ;; | |
7907 | esac | |
d7040cdb | 7908 | |
ce2cded5 L |
7909 | ld_shlibs=yes |
7910 | if test "$with_gnu_ld" = yes; then | |
7911 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7912 | wlarc='${wl}' | |
d7040cdb | 7913 | |
ce2cded5 L |
7914 | # Set some defaults for GNU ld with shared library support. These |
7915 | # are reset later if shared libraries are not supported. Putting them | |
7916 | # here allows them to be overridden if necessary. | |
7917 | runpath_var=LD_RUN_PATH | |
7918 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7919 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7920 | # ancient GNU ld didn't support --whole-archive et. al. | |
7921 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7922 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7923 | else | |
7924 | whole_archive_flag_spec= | |
7925 | fi | |
7926 | supports_anon_versioning=no | |
7927 | case `$LD -v 2>&1` in | |
7928 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7929 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7930 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7931 | *\ 2.11.*) ;; # other 2.11 versions | |
7932 | *) supports_anon_versioning=yes ;; | |
7933 | esac | |
d7040cdb | 7934 | |
ce2cded5 L |
7935 | # See if GNU ld supports shared libraries. |
7936 | case $host_os in | |
50e7d84b | 7937 | aix[3-9]*) |
ce2cded5 L |
7938 | # On AIX/PPC, the GNU linker is very broken |
7939 | if test "$host_cpu" != ia64; then | |
7940 | ld_shlibs=no | |
7941 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7942 | |
ce2cded5 L |
7943 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7944 | *** to be unable to reliably create shared libraries on AIX. | |
7945 | *** Therefore, libtool is disabling shared libraries support. If you | |
7946 | *** really care for shared libraries, you may want to modify your PATH | |
7947 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 7948 | |
ce2cded5 L |
7949 | _LT_EOF |
7950 | fi | |
7951 | ;; | |
d7040cdb | 7952 | |
ce2cded5 L |
7953 | amigaos*) |
7954 | if test "$host_cpu" = m68k; then | |
7955 | 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)' | |
7956 | hardcode_libdir_flag_spec='-L$libdir' | |
7957 | hardcode_minus_L=yes | |
7958 | fi | |
d7040cdb | 7959 | |
ce2cded5 L |
7960 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7961 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7962 | # to version 4, is to share data among multiple programs linked | |
7963 | # with the same dynamic library. Since this doesn't match the | |
7964 | # behavior of shared libraries on other platforms, we can't use | |
7965 | # them. | |
7966 | ld_shlibs=no | |
7967 | ;; | |
d7040cdb | 7968 | |
ce2cded5 L |
7969 | beos*) |
7970 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7971 | allow_undefined_flag=unsupported | |
7972 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7973 | # support --undefined. This deserves some investigation. FIXME | |
7974 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7975 | else | |
7976 | ld_shlibs=no | |
7977 | fi | |
7978 | ;; | |
d7040cdb | 7979 | |
ce2cded5 L |
7980 | cygwin* | mingw* | pw32*) |
7981 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7982 | # as there is no search path for DLLs. | |
7983 | hardcode_libdir_flag_spec='-L$libdir' | |
7984 | allow_undefined_flag=unsupported | |
7985 | always_export_symbols=no | |
7986 | enable_shared_with_static_runtimes=yes | |
7987 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 7988 | |
ce2cded5 L |
7989 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
7990 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7991 | # If the export-symbols file already is a .def file (1st line | |
7992 | # is EXPORTS), use it as is; otherwise, prepend... | |
7993 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7994 | cp $export_symbols $output_objdir/$soname.def; | |
7995 | else | |
7996 | echo EXPORTS > $output_objdir/$soname.def; | |
7997 | cat $export_symbols >> $output_objdir/$soname.def; | |
7998 | fi~ | |
7999 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8000 | else | |
8001 | ld_shlibs=no | |
8002 | fi | |
8003 | ;; | |
d7040cdb | 8004 | |
ce2cded5 L |
8005 | interix[3-9]*) |
8006 | hardcode_direct=no | |
8007 | hardcode_shlibpath_var=no | |
8008 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8009 | export_dynamic_flag_spec='${wl}-E' | |
8010 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8011 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8012 | # default) and relocated if they conflict, which is a slow very memory | |
8013 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8014 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8015 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8016 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8017 | 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' | |
8018 | ;; | |
d7040cdb | 8019 | |
ce2cded5 L |
8020 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8021 | tmp_diet=no | |
8022 | if test "$host_os" = linux-dietlibc; then | |
8023 | case $cc_basename in | |
8024 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8025 | esac | |
8026 | fi | |
8027 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8028 | && test "$tmp_diet" = no | |
8029 | then | |
8030 | tmp_addflag= | |
8031 | case $cc_basename,$host_cpu in | |
8032 | pgcc*) # Portland Group C compiler | |
8033 | 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' | |
8034 | tmp_addflag=' $pic_flag' | |
8035 | ;; | |
8036 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8037 | 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' | |
8038 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8039 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8040 | tmp_addflag=' -i_dynamic' ;; | |
8041 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8042 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8043 | ifc* | ifort*) # Intel Fortran compiler | |
8044 | tmp_addflag=' -nofor_main' ;; | |
8045 | esac | |
8046 | case `$CC -V 2>&1 | sed 5q` in | |
8047 | *Sun\ C*) # Sun C 5.9 | |
8048 | 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' | |
8049 | compiler_needs_object=yes | |
8050 | tmp_sharedflag='-G' ;; | |
8051 | *Sun\ F*) # Sun Fortran 8.3 | |
8052 | tmp_sharedflag='-G' ;; | |
8053 | *) | |
8054 | tmp_sharedflag='-shared' ;; | |
8055 | esac | |
8056 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8057 | |
ce2cded5 L |
8058 | if test "x$supports_anon_versioning" = xyes; then |
8059 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8060 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8061 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8062 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8063 | fi | |
8064 | else | |
8065 | ld_shlibs=no | |
8066 | fi | |
8067 | ;; | |
d7040cdb | 8068 | |
ce2cded5 L |
8069 | netbsd*) |
8070 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8071 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8072 | wlarc= | |
8073 | else | |
8074 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8075 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8076 | fi | |
8077 | ;; | |
d7040cdb | 8078 | |
ce2cded5 L |
8079 | solaris*) |
8080 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8081 | ld_shlibs=no | |
8082 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8083 | |
ce2cded5 L |
8084 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8085 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8086 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8087 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8088 | *** your PATH or compiler configuration so that the native linker is | |
8089 | *** used, and then restart. | |
d7040cdb | 8090 | |
ce2cded5 L |
8091 | _LT_EOF |
8092 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8093 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8094 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8095 | else | |
8096 | ld_shlibs=no | |
8097 | fi | |
8098 | ;; | |
d7040cdb | 8099 | |
ce2cded5 L |
8100 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8101 | case `$LD -v 2>&1` in | |
8102 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8103 | ld_shlibs=no | |
8104 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8105 | |
ce2cded5 L |
8106 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8107 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8108 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8109 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8110 | *** your PATH or compiler configuration so that the native linker is | |
8111 | *** used, and then restart. | |
d7040cdb | 8112 | |
ce2cded5 L |
8113 | _LT_EOF |
8114 | ;; | |
8115 | *) | |
8116 | # For security reasons, it is highly recommended that you always | |
8117 | # use absolute paths for naming shared libraries, and exclude the | |
8118 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8119 | # requires that you compile everything twice, which is a pain. | |
8120 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8121 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8122 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8123 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8124 | else | |
8125 | ld_shlibs=no | |
8126 | fi | |
8127 | ;; | |
8128 | esac | |
8129 | ;; | |
d7040cdb | 8130 | |
ce2cded5 L |
8131 | sunos4*) |
8132 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8133 | wlarc= | |
8134 | hardcode_direct=yes | |
8135 | hardcode_shlibpath_var=no | |
8136 | ;; | |
d7040cdb | 8137 | |
ce2cded5 L |
8138 | *) |
8139 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8140 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8141 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8142 | else | |
8143 | ld_shlibs=no | |
8144 | fi | |
8145 | ;; | |
8146 | esac | |
d7040cdb | 8147 | |
ce2cded5 L |
8148 | if test "$ld_shlibs" = no; then |
8149 | runpath_var= | |
8150 | hardcode_libdir_flag_spec= | |
8151 | export_dynamic_flag_spec= | |
8152 | whole_archive_flag_spec= | |
8153 | fi | |
8154 | else | |
8155 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8156 | case $host_os in | |
8157 | aix3*) | |
8158 | allow_undefined_flag=unsupported | |
8159 | always_export_symbols=yes | |
8160 | 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' | |
8161 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8162 | # are no directories specified by -L. | |
8163 | hardcode_minus_L=yes | |
8164 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8165 | # Neither direct hardcoding nor static linking is supported with a | |
8166 | # broken collect2. | |
8167 | hardcode_direct=unsupported | |
8168 | fi | |
8169 | ;; | |
d7040cdb | 8170 | |
50e7d84b | 8171 | aix[4-9]*) |
ce2cded5 L |
8172 | if test "$host_cpu" = ia64; then |
8173 | # On IA64, the linker does run time linking by default, so we don't | |
8174 | # have to do anything special. | |
8175 | aix_use_runtimelinking=no | |
8176 | exp_sym_flag='-Bexport' | |
8177 | no_entry_flag="" | |
8178 | else | |
8179 | # If we're using GNU nm, then we don't want the "-C" option. | |
8180 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8181 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8182 | 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' | |
8183 | else | |
8184 | 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' | |
8185 | fi | |
8186 | aix_use_runtimelinking=no | |
d7040cdb | 8187 | |
ce2cded5 L |
8188 | # Test if we are trying to use run time linking or normal |
8189 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8190 | # need to do runtime linking. | |
50e7d84b | 8191 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
8192 | for ld_flag in $LDFLAGS; do |
8193 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8194 | aix_use_runtimelinking=yes | |
8195 | break | |
8196 | fi | |
8197 | done | |
8198 | ;; | |
8199 | esac | |
d7040cdb | 8200 | |
ce2cded5 L |
8201 | exp_sym_flag='-bexport' |
8202 | no_entry_flag='-bnoentry' | |
8203 | fi | |
d7040cdb | 8204 | |
ce2cded5 L |
8205 | # When large executables or shared objects are built, AIX ld can |
8206 | # have problems creating the table of contents. If linking a library | |
8207 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8208 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8209 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8210 | |
ce2cded5 L |
8211 | archive_cmds='' |
8212 | hardcode_direct=yes | |
8213 | hardcode_direct_absolute=yes | |
8214 | hardcode_libdir_separator=':' | |
8215 | link_all_deplibs=yes | |
8216 | file_list_spec='${wl}-f,' | |
d7040cdb | 8217 | |
ce2cded5 L |
8218 | if test "$GCC" = yes; then |
8219 | case $host_os in aix4.[012]|aix4.[012].*) | |
8220 | # We only want to do this on AIX 4.2 and lower, the check | |
8221 | # below for broken collect2 doesn't work under 4.3+ | |
8222 | collect2name=`${CC} -print-prog-name=collect2` | |
8223 | if test -f "$collect2name" && | |
8224 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8225 | then | |
8226 | # We have reworked collect2 | |
8227 | : | |
8228 | else | |
8229 | # We have old collect2 | |
8230 | hardcode_direct=unsupported | |
8231 | # It fails to find uninstalled libraries when the uninstalled | |
8232 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8233 | # to unsupported forces relinking | |
8234 | hardcode_minus_L=yes | |
8235 | hardcode_libdir_flag_spec='-L$libdir' | |
8236 | hardcode_libdir_separator= | |
8237 | fi | |
8238 | ;; | |
8239 | esac | |
8240 | shared_flag='-shared' | |
8241 | if test "$aix_use_runtimelinking" = yes; then | |
8242 | shared_flag="$shared_flag "'${wl}-G' | |
8243 | fi | |
8244 | else | |
8245 | # not using gcc | |
8246 | if test "$host_cpu" = ia64; then | |
8247 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8248 | # chokes on -Wl,-G. The following line is correct: | |
8249 | shared_flag='-G' | |
8250 | else | |
8251 | if test "$aix_use_runtimelinking" = yes; then | |
8252 | shared_flag='${wl}-G' | |
8253 | else | |
8254 | shared_flag='${wl}-bM:SRE' | |
8255 | fi | |
8256 | fi | |
8257 | fi | |
d7040cdb | 8258 | |
ce2cded5 L |
8259 | # It seems that -bexpall does not export symbols beginning with |
8260 | # underscore (_), so it is better to generate a list of symbols to export. | |
8261 | always_export_symbols=yes | |
8262 | if test "$aix_use_runtimelinking" = yes; then | |
8263 | # Warning - without using the other runtime loading flags (-brtl), | |
8264 | # -berok will link without error, but may produce a broken library. | |
8265 | allow_undefined_flag='-berok' | |
8266 | # Determine the default libpath from the value encoded in an | |
8267 | # empty executable. | |
8268 | cat >conftest.$ac_ext <<_ACEOF | |
8269 | /* confdefs.h. */ | |
8270 | _ACEOF | |
8271 | cat confdefs.h >>conftest.$ac_ext | |
8272 | cat >>conftest.$ac_ext <<_ACEOF | |
8273 | /* end confdefs.h. */ | |
d7040cdb | 8274 | |
ce2cded5 L |
8275 | int |
8276 | main () | |
8277 | { | |
d7040cdb | 8278 | |
ce2cded5 L |
8279 | ; |
8280 | return 0; | |
8281 | } | |
8282 | _ACEOF | |
8283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8285 | (eval $ac_link) 2>conftest.er1 | |
8286 | ac_status=$? | |
8287 | grep -v '^ *+' conftest.er1 >conftest.err | |
8288 | rm -f conftest.er1 | |
8289 | cat conftest.err >&5 | |
8290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8291 | (exit $ac_status); } && | |
8292 | { ac_try='test -z "$ac_c_werror_flag" | |
8293 | || test ! -s conftest.err' | |
8294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8295 | (eval $ac_try) 2>&5 | |
8296 | ac_status=$? | |
8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8298 | (exit $ac_status); }; } && | |
8299 | { ac_try='test -s conftest$ac_exeext' | |
8300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8301 | (eval $ac_try) 2>&5 | |
8302 | ac_status=$? | |
8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8304 | (exit $ac_status); }; }; then | |
d7040cdb | 8305 | |
ce2cded5 L |
8306 | lt_aix_libpath_sed=' |
8307 | /Import File Strings/,/^$/ { | |
8308 | /^0/ { | |
8309 | s/^0 *\(.*\)$/\1/ | |
8310 | p | |
8311 | } | |
8312 | }' | |
8313 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8314 | # Check for a 64-bit object if we didn't find anything. | |
8315 | if test -z "$aix_libpath"; then | |
8316 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8317 | fi | |
8318 | else | |
8319 | echo "$as_me: failed program was:" >&5 | |
8320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 8321 | |
ce2cded5 L |
8322 | fi |
8323 | rm -f conftest.err conftest.$ac_objext \ | |
8324 | conftest$ac_exeext conftest.$ac_ext | |
8325 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d7040cdb | 8326 | |
ce2cded5 L |
8327 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8328 | 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" | |
8329 | else | |
8330 | if test "$host_cpu" = ia64; then | |
8331 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8332 | allow_undefined_flag="-z nodefs" | |
8333 | 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" | |
8334 | else | |
8335 | # Determine the default libpath from the value encoded in an | |
8336 | # empty executable. | |
8337 | cat >conftest.$ac_ext <<_ACEOF | |
8338 | /* confdefs.h. */ | |
8339 | _ACEOF | |
8340 | cat confdefs.h >>conftest.$ac_ext | |
8341 | cat >>conftest.$ac_ext <<_ACEOF | |
8342 | /* end confdefs.h. */ | |
d7040cdb | 8343 | |
ce2cded5 L |
8344 | int |
8345 | main () | |
8346 | { | |
d7040cdb | 8347 | |
ce2cded5 L |
8348 | ; |
8349 | return 0; | |
8350 | } | |
8351 | _ACEOF | |
8352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8354 | (eval $ac_link) 2>conftest.er1 | |
8355 | ac_status=$? | |
8356 | grep -v '^ *+' conftest.er1 >conftest.err | |
8357 | rm -f conftest.er1 | |
8358 | cat conftest.err >&5 | |
8359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8360 | (exit $ac_status); } && | |
8361 | { ac_try='test -z "$ac_c_werror_flag" | |
8362 | || test ! -s conftest.err' | |
8363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8364 | (eval $ac_try) 2>&5 | |
8365 | ac_status=$? | |
8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8367 | (exit $ac_status); }; } && | |
8368 | { ac_try='test -s conftest$ac_exeext' | |
8369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8370 | (eval $ac_try) 2>&5 | |
8371 | ac_status=$? | |
8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8373 | (exit $ac_status); }; }; then | |
d7040cdb | 8374 | |
ce2cded5 L |
8375 | lt_aix_libpath_sed=' |
8376 | /Import File Strings/,/^$/ { | |
8377 | /^0/ { | |
8378 | s/^0 *\(.*\)$/\1/ | |
8379 | p | |
8380 | } | |
8381 | }' | |
8382 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8383 | # Check for a 64-bit object if we didn't find anything. | |
8384 | if test -z "$aix_libpath"; then | |
8385 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8386 | fi | |
8387 | else | |
8388 | echo "$as_me: failed program was:" >&5 | |
8389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 8390 | |
ce2cded5 L |
8391 | fi |
8392 | rm -f conftest.err conftest.$ac_objext \ | |
8393 | conftest$ac_exeext conftest.$ac_ext | |
8394 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d7040cdb | 8395 | |
ce2cded5 L |
8396 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8397 | # Warning - without using the other run time loading flags, | |
8398 | # -berok will link without error, but may produce a broken library. | |
8399 | no_undefined_flag=' ${wl}-bernotok' | |
8400 | allow_undefined_flag=' ${wl}-berok' | |
8401 | # Exported symbols can be pulled into shared objects from archives | |
8402 | whole_archive_flag_spec='$convenience' | |
8403 | archive_cmds_need_lc=yes | |
8404 | # This is similar to how AIX traditionally builds its shared libraries. | |
8405 | 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' | |
8406 | fi | |
8407 | fi | |
8408 | ;; | |
d7040cdb | 8409 | |
ce2cded5 L |
8410 | amigaos*) |
8411 | if test "$host_cpu" = m68k; then | |
8412 | 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)' | |
8413 | hardcode_libdir_flag_spec='-L$libdir' | |
8414 | hardcode_minus_L=yes | |
8415 | fi | |
8416 | # see comment about different semantics on the GNU ld section | |
8417 | ld_shlibs=no | |
8418 | ;; | |
d7040cdb | 8419 | |
ce2cded5 L |
8420 | bsdi[45]*) |
8421 | export_dynamic_flag_spec=-rdynamic | |
8422 | ;; | |
d7040cdb | 8423 | |
ce2cded5 L |
8424 | cygwin* | mingw* | pw32*) |
8425 | # When not using gcc, we currently assume that we are using | |
8426 | # Microsoft Visual C++. | |
8427 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8428 | # no search path for DLLs. | |
8429 | hardcode_libdir_flag_spec=' ' | |
8430 | allow_undefined_flag=unsupported | |
8431 | # Tell ltmain to make .lib files, not .a files. | |
8432 | libext=lib | |
8433 | # Tell ltmain to make .dll files, not .so files. | |
8434 | shrext_cmds=".dll" | |
8435 | # FIXME: Setting linknames here is a bad hack. | |
8436 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8437 | # The linker will automatically build a .lib file if we build a DLL. | |
8438 | old_archive_from_new_cmds='true' | |
8439 | # FIXME: Should let the user specify the lib program. | |
8440 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8441 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8442 | enable_shared_with_static_runtimes=yes | |
8443 | ;; | |
d7040cdb | 8444 | |
ce2cded5 L |
8445 | darwin* | rhapsody*) |
8446 | case $host_os in | |
8447 | rhapsody* | darwin1.[012]) | |
8448 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8449 | ;; | |
8450 | *) # Darwin 1.3 on | |
8451 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
8452 | 10.[012]) | |
8453 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8454 | ;; | |
8455 | 10.*) | |
8456 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8457 | ;; | |
8458 | esac | |
8459 | ;; | |
8460 | esac | |
8461 | archive_cmds_need_lc=no | |
8462 | hardcode_direct=no | |
8463 | hardcode_automatic=yes | |
8464 | hardcode_shlibpath_var=unsupported | |
8465 | whole_archive_flag_spec='' | |
8466 | link_all_deplibs=yes | |
8467 | if test "$GCC" = yes ; then | |
8468 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8470 | else | |
8471 | lt_cv_apple_cc_single_mod=no | |
8472 | if test -z "${LT_MULTI_MODULE}"; then | |
8473 | # By default we will add the -single_module flag. You can override | |
8474 | # by either setting the environment variable LT_MULTI_MODULE | |
8475 | # non-empty at configure time, or by adding -multi-module to the | |
8476 | # link flags. | |
8477 | echo "int foo(void){return 1;}" > conftest.c | |
8478 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8479 | -dynamiclib ${wl}-single_module conftest.c | |
8480 | if test -f libconftest.dylib; then | |
8481 | lt_cv_apple_cc_single_mod=yes | |
8482 | rm libconftest.dylib | |
8483 | fi | |
8484 | rm conftest.$ac_ext | |
8485 | fi | |
8486 | fi | |
d7040cdb | 8487 | |
ce2cded5 L |
8488 | output_verbose_link_cmd=echo |
8489 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8490 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8491 | 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}' | |
8492 | else | |
8493 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8494 | 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}' | |
8495 | fi | |
8496 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8497 | 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}' | |
8498 | else | |
8499 | case $cc_basename in | |
8500 | xlc*) | |
8501 | output_verbose_link_cmd=echo | |
8502 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8503 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8504 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8505 | 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}' | |
8506 | 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}' | |
8507 | ;; | |
8508 | *) | |
8509 | ld_shlibs=no | |
8510 | ;; | |
8511 | esac | |
8512 | fi | |
8513 | ;; | |
d7040cdb | 8514 | |
ce2cded5 L |
8515 | dgux*) |
8516 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8517 | hardcode_libdir_flag_spec='-L$libdir' | |
8518 | hardcode_shlibpath_var=no | |
8519 | ;; | |
d7040cdb | 8520 | |
ce2cded5 L |
8521 | freebsd1*) |
8522 | ld_shlibs=no | |
8523 | ;; | |
d7040cdb | 8524 | |
ce2cded5 L |
8525 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8526 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8527 | # does not break anything, and helps significantly (at the cost of a little | |
8528 | # extra space). | |
8529 | freebsd2.2*) | |
8530 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8531 | hardcode_libdir_flag_spec='-R$libdir' | |
8532 | hardcode_direct=yes | |
8533 | hardcode_shlibpath_var=no | |
8534 | ;; | |
d7040cdb | 8535 | |
ce2cded5 L |
8536 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8537 | freebsd2*) | |
8538 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8539 | hardcode_direct=yes | |
8540 | hardcode_minus_L=yes | |
8541 | hardcode_shlibpath_var=no | |
8542 | ;; | |
d7040cdb | 8543 | |
ce2cded5 L |
8544 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8545 | freebsd* | dragonfly*) | |
8546 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8547 | hardcode_libdir_flag_spec='-R$libdir' | |
8548 | hardcode_direct=yes | |
8549 | hardcode_shlibpath_var=no | |
8550 | ;; | |
d7040cdb | 8551 | |
ce2cded5 L |
8552 | hpux9*) |
8553 | if test "$GCC" = yes; then | |
8554 | 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' | |
8555 | else | |
8556 | 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' | |
8557 | fi | |
8558 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8559 | hardcode_libdir_separator=: | |
8560 | hardcode_direct=yes | |
d7040cdb | 8561 | |
ce2cded5 L |
8562 | # hardcode_minus_L: Not really in the search PATH, |
8563 | # but as the default location of the library. | |
8564 | hardcode_minus_L=yes | |
8565 | export_dynamic_flag_spec='${wl}-E' | |
8566 | ;; | |
d7040cdb | 8567 | |
ce2cded5 L |
8568 | hpux10*) |
8569 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8570 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8571 | else | |
8572 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8573 | fi | |
8574 | if test "$with_gnu_ld" = no; then | |
8575 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8576 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8577 | hardcode_libdir_separator=: | |
8578 | hardcode_direct=yes | |
8579 | hardcode_direct_absolute=yes | |
8580 | export_dynamic_flag_spec='${wl}-E' | |
8581 | # hardcode_minus_L: Not really in the search PATH, | |
8582 | # but as the default location of the library. | |
8583 | hardcode_minus_L=yes | |
8584 | fi | |
8585 | ;; | |
d7040cdb | 8586 | |
ce2cded5 L |
8587 | hpux11*) |
8588 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8589 | case $host_cpu in | |
8590 | hppa*64*) | |
8591 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8592 | ;; | |
8593 | ia64*) | |
8594 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8595 | ;; | |
8596 | *) | |
8597 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8598 | ;; | |
8599 | esac | |
8600 | else | |
8601 | case $host_cpu in | |
8602 | hppa*64*) | |
8603 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8604 | ;; | |
8605 | ia64*) | |
8606 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8607 | ;; | |
8608 | *) | |
8609 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8610 | ;; | |
8611 | esac | |
8612 | fi | |
8613 | if test "$with_gnu_ld" = no; then | |
8614 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8615 | hardcode_libdir_separator=: | |
d7040cdb | 8616 | |
ce2cded5 L |
8617 | case $host_cpu in |
8618 | hppa*64*|ia64*) | |
8619 | hardcode_direct=no | |
8620 | hardcode_shlibpath_var=no | |
8621 | ;; | |
8622 | *) | |
8623 | hardcode_direct=yes | |
8624 | hardcode_direct_absolute=yes | |
8625 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 8626 | |
ce2cded5 L |
8627 | # hardcode_minus_L: Not really in the search PATH, |
8628 | # but as the default location of the library. | |
8629 | hardcode_minus_L=yes | |
8630 | ;; | |
8631 | esac | |
8632 | fi | |
8633 | ;; | |
8634 | ||
8635 | irix5* | irix6* | nonstopux*) | |
8636 | if test "$GCC" = yes; then | |
8637 | 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' | |
8638 | # Try to use the -exported_symbol ld option, if it does not | |
8639 | # work, assume that -exports_file does not work either and | |
8640 | # implicitly export all symbols. | |
8641 | save_LDFLAGS="$LDFLAGS" | |
8642 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8643 | cat >conftest.$ac_ext <<_ACEOF | |
8644 | int foo(void) {} | |
8645 | _ACEOF | |
8646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8648 | (eval $ac_link) 2>conftest.er1 | |
8649 | ac_status=$? | |
8650 | grep -v '^ *+' conftest.er1 >conftest.err | |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8654 | (exit $ac_status); } && | |
8655 | { ac_try='test -z "$ac_c_werror_flag" | |
8656 | || test ! -s conftest.err' | |
8657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8658 | (eval $ac_try) 2>&5 | |
8659 | ac_status=$? | |
8660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8661 | (exit $ac_status); }; } && | |
8662 | { ac_try='test -s conftest$ac_exeext' | |
8663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8664 | (eval $ac_try) 2>&5 | |
8665 | ac_status=$? | |
8666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8667 | (exit $ac_status); }; }; then | |
8668 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
d7040cdb | 8669 | |
d7040cdb | 8670 | else |
ce2cded5 L |
8671 | echo "$as_me: failed program was:" >&5 |
8672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8673 | ||
d7040cdb | 8674 | fi |
ce2cded5 L |
8675 | rm -f conftest.err conftest.$ac_objext \ |
8676 | conftest$ac_exeext conftest.$ac_ext | |
8677 | LDFLAGS="$save_LDFLAGS" | |
8678 | else | |
8679 | 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' | |
8680 | 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' | |
8681 | fi | |
8682 | archive_cmds_need_lc='no' | |
8683 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8684 | hardcode_libdir_separator=: | |
8685 | inherit_rpath=yes | |
8686 | link_all_deplibs=yes | |
8687 | ;; | |
d7040cdb | 8688 | |
ce2cded5 L |
8689 | netbsd*) |
8690 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8691 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8692 | else | |
8693 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8694 | fi | |
8695 | hardcode_libdir_flag_spec='-R$libdir' | |
8696 | hardcode_direct=yes | |
8697 | hardcode_shlibpath_var=no | |
8698 | ;; | |
d7040cdb | 8699 | |
ce2cded5 L |
8700 | newsos6) |
8701 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8702 | hardcode_direct=yes | |
8703 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8704 | hardcode_libdir_separator=: | |
8705 | hardcode_shlibpath_var=no | |
8706 | ;; | |
d7040cdb | 8707 | |
ce2cded5 L |
8708 | *nto* | *qnx*) |
8709 | ;; | |
d7040cdb | 8710 | |
ce2cded5 L |
8711 | openbsd*) |
8712 | hardcode_direct=yes | |
8713 | hardcode_shlibpath_var=no | |
8714 | hardcode_direct_absolute=yes | |
8715 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8716 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8717 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8718 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8719 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 8720 | else |
ce2cded5 L |
8721 | case $host_os in |
8722 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8723 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8724 | hardcode_libdir_flag_spec='-R$libdir' | |
8725 | ;; | |
8726 | *) | |
8727 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8728 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8729 | ;; | |
8730 | esac | |
d7040cdb SE |
8731 | fi |
8732 | ;; | |
d7040cdb | 8733 | |
ce2cded5 L |
8734 | os2*) |
8735 | hardcode_libdir_flag_spec='-L$libdir' | |
8736 | hardcode_minus_L=yes | |
8737 | allow_undefined_flag=unsupported | |
8738 | 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' | |
8739 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8740 | ;; | |
d7040cdb | 8741 | |
ce2cded5 L |
8742 | osf3*) |
8743 | if test "$GCC" = yes; then | |
8744 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8745 | 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' | |
8746 | else | |
8747 | allow_undefined_flag=' -expect_unresolved \*' | |
8748 | 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' | |
8749 | fi | |
8750 | archive_cmds_need_lc='no' | |
8751 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8752 | hardcode_libdir_separator=: | |
8753 | ;; | |
d7040cdb | 8754 | |
ce2cded5 L |
8755 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8756 | if test "$GCC" = yes; then | |
8757 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8758 | 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' | |
8759 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8760 | else | |
8761 | allow_undefined_flag=' -expect_unresolved \*' | |
8762 | 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' | |
8763 | 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~ | |
8764 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d7040cdb | 8765 | |
ce2cded5 L |
8766 | # Both c and cxx compiler support -rpath directly |
8767 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8768 | fi | |
8769 | archive_cmds_need_lc='no' | |
8770 | hardcode_libdir_separator=: | |
8771 | ;; | |
d7040cdb | 8772 | |
ce2cded5 L |
8773 | solaris*) |
8774 | no_undefined_flag=' -z defs' | |
8775 | if test "$GCC" = yes; then | |
8776 | wlarc='${wl}' | |
8777 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8778 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8779 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8780 | else | |
8781 | case `$CC -V 2>&1` in | |
8782 | *"Compilers 5.0"*) | |
8783 | wlarc='' | |
8784 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8785 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8786 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8787 | ;; | |
8788 | *) | |
8789 | wlarc='${wl}' | |
8790 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8791 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8792 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8793 | ;; | |
8794 | esac | |
8795 | fi | |
8796 | hardcode_libdir_flag_spec='-R$libdir' | |
8797 | hardcode_shlibpath_var=no | |
8798 | case $host_os in | |
8799 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8800 | *) | |
8801 | # The compiler driver will combine and reorder linker options, | |
8802 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8803 | # but is careful enough not to reorder. | |
8804 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8805 | if test "$GCC" = yes; then | |
8806 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8807 | else | |
8808 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8809 | fi | |
8810 | ;; | |
8811 | esac | |
8812 | link_all_deplibs=yes | |
d7040cdb | 8813 | ;; |
ce2cded5 L |
8814 | |
8815 | sunos4*) | |
8816 | if test "x$host_vendor" = xsequent; then | |
8817 | # Use $CC to link under sequent, because it throws in some extra .o | |
8818 | # files that make .init and .fini sections work. | |
8819 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 8820 | else |
ce2cded5 | 8821 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 8822 | fi |
ce2cded5 L |
8823 | hardcode_libdir_flag_spec='-L$libdir' |
8824 | hardcode_direct=yes | |
8825 | hardcode_minus_L=yes | |
8826 | hardcode_shlibpath_var=no | |
d7040cdb | 8827 | ;; |
ce2cded5 L |
8828 | |
8829 | sysv4) | |
8830 | case $host_vendor in | |
8831 | sni) | |
8832 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8833 | hardcode_direct=yes # is this really true??? | |
8834 | ;; | |
8835 | siemens) | |
8836 | ## LD is ld it makes a PLAMLIB | |
8837 | ## CC just makes a GrossModule. | |
8838 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8839 | reload_cmds='$CC -r -o $output$reload_objs' | |
8840 | hardcode_direct=no | |
8841 | ;; | |
8842 | motorola) | |
8843 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8844 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8845 | ;; | |
8846 | esac | |
8847 | runpath_var='LD_RUN_PATH' | |
8848 | hardcode_shlibpath_var=no | |
d7040cdb | 8849 | ;; |
d7040cdb | 8850 | |
ce2cded5 L |
8851 | sysv4.3*) |
8852 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8853 | hardcode_shlibpath_var=no | |
8854 | export_dynamic_flag_spec='-Bexport' | |
8855 | ;; | |
d7040cdb | 8856 | |
ce2cded5 L |
8857 | sysv4*MP*) |
8858 | if test -d /usr/nec; then | |
8859 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8860 | hardcode_shlibpath_var=no | |
8861 | runpath_var=LD_RUN_PATH | |
8862 | hardcode_runpath_var=yes | |
8863 | ld_shlibs=yes | |
8864 | fi | |
8865 | ;; | |
d7040cdb | 8866 | |
ce2cded5 L |
8867 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8868 | no_undefined_flag='${wl}-z,text' | |
8869 | archive_cmds_need_lc=no | |
8870 | hardcode_shlibpath_var=no | |
8871 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 8872 | |
ce2cded5 L |
8873 | if test "$GCC" = yes; then |
8874 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8875 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8876 | else | |
8877 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8878 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8879 | fi | |
8880 | ;; | |
d7040cdb | 8881 | |
ce2cded5 L |
8882 | sysv5* | sco3.2v5* | sco5v6*) |
8883 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8884 | # link with -lc, and that would cause any symbols used from libc to | |
8885 | # always be unresolved, which means just about no library would | |
8886 | # ever link correctly. If we're not using GNU ld we use -z text | |
8887 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8888 | # as -z defs. | |
8889 | no_undefined_flag='${wl}-z,text' | |
8890 | allow_undefined_flag='${wl}-z,nodefs' | |
8891 | archive_cmds_need_lc=no | |
8892 | hardcode_shlibpath_var=no | |
8893 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8894 | hardcode_libdir_separator=':' | |
8895 | link_all_deplibs=yes | |
8896 | export_dynamic_flag_spec='${wl}-Bexport' | |
8897 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 8898 | |
ce2cded5 L |
8899 | if test "$GCC" = yes; then |
8900 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8901 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8902 | else | |
8903 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8904 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8905 | fi | |
d7040cdb | 8906 | ;; |
d7040cdb | 8907 | |
ce2cded5 L |
8908 | uts4*) |
8909 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8910 | hardcode_libdir_flag_spec='-L$libdir' | |
8911 | hardcode_shlibpath_var=no | |
8912 | ;; | |
d7040cdb | 8913 | |
ce2cded5 L |
8914 | *) |
8915 | ld_shlibs=no | |
8916 | ;; | |
8917 | esac | |
8918 | ||
8919 | if test x$host_vendor = xsni; then | |
8920 | case $host in | |
8921 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8922 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8923 | ;; | |
8924 | esac | |
d7040cdb | 8925 | fi |
ce2cded5 | 8926 | fi |
d7040cdb | 8927 | |
ce2cded5 L |
8928 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8929 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8930 | test "$ld_shlibs" = no && can_build_shared=no | |
d7040cdb | 8931 | |
ce2cded5 | 8932 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 8933 | |
d7040cdb | 8934 | |
d7040cdb | 8935 | |
d7040cdb | 8936 | |
d7040cdb | 8937 | |
d7040cdb | 8938 | |
d7040cdb | 8939 | |
d7040cdb | 8940 | |
d7040cdb | 8941 | |
d7040cdb | 8942 | |
d7040cdb | 8943 | |
d7040cdb | 8944 | |
d7040cdb | 8945 | |
d7040cdb | 8946 | |
d7040cdb | 8947 | |
ce2cded5 L |
8948 | # |
8949 | # Do we need to explicitly link libc? | |
8950 | # | |
8951 | case "x$archive_cmds_need_lc" in | |
8952 | x|xyes) | |
8953 | # Assume -lc should be added | |
8954 | archive_cmds_need_lc=yes | |
d7040cdb | 8955 | |
ce2cded5 L |
8956 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8957 | case $archive_cmds in | |
8958 | *'~'*) | |
8959 | # FIXME: we may have to deal with multi-command sequences. | |
8960 | ;; | |
8961 | '$CC '*) | |
8962 | # Test whether the compiler implicitly links with -lc since on some | |
8963 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8964 | # to ld, don't add -lc before -lgcc. | |
8965 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8966 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8967 | $RM conftest* | |
8968 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8969 | |
ce2cded5 L |
8970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8971 | (eval $ac_compile) 2>&5 | |
8972 | ac_status=$? | |
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8974 | (exit $ac_status); } 2>conftest.err; then | |
8975 | soname=conftest | |
8976 | lib=conftest | |
8977 | libobjs=conftest.$ac_objext | |
8978 | deplibs= | |
8979 | wl=$lt_prog_compiler_wl | |
8980 | pic_flag=$lt_prog_compiler_pic | |
8981 | compiler_flags=-v | |
8982 | linker_flags=-v | |
8983 | verstring= | |
8984 | output_objdir=. | |
8985 | libname=conftest | |
8986 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8987 | allow_undefined_flag= | |
8988 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8989 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8990 | ac_status=$? | |
8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8992 | (exit $ac_status); } | |
8993 | then | |
8994 | archive_cmds_need_lc=no | |
8995 | else | |
8996 | archive_cmds_need_lc=yes | |
8997 | fi | |
8998 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8999 | else | |
9000 | cat conftest.err 1>&5 | |
9001 | fi | |
9002 | $RM conftest* | |
9003 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9004 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
9005 | ;; | |
9006 | esac | |
d7040cdb | 9007 | fi |
d7040cdb | 9008 | ;; |
ce2cded5 | 9009 | esac |
d7040cdb | 9010 | |
d7040cdb | 9011 | |
d7040cdb | 9012 | |
d7040cdb | 9013 | |
d7040cdb | 9014 | |
d7040cdb | 9015 | |
d7040cdb | 9016 | |
d7040cdb SE |
9017 | |
9018 | ||
9019 | ||
9020 | ||
9021 | ||
9022 | ||
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | ||
9031 | ||
9032 | ||
9033 | ||
9034 | ||
9035 | ||
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | ||
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | ||
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | ||
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | ||
9071 | ||
9072 | ||
9073 | ||
9074 | ||
9075 | ||
9076 | ||
9077 | ||
9078 | ||
9079 | ||
9080 | ||
9081 | ||
9082 | ||
9083 | ||
9084 | ||
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | ||
9090 | ||
9091 | ||
9092 | ||
9093 | ||
9094 | ||
9095 | ||
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | ||
9103 | ||
d7040cdb | 9104 | |
d7040cdb | 9105 | |
d7040cdb SE |
9106 | |
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | ||
d7040cdb | 9112 | |
d7040cdb | 9113 | |
d7040cdb | 9114 | |
d7040cdb | 9115 | |
d7040cdb | 9116 | |
d7040cdb | 9117 | |
d7040cdb | 9118 | |
d7040cdb | 9119 | |
d7040cdb | 9120 | |
d7040cdb | 9121 | |
d7040cdb | 9122 | |
d7040cdb | 9123 | |
d7040cdb | 9124 | |
d7040cdb | 9125 | |
d7040cdb | 9126 | |
d7040cdb | 9127 | |
d7040cdb | 9128 | |
d7040cdb | 9129 | |
d7040cdb | 9130 | |
d7040cdb | 9131 | |
d7040cdb | 9132 | |
d7040cdb | 9133 | |
d7040cdb | 9134 | |
ce2cded5 L |
9135 | |
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9168 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
9169 | withGCC=$GCC | |
9170 | if test "$withGCC" = yes; then | |
9171 | case $host_os in | |
9172 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9173 | *) lt_awk_arg="/^libraries:/" ;; | |
9174 | esac | |
9175 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9176 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9177 | # if the path contains ";" then we assume it to be the separator | |
9178 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9179 | # assumed that no part of a normal pathname contains ";" but that should | |
9180 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9181 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9182 | else | |
9183 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9184 | fi | |
9185 | # Ok, now we have the path, separated by spaces, we can step through it | |
9186 | # and add multilib dir if necessary. | |
9187 | lt_tmp_lt_search_path_spec= | |
9188 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9189 | for lt_sys_path in $lt_search_path_spec; do | |
9190 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9191 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9192 | else | |
9193 | test -d "$lt_sys_path" && \ | |
9194 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9195 | fi | |
9196 | done | |
9197 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9198 | BEGIN {RS=" "; FS="/|\n";} { | |
9199 | lt_foo=""; | |
9200 | lt_count=0; | |
9201 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9202 | if ($lt_i != "" && $lt_i != ".") { | |
9203 | if ($lt_i == "..") { | |
9204 | lt_count++; | |
9205 | } else { | |
9206 | if (lt_count == 0) { | |
9207 | lt_foo="/" $lt_i lt_foo; | |
9208 | } else { | |
9209 | lt_count--; | |
9210 | } | |
9211 | } | |
9212 | } | |
9213 | } | |
9214 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9215 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9216 | }'` | |
9217 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 9218 | else |
ce2cded5 L |
9219 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9220 | fi | |
9221 | library_names_spec= | |
9222 | libname_spec='lib$name' | |
9223 | soname_spec= | |
9224 | shrext_cmds=".so" | |
9225 | postinstall_cmds= | |
9226 | postuninstall_cmds= | |
9227 | finish_cmds= | |
9228 | finish_eval= | |
9229 | shlibpath_var= | |
9230 | shlibpath_overrides_runpath=unknown | |
9231 | version_type=none | |
9232 | dynamic_linker="$host_os ld.so" | |
9233 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9234 | need_lib_prefix=unknown | |
9235 | hardcode_into_libs=no | |
9236 | ||
9237 | # when you set need_version to no, make sure it does not cause -set_version | |
9238 | # flags to be left without arguments | |
9239 | need_version=unknown | |
9240 | ||
9241 | case $host_os in | |
9242 | aix3*) | |
9243 | version_type=linux | |
9244 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9245 | shlibpath_var=LIBPATH | |
9246 | ||
9247 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9248 | soname_spec='${libname}${release}${shared_ext}$major' | |
9249 | ;; | |
9250 | ||
50e7d84b | 9251 | aix[4-9]*) |
ce2cded5 L |
9252 | version_type=linux |
9253 | need_lib_prefix=no | |
9254 | need_version=no | |
9255 | hardcode_into_libs=yes | |
9256 | if test "$host_cpu" = ia64; then | |
9257 | # AIX 5 supports IA64 | |
9258 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9259 | shlibpath_var=LD_LIBRARY_PATH | |
9260 | else | |
9261 | # With GCC up to 2.95.x, collect2 would create an import file | |
9262 | # for dependence libraries. The import file would start with | |
9263 | # the line `#! .'. This would cause the generated library to | |
9264 | # depend on `.', always an invalid library. This was fixed in | |
9265 | # development snapshots of GCC prior to 3.0. | |
9266 | case $host_os in | |
9267 | aix4 | aix4.[01] | aix4.[01].*) | |
9268 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9269 | echo ' yes ' | |
9270 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9271 | : | |
9272 | else | |
9273 | can_build_shared=no | |
9274 | fi | |
9275 | ;; | |
9276 | esac | |
9277 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9278 | # soname into executable. Probably we can add versioning support to | |
9279 | # collect2, so additional links can be useful in future. | |
9280 | if test "$aix_use_runtimelinking" = yes; then | |
9281 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9282 | # instead of lib<name>.a to let people know that these are not | |
9283 | # typical AIX shared libraries. | |
9284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9285 | else | |
9286 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9287 | # and later when we are not doing run time linking. | |
9288 | library_names_spec='${libname}${release}.a $libname.a' | |
9289 | soname_spec='${libname}${release}${shared_ext}$major' | |
9290 | fi | |
9291 | shlibpath_var=LIBPATH | |
9292 | fi | |
9293 | ;; | |
9294 | ||
9295 | amigaos*) | |
9296 | if test "$host_cpu" = m68k; then | |
9297 | library_names_spec='$libname.ixlibrary $libname.a' | |
9298 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9299 | 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' | |
9300 | else | |
9301 | dynamic_linker=no | |
9302 | fi | |
9303 | ;; | |
9304 | ||
9305 | beos*) | |
9306 | library_names_spec='${libname}${shared_ext}' | |
9307 | dynamic_linker="$host_os ld.so" | |
9308 | shlibpath_var=LIBRARY_PATH | |
9309 | ;; | |
9310 | ||
9311 | bsdi[45]*) | |
9312 | version_type=linux | |
9313 | need_version=no | |
9314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9315 | soname_spec='${libname}${release}${shared_ext}$major' | |
9316 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9317 | shlibpath_var=LD_LIBRARY_PATH | |
9318 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9319 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9320 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9321 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9322 | # libtool to hard-code these into programs | |
9323 | ;; | |
9324 | ||
9325 | cygwin* | mingw* | pw32*) | |
9326 | version_type=windows | |
9327 | shrext_cmds=".dll" | |
9328 | need_version=no | |
9329 | need_lib_prefix=no | |
9330 | ||
9331 | case $withGCC,$host_os in | |
9332 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
9333 | library_names_spec='$libname.dll.a' | |
9334 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9335 | postinstall_cmds='base_file=`basename \${file}`~ | |
9336 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9337 | dldir=$destdir/`dirname \$dlpath`~ | |
9338 | test -d \$dldir || mkdir -p \$dldir~ | |
9339 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9340 | chmod a+x \$dldir/$dlname~ | |
9341 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9342 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9343 | fi' | |
9344 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9345 | dlpath=$dir/\$dldll~ | |
9346 | $RM \$dlpath' | |
9347 | shlibpath_overrides_runpath=yes | |
9348 | ||
9349 | case $host_os in | |
9350 | cygwin*) | |
9351 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9352 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9353 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9354 | ;; | |
9355 | mingw*) | |
9356 | # MinGW DLLs use traditional 'lib' prefix | |
9357 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9358 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9359 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9360 | # It is most probably a Windows format PATH printed by | |
9361 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9362 | # path with ; separators, and with drive letters. We can handle the | |
9363 | # drive letters (cygwin fileutils understands them), so leave them, | |
9364 | # especially as we might pass files found there to a mingw objdump, | |
9365 | # which wouldn't understand a cygwinified path. Ahh. | |
9366 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9367 | else | |
9368 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9369 | fi | |
9370 | ;; | |
9371 | pw32*) | |
9372 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9373 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9374 | ;; | |
9375 | esac | |
9376 | ;; | |
9377 | ||
9378 | *) | |
9379 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9380 | ;; | |
9381 | esac | |
9382 | dynamic_linker='Win32 ld.exe' | |
9383 | # FIXME: first we should search . and the directory the executable is in | |
9384 | shlibpath_var=PATH | |
9385 | ;; | |
9386 | ||
9387 | darwin* | rhapsody*) | |
9388 | dynamic_linker="$host_os dyld" | |
9389 | version_type=darwin | |
9390 | need_lib_prefix=no | |
9391 | need_version=no | |
9392 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9393 | soname_spec='${libname}${release}${major}$shared_ext' | |
9394 | shlibpath_overrides_runpath=yes | |
9395 | shlibpath_var=DYLD_LIBRARY_PATH | |
9396 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9397 | ||
9398 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9399 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9400 | ;; | |
9401 | ||
9402 | dgux*) | |
9403 | version_type=linux | |
9404 | need_lib_prefix=no | |
9405 | need_version=no | |
9406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9407 | soname_spec='${libname}${release}${shared_ext}$major' | |
9408 | shlibpath_var=LD_LIBRARY_PATH | |
9409 | ;; | |
9410 | ||
9411 | freebsd1*) | |
9412 | dynamic_linker=no | |
9413 | ;; | |
9414 | ||
9415 | freebsd* | dragonfly*) | |
9416 | # DragonFly does not have aout. When/if they implement a new | |
9417 | # versioning mechanism, adjust this. | |
9418 | if test -x /usr/bin/objformat; then | |
9419 | objformat=`/usr/bin/objformat` | |
9420 | else | |
9421 | case $host_os in | |
9422 | freebsd[123]*) objformat=aout ;; | |
9423 | *) objformat=elf ;; | |
9424 | esac | |
9425 | fi | |
9426 | version_type=freebsd-$objformat | |
9427 | case $version_type in | |
9428 | freebsd-elf*) | |
9429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9430 | need_version=no | |
9431 | need_lib_prefix=no | |
9432 | ;; | |
9433 | freebsd-*) | |
9434 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9435 | need_version=yes | |
9436 | ;; | |
9437 | esac | |
9438 | shlibpath_var=LD_LIBRARY_PATH | |
9439 | case $host_os in | |
9440 | freebsd2*) | |
9441 | shlibpath_overrides_runpath=yes | |
9442 | ;; | |
9443 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9444 | shlibpath_overrides_runpath=yes | |
9445 | hardcode_into_libs=yes | |
9446 | ;; | |
9447 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9448 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9449 | shlibpath_overrides_runpath=no | |
9450 | hardcode_into_libs=yes | |
9451 | ;; | |
9452 | *) # from 4.6 on, and DragonFly | |
9453 | shlibpath_overrides_runpath=yes | |
9454 | hardcode_into_libs=yes | |
9455 | ;; | |
9456 | esac | |
9457 | ;; | |
9458 | ||
9459 | gnu*) | |
9460 | version_type=linux | |
9461 | need_lib_prefix=no | |
9462 | need_version=no | |
9463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9464 | soname_spec='${libname}${release}${shared_ext}$major' | |
9465 | shlibpath_var=LD_LIBRARY_PATH | |
9466 | hardcode_into_libs=yes | |
9467 | ;; | |
9468 | ||
9469 | hpux9* | hpux10* | hpux11*) | |
9470 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9471 | # link against other versions. | |
9472 | version_type=sunos | |
9473 | need_lib_prefix=no | |
9474 | need_version=no | |
9475 | case $host_cpu in | |
9476 | ia64*) | |
9477 | shrext_cmds='.so' | |
9478 | hardcode_into_libs=yes | |
9479 | dynamic_linker="$host_os dld.so" | |
9480 | shlibpath_var=LD_LIBRARY_PATH | |
9481 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9483 | soname_spec='${libname}${release}${shared_ext}$major' | |
9484 | if test "X$HPUX_IA64_MODE" = X32; then | |
9485 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9486 | else | |
9487 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9488 | fi | |
9489 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9490 | ;; | |
9491 | hppa*64*) | |
9492 | shrext_cmds='.sl' | |
9493 | hardcode_into_libs=yes | |
9494 | dynamic_linker="$host_os dld.sl" | |
9495 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9496 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9498 | soname_spec='${libname}${release}${shared_ext}$major' | |
9499 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9500 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9501 | ;; | |
9502 | *) | |
9503 | shrext_cmds='.sl' | |
9504 | dynamic_linker="$host_os dld.sl" | |
9505 | shlibpath_var=SHLIB_PATH | |
9506 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9508 | soname_spec='${libname}${release}${shared_ext}$major' | |
9509 | ;; | |
9510 | esac | |
9511 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9512 | postinstall_cmds='chmod 555 $lib' | |
9513 | ;; | |
9514 | ||
9515 | interix[3-9]*) | |
9516 | version_type=linux | |
9517 | need_lib_prefix=no | |
9518 | need_version=no | |
9519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9520 | soname_spec='${libname}${release}${shared_ext}$major' | |
9521 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9522 | shlibpath_var=LD_LIBRARY_PATH | |
9523 | shlibpath_overrides_runpath=no | |
9524 | hardcode_into_libs=yes | |
9525 | ;; | |
9526 | ||
9527 | irix5* | irix6* | nonstopux*) | |
9528 | case $host_os in | |
9529 | nonstopux*) version_type=nonstopux ;; | |
9530 | *) | |
9531 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9532 | version_type=linux | |
9533 | else | |
9534 | version_type=irix | |
9535 | fi ;; | |
9536 | esac | |
9537 | need_lib_prefix=no | |
9538 | need_version=no | |
9539 | soname_spec='${libname}${release}${shared_ext}$major' | |
9540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9541 | case $host_os in | |
9542 | irix5* | nonstopux*) | |
9543 | libsuff= shlibsuff= | |
9544 | ;; | |
9545 | *) | |
9546 | case $LD in # libtool.m4 will add one of these switches to LD | |
9547 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9548 | libsuff= shlibsuff= libmagic=32-bit;; | |
9549 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9550 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9551 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9552 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9553 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9554 | esac | |
9555 | ;; | |
9556 | esac | |
9557 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9558 | shlibpath_overrides_runpath=no | |
9559 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9560 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9561 | hardcode_into_libs=yes | |
9562 | ;; | |
d7040cdb | 9563 | |
ce2cded5 L |
9564 | # No shared lib support for Linux oldld, aout, or coff. |
9565 | linux*oldld* | linux*aout* | linux*coff*) | |
9566 | dynamic_linker=no | |
9567 | ;; | |
9568 | ||
9569 | # This must be Linux ELF. | |
9570 | linux* | k*bsd*-gnu) | |
9571 | version_type=linux | |
9572 | need_lib_prefix=no | |
9573 | need_version=no | |
9574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9575 | soname_spec='${libname}${release}${shared_ext}$major' | |
9576 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9577 | shlibpath_var=LD_LIBRARY_PATH | |
9578 | shlibpath_overrides_runpath=no | |
9579 | # Some binutils ld are patched to set DT_RUNPATH | |
9580 | save_LDFLAGS=$LDFLAGS | |
9581 | save_libdir=$libdir | |
9582 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9583 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9584 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
9585 | /* confdefs.h. */ |
9586 | _ACEOF | |
9587 | cat confdefs.h >>conftest.$ac_ext | |
9588 | cat >>conftest.$ac_ext <<_ACEOF | |
9589 | /* end confdefs.h. */ | |
9590 | ||
d7040cdb SE |
9591 | int |
9592 | main () | |
9593 | { | |
ce2cded5 | 9594 | |
d7040cdb SE |
9595 | ; |
9596 | return 0; | |
9597 | } | |
9598 | _ACEOF | |
9599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9601 | (eval $ac_link) 2>conftest.er1 | |
9602 | ac_status=$? | |
9603 | grep -v '^ *+' conftest.er1 >conftest.err | |
9604 | rm -f conftest.er1 | |
9605 | cat conftest.err >&5 | |
9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9607 | (exit $ac_status); } && | |
9608 | { ac_try='test -z "$ac_c_werror_flag" | |
9609 | || test ! -s conftest.err' | |
9610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9611 | (eval $ac_try) 2>&5 | |
9612 | ac_status=$? | |
9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9614 | (exit $ac_status); }; } && | |
9615 | { ac_try='test -s conftest$ac_exeext' | |
9616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9617 | (eval $ac_try) 2>&5 | |
9618 | ac_status=$? | |
9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9620 | (exit $ac_status); }; }; then | |
ce2cded5 L |
9621 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
9622 | shlibpath_overrides_runpath=yes | |
9623 | fi | |
9624 | ||
d7040cdb SE |
9625 | else |
9626 | echo "$as_me: failed program was:" >&5 | |
9627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9628 | ||
ce2cded5 L |
9629 | fi |
9630 | rm -f conftest.err conftest.$ac_objext \ | |
9631 | conftest$ac_exeext conftest.$ac_ext | |
9632 | LDFLAGS=$save_LDFLAGS | |
9633 | libdir=$save_libdir | |
9634 | ||
9635 | # This implies no fast_install, which is unacceptable. | |
9636 | # Some rework will be needed to allow for fast_install | |
9637 | # before this can be enabled. | |
9638 | hardcode_into_libs=yes | |
9639 | ||
9640 | # Append ld.so.conf contents to the search path | |
9641 | if test -f /etc/ld.so.conf; then | |
9642 | 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' ' '` | |
9643 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9644 | fi | |
9645 | ||
9646 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9647 | # powerpc, because MkLinux only supported shared libraries with the | |
9648 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9649 | # most powerpc-linux boxes support dynamic linking these days and | |
9650 | # people can always --disable-shared, the test was removed, and we | |
9651 | # assume the GNU/Linux dynamic linker is in use. | |
9652 | dynamic_linker='GNU/Linux ld.so' | |
9653 | ;; | |
9654 | ||
9655 | netbsd*) | |
9656 | version_type=sunos | |
9657 | need_lib_prefix=no | |
9658 | need_version=no | |
9659 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9661 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9662 | dynamic_linker='NetBSD (a.out) ld.so' | |
9663 | else | |
9664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9665 | soname_spec='${libname}${release}${shared_ext}$major' | |
9666 | dynamic_linker='NetBSD ld.elf_so' | |
9667 | fi | |
9668 | shlibpath_var=LD_LIBRARY_PATH | |
9669 | shlibpath_overrides_runpath=yes | |
9670 | hardcode_into_libs=yes | |
9671 | ;; | |
9672 | ||
9673 | newsos6) | |
9674 | version_type=linux | |
9675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9676 | shlibpath_var=LD_LIBRARY_PATH | |
9677 | shlibpath_overrides_runpath=yes | |
9678 | ;; | |
9679 | ||
9680 | *nto* | *qnx*) | |
9681 | version_type=qnx | |
9682 | need_lib_prefix=no | |
9683 | need_version=no | |
9684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9685 | soname_spec='${libname}${release}${shared_ext}$major' | |
9686 | shlibpath_var=LD_LIBRARY_PATH | |
9687 | shlibpath_overrides_runpath=no | |
9688 | hardcode_into_libs=yes | |
9689 | dynamic_linker='ldqnx.so' | |
9690 | ;; | |
9691 | ||
9692 | openbsd*) | |
9693 | version_type=sunos | |
9694 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9695 | need_lib_prefix=no | |
9696 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9697 | case $host_os in | |
9698 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9699 | *) need_version=no ;; | |
9700 | esac | |
9701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9702 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9703 | shlibpath_var=LD_LIBRARY_PATH | |
9704 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9705 | case $host_os in | |
9706 | openbsd2.[89] | openbsd2.[89].*) | |
9707 | shlibpath_overrides_runpath=no | |
9708 | ;; | |
9709 | *) | |
9710 | shlibpath_overrides_runpath=yes | |
9711 | ;; | |
9712 | esac | |
9713 | else | |
9714 | shlibpath_overrides_runpath=yes | |
9715 | fi | |
9716 | ;; | |
9717 | ||
9718 | os2*) | |
9719 | libname_spec='$name' | |
9720 | shrext_cmds=".dll" | |
9721 | need_lib_prefix=no | |
9722 | library_names_spec='$libname${shared_ext} $libname.a' | |
9723 | dynamic_linker='OS/2 ld.exe' | |
9724 | shlibpath_var=LIBPATH | |
9725 | ;; | |
9726 | ||
9727 | osf3* | osf4* | osf5*) | |
9728 | version_type=osf | |
9729 | need_lib_prefix=no | |
9730 | need_version=no | |
9731 | soname_spec='${libname}${release}${shared_ext}$major' | |
9732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9733 | shlibpath_var=LD_LIBRARY_PATH | |
9734 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9735 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9736 | ;; | |
9737 | ||
9738 | rdos*) | |
9739 | dynamic_linker=no | |
9740 | ;; | |
9741 | ||
9742 | solaris*) | |
9743 | version_type=linux | |
9744 | need_lib_prefix=no | |
9745 | need_version=no | |
9746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9747 | soname_spec='${libname}${release}${shared_ext}$major' | |
9748 | shlibpath_var=LD_LIBRARY_PATH | |
9749 | shlibpath_overrides_runpath=yes | |
9750 | hardcode_into_libs=yes | |
9751 | # ldd complains unless libraries are executable | |
9752 | postinstall_cmds='chmod +x $lib' | |
9753 | ;; | |
9754 | ||
9755 | sunos4*) | |
9756 | version_type=sunos | |
9757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9758 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9759 | shlibpath_var=LD_LIBRARY_PATH | |
9760 | shlibpath_overrides_runpath=yes | |
9761 | if test "$with_gnu_ld" = yes; then | |
9762 | need_lib_prefix=no | |
9763 | fi | |
9764 | need_version=yes | |
9765 | ;; | |
9766 | ||
9767 | sysv4 | sysv4.3*) | |
9768 | version_type=linux | |
9769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9770 | soname_spec='${libname}${release}${shared_ext}$major' | |
9771 | shlibpath_var=LD_LIBRARY_PATH | |
9772 | case $host_vendor in | |
9773 | sni) | |
9774 | shlibpath_overrides_runpath=no | |
9775 | need_lib_prefix=no | |
9776 | runpath_var=LD_RUN_PATH | |
9777 | ;; | |
9778 | siemens) | |
9779 | need_lib_prefix=no | |
9780 | ;; | |
9781 | motorola) | |
9782 | need_lib_prefix=no | |
9783 | need_version=no | |
9784 | shlibpath_overrides_runpath=no | |
9785 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9786 | ;; | |
9787 | esac | |
9788 | ;; | |
9789 | ||
9790 | sysv4*MP*) | |
9791 | if test -d /usr/nec ;then | |
9792 | version_type=linux | |
9793 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9794 | soname_spec='$libname${shared_ext}.$major' | |
9795 | shlibpath_var=LD_LIBRARY_PATH | |
9796 | fi | |
9797 | ;; | |
9798 | ||
9799 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9800 | version_type=freebsd-elf | |
9801 | need_lib_prefix=no | |
9802 | need_version=no | |
9803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9804 | soname_spec='${libname}${release}${shared_ext}$major' | |
9805 | shlibpath_var=LD_LIBRARY_PATH | |
9806 | shlibpath_overrides_runpath=yes | |
9807 | hardcode_into_libs=yes | |
9808 | if test "$with_gnu_ld" = yes; then | |
9809 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9810 | else | |
9811 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9812 | case $host_os in | |
9813 | sco3.2v5*) | |
9814 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9815 | ;; | |
9816 | esac | |
9817 | fi | |
9818 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9819 | ;; | |
9820 | ||
9821 | tpf*) | |
9822 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9823 | version_type=linux | |
9824 | need_lib_prefix=no | |
9825 | need_version=no | |
9826 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9827 | shlibpath_var=LD_LIBRARY_PATH | |
9828 | shlibpath_overrides_runpath=no | |
9829 | hardcode_into_libs=yes | |
9830 | ;; | |
d7040cdb | 9831 | |
ce2cded5 L |
9832 | uts4*) |
9833 | version_type=linux | |
9834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9835 | soname_spec='${libname}${release}${shared_ext}$major' | |
9836 | shlibpath_var=LD_LIBRARY_PATH | |
9837 | ;; | |
d7040cdb | 9838 | |
ce2cded5 L |
9839 | *) |
9840 | dynamic_linker=no | |
9841 | ;; | |
9842 | esac | |
9843 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9844 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9845 | test "$dynamic_linker" = no && can_build_shared=no | |
9846 | ||
9847 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9848 | if test "$GCC" = yes; then | |
9849 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 9850 | fi |
d7040cdb | 9851 | |
d7040cdb | 9852 | |
d7040cdb SE |
9853 | |
9854 | ||
d7040cdb SE |
9855 | |
9856 | ||
d7040cdb SE |
9857 | |
9858 | ||
d7040cdb SE |
9859 | |
9860 | ||
d7040cdb SE |
9861 | |
9862 | ||
d7040cdb | 9863 | |
d7040cdb | 9864 | |
d7040cdb | 9865 | |
d7040cdb | 9866 | |
d7040cdb | 9867 | |
d7040cdb | 9868 | |
d7040cdb | 9869 | |
d7040cdb | 9870 | |
d7040cdb | 9871 | |
d7040cdb | 9872 | |
d7040cdb | 9873 | |
d7040cdb | 9874 | |
d7040cdb | 9875 | |
d7040cdb | 9876 | |
d7040cdb SE |
9877 | |
9878 | ||
d7040cdb | 9879 | |
d7040cdb | 9880 | |
d7040cdb | 9881 | |
d7040cdb | 9882 | |
d7040cdb | 9883 | |
d7040cdb | 9884 | |
d7040cdb | 9885 | |
d7040cdb | 9886 | |
d7040cdb | 9887 | |
d7040cdb SE |
9888 | |
9889 | ||
d7040cdb | 9890 | |
d7040cdb | 9891 | |
d7040cdb | 9892 | |
d7040cdb SE |
9893 | |
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
d7040cdb SE |
9910 | |
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
d7040cdb | 9922 | |
d7040cdb | 9923 | |
d7040cdb | 9924 | |
d7040cdb | 9925 | |
d7040cdb SE |
9926 | |
9927 | ||
9928 | ||
9929 | ||
ce2cded5 L |
9930 | |
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9939 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9940 | hardcode_action= | |
9941 | if test -n "$hardcode_libdir_flag_spec" || | |
9942 | test -n "$runpath_var" || | |
9943 | test "X$hardcode_automatic" = "Xyes" ; then | |
9944 | ||
9945 | # We can hardcode non-existent directories. | |
9946 | if test "$hardcode_direct" != no && | |
9947 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9948 | # have to relink, otherwise we might link with an installed library | |
9949 | # when we should be linking with a yet-to-be-installed one | |
9950 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9951 | test "$hardcode_minus_L" != no; then | |
9952 | # Linking always hardcodes the temporary library directory. | |
9953 | hardcode_action=relink | |
9954 | else | |
9955 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9956 | hardcode_action=immediate | |
9957 | fi | |
9958 | else | |
9959 | # We cannot hardcode anything, or else we can only hardcode existing | |
9960 | # directories. | |
9961 | hardcode_action=unsupported | |
9962 | fi | |
9963 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9964 | echo "${ECHO_T}$hardcode_action" >&6 | |
9965 | ||
9966 | if test "$hardcode_action" = relink || | |
9967 | test "$inherit_rpath" = yes; then | |
9968 | # Fast installation is not supported | |
9969 | enable_fast_install=no | |
9970 | elif test "$shlibpath_overrides_runpath" = yes || | |
9971 | test "$enable_shared" = no; then | |
9972 | # Fast installation is not necessary | |
9973 | enable_fast_install=needless | |
d7040cdb | 9974 | fi |
d7040cdb | 9975 | |
d7040cdb SE |
9976 | |
9977 | ||
9978 | ||
9979 | ||
9980 | ||
ce2cded5 L |
9981 | if test "x$enable_dlopen" != xyes; then |
9982 | enable_dlopen=unknown | |
9983 | enable_dlopen_self=unknown | |
9984 | enable_dlopen_self_static=unknown | |
9985 | else | |
9986 | lt_cv_dlopen=no | |
9987 | lt_cv_dlopen_libs= | |
9988 | ||
9989 | case $host_os in | |
9990 | beos*) | |
9991 | lt_cv_dlopen="load_add_on" | |
9992 | lt_cv_dlopen_libs= | |
9993 | lt_cv_dlopen_self=yes | |
9994 | ;; | |
d7040cdb | 9995 | |
ce2cded5 L |
9996 | mingw* | pw32*) |
9997 | lt_cv_dlopen="LoadLibrary" | |
9998 | lt_cv_dlopen_libs= | |
9999 | ;; | |
d7040cdb | 10000 | |
ce2cded5 L |
10001 | cygwin*) |
10002 | lt_cv_dlopen="dlopen" | |
10003 | lt_cv_dlopen_libs= | |
10004 | ;; | |
d7040cdb | 10005 | |
ce2cded5 L |
10006 | darwin*) |
10007 | # if libdl is installed we need to link against it | |
10008 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10009 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10010 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10012 | else | |
10013 | ac_check_lib_save_LIBS=$LIBS | |
10014 | LIBS="-ldl $LIBS" | |
10015 | cat >conftest.$ac_ext <<_ACEOF | |
10016 | /* confdefs.h. */ | |
10017 | _ACEOF | |
10018 | cat confdefs.h >>conftest.$ac_ext | |
10019 | cat >>conftest.$ac_ext <<_ACEOF | |
10020 | /* end confdefs.h. */ | |
d7040cdb | 10021 | |
ce2cded5 L |
10022 | /* Override any gcc2 internal prototype to avoid an error. */ |
10023 | #ifdef __cplusplus | |
10024 | extern "C" | |
10025 | #endif | |
10026 | /* We use char because int might match the return type of a gcc2 | |
10027 | builtin and then its argument prototype would still apply. */ | |
10028 | char dlopen (); | |
10029 | int | |
10030 | main () | |
10031 | { | |
10032 | dlopen (); | |
10033 | ; | |
10034 | return 0; | |
10035 | } | |
10036 | _ACEOF | |
10037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10039 | (eval $ac_link) 2>conftest.er1 | |
10040 | ac_status=$? | |
10041 | grep -v '^ *+' conftest.er1 >conftest.err | |
10042 | rm -f conftest.er1 | |
10043 | cat conftest.err >&5 | |
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10045 | (exit $ac_status); } && | |
10046 | { ac_try='test -z "$ac_c_werror_flag" | |
10047 | || test ! -s conftest.err' | |
10048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10049 | (eval $ac_try) 2>&5 | |
10050 | ac_status=$? | |
10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10052 | (exit $ac_status); }; } && | |
10053 | { ac_try='test -s conftest$ac_exeext' | |
10054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10055 | (eval $ac_try) 2>&5 | |
10056 | ac_status=$? | |
10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10058 | (exit $ac_status); }; }; then | |
10059 | ac_cv_lib_dl_dlopen=yes | |
10060 | else | |
10061 | echo "$as_me: failed program was:" >&5 | |
10062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10063 | |
ce2cded5 L |
10064 | ac_cv_lib_dl_dlopen=no |
10065 | fi | |
10066 | rm -f conftest.err conftest.$ac_objext \ | |
10067 | conftest$ac_exeext conftest.$ac_ext | |
10068 | LIBS=$ac_check_lib_save_LIBS | |
10069 | fi | |
10070 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10071 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10072 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10073 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10074 | else | |
d7040cdb | 10075 | |
ce2cded5 L |
10076 | lt_cv_dlopen="dyld" |
10077 | lt_cv_dlopen_libs= | |
10078 | lt_cv_dlopen_self=yes | |
d7040cdb | 10079 | |
ce2cded5 | 10080 | fi |
d7040cdb | 10081 | |
ce2cded5 | 10082 | ;; |
d7040cdb | 10083 | |
ce2cded5 L |
10084 | *) |
10085 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10086 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10087 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10089 | else | |
10090 | cat >conftest.$ac_ext <<_ACEOF | |
10091 | /* confdefs.h. */ | |
10092 | _ACEOF | |
10093 | cat confdefs.h >>conftest.$ac_ext | |
10094 | cat >>conftest.$ac_ext <<_ACEOF | |
10095 | /* end confdefs.h. */ | |
10096 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10098 | #define shl_load innocuous_shl_load | |
d7040cdb | 10099 | |
ce2cded5 L |
10100 | /* System header to define __stub macros and hopefully few prototypes, |
10101 | which can conflict with char shl_load (); below. | |
10102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10103 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 10104 | |
ce2cded5 L |
10105 | #ifdef __STDC__ |
10106 | # include <limits.h> | |
10107 | #else | |
10108 | # include <assert.h> | |
10109 | #endif | |
d7040cdb | 10110 | |
ce2cded5 | 10111 | #undef shl_load |
d7040cdb | 10112 | |
ce2cded5 L |
10113 | /* Override any gcc2 internal prototype to avoid an error. */ |
10114 | #ifdef __cplusplus | |
10115 | extern "C" | |
10116 | { | |
10117 | #endif | |
10118 | /* We use char because int might match the return type of a gcc2 | |
10119 | builtin and then its argument prototype would still apply. */ | |
10120 | char shl_load (); | |
10121 | /* The GNU C library defines this for functions which it implements | |
10122 | to always fail with ENOSYS. Some functions are actually named | |
10123 | something starting with __ and the normal name is an alias. */ | |
10124 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10125 | choke me | |
10126 | #else | |
10127 | char (*f) () = shl_load; | |
10128 | #endif | |
10129 | #ifdef __cplusplus | |
10130 | } | |
10131 | #endif | |
d7040cdb | 10132 | |
ce2cded5 L |
10133 | int |
10134 | main () | |
10135 | { | |
10136 | return f != shl_load; | |
10137 | ; | |
10138 | return 0; | |
10139 | } | |
10140 | _ACEOF | |
10141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10143 | (eval $ac_link) 2>conftest.er1 | |
10144 | ac_status=$? | |
10145 | grep -v '^ *+' conftest.er1 >conftest.err | |
10146 | rm -f conftest.er1 | |
10147 | cat conftest.err >&5 | |
10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10149 | (exit $ac_status); } && | |
10150 | { ac_try='test -z "$ac_c_werror_flag" | |
10151 | || test ! -s conftest.err' | |
10152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10153 | (eval $ac_try) 2>&5 | |
10154 | ac_status=$? | |
10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10156 | (exit $ac_status); }; } && | |
10157 | { ac_try='test -s conftest$ac_exeext' | |
10158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10159 | (eval $ac_try) 2>&5 | |
10160 | ac_status=$? | |
10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10162 | (exit $ac_status); }; }; then | |
10163 | ac_cv_func_shl_load=yes | |
10164 | else | |
10165 | echo "$as_me: failed program was:" >&5 | |
10166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10167 | |
ce2cded5 | 10168 | ac_cv_func_shl_load=no |
d7040cdb | 10169 | fi |
ce2cded5 L |
10170 | rm -f conftest.err conftest.$ac_objext \ |
10171 | conftest$ac_exeext conftest.$ac_ext | |
10172 | fi | |
10173 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10174 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10175 | if test $ac_cv_func_shl_load = yes; then | |
10176 | lt_cv_dlopen="shl_load" | |
10177 | else | |
10178 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10179 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10180 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10182 | else | |
10183 | ac_check_lib_save_LIBS=$LIBS | |
10184 | LIBS="-ldld $LIBS" | |
10185 | cat >conftest.$ac_ext <<_ACEOF | |
10186 | /* confdefs.h. */ | |
10187 | _ACEOF | |
10188 | cat confdefs.h >>conftest.$ac_ext | |
10189 | cat >>conftest.$ac_ext <<_ACEOF | |
10190 | /* end confdefs.h. */ | |
d7040cdb | 10191 | |
ce2cded5 L |
10192 | /* Override any gcc2 internal prototype to avoid an error. */ |
10193 | #ifdef __cplusplus | |
10194 | extern "C" | |
10195 | #endif | |
10196 | /* We use char because int might match the return type of a gcc2 | |
10197 | builtin and then its argument prototype would still apply. */ | |
10198 | char shl_load (); | |
10199 | int | |
10200 | main () | |
10201 | { | |
10202 | shl_load (); | |
10203 | ; | |
10204 | return 0; | |
10205 | } | |
d7040cdb | 10206 | _ACEOF |
ce2cded5 L |
10207 | rm -f conftest.$ac_objext conftest$ac_exeext |
10208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10209 | (eval $ac_link) 2>conftest.er1 | |
10210 | ac_status=$? | |
10211 | grep -v '^ *+' conftest.er1 >conftest.err | |
10212 | rm -f conftest.er1 | |
10213 | cat conftest.err >&5 | |
10214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10215 | (exit $ac_status); } && | |
10216 | { ac_try='test -z "$ac_c_werror_flag" | |
10217 | || test ! -s conftest.err' | |
10218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10219 | (eval $ac_try) 2>&5 | |
10220 | ac_status=$? | |
10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10222 | (exit $ac_status); }; } && | |
10223 | { ac_try='test -s conftest$ac_exeext' | |
10224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10225 | (eval $ac_try) 2>&5 | |
10226 | ac_status=$? | |
10227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10228 | (exit $ac_status); }; }; then | |
10229 | ac_cv_lib_dld_shl_load=yes | |
10230 | else | |
10231 | echo "$as_me: failed program was:" >&5 | |
10232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10233 | |
ce2cded5 | 10234 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10235 | fi |
ce2cded5 L |
10236 | rm -f conftest.err conftest.$ac_objext \ |
10237 | conftest$ac_exeext conftest.$ac_ext | |
10238 | LIBS=$ac_check_lib_save_LIBS | |
10239 | fi | |
10240 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10241 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10242 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10243 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10244 | else | |
10245 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10246 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10247 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10249 | else | |
10250 | cat >conftest.$ac_ext <<_ACEOF | |
10251 | /* confdefs.h. */ | |
10252 | _ACEOF | |
10253 | cat confdefs.h >>conftest.$ac_ext | |
10254 | cat >>conftest.$ac_ext <<_ACEOF | |
10255 | /* end confdefs.h. */ | |
10256 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10258 | #define dlopen innocuous_dlopen | |
d7040cdb | 10259 | |
ce2cded5 L |
10260 | /* System header to define __stub macros and hopefully few prototypes, |
10261 | which can conflict with char dlopen (); below. | |
10262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10263 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 10264 | |
ce2cded5 L |
10265 | #ifdef __STDC__ |
10266 | # include <limits.h> | |
10267 | #else | |
10268 | # include <assert.h> | |
10269 | #endif | |
d7040cdb | 10270 | |
ce2cded5 | 10271 | #undef dlopen |
d7040cdb | 10272 | |
ce2cded5 L |
10273 | /* Override any gcc2 internal prototype to avoid an error. */ |
10274 | #ifdef __cplusplus | |
10275 | extern "C" | |
10276 | { | |
10277 | #endif | |
10278 | /* We use char because int might match the return type of a gcc2 | |
10279 | builtin and then its argument prototype would still apply. */ | |
10280 | char dlopen (); | |
10281 | /* The GNU C library defines this for functions which it implements | |
10282 | to always fail with ENOSYS. Some functions are actually named | |
10283 | something starting with __ and the normal name is an alias. */ | |
10284 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10285 | choke me | |
10286 | #else | |
10287 | char (*f) () = dlopen; | |
10288 | #endif | |
10289 | #ifdef __cplusplus | |
10290 | } | |
10291 | #endif | |
d7040cdb | 10292 | |
ce2cded5 L |
10293 | int |
10294 | main () | |
10295 | { | |
10296 | return f != dlopen; | |
10297 | ; | |
10298 | return 0; | |
10299 | } | |
10300 | _ACEOF | |
10301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10303 | (eval $ac_link) 2>conftest.er1 | |
10304 | ac_status=$? | |
10305 | grep -v '^ *+' conftest.er1 >conftest.err | |
10306 | rm -f conftest.er1 | |
10307 | cat conftest.err >&5 | |
10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10309 | (exit $ac_status); } && | |
10310 | { ac_try='test -z "$ac_c_werror_flag" | |
10311 | || test ! -s conftest.err' | |
10312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10313 | (eval $ac_try) 2>&5 | |
10314 | ac_status=$? | |
10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10316 | (exit $ac_status); }; } && | |
10317 | { ac_try='test -s conftest$ac_exeext' | |
10318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10319 | (eval $ac_try) 2>&5 | |
10320 | ac_status=$? | |
10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10322 | (exit $ac_status); }; }; then | |
10323 | ac_cv_func_dlopen=yes | |
10324 | else | |
10325 | echo "$as_me: failed program was:" >&5 | |
10326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10327 | |
ce2cded5 | 10328 | ac_cv_func_dlopen=no |
d7040cdb | 10329 | fi |
ce2cded5 L |
10330 | rm -f conftest.err conftest.$ac_objext \ |
10331 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 10332 | fi |
ce2cded5 L |
10333 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
10334 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
10335 | if test $ac_cv_func_dlopen = yes; then | |
10336 | lt_cv_dlopen="dlopen" | |
10337 | else | |
10338 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10339 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10340 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
10341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10342 | else | |
ce2cded5 L |
10343 | ac_check_lib_save_LIBS=$LIBS |
10344 | LIBS="-ldl $LIBS" | |
d7040cdb SE |
10345 | cat >conftest.$ac_ext <<_ACEOF |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
d7040cdb | 10351 | |
ce2cded5 L |
10352 | /* Override any gcc2 internal prototype to avoid an error. */ |
10353 | #ifdef __cplusplus | |
10354 | extern "C" | |
10355 | #endif | |
10356 | /* We use char because int might match the return type of a gcc2 | |
10357 | builtin and then its argument prototype would still apply. */ | |
10358 | char dlopen (); | |
d7040cdb SE |
10359 | int |
10360 | main () | |
10361 | { | |
ce2cded5 | 10362 | dlopen (); |
d7040cdb SE |
10363 | ; |
10364 | return 0; | |
10365 | } | |
10366 | _ACEOF | |
ce2cded5 L |
10367 | rm -f conftest.$ac_objext conftest$ac_exeext |
10368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10369 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10370 | ac_status=$? |
10371 | grep -v '^ *+' conftest.er1 >conftest.err | |
10372 | rm -f conftest.er1 | |
10373 | cat conftest.err >&5 | |
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10375 | (exit $ac_status); } && | |
10376 | { ac_try='test -z "$ac_c_werror_flag" | |
10377 | || test ! -s conftest.err' | |
10378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10379 | (eval $ac_try) 2>&5 | |
10380 | ac_status=$? | |
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10382 | (exit $ac_status); }; } && | |
ce2cded5 | 10383 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
10384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10385 | (eval $ac_try) 2>&5 | |
10386 | ac_status=$? | |
10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10388 | (exit $ac_status); }; }; then | |
ce2cded5 L |
10389 | ac_cv_lib_dl_dlopen=yes |
10390 | else | |
10391 | echo "$as_me: failed program was:" >&5 | |
10392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10393 | ||
10394 | ac_cv_lib_dl_dlopen=no | |
10395 | fi | |
10396 | rm -f conftest.err conftest.$ac_objext \ | |
10397 | conftest$ac_exeext conftest.$ac_ext | |
10398 | LIBS=$ac_check_lib_save_LIBS | |
10399 | fi | |
10400 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10401 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10402 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10403 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10404 | else | |
10405 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10406 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
10407 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10409 | else | |
10410 | ac_check_lib_save_LIBS=$LIBS | |
10411 | LIBS="-lsvld $LIBS" | |
d7040cdb SE |
10412 | cat >conftest.$ac_ext <<_ACEOF |
10413 | /* confdefs.h. */ | |
10414 | _ACEOF | |
10415 | cat confdefs.h >>conftest.$ac_ext | |
10416 | cat >>conftest.$ac_ext <<_ACEOF | |
10417 | /* end confdefs.h. */ | |
d7040cdb | 10418 | |
ce2cded5 L |
10419 | /* Override any gcc2 internal prototype to avoid an error. */ |
10420 | #ifdef __cplusplus | |
10421 | extern "C" | |
10422 | #endif | |
10423 | /* We use char because int might match the return type of a gcc2 | |
10424 | builtin and then its argument prototype would still apply. */ | |
10425 | char dlopen (); | |
d7040cdb SE |
10426 | int |
10427 | main () | |
10428 | { | |
ce2cded5 | 10429 | dlopen (); |
d7040cdb SE |
10430 | ; |
10431 | return 0; | |
10432 | } | |
10433 | _ACEOF | |
ce2cded5 L |
10434 | rm -f conftest.$ac_objext conftest$ac_exeext |
10435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10436 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10437 | ac_status=$? |
10438 | grep -v '^ *+' conftest.er1 >conftest.err | |
10439 | rm -f conftest.er1 | |
10440 | cat conftest.err >&5 | |
10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10442 | (exit $ac_status); } && | |
10443 | { ac_try='test -z "$ac_c_werror_flag" | |
10444 | || test ! -s conftest.err' | |
10445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10446 | (eval $ac_try) 2>&5 | |
10447 | ac_status=$? | |
10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10449 | (exit $ac_status); }; } && | |
ce2cded5 | 10450 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
10451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10452 | (eval $ac_try) 2>&5 | |
10453 | ac_status=$? | |
10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10455 | (exit $ac_status); }; }; then | |
ce2cded5 | 10456 | ac_cv_lib_svld_dlopen=yes |
d7040cdb SE |
10457 | else |
10458 | echo "$as_me: failed program was:" >&5 | |
10459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10460 | ||
ce2cded5 | 10461 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10462 | fi |
ce2cded5 L |
10463 | rm -f conftest.err conftest.$ac_objext \ |
10464 | conftest$ac_exeext conftest.$ac_ext | |
10465 | LIBS=$ac_check_lib_save_LIBS | |
10466 | fi | |
10467 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10468 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10469 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10470 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10471 | else | |
10472 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10473 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10474 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 10476 | else |
ce2cded5 L |
10477 | ac_check_lib_save_LIBS=$LIBS |
10478 | LIBS="-ldld $LIBS" | |
10479 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
10480 | /* confdefs.h. */ |
10481 | _ACEOF | |
10482 | cat confdefs.h >>conftest.$ac_ext | |
10483 | cat >>conftest.$ac_ext <<_ACEOF | |
10484 | /* end confdefs.h. */ | |
ce2cded5 L |
10485 | |
10486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10487 | #ifdef __cplusplus | |
10488 | extern "C" | |
10489 | #endif | |
10490 | /* We use char because int might match the return type of a gcc2 | |
10491 | builtin and then its argument prototype would still apply. */ | |
10492 | char dld_link (); | |
d7040cdb SE |
10493 | int |
10494 | main () | |
10495 | { | |
ce2cded5 | 10496 | dld_link (); |
d7040cdb SE |
10497 | ; |
10498 | return 0; | |
10499 | } | |
10500 | _ACEOF | |
ce2cded5 L |
10501 | rm -f conftest.$ac_objext conftest$ac_exeext |
10502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10503 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10504 | ac_status=$? |
10505 | grep -v '^ *+' conftest.er1 >conftest.err | |
10506 | rm -f conftest.er1 | |
10507 | cat conftest.err >&5 | |
10508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10509 | (exit $ac_status); } && | |
10510 | { ac_try='test -z "$ac_c_werror_flag" | |
10511 | || test ! -s conftest.err' | |
10512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10513 | (eval $ac_try) 2>&5 | |
10514 | ac_status=$? | |
10515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10516 | (exit $ac_status); }; } && | |
ce2cded5 | 10517 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
10518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10519 | (eval $ac_try) 2>&5 | |
10520 | ac_status=$? | |
10521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10522 | (exit $ac_status); }; }; then | |
ce2cded5 L |
10523 | ac_cv_lib_dld_dld_link=yes |
10524 | else | |
10525 | echo "$as_me: failed program was:" >&5 | |
10526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10527 | ||
10528 | ac_cv_lib_dld_dld_link=no | |
d7040cdb | 10529 | fi |
ce2cded5 L |
10530 | rm -f conftest.err conftest.$ac_objext \ |
10531 | conftest$ac_exeext conftest.$ac_ext | |
10532 | LIBS=$ac_check_lib_save_LIBS | |
10533 | fi | |
10534 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10535 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10536 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10537 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10538 | fi | |
10539 | ||
10540 | ||
10541 | fi | |
10542 | ||
10543 | ||
10544 | fi | |
10545 | ||
10546 | ||
10547 | fi | |
10548 | ||
10549 | ||
10550 | fi | |
10551 | ||
10552 | ||
10553 | fi | |
10554 | ||
10555 | ;; | |
10556 | esac | |
10557 | ||
10558 | if test "x$lt_cv_dlopen" != xno; then | |
10559 | enable_dlopen=yes | |
d7040cdb | 10560 | else |
ce2cded5 | 10561 | enable_dlopen=no |
d7040cdb | 10562 | fi |
ce2cded5 L |
10563 | |
10564 | case $lt_cv_dlopen in | |
10565 | dlopen) | |
10566 | save_CPPFLAGS="$CPPFLAGS" | |
10567 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10568 | ||
10569 | save_LDFLAGS="$LDFLAGS" | |
10570 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10571 | ||
10572 | save_LIBS="$LIBS" | |
10573 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10574 | ||
10575 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10576 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10577 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 10579 | else |
ce2cded5 L |
10580 | if test "$cross_compiling" = yes; then : |
10581 | lt_cv_dlopen_self=cross | |
10582 | else | |
10583 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10584 | lt_status=$lt_dlunknown | |
10585 | cat > conftest.$ac_ext <<_LT_EOF | |
da594c4a | 10586 | #line 10221 "configure" |
ce2cded5 L |
10587 | #include "confdefs.h" |
10588 | ||
10589 | #if HAVE_DLFCN_H | |
10590 | #include <dlfcn.h> | |
10591 | #endif | |
10592 | ||
10593 | #include <stdio.h> | |
10594 | ||
10595 | #ifdef RTLD_GLOBAL | |
10596 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10597 | #else | |
10598 | # ifdef DL_GLOBAL | |
10599 | # define LT_DLGLOBAL DL_GLOBAL | |
10600 | # else | |
10601 | # define LT_DLGLOBAL 0 | |
10602 | # endif | |
10603 | #endif | |
10604 | ||
10605 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10606 | find out it does not work in some platform. */ | |
10607 | #ifndef LT_DLLAZY_OR_NOW | |
10608 | # ifdef RTLD_LAZY | |
10609 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10610 | # else | |
10611 | # ifdef DL_LAZY | |
10612 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10613 | # else | |
10614 | # ifdef RTLD_NOW | |
10615 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10616 | # else | |
10617 | # ifdef DL_NOW | |
10618 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10619 | # else | |
10620 | # define LT_DLLAZY_OR_NOW 0 | |
10621 | # endif | |
10622 | # endif | |
10623 | # endif | |
10624 | # endif | |
10625 | #endif | |
10626 | ||
10627 | #ifdef __cplusplus | |
10628 | extern "C" void exit (int); | |
10629 | #endif | |
10630 | ||
10631 | void fnord() { int i=42;} | |
10632 | int main () | |
10633 | { | |
10634 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10635 | int status = $lt_dlunknown; | |
10636 | ||
10637 | if (self) | |
10638 | { | |
10639 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10640 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10641 | /* dlclose (self); */ | |
10642 | } | |
10643 | else | |
10644 | puts (dlerror ()); | |
10645 | ||
10646 | exit (status); | |
10647 | } | |
10648 | _LT_EOF | |
10649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10650 | (eval $ac_link) 2>&5 | |
10651 | ac_status=$? | |
10652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10653 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10654 | (./conftest; exit; ) >&5 2>/dev/null | |
10655 | lt_status=$? | |
10656 | case x$lt_status in | |
10657 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10658 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10659 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10660 | esac | |
10661 | else : | |
10662 | # compilation failed | |
10663 | lt_cv_dlopen_self=no | |
10664 | fi | |
10665 | fi | |
10666 | rm -fr conftest* | |
10667 | ||
d7040cdb SE |
10668 | |
10669 | fi | |
ce2cded5 L |
10670 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10671 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10672 | ||
10673 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10674 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10675 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10676 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10677 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 10679 | else |
ce2cded5 L |
10680 | if test "$cross_compiling" = yes; then : |
10681 | lt_cv_dlopen_self_static=cross | |
10682 | else | |
10683 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10684 | lt_status=$lt_dlunknown | |
10685 | cat > conftest.$ac_ext <<_LT_EOF | |
da594c4a | 10686 | #line 10321 "configure" |
ce2cded5 L |
10687 | #include "confdefs.h" |
10688 | ||
10689 | #if HAVE_DLFCN_H | |
10690 | #include <dlfcn.h> | |
10691 | #endif | |
10692 | ||
10693 | #include <stdio.h> | |
10694 | ||
10695 | #ifdef RTLD_GLOBAL | |
10696 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10697 | #else | |
10698 | # ifdef DL_GLOBAL | |
10699 | # define LT_DLGLOBAL DL_GLOBAL | |
10700 | # else | |
10701 | # define LT_DLGLOBAL 0 | |
10702 | # endif | |
10703 | #endif | |
10704 | ||
10705 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10706 | find out it does not work in some platform. */ | |
10707 | #ifndef LT_DLLAZY_OR_NOW | |
10708 | # ifdef RTLD_LAZY | |
10709 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10710 | # else | |
10711 | # ifdef DL_LAZY | |
10712 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10713 | # else | |
10714 | # ifdef RTLD_NOW | |
10715 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10716 | # else | |
10717 | # ifdef DL_NOW | |
10718 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10719 | # else | |
10720 | # define LT_DLLAZY_OR_NOW 0 | |
10721 | # endif | |
10722 | # endif | |
10723 | # endif | |
10724 | # endif | |
10725 | #endif | |
10726 | ||
10727 | #ifdef __cplusplus | |
10728 | extern "C" void exit (int); | |
10729 | #endif | |
10730 | ||
10731 | void fnord() { int i=42;} | |
10732 | int main () | |
d7040cdb | 10733 | { |
ce2cded5 L |
10734 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10735 | int status = $lt_dlunknown; | |
10736 | ||
10737 | if (self) | |
10738 | { | |
10739 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10740 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10741 | /* dlclose (self); */ | |
10742 | } | |
10743 | else | |
10744 | puts (dlerror ()); | |
10745 | ||
10746 | exit (status); | |
d7040cdb | 10747 | } |
ce2cded5 L |
10748 | _LT_EOF |
10749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
d7040cdb SE |
10750 | (eval $ac_link) 2>&5 |
10751 | ac_status=$? | |
10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10753 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10754 | (./conftest; exit; ) >&5 2>/dev/null | |
10755 | lt_status=$? | |
10756 | case x$lt_status in | |
10757 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10758 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10759 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10760 | esac | |
10761 | else : | |
10762 | # compilation failed | |
10763 | lt_cv_dlopen_self_static=no | |
10764 | fi | |
d7040cdb | 10765 | fi |
ce2cded5 L |
10766 | rm -fr conftest* |
10767 | ||
10768 | ||
d7040cdb | 10769 | fi |
ce2cded5 L |
10770 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10771 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10772 | fi | |
10773 | ||
10774 | CPPFLAGS="$save_CPPFLAGS" | |
10775 | LDFLAGS="$save_LDFLAGS" | |
10776 | LIBS="$save_LIBS" | |
10777 | ;; | |
10778 | esac | |
10779 | ||
10780 | case $lt_cv_dlopen_self in | |
10781 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10782 | *) enable_dlopen_self=unknown ;; | |
10783 | esac | |
10784 | ||
10785 | case $lt_cv_dlopen_self_static in | |
10786 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10787 | *) enable_dlopen_self_static=unknown ;; | |
10788 | esac | |
d7040cdb | 10789 | fi |
d7040cdb | 10790 | |
d7040cdb SE |
10791 | |
10792 | ||
d7040cdb | 10793 | |
d7040cdb | 10794 | |
ce2cded5 L |
10795 | |
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | striplib= | |
10808 | old_striplib= | |
10809 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10810 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10811 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10812 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10813 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10814 | echo "$as_me:$LINENO: result: yes" >&5 | |
10815 | echo "${ECHO_T}yes" >&6 | |
10816 | else | |
10817 | # FIXME - insert some real tests, host_os isn't really good enough | |
10818 | case $host_os in | |
10819 | darwin*) | |
10820 | if test -n "$STRIP" ; then | |
10821 | striplib="$STRIP -x" | |
10822 | old_striplib="$STRIP -S" | |
10823 | echo "$as_me:$LINENO: result: yes" >&5 | |
10824 | echo "${ECHO_T}yes" >&6 | |
10825 | else | |
10826 | echo "$as_me:$LINENO: result: no" >&5 | |
10827 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 10828 | fi |
ce2cded5 L |
10829 | ;; |
10830 | *) | |
10831 | echo "$as_me:$LINENO: result: no" >&5 | |
10832 | echo "${ECHO_T}no" >&6 | |
10833 | ;; | |
d7040cdb | 10834 | esac |
d7040cdb SE |
10835 | fi |
10836 | ||
d7040cdb | 10837 | |
d7040cdb | 10838 | |
d7040cdb | 10839 | |
d7040cdb | 10840 | |
d7040cdb | 10841 | |
d7040cdb | 10842 | |
d7040cdb | 10843 | |
d7040cdb | 10844 | |
d7040cdb | 10845 | |
d7040cdb | 10846 | |
d7040cdb | 10847 | |
ce2cded5 L |
10848 | # Report which library types will actually be built |
10849 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10850 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10851 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10852 | echo "${ECHO_T}$can_build_shared" >&6 | |
d7040cdb | 10853 | |
ce2cded5 L |
10854 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10855 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10856 | test "$can_build_shared" = "no" && enable_shared=no | |
d7040cdb | 10857 | |
ce2cded5 L |
10858 | # On AIX, shared libraries and static libraries use the same namespace, and |
10859 | # are all built from PIC. | |
10860 | case $host_os in | |
10861 | aix3*) | |
10862 | test "$enable_shared" = yes && enable_static=no | |
10863 | if test -n "$RANLIB"; then | |
10864 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10865 | postinstall_cmds='$RANLIB $lib' | |
10866 | fi | |
10867 | ;; | |
d7040cdb | 10868 | |
50e7d84b | 10869 | aix[4-9]*) |
ce2cded5 L |
10870 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10871 | test "$enable_shared" = yes && enable_static=no | |
10872 | fi | |
10873 | ;; | |
10874 | esac | |
10875 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10876 | echo "${ECHO_T}$enable_shared" >&6 | |
10877 | ||
10878 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10879 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10880 | # Make sure either enable_shared or enable_static is yes. | |
10881 | test "$enable_shared" = yes || enable_static=yes | |
10882 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10883 | echo "${ECHO_T}$enable_static" >&6 | |
d7040cdb | 10884 | |
d7040cdb | 10885 | |
d7040cdb | 10886 | |
d7040cdb | 10887 | |
ce2cded5 L |
10888 | fi |
10889 | ac_ext=c | |
10890 | ac_cpp='$CPP $CPPFLAGS' | |
10891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 10894 | |
ce2cded5 | 10895 | CC="$lt_save_CC" |
d7040cdb | 10896 | |
d7040cdb | 10897 | |
d7040cdb | 10898 | |
d7040cdb | 10899 | |
d7040cdb | 10900 | |
d7040cdb | 10901 | |
d7040cdb | 10902 | |
d7040cdb | 10903 | |
d7040cdb | 10904 | |
d7040cdb SE |
10905 | |
10906 | ||
d7040cdb SE |
10907 | |
10908 | ||
ce2cded5 | 10909 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
10910 | |
10911 | ||
d7040cdb | 10912 | |
d7040cdb | 10913 | |
ce2cded5 | 10914 | # Only expand once: |
d7040cdb | 10915 | |
d7040cdb | 10916 | |
d7040cdb | 10917 | |
ce2cded5 L |
10918 | # Check whether --enable-targets or --disable-targets was given. |
10919 | if test "${enable_targets+set}" = set; then | |
10920 | enableval="$enable_targets" | |
10921 | case "${enableval}" in | |
10922 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
10923 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
10924 | { (exit 1); exit 1; }; } | |
10925 | ;; | |
10926 | no) enable_targets= ;; | |
10927 | *) enable_targets=$enableval ;; | |
10928 | esac | |
10929 | fi; | |
10930 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
10931 | if test "${enable_commonbfdlib+set}" = set; then | |
10932 | enableval="$enable_commonbfdlib" | |
10933 | case "${enableval}" in | |
10934 | yes) commonbfdlib=true ;; | |
10935 | no) commonbfdlib=false ;; | |
10936 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 | |
10937 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
10938 | { (exit 1); exit 1; }; } ;; | |
10939 | esac | |
10940 | fi; | |
10941 | ac_checking=yes | |
10942 | if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then | |
10943 | ac_checking= | |
10944 | fi | |
10945 | # Check whether --enable-checking or --disable-checking was given. | |
10946 | if test "${enable_checking+set}" = set; then | |
10947 | enableval="$enable_checking" | |
10948 | case "${enableval}" in | |
10949 | no|none) ac_checking= ;; | |
10950 | *) ac_checking=yes ;; | |
10951 | esac | |
10952 | fi; if test x$ac_checking != x ; then | |
d7040cdb | 10953 | |
ce2cded5 L |
10954 | cat >>confdefs.h <<\_ACEOF |
10955 | #define ENABLE_CHECKING 1 | |
10956 | _ACEOF | |
d7040cdb | 10957 | |
ce2cded5 | 10958 | fi |
d7040cdb | 10959 | |
ce2cded5 | 10960 | using_cgen=no |
d7040cdb | 10961 | |
d7040cdb | 10962 | |
ce2cded5 | 10963 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
d7040cdb | 10964 | |
ce2cded5 L |
10965 | # Check whether --enable-werror or --disable-werror was given. |
10966 | if test "${enable_werror+set}" = set; then | |
10967 | enableval="$enable_werror" | |
10968 | case "${enableval}" in | |
10969 | yes | y) ERROR_ON_WARNING="yes" ;; | |
10970 | no | n) ERROR_ON_WARNING="no" ;; | |
10971 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
10972 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
10973 | { (exit 1); exit 1; }; } ;; | |
10974 | esac | |
10975 | fi; | |
d7040cdb | 10976 | |
bb8541b9 L |
10977 | # Enable -Wno-format by default when using gcc on mingw |
10978 | case "${host}" in | |
10979 | *-*-mingw32*) | |
10980 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
10981 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
10982 | fi | |
10983 | ;; | |
10984 | *) ;; | |
10985 | esac | |
10986 | ||
ce2cded5 L |
10987 | # Enable -Werror by default when using gcc |
10988 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
10989 | ERROR_ON_WARNING=yes | |
10990 | fi | |
10991 | ||
10992 | NO_WERROR= | |
10993 | if test "${ERROR_ON_WARNING}" = yes ; then | |
10994 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
10995 | NO_WERROR="-Wno-error" | |
10996 | fi | |
10997 | ||
10998 | if test "${GCC}" = yes ; then | |
10999 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11000 | fi | |
11001 | ||
11002 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
11003 | if test "${enable_build_warnings+set}" = set; then | |
11004 | enableval="$enable_build_warnings" | |
11005 | case "${enableval}" in | |
11006 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
11007 | no) if test "${GCC}" = yes ; then | |
11008 | WARN_CFLAGS="-w" | |
11009 | fi;; | |
11010 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11011 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11012 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11013 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11014 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11015 | esac | |
11016 | fi; | |
d7040cdb | 11017 | |
ce2cded5 L |
11018 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11019 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11020 | fi | |
d7040cdb | 11021 | |
d7040cdb | 11022 | |
d7040cdb | 11023 | |
d7040cdb | 11024 | |
d7040cdb | 11025 | |
ce2cded5 L |
11026 | # Generate a header file |
11027 | ac_config_headers="$ac_config_headers config.h:config.in" | |
d7040cdb | 11028 | |
d7040cdb | 11029 | |
ce2cded5 L |
11030 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11031 | # .gdbinit. | |
11032 | case "${host}" in | |
11033 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11034 | GDBINIT="gdb.ini" | |
11035 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" | |
d7040cdb | 11036 | |
ce2cded5 L |
11037 | ;; |
11038 | *) | |
11039 | GDBINIT=".gdbinit" | |
11040 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" | |
d7040cdb | 11041 | |
ce2cded5 L |
11042 | ;; |
11043 | esac | |
d7040cdb | 11044 | |
d7040cdb | 11045 | |
ce2cded5 L |
11046 | #We need this for the host. BOUT header is in host order. |
11047 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
11048 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
11049 | if test "${ac_cv_c_bigendian+set}" = set; then | |
11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11051 | else | |
11052 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11053 | cat >conftest.$ac_ext <<_ACEOF | |
11054 | /* confdefs.h. */ | |
11055 | _ACEOF | |
11056 | cat confdefs.h >>conftest.$ac_ext | |
11057 | cat >>conftest.$ac_ext <<_ACEOF | |
11058 | /* end confdefs.h. */ | |
11059 | #include <sys/types.h> | |
11060 | #include <sys/param.h> | |
d7040cdb | 11061 | |
ce2cded5 L |
11062 | int |
11063 | main () | |
11064 | { | |
11065 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11066 | bogus endian macros | |
11067 | #endif | |
d7040cdb | 11068 | |
ce2cded5 L |
11069 | ; |
11070 | return 0; | |
11071 | } | |
11072 | _ACEOF | |
11073 | rm -f conftest.$ac_objext | |
11074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11075 | (eval $ac_compile) 2>conftest.er1 | |
11076 | ac_status=$? | |
11077 | grep -v '^ *+' conftest.er1 >conftest.err | |
11078 | rm -f conftest.er1 | |
11079 | cat conftest.err >&5 | |
11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11081 | (exit $ac_status); } && | |
11082 | { ac_try='test -z "$ac_c_werror_flag" | |
11083 | || test ! -s conftest.err' | |
11084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11085 | (eval $ac_try) 2>&5 | |
11086 | ac_status=$? | |
11087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11088 | (exit $ac_status); }; } && | |
11089 | { ac_try='test -s conftest.$ac_objext' | |
11090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11091 | (eval $ac_try) 2>&5 | |
11092 | ac_status=$? | |
11093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11094 | (exit $ac_status); }; }; then | |
11095 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
11096 | cat >conftest.$ac_ext <<_ACEOF | |
11097 | /* confdefs.h. */ | |
11098 | _ACEOF | |
11099 | cat confdefs.h >>conftest.$ac_ext | |
11100 | cat >>conftest.$ac_ext <<_ACEOF | |
11101 | /* end confdefs.h. */ | |
11102 | #include <sys/types.h> | |
11103 | #include <sys/param.h> | |
d7040cdb | 11104 | |
ce2cded5 L |
11105 | int |
11106 | main () | |
11107 | { | |
11108 | #if BYTE_ORDER != BIG_ENDIAN | |
11109 | not big endian | |
11110 | #endif | |
d7040cdb | 11111 | |
ce2cded5 L |
11112 | ; |
11113 | return 0; | |
11114 | } | |
11115 | _ACEOF | |
11116 | rm -f conftest.$ac_objext | |
11117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11118 | (eval $ac_compile) 2>conftest.er1 | |
11119 | ac_status=$? | |
11120 | grep -v '^ *+' conftest.er1 >conftest.err | |
11121 | rm -f conftest.er1 | |
11122 | cat conftest.err >&5 | |
11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11124 | (exit $ac_status); } && | |
11125 | { ac_try='test -z "$ac_c_werror_flag" | |
11126 | || test ! -s conftest.err' | |
11127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11128 | (eval $ac_try) 2>&5 | |
11129 | ac_status=$? | |
11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11131 | (exit $ac_status); }; } && | |
11132 | { ac_try='test -s conftest.$ac_objext' | |
11133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11134 | (eval $ac_try) 2>&5 | |
11135 | ac_status=$? | |
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11137 | (exit $ac_status); }; }; then | |
11138 | ac_cv_c_bigendian=yes | |
11139 | else | |
11140 | echo "$as_me: failed program was:" >&5 | |
11141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11142 | |
ce2cded5 L |
11143 | ac_cv_c_bigendian=no |
11144 | fi | |
11145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11146 | else | |
11147 | echo "$as_me: failed program was:" >&5 | |
11148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11149 | |
ce2cded5 L |
11150 | # It does not; compile a test program. |
11151 | if test "$cross_compiling" = yes; then | |
11152 | # try to guess the endianness by grepping values into an object file | |
11153 | ac_cv_c_bigendian=unknown | |
11154 | cat >conftest.$ac_ext <<_ACEOF | |
11155 | /* confdefs.h. */ | |
11156 | _ACEOF | |
11157 | cat confdefs.h >>conftest.$ac_ext | |
11158 | cat >>conftest.$ac_ext <<_ACEOF | |
11159 | /* end confdefs.h. */ | |
11160 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11161 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11162 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
11163 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11164 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11165 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
11166 | int | |
11167 | main () | |
11168 | { | |
11169 | _ascii (); _ebcdic (); | |
11170 | ; | |
11171 | return 0; | |
11172 | } | |
11173 | _ACEOF | |
11174 | rm -f conftest.$ac_objext | |
11175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11176 | (eval $ac_compile) 2>conftest.er1 | |
11177 | ac_status=$? | |
11178 | grep -v '^ *+' conftest.er1 >conftest.err | |
11179 | rm -f conftest.er1 | |
11180 | cat conftest.err >&5 | |
11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11182 | (exit $ac_status); } && | |
11183 | { ac_try='test -z "$ac_c_werror_flag" | |
11184 | || test ! -s conftest.err' | |
11185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11186 | (eval $ac_try) 2>&5 | |
11187 | ac_status=$? | |
11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11189 | (exit $ac_status); }; } && | |
11190 | { ac_try='test -s conftest.$ac_objext' | |
11191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11192 | (eval $ac_try) 2>&5 | |
11193 | ac_status=$? | |
11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11195 | (exit $ac_status); }; }; then | |
11196 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
11197 | ac_cv_c_bigendian=yes | |
d7040cdb | 11198 | fi |
ce2cded5 L |
11199 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
11200 | if test "$ac_cv_c_bigendian" = unknown; then | |
11201 | ac_cv_c_bigendian=no | |
11202 | else | |
11203 | # finding both strings is unlikely to happen, but who knows? | |
11204 | ac_cv_c_bigendian=unknown | |
11205 | fi | |
11206 | fi | |
11207 | else | |
11208 | echo "$as_me: failed program was:" >&5 | |
11209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11210 | |
ce2cded5 L |
11211 | fi |
11212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11213 | else | |
11214 | cat >conftest.$ac_ext <<_ACEOF | |
11215 | /* confdefs.h. */ | |
11216 | _ACEOF | |
11217 | cat confdefs.h >>conftest.$ac_ext | |
11218 | cat >>conftest.$ac_ext <<_ACEOF | |
11219 | /* end confdefs.h. */ | |
11220 | int | |
11221 | main () | |
11222 | { | |
11223 | /* Are we little or big endian? From Harbison&Steele. */ | |
11224 | union | |
11225 | { | |
11226 | long l; | |
11227 | char c[sizeof (long)]; | |
11228 | } u; | |
11229 | u.l = 1; | |
11230 | exit (u.c[sizeof (long) - 1] == 1); | |
11231 | } | |
d7040cdb | 11232 | _ACEOF |
ce2cded5 L |
11233 | rm -f conftest$ac_exeext |
11234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11235 | (eval $ac_link) 2>&5 | |
11236 | ac_status=$? | |
11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11240 | (eval $ac_try) 2>&5 | |
11241 | ac_status=$? | |
11242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11243 | (exit $ac_status); }; }; then | |
11244 | ac_cv_c_bigendian=no | |
11245 | else | |
11246 | echo "$as_me: program exited with status $ac_status" >&5 | |
11247 | echo "$as_me: failed program was:" >&5 | |
11248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11249 | |
ce2cded5 L |
11250 | ( exit $ac_status ) |
11251 | ac_cv_c_bigendian=yes | |
d7040cdb | 11252 | fi |
ce2cded5 | 11253 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 11254 | fi |
d7040cdb | 11255 | fi |
ce2cded5 L |
11256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11257 | fi | |
11258 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
11259 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
11260 | case $ac_cv_c_bigendian in | |
11261 | yes) | |
d7040cdb | 11262 | |
d7040cdb | 11263 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11264 | #define WORDS_BIGENDIAN 1 |
d7040cdb SE |
11265 | _ACEOF |
11266 | ;; | |
ce2cded5 L |
11267 | no) |
11268 | ;; | |
11269 | *) | |
11270 | { { echo "$as_me:$LINENO: error: unknown endianness | |
11271 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
11272 | echo "$as_me: error: unknown endianness | |
11273 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
11274 | { (exit 1); exit 1; }; } ;; | |
d7040cdb SE |
11275 | esac |
11276 | ||
d7040cdb | 11277 | |
ce2cded5 | 11278 | te_file=generic |
d7040cdb | 11279 | |
ce2cded5 L |
11280 | # Makefile target for installing gas in $(tooldir)/bin. |
11281 | install_tooldir=install-exec-tooldir | |
d7040cdb | 11282 | |
ce2cded5 L |
11283 | canon_targets="" |
11284 | all_targets=no | |
11285 | if test -n "$enable_targets" ; then | |
11286 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
11287 | if test $t = "all"; then | |
11288 | all_targets=yes | |
11289 | continue | |
11290 | fi | |
11291 | result=`$ac_config_sub $t 2>/dev/null` | |
11292 | if test -n "$result" ; then | |
11293 | canon_targets="$canon_targets $result" | |
11294 | # else | |
11295 | # # Permit "all", etc. We don't support it yet though. | |
11296 | # canon_targets="$canon_targets $t" | |
11297 | fi | |
11298 | done | |
11299 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
11300 | _gas_uniq_newlist="" |
11301 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11302 | case $_gas_uniq_i in | |
11303 | _gas_uniq_dummy) ;; | |
11304 | *) case " $_gas_uniq_newlist " in | |
11305 | *" $_gas_uniq_i "*) ;; | |
11306 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11307 | esac ;; | |
11308 | esac | |
11309 | done | |
ce2cded5 | 11310 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 11311 | |
ce2cded5 L |
11312 | fi |
11313 | ||
11314 | emulations="" | |
11315 | ||
11316 | for this_target in $target $canon_targets ; do | |
11317 | ||
11318 | targ=${this_target} | |
11319 | . ${srcdir}/configure.tgt | |
11320 | ||
11321 | case ${target_cpu} in | |
11322 | crisv32) | |
11323 | ||
11324 | cat >>confdefs.h <<_ACEOF | |
11325 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 11326 | _ACEOF |
ce2cded5 L |
11327 | |
11328 | ;; | |
11329 | esac | |
11330 | ||
11331 | if test ${this_target} = $target ; then | |
11332 | target_cpu_type=${cpu_type} | |
11333 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
11334 | continue | |
11335 | fi | |
11336 | ||
11337 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
11338 | case ${generic_target} in | |
11339 | i386-*-sco3.2v5*) | |
11340 | if test ${this_target} = $target; then | |
11341 | ||
d7040cdb | 11342 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11343 | #define SCO_ELF 1 |
d7040cdb | 11344 | _ACEOF |
ce2cded5 L |
11345 | |
11346 | fi | |
11347 | ;; | |
11348 | ||
11349 | i386-*-msdosdjgpp* \ | |
11350 | | i386-*-go32* \ | |
11351 | | i386-go32-rtems*) | |
11352 | ||
d7040cdb | 11353 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11354 | #define STRICTCOFF 1 |
d7040cdb | 11355 | _ACEOF |
ce2cded5 L |
11356 | |
11357 | ;; | |
11358 | ||
11359 | i860-*-*) | |
11360 | { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 | |
11361 | echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} | |
11362 | ;; | |
11363 | ||
11364 | mips-sony-bsd*) | |
11365 | ;; | |
11366 | mips-*-bsd*) | |
11367 | { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5 | |
11368 | echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;} | |
11369 | { (exit 1); exit 1; }; } | |
11370 | ;; | |
11371 | ||
11372 | ppc-*-aix5.*) | |
11373 | ||
d7040cdb | 11374 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11375 | #define AIX_WEAK_SUPPORT 1 |
d7040cdb | 11376 | _ACEOF |
ce2cded5 L |
11377 | |
11378 | ;; | |
11379 | ppc-*-linux-*) | |
11380 | case "$endian" in | |
11381 | big) ;; | |
11382 | *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5 | |
11383 | echo "$as_me: error: GNU/Linux must be configured big endian" >&2;} | |
11384 | { (exit 1); exit 1; }; } ;; | |
11385 | esac | |
11386 | ;; | |
11387 | ppc-*-solaris*) | |
11388 | if test ${this_target} = $target; then | |
11389 | ||
d7040cdb | 11390 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11391 | #define TARGET_SOLARIS_COMMENT 1 |
d7040cdb | 11392 | _ACEOF |
ce2cded5 L |
11393 | |
11394 | fi | |
11395 | if test x${endian} = xbig; then | |
11396 | { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5 | |
11397 | echo "$as_me: error: Solaris must be configured little endian" >&2;} | |
11398 | { (exit 1); exit 1; }; } | |
11399 | fi | |
11400 | ;; | |
11401 | ||
11402 | sh*-*-symbianelf*) | |
11403 | ||
d7040cdb | 11404 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11405 | #define TARGET_SYMBIAN 1 |
d7040cdb | 11406 | _ACEOF |
ce2cded5 L |
11407 | |
11408 | ;; | |
d7040cdb | 11409 | esac |
d7040cdb | 11410 | |
ce2cded5 L |
11411 | if test ${this_target} = $target ; then |
11412 | endian_def= | |
11413 | if test x${endian} = xbig; then | |
11414 | endian_def=1 | |
11415 | elif test x${endian} = xlittle; then | |
11416 | endian_def=0 | |
11417 | fi | |
11418 | if test x${endian_def} != x; then | |
11419 | ||
11420 | cat >>confdefs.h <<_ACEOF | |
11421 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
11422 | _ACEOF | |
11423 | ||
11424 | fi | |
11425 | fi | |
11426 | ||
11427 | # Other random stuff. | |
11428 | ||
11429 | case ${cpu_type} in | |
11430 | mips) | |
11431 | # Set mips_cpu to the name of the default CPU. | |
11432 | case ${target_cpu} in | |
11433 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
11434 | mips_cpu=from-abi | |
11435 | ;; | |
11436 | mipsisa32 | mipsisa32el) | |
11437 | mips_cpu=mips32 | |
11438 | ;; | |
11439 | mipsisa32r2 | mipsisa32r2el) | |
11440 | mips_cpu=mips32r2 | |
11441 | ;; | |
11442 | mipsisa64 | mipsisa64el) | |
11443 | mips_cpu=mips64 | |
11444 | ;; | |
11445 | mipsisa64r2 | mipsisa64r2el) | |
11446 | mips_cpu=mips64r2 | |
11447 | ;; | |
11448 | mipstx39 | mipstx39el) | |
11449 | mips_cpu=r3900 | |
11450 | ;; | |
11451 | mips64vr | mips64vrel) | |
11452 | mips_cpu=vr4100 | |
11453 | ;; | |
11454 | mipsisa32r2* | mipsisa64r2*) | |
11455 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
11456 | ;; | |
11457 | mips64* | mipsisa64* | mipsisa32*) | |
11458 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
11459 | ;; | |
11460 | *) | |
11461 | { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5 | |
11462 | echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;} | |
11463 | { (exit 1); exit 1; }; } | |
11464 | ;; | |
11465 | esac | |
11466 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
11467 | # binaries. It's a GNU extension that some OSes don't understand. | |
11468 | # The value only matters on ELF targets. | |
11469 | case ${target} in | |
11470 | *-*-irix*) | |
11471 | use_e_mips_abi_o32=0 | |
11472 | ;; | |
11473 | *) | |
11474 | use_e_mips_abi_o32=1 | |
11475 | ;; | |
11476 | esac | |
11477 | # Decide whether to generate 32-bit or 64-bit code by default. | |
11478 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
11479 | case ${target} in | |
11480 | mips64*-*-* | mipsisa64*-*-*) | |
11481 | mips_default_64bit=1 | |
11482 | ;; | |
11483 | *) | |
11484 | mips_default_64bit=0 | |
11485 | ;; | |
11486 | esac | |
11487 | # Decide which ABI to target by default. | |
11488 | case ${target} in | |
11489 | mips64*-linux* | mips-sgi-irix6*) | |
11490 | mips_default_abi=N32_ABI | |
11491 | ;; | |
11492 | mips*-linux*) | |
11493 | mips_default_abi=O32_ABI | |
11494 | ;; | |
11495 | mips64*-openbsd*) | |
11496 | mips_default_abi=N64_ABI | |
11497 | ;; | |
11498 | *) | |
11499 | mips_default_abi=NO_ABI | |
11500 | ;; | |
11501 | esac | |
11502 | ||
11503 | cat >>confdefs.h <<_ACEOF | |
11504 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 11505 | _ACEOF |
d7040cdb SE |
11506 | |
11507 | ||
11508 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 11509 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
11510 | _ACEOF |
11511 | ||
11512 | ||
11513 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 11514 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
11515 | _ACEOF |
11516 | ||
11517 | ||
ce2cded5 L |
11518 | cat >>confdefs.h <<_ACEOF |
11519 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
11520 | _ACEOF | |
d7040cdb | 11521 | |
ce2cded5 L |
11522 | ;; |
11523 | esac | |
d7040cdb | 11524 | |
ce2cded5 L |
11525 | # Do we need the opcodes library? |
11526 | case ${cpu_type} in | |
11527 | vax | tic30) | |
11528 | ;; | |
d7040cdb | 11529 | |
ce2cded5 L |
11530 | *) |
11531 | need_opcodes=yes | |
d7040cdb | 11532 | |
ce2cded5 L |
11533 | case "${enable_shared}" in |
11534 | yes) shared_opcodes=true ;; | |
11535 | *opcodes*) shared_opcodes=true ;; | |
11536 | *) shared_opcodes=false ;; | |
11537 | esac | |
11538 | ;; | |
11539 | esac | |
d7040cdb | 11540 | |
ce2cded5 L |
11541 | # Any other special object files needed ? |
11542 | case ${cpu_type} in | |
d7040cdb | 11543 | |
ce2cded5 L |
11544 | bfin) |
11545 | echo ${extra_objects} | grep -s "bfin-parse.o" | |
11546 | if test $? -ne 0 ; then | |
11547 | extra_objects="$extra_objects bfin-parse.o" | |
11548 | fi | |
d7040cdb | 11549 | |
ce2cded5 L |
11550 | echo ${extra_objects} | grep -s "bfin-lex.o" |
11551 | if test $? -ne 0 ; then | |
11552 | extra_objects="$extra_objects bfin-lex.o" | |
11553 | fi | |
11554 | ;; | |
d7040cdb | 11555 | |
ce2cded5 L |
11556 | fr30 | ip2k | iq2000 | m32r | openrisc) |
11557 | using_cgen=yes | |
11558 | ;; | |
d7040cdb | 11559 | |
ce2cded5 L |
11560 | m32c) |
11561 | using_cgen=yes | |
11562 | ;; | |
11563 | frv) | |
11564 | using_cgen=yes | |
11565 | ;; | |
11566 | m68k) | |
11567 | case ${extra_objects} in | |
11568 | *m68k-parse.o*) ;; | |
11569 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
11570 | esac | |
11571 | ;; | |
d7040cdb | 11572 | |
ce2cded5 L |
11573 | mep) |
11574 | using_cgen=yes | |
11575 | ;; | |
d7040cdb | 11576 | |
ce2cded5 L |
11577 | mips) |
11578 | echo ${extra_objects} | grep -s "itbl-parse.o" | |
11579 | if test $? -ne 0 ; then | |
11580 | extra_objects="$extra_objects itbl-parse.o" | |
11581 | fi | |
d7040cdb | 11582 | |
ce2cded5 L |
11583 | echo ${extra_objects} | grep -s "itbl-lex.o" |
11584 | if test $? -ne 0 ; then | |
11585 | extra_objects="$extra_objects itbl-lex.o" | |
11586 | fi | |
d7040cdb | 11587 | |
ce2cded5 L |
11588 | echo ${extra_objects} | grep -s "itbl-ops.o" |
11589 | if test $? -ne 0 ; then | |
11590 | extra_objects="$extra_objects itbl-ops.o" | |
11591 | fi | |
11592 | ;; | |
d7040cdb | 11593 | |
ce2cded5 L |
11594 | mt) |
11595 | using_cgen=yes | |
11596 | ;; | |
d7040cdb | 11597 | |
ce2cded5 L |
11598 | i386 | s390 | sparc) |
11599 | if test $this_target = $target ; then | |
d7040cdb SE |
11600 | |
11601 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 11602 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
11603 | _ACEOF |
11604 | ||
ce2cded5 L |
11605 | fi |
11606 | ;; | |
d7040cdb | 11607 | |
ce2cded5 L |
11608 | xstormy16) |
11609 | using_cgen=yes | |
11610 | ;; | |
d7040cdb | 11611 | |
ce2cded5 L |
11612 | xc16x) |
11613 | using_cgen=yes | |
11614 | ;; | |
d7040cdb | 11615 | |
ce2cded5 L |
11616 | xtensa) |
11617 | echo ${extra_objects} | grep -s "xtensa-relax.o" | |
11618 | if test $? -ne 0 ; then | |
11619 | extra_objects="$extra_objects xtensa-relax.o" | |
11620 | fi | |
11621 | ;; | |
d7040cdb | 11622 | |
ce2cded5 L |
11623 | *) |
11624 | ;; | |
11625 | esac | |
d7040cdb | 11626 | |
ce2cded5 L |
11627 | if test $using_cgen = yes ; then |
11628 | case "x${extra_objects}" in | |
11629 | *cgen.o*) ;; | |
11630 | *) extra_objects="$extra_objects cgen.o" ;; | |
11631 | esac | |
11632 | fi | |
d7040cdb | 11633 | |
ce2cded5 | 11634 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 11635 | |
ce2cded5 L |
11636 | if test $this_target = $target ; then |
11637 | obj_format=$fmt | |
11638 | te_file=$em | |
11639 | fi | |
d7040cdb | 11640 | |
ce2cded5 | 11641 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 11642 | |
ce2cded5 L |
11643 | case ${generic_target}-${fmt} in |
11644 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
11645 | mips*-*-linux*-*) case "$endian" in | |
11646 | big) emulation="mipsbelf mipslelf mipself" ;; | |
11647 | *) emulation="mipslelf mipsbelf mipself" ;; | |
11648 | esac ;; | |
11649 | mips-*-lnews*-ecoff) ;; | |
11650 | mips-*-*-ecoff) case "$endian" in | |
11651 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; | |
11652 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
11653 | esac ;; | |
11654 | mips-*-*-elf) case "$endian" in | |
11655 | big) emulation="mipsbelf mipslelf mipself" ;; | |
11656 | *) emulation="mipslelf mipsbelf mipself" ;; | |
11657 | esac ;; | |
11658 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
11659 | # i386-pc-pe-coff != i386-pc-coff. | |
11660 | i386-*-pe-coff) ;; | |
11661 | # Uncommenting the next line will turn on support for i386 AOUT | |
11662 | # for the default linux configuration | |
11663 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
11664 | # | |
11665 | i386-*-aout) emulation="i386aout" ;; | |
11666 | i386-*-coff) emulation="i386coff" ;; | |
11667 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 11668 | |
ce2cded5 L |
11669 | # Always all formats. The first stated emulation becomes the default. |
11670 | cris-*-*aout*) emulation="crisaout criself" ;; | |
11671 | cris-*-*) emulation="criself crisaout" ;; | |
11672 | esac | |
13b2be9c | 11673 | |
ce2cded5 | 11674 | emulations="$emulations $emulation" |
13b2be9c | 11675 | |
13b2be9c | 11676 | done |
13b2be9c | 11677 | |
ce2cded5 L |
11678 | # Turn on all targets if possible |
11679 | if test ${all_targets} = "yes"; then | |
11680 | case ${target_cpu_type} in | |
11681 | i386) | |
11682 | case ${obj_format} in | |
11683 | aout) | |
11684 | emulations="$emulations i386coff i386elf" | |
11685 | ;; | |
11686 | coff) | |
11687 | emulations="$emulations i386aout i386elf" | |
11688 | ;; | |
11689 | elf) | |
11690 | emulations="$emulations i386aout i386coff" | |
11691 | ;; | |
11692 | esac | |
11693 | ;; | |
11694 | x86_64) | |
11695 | case ${obj_format} in | |
11696 | aout) | |
11697 | emulations="$emulations i386coff i386elf" | |
11698 | ;; | |
11699 | coff) | |
11700 | emulations="$emulations i386aout i386elf" | |
11701 | ;; | |
11702 | elf) | |
11703 | emulations="$emulations i386aout i386coff" | |
11704 | ;; | |
11705 | esac | |
11706 | ;; | |
11707 | esac | |
13b2be9c | 11708 | fi |
c8615825 | 11709 | |
ce2cded5 L |
11710 | # Assign floating point type. Most processors with FP support |
11711 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
11712 | # is emulated. | |
11713 | case ${target_cpu} in | |
11714 | vax | pdp11 ) atof=vax ;; | |
11715 | *) atof=ieee ;; | |
11716 | esac | |
c8615825 | 11717 | |
ce2cded5 L |
11718 | case "${obj_format}" in |
11719 | "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5 | |
11720 | echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;} | |
11721 | { (exit 1); exit 1; }; } ;; | |
11722 | esac | |
13b2be9c | 11723 | |
ce2cded5 L |
11724 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
11725 | cgen_cpu_prefix="" | |
11726 | if test $using_cgen = yes ; then | |
11727 | case ${target_cpu} in | |
11728 | *) cgen_cpu_prefix=${target_cpu} ;; | |
11729 | esac | |
c8615825 | 11730 | |
c8615825 | 11731 | |
ce2cded5 L |
11732 | cat >>confdefs.h <<\_ACEOF |
11733 | #define USING_CGEN 1 | |
11734 | _ACEOF | |
d7040cdb | 11735 | |
d7040cdb | 11736 | fi |
13b2be9c | 11737 | |
ce2cded5 L |
11738 | |
11739 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
11740 | { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5 | |
11741 | echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;} | |
11742 | { (exit 1); exit 1; }; } | |
13b2be9c | 11743 | fi |
ce2cded5 L |
11744 | |
11745 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
11746 | { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5 | |
11747 | echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;} | |
11748 | { (exit 1); exit 1; }; } | |
13b2be9c DJ |
11749 | fi |
11750 | ||
ce2cded5 L |
11751 | # Some COFF configurations want these random other flags set. |
11752 | case ${obj_format} in | |
11753 | coff) | |
11754 | case ${target_cpu_type} in | |
11755 | i386) | |
11756 | cat >>confdefs.h <<\_ACEOF | |
11757 | #define I386COFF 1 | |
11758 | _ACEOF | |
11759 | ;; | |
11760 | m68k) | |
11761 | cat >>confdefs.h <<\_ACEOF | |
11762 | #define M68KCOFF 1 | |
11763 | _ACEOF | |
11764 | ;; | |
11765 | m88k) | |
11766 | cat >>confdefs.h <<\_ACEOF | |
11767 | #define M88KCOFF 1 | |
11768 | _ACEOF | |
11769 | ;; | |
11770 | x86_64) | |
11771 | cat >>confdefs.h <<\_ACEOF | |
11772 | #define I386COFF 1 | |
11773 | _ACEOF | |
11774 | ;; | |
11775 | esac | |
11776 | ;; | |
11777 | esac | |
11778 | ||
11779 | # Getting this done right is going to be a bitch. Each configuration specified | |
11780 | # with --enable-targets=... should be checked for environment, format, cpu | |
11781 | # setting. | |
11782 | # | |
11783 | # For each configuration, the necessary object file support code must be linked | |
11784 | # in. This might be only one, it might be up to four. The necessary emulation | |
11785 | # code needs to be provided, too. | |
11786 | # | |
11787 | # And then there's "--enable-targets=all".... | |
11788 | # | |
11789 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
11790 | ||
11791 | formats="${obj_format}" | |
11792 | emfiles="" | |
11793 | EMULATIONS="" | |
11794 | _gas_uniq_list="$emulations" | |
11795 | _gas_uniq_newlist="" | |
11796 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11797 | case $_gas_uniq_i in | |
11798 | _gas_uniq_dummy) ;; | |
11799 | *) case " $_gas_uniq_newlist " in | |
11800 | *" $_gas_uniq_i "*) ;; | |
11801 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11802 | esac ;; | |
11803 | esac | |
11804 | done | |
11805 | emulations=$_gas_uniq_newlist | |
11806 | ||
11807 | for em in . $emulations ; do | |
11808 | case $em in | |
11809 | .) continue ;; | |
11810 | mipsbelf | mipslelf | mipself) | |
11811 | fmt=elf file=mipself ;; | |
11812 | mipsbecoff | mipslecoff | mipsecoff) | |
11813 | fmt=ecoff file=mipsecoff ;; | |
11814 | *coff) | |
11815 | fmt=coff file=$em ;; | |
11816 | *aout) | |
11817 | fmt=aout file=$em ;; | |
11818 | *elf) | |
11819 | fmt=elf file=$em ;; | |
11820 | esac | |
11821 | formats="$formats $fmt" | |
11822 | emfiles="$emfiles e-$file.o" | |
11823 | EMULATIONS="$EMULATIONS &$em," | |
11824 | done | |
11825 | _gas_uniq_list="$formats" | |
11826 | _gas_uniq_newlist="" | |
11827 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11828 | case $_gas_uniq_i in | |
11829 | _gas_uniq_dummy) ;; | |
11830 | *) case " $_gas_uniq_newlist " in | |
11831 | *" $_gas_uniq_i "*) ;; | |
11832 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11833 | esac ;; | |
11834 | esac | |
13b2be9c | 11835 | done |
ce2cded5 | 11836 | formats=$_gas_uniq_newlist |
13b2be9c | 11837 | |
ce2cded5 L |
11838 | _gas_uniq_list="$emfiles" |
11839 | _gas_uniq_newlist="" | |
11840 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11841 | case $_gas_uniq_i in | |
11842 | _gas_uniq_dummy) ;; | |
11843 | *) case " $_gas_uniq_newlist " in | |
11844 | *" $_gas_uniq_i "*) ;; | |
11845 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11846 | esac ;; | |
11847 | esac | |
11848 | done | |
11849 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 11850 | |
ce2cded5 L |
11851 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
11852 | for fmt in $formats ; do | |
11853 | case $fmt in | |
11854 | aout) | |
11855 | cat >>confdefs.h <<\_ACEOF | |
11856 | #define OBJ_MAYBE_AOUT 1 | |
13b2be9c | 11857 | _ACEOF |
ce2cded5 L |
11858 | ;; |
11859 | bout) | |
11860 | cat >>confdefs.h <<\_ACEOF | |
11861 | #define OBJ_MAYBE_BOUT 1 | |
13b2be9c | 11862 | _ACEOF |
ce2cded5 L |
11863 | ;; |
11864 | coff) | |
11865 | cat >>confdefs.h <<\_ACEOF | |
11866 | #define OBJ_MAYBE_COFF 1 | |
11867 | _ACEOF | |
11868 | ;; | |
11869 | ecoff) | |
11870 | cat >>confdefs.h <<\_ACEOF | |
11871 | #define OBJ_MAYBE_ECOFF 1 | |
11872 | _ACEOF | |
11873 | ;; | |
11874 | elf) | |
11875 | cat >>confdefs.h <<\_ACEOF | |
11876 | #define OBJ_MAYBE_ELF 1 | |
11877 | _ACEOF | |
11878 | ;; | |
11879 | generic) | |
11880 | cat >>confdefs.h <<\_ACEOF | |
11881 | #define OBJ_MAYBE_GENERIC 1 | |
11882 | _ACEOF | |
11883 | ;; | |
11884 | som) | |
11885 | cat >>confdefs.h <<\_ACEOF | |
11886 | #define OBJ_MAYBE_SOM 1 | |
11887 | _ACEOF | |
11888 | ;; | |
11889 | esac | |
11890 | extra_objects="$extra_objects obj-$fmt.o" | |
11891 | done | |
11892 | obj_format=multi | |
13b2be9c | 11893 | fi |
ce2cded5 L |
11894 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
11895 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
11896 | # e-mips* has more than one emulation per file, e-i386* has just one at the | |
11897 | # moment. If only one emulation is specified, then don't define | |
11898 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
11899 | case "${obj_format}${emfiles}" in | |
11900 | multi* | *mips*) | |
11901 | extra_objects="$extra_objects $emfiles" | |
d7040cdb | 11902 | |
ce2cded5 L |
11903 | cat >>confdefs.h <<\_ACEOF |
11904 | #define USE_EMULATIONS 1 | |
13b2be9c | 11905 | _ACEOF |
ce2cded5 L |
11906 | ;; |
11907 | esac | |
11908 | fi | |
d7040cdb | 11909 | |
13b2be9c | 11910 | |
ce2cded5 L |
11911 | cat >>confdefs.h <<_ACEOF |
11912 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 11913 | _ACEOF |
d7040cdb | 11914 | |
d7040cdb | 11915 | |
ce2cded5 L |
11916 | cat >>confdefs.h <<_ACEOF |
11917 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 11918 | _ACEOF |
d7040cdb | 11919 | |
d7040cdb | 11920 | |
ce2cded5 | 11921 | reject_dev_configs=yes |
252b5132 | 11922 | |
ce2cded5 L |
11923 | case ${reject_dev_configs}-${dev} in |
11924 | yes-yes) # Oops. | |
11925 | { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5 | |
11926 | echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;} | |
11927 | { (exit 1); exit 1; }; } | |
11928 | ;; | |
d7040cdb SE |
11929 | esac |
11930 | ||
13b2be9c | 11931 | |
ce2cded5 L |
11932 | |
11933 | ||
11934 | ||
11935 | ||
11936 | ||
11937 | # do we need the opcodes library? | |
11938 | case "${need_opcodes}" in | |
11939 | yes) | |
11940 | OPCODES_LIB=../opcodes/libopcodes.la | |
11941 | ;; | |
11942 | esac | |
11943 | ||
11944 | ||
11945 | ||
11946 | ||
11947 | cat >>confdefs.h <<_ACEOF | |
11948 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 11949 | _ACEOF |
20e95c23 | 11950 | |
20e95c23 | 11951 | |
ce2cded5 L |
11952 | cat >>confdefs.h <<_ACEOF |
11953 | #define TARGET_CANONICAL "${target}" | |
11954 | _ACEOF | |
20e95c23 | 11955 | |
d6d788bd | 11956 | |
ce2cded5 L |
11957 | cat >>confdefs.h <<_ACEOF |
11958 | #define TARGET_CPU "${target_cpu}" | |
11959 | _ACEOF | |
20e95c23 | 11960 | |
ce2cded5 L |
11961 | |
11962 | cat >>confdefs.h <<_ACEOF | |
11963 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
11964 | _ACEOF |
11965 | ||
11966 | ||
ce2cded5 L |
11967 | cat >>confdefs.h <<_ACEOF |
11968 | #define TARGET_OS "${target_os}" | |
11969 | _ACEOF | |
11970 | ||
0efedc4c | 11971 | |
d7040cdb SE |
11972 | for ac_prog in 'bison -y' byacc |
11973 | do | |
11974 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11975 | set dummy $ac_prog; ac_word=$2 | |
20e95c23 DJ |
11976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 11978 | if test "${ac_cv_prog_YACC+set}" = set; then |
20e95c23 DJ |
11979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11980 | else | |
d7040cdb SE |
11981 | if test -n "$YACC"; then |
11982 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 11983 | else |
d7040cdb SE |
11984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11985 | for as_dir in $PATH | |
11986 | do | |
11987 | IFS=$as_save_IFS | |
11988 | test -z "$as_dir" && as_dir=. | |
11989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11991 | ac_cv_prog_YACC="$ac_prog" | |
11992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11993 | break 2 | |
20e95c23 | 11994 | fi |
d7040cdb SE |
11995 | done |
11996 | done | |
20e95c23 | 11997 | |
d7040cdb SE |
11998 | fi |
11999 | fi | |
12000 | YACC=$ac_cv_prog_YACC | |
12001 | if test -n "$YACC"; then | |
12002 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
12003 | echo "${ECHO_T}$YACC" >&6 | |
12004 | else | |
12005 | echo "$as_me:$LINENO: result: no" >&5 | |
12006 | echo "${ECHO_T}no" >&6 | |
12007 | fi | |
20e95c23 | 12008 | |
d7040cdb SE |
12009 | test -n "$YACC" && break |
12010 | done | |
12011 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 12012 | |
d7040cdb SE |
12013 | for ac_prog in flex lex |
12014 | do | |
12015 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12016 | set dummy $ac_prog; ac_word=$2 | |
12017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12019 | if test "${ac_cv_prog_LEX+set}" = set; then | |
12020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d6d788bd | 12021 | else |
d7040cdb SE |
12022 | if test -n "$LEX"; then |
12023 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12024 | else | |
12025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12026 | for as_dir in $PATH | |
12027 | do | |
12028 | IFS=$as_save_IFS | |
12029 | test -z "$as_dir" && as_dir=. | |
12030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12032 | ac_cv_prog_LEX="$ac_prog" | |
12033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12034 | break 2 | |
12035 | fi | |
12036 | done | |
12037 | done | |
20e95c23 | 12038 | |
d7040cdb SE |
12039 | fi |
12040 | fi | |
12041 | LEX=$ac_cv_prog_LEX | |
12042 | if test -n "$LEX"; then | |
12043 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
12044 | echo "${ECHO_T}$LEX" >&6 | |
20e95c23 | 12045 | else |
d7040cdb SE |
12046 | echo "$as_me:$LINENO: result: no" >&5 |
12047 | echo "${ECHO_T}no" >&6 | |
13b2be9c DJ |
12048 | fi |
12049 | ||
d7040cdb SE |
12050 | test -n "$LEX" && break |
12051 | done | |
12052 | test -n "$LEX" || LEX=":" | |
20e95c23 | 12053 | |
d7040cdb SE |
12054 | if test -z "$LEXLIB" |
12055 | then | |
12056 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
12057 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
12058 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
12059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d5fbea21 | 12060 | else |
d7040cdb SE |
12061 | ac_check_lib_save_LIBS=$LIBS |
12062 | LIBS="-lfl $LIBS" | |
12063 | cat >conftest.$ac_ext <<_ACEOF | |
12064 | /* confdefs.h. */ | |
12065 | _ACEOF | |
12066 | cat confdefs.h >>conftest.$ac_ext | |
12067 | cat >>conftest.$ac_ext <<_ACEOF | |
12068 | /* end confdefs.h. */ | |
d5fbea21 | 12069 | |
d7040cdb SE |
12070 | /* Override any gcc2 internal prototype to avoid an error. */ |
12071 | #ifdef __cplusplus | |
12072 | extern "C" | |
12073 | #endif | |
12074 | /* We use char because int might match the return type of a gcc2 | |
12075 | builtin and then its argument prototype would still apply. */ | |
12076 | char yywrap (); | |
12077 | int | |
12078 | main () | |
12079 | { | |
12080 | yywrap (); | |
12081 | ; | |
12082 | return 0; | |
12083 | } | |
12084 | _ACEOF | |
12085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12087 | (eval $ac_link) 2>conftest.er1 | |
12088 | ac_status=$? | |
12089 | grep -v '^ *+' conftest.er1 >conftest.err | |
12090 | rm -f conftest.er1 | |
12091 | cat conftest.err >&5 | |
12092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12093 | (exit $ac_status); } && | |
12094 | { ac_try='test -z "$ac_c_werror_flag" | |
12095 | || test ! -s conftest.err' | |
12096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12097 | (eval $ac_try) 2>&5 | |
12098 | ac_status=$? | |
12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12100 | (exit $ac_status); }; } && | |
12101 | { ac_try='test -s conftest$ac_exeext' | |
12102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12103 | (eval $ac_try) 2>&5 | |
12104 | ac_status=$? | |
12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12106 | (exit $ac_status); }; }; then | |
12107 | ac_cv_lib_fl_yywrap=yes | |
12108 | else | |
12109 | echo "$as_me: failed program was:" >&5 | |
12110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d5fbea21 | 12111 | |
d7040cdb | 12112 | ac_cv_lib_fl_yywrap=no |
d6d788bd | 12113 | fi |
d7040cdb SE |
12114 | rm -f conftest.err conftest.$ac_objext \ |
12115 | conftest$ac_exeext conftest.$ac_ext | |
12116 | LIBS=$ac_check_lib_save_LIBS | |
12117 | fi | |
12118 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
12119 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
12120 | if test $ac_cv_lib_fl_yywrap = yes; then | |
12121 | LEXLIB="-lfl" | |
12122 | else | |
12123 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
12124 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
12125 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
13b2be9c DJ |
12126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12127 | else | |
d7040cdb SE |
12128 | ac_check_lib_save_LIBS=$LIBS |
12129 | LIBS="-ll $LIBS" | |
12130 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
12131 | /* confdefs.h. */ |
12132 | _ACEOF | |
12133 | cat confdefs.h >>conftest.$ac_ext | |
12134 | cat >>conftest.$ac_ext <<_ACEOF | |
12135 | /* end confdefs.h. */ | |
d7040cdb SE |
12136 | |
12137 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12138 | #ifdef __cplusplus | |
12139 | extern "C" | |
13b2be9c | 12140 | #endif |
d7040cdb SE |
12141 | /* We use char because int might match the return type of a gcc2 |
12142 | builtin and then its argument prototype would still apply. */ | |
12143 | char yywrap (); | |
12144 | int | |
12145 | main () | |
12146 | { | |
12147 | yywrap (); | |
12148 | ; | |
12149 | return 0; | |
12150 | } | |
12151 | _ACEOF | |
12152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12154 | (eval $ac_link) 2>conftest.er1 | |
12155 | ac_status=$? | |
12156 | grep -v '^ *+' conftest.er1 >conftest.err | |
12157 | rm -f conftest.er1 | |
12158 | cat conftest.err >&5 | |
12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12160 | (exit $ac_status); } && | |
12161 | { ac_try='test -z "$ac_c_werror_flag" | |
12162 | || test ! -s conftest.err' | |
12163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12164 | (eval $ac_try) 2>&5 | |
12165 | ac_status=$? | |
12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12167 | (exit $ac_status); }; } && | |
12168 | { ac_try='test -s conftest$ac_exeext' | |
12169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12170 | (eval $ac_try) 2>&5 | |
12171 | ac_status=$? | |
12172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12173 | (exit $ac_status); }; }; then | |
12174 | ac_cv_lib_l_yywrap=yes | |
12175 | else | |
12176 | echo "$as_me: failed program was:" >&5 | |
12177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12178 | ||
12179 | ac_cv_lib_l_yywrap=no | |
12180 | fi | |
12181 | rm -f conftest.err conftest.$ac_objext \ | |
12182 | conftest$ac_exeext conftest.$ac_ext | |
12183 | LIBS=$ac_check_lib_save_LIBS | |
12184 | fi | |
12185 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
12186 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
12187 | if test $ac_cv_lib_l_yywrap = yes; then | |
12188 | LEXLIB="-ll" | |
12189 | fi | |
12190 | ||
12191 | fi | |
12192 | ||
12193 | fi | |
12194 | ||
12195 | if test "x$LEX" != "x:"; then | |
12196 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
12197 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
12198 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
12199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12200 | else | |
12201 | # The minimal lex program is just a single line: %%. But some broken lexes | |
12202 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
12203 | cat >conftest.l <<_ACEOF | |
12204 | %% | |
12205 | %% | |
13b2be9c | 12206 | _ACEOF |
d7040cdb SE |
12207 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
12208 | (eval $LEX conftest.l) 2>&5 | |
13b2be9c | 12209 | ac_status=$? |
13b2be9c | 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
12211 | (exit $ac_status); } |
12212 | if test -f lex.yy.c; then | |
12213 | ac_cv_prog_lex_root=lex.yy | |
12214 | elif test -f lexyy.c; then | |
12215 | ac_cv_prog_lex_root=lexyy | |
13b2be9c | 12216 | else |
d7040cdb SE |
12217 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
12218 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
12219 | { (exit 1); exit 1; }; } | |
d6d788bd | 12220 | fi |
13b2be9c | 12221 | fi |
d7040cdb SE |
12222 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
12223 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
12224 | rm -f conftest.l | |
12225 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
13b2be9c | 12226 | |
d7040cdb SE |
12227 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
12228 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
12229 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12231 | else | |
12232 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
12233 | # default is implementation-dependent. Figure out which it is, since | |
12234 | # not all implementations provide the %pointer and %array declarations. | |
12235 | ac_cv_prog_lex_yytext_pointer=no | |
12236 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
12237 | ac_save_LIBS=$LIBS | |
12238 | LIBS="$LIBS $LEXLIB" | |
12239 | cat >conftest.$ac_ext <<_ACEOF | |
12240 | `cat $LEX_OUTPUT_ROOT.c` | |
13b2be9c | 12241 | _ACEOF |
d7040cdb SE |
12242 | rm -f conftest.$ac_objext conftest$ac_exeext |
12243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12244 | (eval $ac_link) 2>conftest.er1 | |
13b2be9c DJ |
12245 | ac_status=$? |
12246 | grep -v '^ *+' conftest.er1 >conftest.err | |
12247 | rm -f conftest.er1 | |
12248 | cat conftest.err >&5 | |
12249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7040cdb SE |
12250 | (exit $ac_status); } && |
12251 | { ac_try='test -z "$ac_c_werror_flag" | |
12252 | || test ! -s conftest.err' | |
12253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12254 | (eval $ac_try) 2>&5 | |
12255 | ac_status=$? | |
12256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12257 | (exit $ac_status); }; } && | |
12258 | { ac_try='test -s conftest$ac_exeext' | |
12259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12260 | (eval $ac_try) 2>&5 | |
12261 | ac_status=$? | |
12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12263 | (exit $ac_status); }; }; then | |
12264 | ac_cv_prog_lex_yytext_pointer=yes | |
13b2be9c DJ |
12265 | else |
12266 | echo "$as_me: failed program was:" >&5 | |
12267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6840198f | 12268 | |
13b2be9c | 12269 | fi |
d7040cdb SE |
12270 | rm -f conftest.err conftest.$ac_objext \ |
12271 | conftest$ac_exeext conftest.$ac_ext | |
12272 | LIBS=$ac_save_LIBS | |
12273 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
252b5132 | 12274 | |
9b2b7d69 | 12275 | fi |
d7040cdb SE |
12276 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12277 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
12278 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
13b2be9c | 12279 | |
d7040cdb SE |
12280 | cat >>confdefs.h <<\_ACEOF |
12281 | #define YYTEXT_POINTER 1 | |
12282 | _ACEOF | |
9b2b7d69 | 12283 | |
d6d788bd | 12284 | fi |
d7040cdb | 12285 | |
c8615825 | 12286 | fi |
d7040cdb SE |
12287 | if test "$LEX" = :; then |
12288 | LEX=${am_missing_run}flex | |
12289 | fi | |
12290 | ||
12291 | ALL_LINGUAS="fr tr es rw" | |
12292 | # If we haven't got the data from the intl directory, | |
12293 | # assume NLS is disabled. | |
12294 | USE_NLS=no | |
12295 | LIBINTL= | |
12296 | LIBINTL_DEP= | |
12297 | INCINTL= | |
12298 | XGETTEXT= | |
12299 | GMSGFMT= | |
12300 | POSUB= | |
12301 | ||
12302 | if test -f ../intl/config.intl; then | |
12303 | . ../intl/config.intl | |
12304 | fi | |
12305 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
12306 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12307 | if test x"$USE_NLS" != xyes; then | |
12308 | echo "$as_me:$LINENO: result: no" >&5 | |
12309 | echo "${ECHO_T}no" >&6 | |
12310 | else | |
12311 | echo "$as_me:$LINENO: result: yes" >&5 | |
12312 | echo "${ECHO_T}yes" >&6 | |
12313 | ||
12314 | cat >>confdefs.h <<\_ACEOF | |
12315 | #define ENABLE_NLS 1 | |
13b2be9c | 12316 | _ACEOF |
d7040cdb SE |
12317 | |
12318 | ||
12319 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
12320 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
12321 | # Look for .po and .gmo files in the source directory. | |
12322 | CATALOGS= | |
12323 | XLINGUAS= | |
12324 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12325 | # If there aren't any .gmo files the shell will give us the | |
12326 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12327 | # weeded out. | |
12328 | case "$cat" in *\**) | |
12329 | continue;; | |
12330 | esac | |
12331 | # The quadruple backslash is collapsed to a double backslash | |
12332 | # by the backticks, then collapsed again by the double quotes, | |
12333 | # leaving us with one backslash in the sed expression (right | |
12334 | # before the dot that mustn't act as a wildcard). | |
12335 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12336 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12337 | # The user is allowed to set LINGUAS to a list of languages to | |
12338 | # install catalogs for. If it's empty that means "all of them." | |
12339 | if test "x$LINGUAS" = x; then | |
12340 | CATALOGS="$CATALOGS $cat" | |
12341 | XLINGUAS="$XLINGUAS $lang" | |
12342 | else | |
12343 | case "$LINGUAS" in *$lang*) | |
12344 | CATALOGS="$CATALOGS $cat" | |
12345 | XLINGUAS="$XLINGUAS $lang" | |
12346 | ;; | |
12347 | esac | |
12348 | fi | |
12349 | done | |
12350 | LINGUAS="$XLINGUAS" | |
12351 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
12352 | echo "${ECHO_T}$LINGUAS" >&6 | |
12353 | ||
12354 | ||
12355 | DATADIRNAME=share | |
12356 | ||
12357 | INSTOBJEXT=.mo | |
12358 | ||
12359 | GENCAT=gencat | |
12360 | ||
12361 | CATOBJEXT=.gmo | |
12362 | ||
12363 | fi | |
12364 | ||
12365 | MKINSTALLDIRS= | |
12366 | if test -n "$ac_aux_dir"; then | |
12367 | case "$ac_aux_dir" in | |
12368 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12369 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12370 | esac | |
12371 | fi | |
12372 | if test -z "$MKINSTALLDIRS"; then | |
12373 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
12374 | fi | |
12375 | ||
12376 | ||
12377 | ||
12378 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
12379 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12380 | # Check whether --enable-nls or --disable-nls was given. | |
12381 | if test "${enable_nls+set}" = set; then | |
12382 | enableval="$enable_nls" | |
12383 | USE_NLS=$enableval | |
12384 | else | |
12385 | USE_NLS=yes | |
12386 | fi; | |
12387 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
12388 | echo "${ECHO_T}$USE_NLS" >&6 | |
12389 | ||
12390 | ||
12391 | ||
12392 | ||
12393 | ||
12394 | ||
12395 | # Prepare PATH_SEPARATOR. | |
12396 | # The user is always right. | |
12397 | if test "${PATH_SEPARATOR+set}" != set; then | |
12398 | echo "#! /bin/sh" >conf$$.sh | |
12399 | echo "exit 0" >>conf$$.sh | |
12400 | chmod +x conf$$.sh | |
12401 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12402 | PATH_SEPARATOR=';' | |
13b2be9c | 12403 | else |
d7040cdb | 12404 | PATH_SEPARATOR=: |
13b2be9c | 12405 | fi |
d7040cdb | 12406 | rm -f conf$$.sh |
252b5132 | 12407 | fi |
13b2be9c | 12408 | |
d7040cdb SE |
12409 | # Find out how to test for executable files. Don't use a zero-byte file, |
12410 | # as systems may use methods other than mode bits to determine executability. | |
12411 | cat >conf$$.file <<_ASEOF | |
12412 | #! /bin/sh | |
12413 | exit 0 | |
12414 | _ASEOF | |
12415 | chmod +x conf$$.file | |
12416 | if test -x conf$$.file >/dev/null 2>&1; then | |
12417 | ac_executable_p="test -x" | |
12418 | else | |
12419 | ac_executable_p="test -f" | |
13b2be9c | 12420 | fi |
d7040cdb | 12421 | rm -f conf$$.file |
13b2be9c | 12422 | |
d7040cdb SE |
12423 | # Extract the first word of "msgfmt", so it can be a program name with args. |
12424 | set dummy msgfmt; ac_word=$2 | |
12425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12427 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
12428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12429 | else |
d7040cdb SE |
12430 | case "$MSGFMT" in |
12431 | [\\/]* | ?:[\\/]*) | |
12432 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12433 | ;; | |
12434 | *) | |
12435 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12436 | for ac_dir in $PATH; do | |
12437 | IFS="$ac_save_IFS" | |
12438 | test -z "$ac_dir" && ac_dir=. | |
12439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12440 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12441 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12442 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12443 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12444 | break 2 | |
12445 | fi | |
12446 | fi | |
12447 | done | |
12448 | done | |
12449 | IFS="$ac_save_IFS" | |
12450 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12451 | ;; | |
12452 | esac | |
252b5132 | 12453 | fi |
d7040cdb SE |
12454 | MSGFMT="$ac_cv_path_MSGFMT" |
12455 | if test "$MSGFMT" != ":"; then | |
12456 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
12457 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 12458 | else |
d7040cdb SE |
12459 | echo "$as_me:$LINENO: result: no" >&5 |
12460 | echo "${ECHO_T}no" >&6 | |
252b5132 | 12461 | fi |
252b5132 | 12462 | |
d7040cdb SE |
12463 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
12464 | set dummy gmsgfmt; ac_word=$2 | |
12465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12467 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
12468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13b2be9c | 12469 | else |
d7040cdb SE |
12470 | case $GMSGFMT in |
12471 | [\\/]* | ?:[\\/]*) | |
12472 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12473 | ;; | |
12474 | *) | |
12475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12476 | for as_dir in $PATH | |
12477 | do | |
12478 | IFS=$as_save_IFS | |
12479 | test -z "$as_dir" && as_dir=. | |
12480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12482 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
12483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12484 | break 2 | |
12485 | fi | |
12486 | done | |
12487 | done | |
252b5132 | 12488 | |
d7040cdb SE |
12489 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
12490 | ;; | |
12491 | esac | |
12492 | fi | |
12493 | GMSGFMT=$ac_cv_path_GMSGFMT | |
252b5132 | 12494 | |
d7040cdb SE |
12495 | if test -n "$GMSGFMT"; then |
12496 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
12497 | echo "${ECHO_T}$GMSGFMT" >&6 | |
ac48eca1 | 12498 | else |
d7040cdb SE |
12499 | echo "$as_me:$LINENO: result: no" >&5 |
12500 | echo "${ECHO_T}no" >&6 | |
6840198f | 12501 | fi |
6840198f | 12502 | |
13b2be9c | 12503 | |
20e95c23 | 12504 | |
d7040cdb SE |
12505 | # Prepare PATH_SEPARATOR. |
12506 | # The user is always right. | |
12507 | if test "${PATH_SEPARATOR+set}" != set; then | |
12508 | echo "#! /bin/sh" >conf$$.sh | |
12509 | echo "exit 0" >>conf$$.sh | |
12510 | chmod +x conf$$.sh | |
12511 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12512 | PATH_SEPARATOR=';' | |
12513 | else | |
12514 | PATH_SEPARATOR=: | |
12515 | fi | |
12516 | rm -f conf$$.sh | |
12517 | fi | |
20e95c23 | 12518 | |
d7040cdb SE |
12519 | # Find out how to test for executable files. Don't use a zero-byte file, |
12520 | # as systems may use methods other than mode bits to determine executability. | |
12521 | cat >conf$$.file <<_ASEOF | |
12522 | #! /bin/sh | |
12523 | exit 0 | |
12524 | _ASEOF | |
12525 | chmod +x conf$$.file | |
12526 | if test -x conf$$.file >/dev/null 2>&1; then | |
12527 | ac_executable_p="test -x" | |
13b2be9c | 12528 | else |
d7040cdb | 12529 | ac_executable_p="test -f" |
13b2be9c | 12530 | fi |
d7040cdb | 12531 | rm -f conf$$.file |
20e95c23 | 12532 | |
d7040cdb SE |
12533 | # Extract the first word of "xgettext", so it can be a program name with args. |
12534 | set dummy xgettext; ac_word=$2 | |
12535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12537 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
12538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12539 | else |
d7040cdb SE |
12540 | case "$XGETTEXT" in |
12541 | [\\/]* | ?:[\\/]*) | |
12542 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12543 | ;; | |
12544 | *) | |
12545 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12546 | for ac_dir in $PATH; do | |
12547 | IFS="$ac_save_IFS" | |
12548 | test -z "$ac_dir" && ac_dir=. | |
12549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12550 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12551 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12552 | (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 | |
12553 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12554 | break 2 | |
12555 | fi | |
12556 | fi | |
12557 | done | |
12558 | done | |
12559 | IFS="$ac_save_IFS" | |
12560 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12561 | ;; | |
12562 | esac | |
13b2be9c | 12563 | fi |
d7040cdb SE |
12564 | XGETTEXT="$ac_cv_path_XGETTEXT" |
12565 | if test "$XGETTEXT" != ":"; then | |
12566 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
12567 | echo "${ECHO_T}$XGETTEXT" >&6 | |
12568 | else | |
12569 | echo "$as_me:$LINENO: result: no" >&5 | |
12570 | echo "${ECHO_T}no" >&6 | |
13b2be9c | 12571 | fi |
13b2be9c | 12572 | |
d7040cdb | 12573 | rm -f messages.po |
20e95c23 | 12574 | |
13b2be9c | 12575 | |
d7040cdb SE |
12576 | # Prepare PATH_SEPARATOR. |
12577 | # The user is always right. | |
12578 | if test "${PATH_SEPARATOR+set}" != set; then | |
12579 | echo "#! /bin/sh" >conf$$.sh | |
12580 | echo "exit 0" >>conf$$.sh | |
12581 | chmod +x conf$$.sh | |
12582 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12583 | PATH_SEPARATOR=';' | |
12584 | else | |
12585 | PATH_SEPARATOR=: | |
12586 | fi | |
12587 | rm -f conf$$.sh | |
252b5132 | 12588 | fi |
20e95c23 | 12589 | |
d7040cdb SE |
12590 | # Find out how to test for executable files. Don't use a zero-byte file, |
12591 | # as systems may use methods other than mode bits to determine executability. | |
12592 | cat >conf$$.file <<_ASEOF | |
12593 | #! /bin/sh | |
12594 | exit 0 | |
12595 | _ASEOF | |
12596 | chmod +x conf$$.file | |
12597 | if test -x conf$$.file >/dev/null 2>&1; then | |
12598 | ac_executable_p="test -x" | |
252b5132 | 12599 | else |
d7040cdb SE |
12600 | ac_executable_p="test -f" |
12601 | fi | |
12602 | rm -f conf$$.file | |
20e95c23 | 12603 | |
d7040cdb SE |
12604 | # Extract the first word of "msgmerge", so it can be a program name with args. |
12605 | set dummy msgmerge; ac_word=$2 | |
12606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12608 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
12609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20e95c23 | 12610 | else |
d7040cdb SE |
12611 | case "$MSGMERGE" in |
12612 | [\\/]* | ?:[\\/]*) | |
12613 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12614 | ;; | |
12615 | *) | |
12616 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12617 | for ac_dir in $PATH; do | |
12618 | IFS="$ac_save_IFS" | |
12619 | test -z "$ac_dir" && ac_dir=. | |
12620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12621 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12622 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12623 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12624 | break 2 | |
12625 | fi | |
12626 | fi | |
12627 | done | |
12628 | done | |
12629 | IFS="$ac_save_IFS" | |
12630 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12631 | ;; | |
12632 | esac | |
20e95c23 | 12633 | fi |
d7040cdb SE |
12634 | MSGMERGE="$ac_cv_path_MSGMERGE" |
12635 | if test "$MSGMERGE" != ":"; then | |
12636 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
12637 | echo "${ECHO_T}$MSGMERGE" >&6 | |
12638 | else | |
12639 | echo "$as_me:$LINENO: result: no" >&5 | |
12640 | echo "${ECHO_T}no" >&6 | |
20e95c23 | 12641 | fi |
252b5132 | 12642 | |
252b5132 | 12643 | |
d7040cdb SE |
12644 | if test "$GMSGFMT" != ":"; then |
12645 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12646 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12647 | : ; | |
12648 | else | |
12649 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
12650 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
12651 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
12652 | GMSGFMT=":" | |
12653 | fi | |
12654 | fi | |
13b2be9c | 12655 | |
d7040cdb SE |
12656 | if test "$XGETTEXT" != ":"; then |
12657 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12658 | (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 | |
12659 | : ; | |
12660 | else | |
12661 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
12662 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
12663 | XGETTEXT=":" | |
12664 | fi | |
12665 | rm -f messages.po | |
12666 | fi | |
252b5132 | 12667 | |
d7040cdb | 12668 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 12669 | |
13b2be9c | 12670 | |
252b5132 | 12671 | |
d7040cdb SE |
12672 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
12673 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
12674 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
12675 | if test "${enable_maintainer_mode+set}" = set; then | |
12676 | enableval="$enable_maintainer_mode" | |
12677 | USE_MAINTAINER_MODE=$enableval | |
c8615825 | 12678 | else |
d7040cdb SE |
12679 | USE_MAINTAINER_MODE=no |
12680 | fi; | |
12681 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
12682 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
13b2be9c | 12683 | |
d7040cdb SE |
12684 | |
12685 | if test $USE_MAINTAINER_MODE = yes; then | |
12686 | MAINTAINER_MODE_TRUE= | |
12687 | MAINTAINER_MODE_FALSE='#' | |
12688 | else | |
12689 | MAINTAINER_MODE_TRUE='#' | |
12690 | MAINTAINER_MODE_FALSE= | |
20e95c23 | 12691 | fi |
9b2b7d69 | 12692 | |
d7040cdb SE |
12693 | MAINT=$MAINTAINER_MODE_TRUE |
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | if false; then | |
12699 | GENINSRC_NEVER_TRUE= | |
12700 | GENINSRC_NEVER_FALSE='#' | |
12701 | else | |
12702 | GENINSRC_NEVER_TRUE='#' | |
12703 | GENINSRC_NEVER_FALSE= | |
20e95c23 | 12704 | fi |
9b2b7d69 MM |
12705 | |
12706 | ||
12707 | ||
12708 | ||
12709 | ||
13b2be9c DJ |
12710 | |
12711 | ||
12712 | ||
12713 | ||
12714 | ||
12715 | ||
12716 | ||
40fb9820 L |
12717 | |
12718 | for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h | |
d6d788bd | 12719 | do |
13b2be9c DJ |
12720 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12726 | fi | |
12727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12729 | else | |
12730 | # Is the header compilable? | |
12731 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12732 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12733 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
12734 | /* confdefs.h. */ |
12735 | _ACEOF | |
12736 | cat confdefs.h >>conftest.$ac_ext | |
12737 | cat >>conftest.$ac_ext <<_ACEOF | |
12738 | /* end confdefs.h. */ | |
12739 | $ac_includes_default | |
12740 | #include <$ac_header> | |
12741 | _ACEOF | |
12742 | rm -f conftest.$ac_objext | |
12743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 12744 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 12745 | ac_status=$? |
ab509236 L |
12746 | grep -v '^ *+' conftest.er1 >conftest.err |
12747 | rm -f conftest.er1 | |
12748 | cat conftest.err >&5 | |
13b2be9c DJ |
12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12750 | (exit $ac_status); } && | |
1ad12f97 NC |
12751 | { ac_try='test -z "$ac_c_werror_flag" |
12752 | || test ! -s conftest.err' | |
ab509236 L |
12753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12754 | (eval $ac_try) 2>&5 | |
12755 | ac_status=$? | |
12756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12757 | (exit $ac_status); }; } && | |
12758 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
12759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12760 | (eval $ac_try) 2>&5 | |
12761 | ac_status=$? | |
12762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12763 | (exit $ac_status); }; }; then | |
12764 | ac_header_compiler=yes | |
12765 | else | |
12766 | echo "$as_me: failed program was:" >&5 | |
12767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12768 | ||
12769 | ac_header_compiler=no | |
12770 | fi | |
ab509236 | 12771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
12772 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12773 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12774 | ||
12775 | # Is the header present? | |
12776 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12777 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12778 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
12779 | /* confdefs.h. */ |
12780 | _ACEOF | |
12781 | cat confdefs.h >>conftest.$ac_ext | |
12782 | cat >>conftest.$ac_ext <<_ACEOF | |
12783 | /* end confdefs.h. */ | |
12784 | #include <$ac_header> | |
12785 | _ACEOF | |
12786 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12787 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12788 | ac_status=$? | |
12789 | grep -v '^ *+' conftest.er1 >conftest.err | |
12790 | rm -f conftest.er1 | |
12791 | cat conftest.err >&5 | |
12792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12793 | (exit $ac_status); } >/dev/null; then | |
12794 | if test -s conftest.err; then | |
12795 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 12796 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
12797 | else |
12798 | ac_cpp_err= | |
12799 | fi | |
9b2b7d69 | 12800 | else |
13b2be9c DJ |
12801 | ac_cpp_err=yes |
12802 | fi | |
12803 | if test -z "$ac_cpp_err"; then | |
12804 | ac_header_preproc=yes | |
12805 | else | |
12806 | echo "$as_me: failed program was:" >&5 | |
12807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12808 | ||
12809 | ac_header_preproc=no | |
12810 | fi | |
12811 | rm -f conftest.err conftest.$ac_ext | |
12812 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12813 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12814 | ||
12815 | # So? What about this header? | |
ab509236 L |
12816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12817 | yes:no: ) | |
13b2be9c DJ |
12818 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12819 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
12820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12821 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12822 | ac_header_preproc=yes | |
13b2be9c | 12823 | ;; |
ab509236 | 12824 | no:yes:* ) |
13b2be9c DJ |
12825 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12826 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ab509236 L |
12827 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12828 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12829 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12830 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12831 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12832 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
12833 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12834 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
12835 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12836 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
12837 | ( |
12838 | cat <<\_ASBOX | |
ab509236 L |
12839 | ## ------------------------------------------ ## |
12840 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12841 | ## ------------------------------------------ ## | |
13b2be9c DJ |
12842 | _ASBOX |
12843 | ) | | |
12844 | sed "s/^/$as_me: WARNING: /" >&2 | |
12845 | ;; | |
12846 | esac | |
12847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12851 | else | |
ab509236 | 12852 | eval "$as_ac_Header=\$ac_header_preproc" |
252b5132 | 12853 | fi |
13b2be9c DJ |
12854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12855 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12856 | ||
252b5132 | 12857 | fi |
13b2be9c DJ |
12858 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12859 | cat >>confdefs.h <<_ACEOF | |
12860 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12861 | _ACEOF | |
12862 | ||
252b5132 | 12863 | fi |
13b2be9c | 12864 | |
252b5132 RH |
12865 | done |
12866 | ||
d6d788bd | 12867 | |
252b5132 RH |
12868 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
12869 | # people who are not cross-compiling but are compiling cross-assemblers. | |
13b2be9c DJ |
12870 | echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5 |
12871 | echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6 | |
252b5132 RH |
12872 | if test "${host}" = "${target}"; then |
12873 | cross_gas=no | |
12874 | else | |
12875 | cross_gas=yes | |
13b2be9c DJ |
12876 | |
12877 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12878 | #define CROSS_COMPILE 1 |
13b2be9c | 12879 | _ACEOF |
252b5132 RH |
12880 | |
12881 | fi | |
13b2be9c DJ |
12882 | echo "$as_me:$LINENO: result: $cross_gas" >&5 |
12883 | echo "${ECHO_T}$cross_gas" >&6 | |
252b5132 RH |
12884 | |
12885 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12886 | # for constant arguments. Useless! | |
13b2be9c DJ |
12887 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
12888 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
12889 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
12890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12891 | else | |
12892 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
12893 | /* confdefs.h. */ |
12894 | _ACEOF | |
12895 | cat confdefs.h >>conftest.$ac_ext | |
12896 | cat >>conftest.$ac_ext <<_ACEOF | |
12897 | /* end confdefs.h. */ | |
252b5132 | 12898 | #include <alloca.h> |
13b2be9c DJ |
12899 | int |
12900 | main () | |
12901 | { | |
12902 | char *p = (char *) alloca (2 * sizeof (int)); | |
12903 | ; | |
12904 | return 0; | |
12905 | } | |
12906 | _ACEOF | |
12907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 12909 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 12910 | ac_status=$? |
ab509236 L |
12911 | grep -v '^ *+' conftest.er1 >conftest.err |
12912 | rm -f conftest.er1 | |
12913 | cat conftest.err >&5 | |
13b2be9c DJ |
12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12915 | (exit $ac_status); } && | |
1ad12f97 NC |
12916 | { ac_try='test -z "$ac_c_werror_flag" |
12917 | || test ! -s conftest.err' | |
ab509236 L |
12918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12919 | (eval $ac_try) 2>&5 | |
12920 | ac_status=$? | |
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12922 | (exit $ac_status); }; } && | |
12923 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12925 | (eval $ac_try) 2>&5 | |
12926 | ac_status=$? | |
12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12928 | (exit $ac_status); }; }; then | |
12929 | ac_cv_working_alloca_h=yes | |
12930 | else | |
12931 | echo "$as_me: failed program was:" >&5 | |
12932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12933 | ||
12934 | ac_cv_working_alloca_h=no | |
12935 | fi | |
ab509236 L |
12936 | rm -f conftest.err conftest.$ac_objext \ |
12937 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
12938 | fi |
12939 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
12940 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
12941 | if test $ac_cv_working_alloca_h = yes; then | |
12942 | ||
12943 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12944 | #define HAVE_ALLOCA_H 1 |
13b2be9c | 12945 | _ACEOF |
252b5132 RH |
12946 | |
12947 | fi | |
12948 | ||
13b2be9c DJ |
12949 | echo "$as_me:$LINENO: checking for alloca" >&5 |
12950 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
12951 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
12952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12953 | else |
13b2be9c | 12954 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
12955 | /* confdefs.h. */ |
12956 | _ACEOF | |
12957 | cat confdefs.h >>conftest.$ac_ext | |
12958 | cat >>conftest.$ac_ext <<_ACEOF | |
12959 | /* end confdefs.h. */ | |
252b5132 RH |
12960 | #ifdef __GNUC__ |
12961 | # define alloca __builtin_alloca | |
12962 | #else | |
12963 | # ifdef _MSC_VER | |
12964 | # include <malloc.h> | |
12965 | # define alloca _alloca | |
12966 | # else | |
12967 | # if HAVE_ALLOCA_H | |
12968 | # include <alloca.h> | |
12969 | # else | |
12970 | # ifdef _AIX | |
12971 | #pragma alloca | |
12972 | # else | |
12973 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12974 | char *alloca (); | |
12975 | # endif | |
12976 | # endif | |
12977 | # endif | |
12978 | # endif | |
12979 | #endif | |
12980 | ||
13b2be9c DJ |
12981 | int |
12982 | main () | |
12983 | { | |
12984 | char *p = (char *) alloca (1); | |
12985 | ; | |
12986 | return 0; | |
12987 | } | |
12988 | _ACEOF | |
12989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 12991 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 12992 | ac_status=$? |
ab509236 L |
12993 | grep -v '^ *+' conftest.er1 >conftest.err |
12994 | rm -f conftest.er1 | |
12995 | cat conftest.err >&5 | |
13b2be9c DJ |
12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12997 | (exit $ac_status); } && | |
1ad12f97 NC |
12998 | { ac_try='test -z "$ac_c_werror_flag" |
12999 | || test ! -s conftest.err' | |
ab509236 L |
13000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13001 | (eval $ac_try) 2>&5 | |
13002 | ac_status=$? | |
13003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13004 | (exit $ac_status); }; } && | |
13005 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13007 | (eval $ac_try) 2>&5 | |
13008 | ac_status=$? | |
13009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13010 | (exit $ac_status); }; }; then | |
252b5132 RH |
13011 | ac_cv_func_alloca_works=yes |
13012 | else | |
13b2be9c DJ |
13013 | echo "$as_me: failed program was:" >&5 |
13014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13015 | ||
13016 | ac_cv_func_alloca_works=no | |
252b5132 | 13017 | fi |
ab509236 L |
13018 | rm -f conftest.err conftest.$ac_objext \ |
13019 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13020 | fi |
13b2be9c DJ |
13021 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
13022 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 13023 | |
252b5132 | 13024 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 13025 | |
13b2be9c DJ |
13026 | cat >>confdefs.h <<\_ACEOF |
13027 | #define HAVE_ALLOCA 1 | |
13028 | _ACEOF | |
9b2b7d69 | 13029 | |
13b2be9c | 13030 | else |
c8615825 | 13031 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
13032 | # that cause trouble. Some versions do not even contain alloca or |
13033 | # contain a buggy version. If you still want to use their alloca, | |
13034 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13035 | ||
13036 | ALLOCA=alloca.$ac_objext | |
13037 | ||
13038 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13039 | #define C_ALLOCA 1 |
13b2be9c | 13040 | _ACEOF |
252b5132 | 13041 | |
d6d788bd | 13042 | |
13b2be9c DJ |
13043 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
13044 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
13045 | if test "${ac_cv_os_cray+set}" = set; then | |
13046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13047 | else |
13b2be9c | 13048 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13049 | /* confdefs.h. */ |
13050 | _ACEOF | |
13051 | cat confdefs.h >>conftest.$ac_ext | |
13052 | cat >>conftest.$ac_ext <<_ACEOF | |
13053 | /* end confdefs.h. */ | |
252b5132 RH |
13054 | #if defined(CRAY) && ! defined(CRAY2) |
13055 | webecray | |
13056 | #else | |
13057 | wenotbecray | |
13058 | #endif | |
13059 | ||
13b2be9c | 13060 | _ACEOF |
252b5132 | 13061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13b2be9c | 13062 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
13063 | ac_cv_os_cray=yes |
13064 | else | |
252b5132 RH |
13065 | ac_cv_os_cray=no |
13066 | fi | |
13067 | rm -f conftest* | |
13068 | ||
13069 | fi | |
13b2be9c DJ |
13070 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
13071 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 13072 | if test $ac_cv_os_cray = yes; then |
13b2be9c DJ |
13073 | for ac_func in _getb67 GETB67 getb67; do |
13074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13075 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13077 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13079 | else | |
13080 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13081 | /* confdefs.h. */ |
13082 | _ACEOF | |
13083 | cat confdefs.h >>conftest.$ac_ext | |
13084 | cat >>conftest.$ac_ext <<_ACEOF | |
13085 | /* end confdefs.h. */ | |
ab509236 L |
13086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13088 | #define $ac_func innocuous_$ac_func | |
13089 | ||
252b5132 | 13090 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
13091 | which can conflict with char $ac_func (); below. |
13092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13093 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 13094 | |
13b2be9c DJ |
13095 | #ifdef __STDC__ |
13096 | # include <limits.h> | |
13097 | #else | |
13098 | # include <assert.h> | |
13099 | #endif | |
ab509236 L |
13100 | |
13101 | #undef $ac_func | |
13102 | ||
252b5132 | 13103 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
13104 | #ifdef __cplusplus |
13105 | extern "C" | |
13106 | { | |
13107 | #endif | |
252b5132 | 13108 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
13109 | builtin and then its argument prototype would still apply. */ |
13110 | char $ac_func (); | |
252b5132 RH |
13111 | /* The GNU C library defines this for functions which it implements |
13112 | to always fail with ENOSYS. Some functions are actually named | |
13113 | something starting with __ and the normal name is an alias. */ | |
13114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13115 | choke me | |
13116 | #else | |
13b2be9c DJ |
13117 | char (*f) () = $ac_func; |
13118 | #endif | |
13119 | #ifdef __cplusplus | |
13120 | } | |
252b5132 RH |
13121 | #endif |
13122 | ||
13b2be9c DJ |
13123 | int |
13124 | main () | |
13125 | { | |
13126 | return f != $ac_func; | |
13127 | ; | |
13128 | return 0; | |
13129 | } | |
13130 | _ACEOF | |
13131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13133 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13134 | ac_status=$? |
ab509236 L |
13135 | grep -v '^ *+' conftest.er1 >conftest.err |
13136 | rm -f conftest.er1 | |
13137 | cat conftest.err >&5 | |
13b2be9c DJ |
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13139 | (exit $ac_status); } && | |
1ad12f97 NC |
13140 | { ac_try='test -z "$ac_c_werror_flag" |
13141 | || test ! -s conftest.err' | |
ab509236 L |
13142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13143 | (eval $ac_try) 2>&5 | |
13144 | ac_status=$? | |
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13146 | (exit $ac_status); }; } && | |
13147 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13149 | (eval $ac_try) 2>&5 | |
13150 | ac_status=$? | |
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); }; }; then | |
13153 | eval "$as_ac_var=yes" | |
13154 | else | |
13155 | echo "$as_me: failed program was:" >&5 | |
13156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13157 | ||
13158 | eval "$as_ac_var=no" | |
13159 | fi | |
ab509236 L |
13160 | rm -f conftest.err conftest.$ac_objext \ |
13161 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13162 | fi |
13163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13165 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13166 | ||
13167 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 13168 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 13169 | _ACEOF |
252b5132 | 13170 | |
13b2be9c | 13171 | break |
252b5132 RH |
13172 | fi |
13173 | ||
13b2be9c | 13174 | done |
252b5132 RH |
13175 | fi |
13176 | ||
13b2be9c DJ |
13177 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
13178 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
13179 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
13180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
13181 | else |
13182 | if test "$cross_compiling" = yes; then | |
13183 | ac_cv_c_stack_direction=0 | |
13184 | else | |
13b2be9c | 13185 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13186 | /* confdefs.h. */ |
13187 | _ACEOF | |
13188 | cat confdefs.h >>conftest.$ac_ext | |
13189 | cat >>conftest.$ac_ext <<_ACEOF | |
13190 | /* end confdefs.h. */ | |
13191 | int | |
252b5132 RH |
13192 | find_stack_direction () |
13193 | { | |
13194 | static char *addr = 0; | |
13195 | auto char dummy; | |
13196 | if (addr == 0) | |
13197 | { | |
13198 | addr = &dummy; | |
13199 | return find_stack_direction (); | |
13200 | } | |
13201 | else | |
13202 | return (&dummy > addr) ? 1 : -1; | |
13203 | } | |
13b2be9c DJ |
13204 | |
13205 | int | |
252b5132 RH |
13206 | main () |
13207 | { | |
13b2be9c | 13208 | exit (find_stack_direction () < 0); |
252b5132 | 13209 | } |
13b2be9c DJ |
13210 | _ACEOF |
13211 | rm -f conftest$ac_exeext | |
13212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13213 | (eval $ac_link) 2>&5 | |
13214 | ac_status=$? | |
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13218 | (eval $ac_try) 2>&5 | |
13219 | ac_status=$? | |
13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13221 | (exit $ac_status); }; }; then | |
252b5132 RH |
13222 | ac_cv_c_stack_direction=1 |
13223 | else | |
13b2be9c DJ |
13224 | echo "$as_me: program exited with status $ac_status" >&5 |
13225 | echo "$as_me: failed program was:" >&5 | |
13226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13227 | ||
13228 | ( exit $ac_status ) | |
13229 | ac_cv_c_stack_direction=-1 | |
252b5132 | 13230 | fi |
ab509236 | 13231 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 13232 | fi |
252b5132 | 13233 | fi |
13b2be9c DJ |
13234 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
13235 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 13236 | |
13b2be9c | 13237 | cat >>confdefs.h <<_ACEOF |
252b5132 | 13238 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
13239 | _ACEOF |
13240 | ||
252b5132 RH |
13241 | |
13242 | fi | |
13243 | ||
13b2be9c DJ |
13244 | echo "$as_me:$LINENO: checking for inline" >&5 |
13245 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13246 | if test "${ac_cv_c_inline+set}" = set; then | |
13247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
13248 | else |
13249 | ac_cv_c_inline=no | |
13250 | for ac_kw in inline __inline__ __inline; do | |
13b2be9c | 13251 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13252 | /* confdefs.h. */ |
13253 | _ACEOF | |
13254 | cat confdefs.h >>conftest.$ac_ext | |
13255 | cat >>conftest.$ac_ext <<_ACEOF | |
13256 | /* end confdefs.h. */ | |
13257 | #ifndef __cplusplus | |
13258 | typedef int foo_t; | |
13259 | static $ac_kw foo_t static_foo () {return 0; } | |
13260 | $ac_kw foo_t foo () {return 0; } | |
13261 | #endif | |
252b5132 | 13262 | |
13b2be9c DJ |
13263 | _ACEOF |
13264 | rm -f conftest.$ac_objext | |
13265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 13266 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 13267 | ac_status=$? |
ab509236 L |
13268 | grep -v '^ *+' conftest.er1 >conftest.err |
13269 | rm -f conftest.er1 | |
13270 | cat conftest.err >&5 | |
13b2be9c DJ |
13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13272 | (exit $ac_status); } && | |
1ad12f97 NC |
13273 | { ac_try='test -z "$ac_c_werror_flag" |
13274 | || test ! -s conftest.err' | |
ab509236 L |
13275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13276 | (eval $ac_try) 2>&5 | |
13277 | ac_status=$? | |
13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13279 | (exit $ac_status); }; } && | |
13280 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
13281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13282 | (eval $ac_try) 2>&5 | |
13283 | ac_status=$? | |
13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13285 | (exit $ac_status); }; }; then | |
252b5132 RH |
13286 | ac_cv_c_inline=$ac_kw; break |
13287 | else | |
13b2be9c DJ |
13288 | echo "$as_me: failed program was:" >&5 |
13289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13290 | ||
252b5132 | 13291 | fi |
ab509236 | 13292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
13293 | done |
13294 | ||
13295 | fi | |
13b2be9c DJ |
13296 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13297 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ab509236 L |
13298 | |
13299 | ||
13b2be9c | 13300 | case $ac_cv_c_inline in |
252b5132 | 13301 | inline | yes) ;; |
ab509236 L |
13302 | *) |
13303 | case $ac_cv_c_inline in | |
13304 | no) ac_val=;; | |
13305 | *) ac_val=$ac_cv_c_inline;; | |
13306 | esac | |
13307 | cat >>confdefs.h <<_ACEOF | |
13308 | #ifndef __cplusplus | |
13309 | #define inline $ac_val | |
13310 | #endif | |
13b2be9c | 13311 | _ACEOF |
ab509236 | 13312 | ;; |
252b5132 RH |
13313 | esac |
13314 | ||
6840198f | 13315 | |
d6d788bd | 13316 | # VMS doesn't have unlink. |
13b2be9c DJ |
13317 | |
13318 | ||
252b5132 RH |
13319 | for ac_func in unlink remove |
13320 | do | |
13b2be9c DJ |
13321 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13322 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13323 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13324 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13326 | else | |
13327 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13328 | /* confdefs.h. */ |
13329 | _ACEOF | |
13330 | cat confdefs.h >>conftest.$ac_ext | |
13331 | cat >>conftest.$ac_ext <<_ACEOF | |
13332 | /* end confdefs.h. */ | |
ab509236 L |
13333 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13334 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13335 | #define $ac_func innocuous_$ac_func | |
13336 | ||
252b5132 | 13337 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
13338 | which can conflict with char $ac_func (); below. |
13339 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13340 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 13341 | |
13b2be9c DJ |
13342 | #ifdef __STDC__ |
13343 | # include <limits.h> | |
13344 | #else | |
13345 | # include <assert.h> | |
13346 | #endif | |
ab509236 L |
13347 | |
13348 | #undef $ac_func | |
13349 | ||
252b5132 | 13350 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
13351 | #ifdef __cplusplus |
13352 | extern "C" | |
13353 | { | |
13354 | #endif | |
252b5132 | 13355 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
13356 | builtin and then its argument prototype would still apply. */ |
13357 | char $ac_func (); | |
252b5132 RH |
13358 | /* The GNU C library defines this for functions which it implements |
13359 | to always fail with ENOSYS. Some functions are actually named | |
13360 | something starting with __ and the normal name is an alias. */ | |
13361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13362 | choke me | |
13363 | #else | |
13b2be9c DJ |
13364 | char (*f) () = $ac_func; |
13365 | #endif | |
13366 | #ifdef __cplusplus | |
13367 | } | |
252b5132 RH |
13368 | #endif |
13369 | ||
13b2be9c DJ |
13370 | int |
13371 | main () | |
13372 | { | |
13373 | return f != $ac_func; | |
13374 | ; | |
13375 | return 0; | |
13376 | } | |
13377 | _ACEOF | |
13378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13380 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13381 | ac_status=$? |
ab509236 L |
13382 | grep -v '^ *+' conftest.er1 >conftest.err |
13383 | rm -f conftest.er1 | |
13384 | cat conftest.err >&5 | |
13b2be9c DJ |
13385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13386 | (exit $ac_status); } && | |
1ad12f97 NC |
13387 | { ac_try='test -z "$ac_c_werror_flag" |
13388 | || test ! -s conftest.err' | |
ab509236 L |
13389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13390 | (eval $ac_try) 2>&5 | |
13391 | ac_status=$? | |
13392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13393 | (exit $ac_status); }; } && | |
13394 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13396 | (eval $ac_try) 2>&5 | |
13397 | ac_status=$? | |
13398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13399 | (exit $ac_status); }; }; then | |
13400 | eval "$as_ac_var=yes" | |
13401 | else | |
13402 | echo "$as_me: failed program was:" >&5 | |
13403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13404 | ||
13405 | eval "$as_ac_var=no" | |
13406 | fi | |
ab509236 L |
13407 | rm -f conftest.err conftest.$ac_objext \ |
13408 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13409 | fi |
13410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13411 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13412 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13413 | cat >>confdefs.h <<_ACEOF | |
13414 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13415 | _ACEOF | |
252b5132 | 13416 | break |
252b5132 RH |
13417 | fi |
13418 | done | |
13419 | ||
6840198f | 13420 | |
d6d788bd | 13421 | # Some systems don't have sbrk(). |
13b2be9c | 13422 | |
252b5132 RH |
13423 | for ac_func in sbrk |
13424 | do | |
13b2be9c DJ |
13425 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13426 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13427 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13428 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13430 | else | |
13431 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13432 | /* confdefs.h. */ |
13433 | _ACEOF | |
13434 | cat confdefs.h >>conftest.$ac_ext | |
13435 | cat >>conftest.$ac_ext <<_ACEOF | |
13436 | /* end confdefs.h. */ | |
ab509236 L |
13437 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13439 | #define $ac_func innocuous_$ac_func | |
13440 | ||
252b5132 | 13441 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
13442 | which can conflict with char $ac_func (); below. |
13443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13444 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 13445 | |
13b2be9c DJ |
13446 | #ifdef __STDC__ |
13447 | # include <limits.h> | |
13448 | #else | |
13449 | # include <assert.h> | |
13450 | #endif | |
ab509236 L |
13451 | |
13452 | #undef $ac_func | |
13453 | ||
252b5132 | 13454 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
13455 | #ifdef __cplusplus |
13456 | extern "C" | |
13457 | { | |
13458 | #endif | |
252b5132 | 13459 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
13460 | builtin and then its argument prototype would still apply. */ |
13461 | char $ac_func (); | |
252b5132 RH |
13462 | /* The GNU C library defines this for functions which it implements |
13463 | to always fail with ENOSYS. Some functions are actually named | |
13464 | something starting with __ and the normal name is an alias. */ | |
13465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13466 | choke me | |
13467 | #else | |
13b2be9c DJ |
13468 | char (*f) () = $ac_func; |
13469 | #endif | |
13470 | #ifdef __cplusplus | |
13471 | } | |
252b5132 RH |
13472 | #endif |
13473 | ||
13b2be9c DJ |
13474 | int |
13475 | main () | |
13476 | { | |
13477 | return f != $ac_func; | |
13478 | ; | |
13479 | return 0; | |
13480 | } | |
13481 | _ACEOF | |
13482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13484 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13485 | ac_status=$? |
ab509236 L |
13486 | grep -v '^ *+' conftest.er1 >conftest.err |
13487 | rm -f conftest.er1 | |
13488 | cat conftest.err >&5 | |
13b2be9c DJ |
13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13490 | (exit $ac_status); } && | |
1ad12f97 NC |
13491 | { ac_try='test -z "$ac_c_werror_flag" |
13492 | || test ! -s conftest.err' | |
ab509236 L |
13493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13494 | (eval $ac_try) 2>&5 | |
13495 | ac_status=$? | |
13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13497 | (exit $ac_status); }; } && | |
13498 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
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); }; }; then | |
13504 | eval "$as_ac_var=yes" | |
13505 | else | |
13506 | echo "$as_me: failed program was:" >&5 | |
13507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13508 | ||
13509 | eval "$as_ac_var=no" | |
13510 | fi | |
ab509236 L |
13511 | rm -f conftest.err conftest.$ac_objext \ |
13512 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13513 | fi |
13514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13515 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13516 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13517 | cat >>confdefs.h <<_ACEOF | |
13518 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13519 | _ACEOF | |
252b5132 | 13520 | |
252b5132 RH |
13521 | fi |
13522 | done | |
13523 | ||
d6d788bd | 13524 | |
39bec121 TW |
13525 | # do we need the math library? |
13526 | case "${need_libm}" in | |
13b2be9c | 13527 | yes) |
39bec121 | 13528 | LIBM= |
f9c19112 | 13529 | case $host in |
d70c5fc7 | 13530 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 13531 | # These system don't have libm, or don't need it |
39bec121 TW |
13532 | ;; |
13533 | *-ncr-sysv4.3*) | |
13b2be9c DJ |
13534 | echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 |
13535 | echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 | |
13536 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then | |
13537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39bec121 | 13538 | else |
13b2be9c | 13539 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13540 | LIBS="-lmw $LIBS" |
13b2be9c | 13541 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13542 | /* confdefs.h. */ |
13543 | _ACEOF | |
13544 | cat confdefs.h >>conftest.$ac_ext | |
13545 | cat >>conftest.$ac_ext <<_ACEOF | |
13546 | /* end confdefs.h. */ | |
13547 | ||
39bec121 | 13548 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
13549 | #ifdef __cplusplus |
13550 | extern "C" | |
13551 | #endif | |
39bec121 | 13552 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
13553 | builtin and then its argument prototype would still apply. */ |
13554 | char _mwvalidcheckl (); | |
13555 | int | |
13556 | main () | |
13557 | { | |
13558 | _mwvalidcheckl (); | |
13559 | ; | |
13560 | return 0; | |
13561 | } | |
13562 | _ACEOF | |
13563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13565 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13566 | ac_status=$? |
ab509236 L |
13567 | grep -v '^ *+' conftest.er1 >conftest.err |
13568 | rm -f conftest.er1 | |
13569 | cat conftest.err >&5 | |
13b2be9c DJ |
13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13571 | (exit $ac_status); } && | |
1ad12f97 NC |
13572 | { ac_try='test -z "$ac_c_werror_flag" |
13573 | || test ! -s conftest.err' | |
ab509236 L |
13574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13575 | (eval $ac_try) 2>&5 | |
13576 | ac_status=$? | |
13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13578 | (exit $ac_status); }; } && | |
13579 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13581 | (eval $ac_try) 2>&5 | |
13582 | ac_status=$? | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); }; }; then | |
13585 | ac_cv_lib_mw__mwvalidcheckl=yes | |
13586 | else | |
13587 | echo "$as_me: failed program was:" >&5 | |
13588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13589 | ||
13590 | ac_cv_lib_mw__mwvalidcheckl=no | |
13591 | fi | |
ab509236 L |
13592 | rm -f conftest.err conftest.$ac_objext \ |
13593 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13594 | LIBS=$ac_check_lib_save_LIBS |
13595 | fi | |
13596 | echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
13597 | echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 | |
13598 | if test $ac_cv_lib_mw__mwvalidcheckl = yes; then | |
39bec121 | 13599 | LIBM="-lmw" |
39bec121 TW |
13600 | fi |
13601 | ||
d7040cdb SE |
13602 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
13603 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
13604 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
13b2be9c | 13605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39bec121 | 13606 | else |
13b2be9c | 13607 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13608 | LIBS="-lm $LIBS" |
13b2be9c | 13609 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13610 | /* confdefs.h. */ |
13611 | _ACEOF | |
13612 | cat confdefs.h >>conftest.$ac_ext | |
13613 | cat >>conftest.$ac_ext <<_ACEOF | |
13614 | /* end confdefs.h. */ | |
39bec121 | 13615 | |
d7040cdb SE |
13616 | /* Override any gcc2 internal prototype to avoid an error. */ |
13617 | #ifdef __cplusplus | |
13618 | extern "C" | |
13619 | #endif | |
13620 | /* We use char because int might match the return type of a gcc2 | |
13621 | builtin and then its argument prototype would still apply. */ | |
13622 | char cos (); | |
13b2be9c DJ |
13623 | int |
13624 | main () | |
13625 | { | |
d7040cdb | 13626 | cos (); |
13b2be9c DJ |
13627 | ; |
13628 | return 0; | |
13629 | } | |
13630 | _ACEOF | |
13631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13633 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13634 | ac_status=$? |
ab509236 L |
13635 | grep -v '^ *+' conftest.er1 >conftest.err |
13636 | rm -f conftest.er1 | |
13637 | cat conftest.err >&5 | |
13b2be9c DJ |
13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13639 | (exit $ac_status); } && | |
1ad12f97 NC |
13640 | { ac_try='test -z "$ac_c_werror_flag" |
13641 | || test ! -s conftest.err' | |
ab509236 L |
13642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13643 | (eval $ac_try) 2>&5 | |
13644 | ac_status=$? | |
13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13646 | (exit $ac_status); }; } && | |
13647 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13649 | (eval $ac_try) 2>&5 | |
13650 | ac_status=$? | |
13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13652 | (exit $ac_status); }; }; then | |
d7040cdb | 13653 | ac_cv_lib_m_cos=yes |
13b2be9c DJ |
13654 | else |
13655 | echo "$as_me: failed program was:" >&5 | |
13656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13657 | ||
d7040cdb | 13658 | ac_cv_lib_m_cos=no |
13b2be9c | 13659 | fi |
ab509236 L |
13660 | rm -f conftest.err conftest.$ac_objext \ |
13661 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13662 | LIBS=$ac_check_lib_save_LIBS |
13663 | fi | |
d7040cdb SE |
13664 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
13665 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
13666 | if test $ac_cv_lib_m_cos = yes; then | |
39bec121 | 13667 | LIBM="$LIBM -lm" |
39bec121 TW |
13668 | fi |
13669 | ||
13670 | ;; | |
13671 | *) | |
d7040cdb SE |
13672 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
13673 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
13674 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
13b2be9c | 13675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39bec121 | 13676 | else |
13b2be9c | 13677 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13678 | LIBS="-lm $LIBS" |
13b2be9c | 13679 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13680 | /* confdefs.h. */ |
13681 | _ACEOF | |
13682 | cat confdefs.h >>conftest.$ac_ext | |
13683 | cat >>conftest.$ac_ext <<_ACEOF | |
13684 | /* end confdefs.h. */ | |
39bec121 | 13685 | |
d7040cdb SE |
13686 | /* Override any gcc2 internal prototype to avoid an error. */ |
13687 | #ifdef __cplusplus | |
13688 | extern "C" | |
13689 | #endif | |
13690 | /* We use char because int might match the return type of a gcc2 | |
13691 | builtin and then its argument prototype would still apply. */ | |
13692 | char cos (); | |
13b2be9c DJ |
13693 | int |
13694 | main () | |
13695 | { | |
d7040cdb | 13696 | cos (); |
13b2be9c DJ |
13697 | ; |
13698 | return 0; | |
13699 | } | |
13700 | _ACEOF | |
13701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13703 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13704 | ac_status=$? |
ab509236 L |
13705 | grep -v '^ *+' conftest.er1 >conftest.err |
13706 | rm -f conftest.er1 | |
13707 | cat conftest.err >&5 | |
13b2be9c DJ |
13708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13709 | (exit $ac_status); } && | |
1ad12f97 NC |
13710 | { ac_try='test -z "$ac_c_werror_flag" |
13711 | || test ! -s conftest.err' | |
ab509236 L |
13712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13713 | (eval $ac_try) 2>&5 | |
13714 | ac_status=$? | |
13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13716 | (exit $ac_status); }; } && | |
13717 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13719 | (eval $ac_try) 2>&5 | |
13720 | ac_status=$? | |
13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13722 | (exit $ac_status); }; }; then | |
d7040cdb | 13723 | ac_cv_lib_m_cos=yes |
13b2be9c DJ |
13724 | else |
13725 | echo "$as_me: failed program was:" >&5 | |
13726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13727 | ||
d7040cdb | 13728 | ac_cv_lib_m_cos=no |
13b2be9c | 13729 | fi |
ab509236 L |
13730 | rm -f conftest.err conftest.$ac_objext \ |
13731 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13732 | LIBS=$ac_check_lib_save_LIBS |
13733 | fi | |
d7040cdb SE |
13734 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
13735 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
13736 | if test $ac_cv_lib_m_cos = yes; then | |
39bec121 | 13737 | LIBM="-lm" |
39bec121 TW |
13738 | fi |
13739 | ||
13740 | ;; | |
13741 | esac | |
13742 | ||
13b2be9c | 13743 | |
d7040cdb | 13744 | |
39bec121 TW |
13745 | ;; |
13746 | esac | |
13747 | ||
252b5132 RH |
13748 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
13749 | # enough, but on some of those systems, the assert macro relies on requoting | |
13750 | # working properly! | |
13b2be9c DJ |
13751 | echo "$as_me:$LINENO: checking for working assert macro" >&5 |
13752 | echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6 | |
13753 | if test "${gas_cv_assert_ok+set}" = set; then | |
13754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13755 | else | |
13756 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13757 | /* confdefs.h. */ |
13758 | _ACEOF | |
13759 | cat confdefs.h >>conftest.$ac_ext | |
13760 | cat >>conftest.$ac_ext <<_ACEOF | |
13761 | /* end confdefs.h. */ | |
252b5132 RH |
13762 | #include <assert.h> |
13763 | #include <stdio.h> | |
13b2be9c DJ |
13764 | int |
13765 | main () | |
13766 | { | |
252b5132 RH |
13767 | |
13768 | /* check for requoting problems */ | |
13769 | static int a, b, c, d; | |
13770 | static char *s; | |
13771 | assert (!strcmp(s, "foo bar baz quux")); | |
13772 | /* check for newline handling */ | |
13773 | assert (a == b | |
13774 | || c == d); | |
13775 | ||
13b2be9c DJ |
13776 | ; |
13777 | return 0; | |
13778 | } | |
13779 | _ACEOF | |
13780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13782 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13783 | ac_status=$? |
ab509236 L |
13784 | grep -v '^ *+' conftest.er1 >conftest.err |
13785 | rm -f conftest.er1 | |
13786 | cat conftest.err >&5 | |
13b2be9c DJ |
13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13788 | (exit $ac_status); } && | |
1ad12f97 NC |
13789 | { ac_try='test -z "$ac_c_werror_flag" |
13790 | || test ! -s conftest.err' | |
ab509236 L |
13791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13792 | (eval $ac_try) 2>&5 | |
13793 | ac_status=$? | |
13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13795 | (exit $ac_status); }; } && | |
13796 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13798 | (eval $ac_try) 2>&5 | |
13799 | ac_status=$? | |
13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13801 | (exit $ac_status); }; }; then | |
252b5132 RH |
13802 | gas_cv_assert_ok=yes |
13803 | else | |
13b2be9c DJ |
13804 | echo "$as_me: failed program was:" >&5 |
13805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13806 | ||
13807 | gas_cv_assert_ok=no | |
252b5132 | 13808 | fi |
ab509236 L |
13809 | rm -f conftest.err conftest.$ac_objext \ |
13810 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13811 | fi |
13b2be9c DJ |
13812 | echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5 |
13813 | echo "${ECHO_T}$gas_cv_assert_ok" >&6 | |
13814 | test $gas_cv_assert_ok = yes || | |
13815 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13816 | #define BROKEN_ASSERT 1 |
13b2be9c | 13817 | _ACEOF |
252b5132 | 13818 | |
d6d788bd L |
13819 | |
13820 | ||
252b5132 RH |
13821 | # On some systems, the system header files may not declare malloc, realloc, |
13822 | # and free. There are places where gas needs these functions to have been | |
13823 | # declared -- such as when taking their addresses. | |
13824 | gas_test_headers=" | |
13825 | #ifdef HAVE_MEMORY_H | |
13826 | #include <memory.h> | |
13827 | #endif | |
13828 | #ifdef HAVE_STRING_H | |
13829 | #include <string.h> | |
13830 | #else | |
13831 | #ifdef HAVE_STRINGS_H | |
13832 | #include <strings.h> | |
13833 | #endif | |
13834 | #endif | |
13835 | #ifdef HAVE_STDLIB_H | |
13836 | #include <stdlib.h> | |
13837 | #endif | |
13838 | #ifdef HAVE_UNISTD_H | |
13839 | #include <unistd.h> | |
13840 | #endif | |
13841 | " | |
13842 | ||
e8a38df5 AL |
13843 | # Does errno.h declare errno, or do we have to add a separate declaration |
13844 | # for it? | |
13845 | ||
13846 | echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5 | |
13847 | echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6 | |
13848 | if test "${gas_cv_decl_needed_errno+set}" = set; then | |
13849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13850 | else | |
13851 | cat >conftest.$ac_ext <<_ACEOF | |
13852 | /* confdefs.h. */ | |
13853 | _ACEOF | |
13854 | cat confdefs.h >>conftest.$ac_ext | |
13855 | cat >>conftest.$ac_ext <<_ACEOF | |
13856 | /* end confdefs.h. */ | |
13857 | ||
13858 | #ifdef HAVE_ERRNO_H | |
13859 | #include <errno.h> | |
13860 | #endif | |
13861 | ||
13862 | int | |
13863 | main () | |
13864 | { | |
13865 | ||
13866 | typedef int f; | |
13867 | f x; | |
13868 | x = (f) errno; | |
13869 | ||
13870 | ; | |
13871 | return 0; | |
13872 | } | |
13873 | _ACEOF | |
13874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13876 | (eval $ac_link) 2>conftest.er1 | |
13877 | ac_status=$? | |
13878 | grep -v '^ *+' conftest.er1 >conftest.err | |
13879 | rm -f conftest.er1 | |
13880 | cat conftest.err >&5 | |
13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13882 | (exit $ac_status); } && | |
13883 | { ac_try='test -z "$ac_c_werror_flag" | |
13884 | || test ! -s conftest.err' | |
13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13886 | (eval $ac_try) 2>&5 | |
13887 | ac_status=$? | |
13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13889 | (exit $ac_status); }; } && | |
13890 | { ac_try='test -s conftest$ac_exeext' | |
13891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13892 | (eval $ac_try) 2>&5 | |
13893 | ac_status=$? | |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13895 | (exit $ac_status); }; }; then | |
13896 | gas_cv_decl_needed_errno=no | |
13897 | else | |
13898 | echo "$as_me: failed program was:" >&5 | |
13899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13900 | ||
13901 | gas_cv_decl_needed_errno=yes | |
13902 | fi | |
13903 | rm -f conftest.err conftest.$ac_objext \ | |
13904 | conftest$ac_exeext conftest.$ac_ext | |
13905 | fi | |
13906 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5 | |
13907 | echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6 | |
13908 | if test $gas_cv_decl_needed_errno = yes; then | |
13909 | ||
13910 | cat >>confdefs.h <<\_ACEOF | |
13911 | #define NEED_DECLARATION_ERRNO 1 | |
13912 | _ACEOF | |
13913 | ||
13914 | fi | |
13915 | ||
13916 | ||
56f36663 NC |
13917 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
13918 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
13919 | if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then | |
13920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13921 | else | |
13922 | cat >conftest.$ac_ext <<_ACEOF | |
13923 | /* confdefs.h. */ | |
13924 | _ACEOF | |
13925 | cat confdefs.h >>conftest.$ac_ext | |
13926 | cat >>conftest.$ac_ext <<_ACEOF | |
13927 | /* end confdefs.h. */ | |
13928 | #include <unistd.h> | |
13929 | int | |
13930 | main () | |
13931 | { | |
13932 | extern int getopt (int, char *const*, const char *); | |
13933 | ; | |
13934 | return 0; | |
13935 | } | |
13936 | _ACEOF | |
13937 | rm -f conftest.$ac_objext | |
13938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13939 | (eval $ac_compile) 2>conftest.er1 | |
13940 | ac_status=$? | |
13941 | grep -v '^ *+' conftest.er1 >conftest.err | |
13942 | rm -f conftest.er1 | |
13943 | cat conftest.err >&5 | |
13944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13945 | (exit $ac_status); } && | |
13946 | { ac_try='test -z "$ac_c_werror_flag" | |
13947 | || test ! -s conftest.err' | |
13948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13949 | (eval $ac_try) 2>&5 | |
13950 | ac_status=$? | |
13951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13952 | (exit $ac_status); }; } && | |
13953 | { ac_try='test -s conftest.$ac_objext' | |
13954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13955 | (eval $ac_try) 2>&5 | |
13956 | ac_status=$? | |
13957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13958 | (exit $ac_status); }; }; then | |
13959 | gas_cv_decl_getopt_unistd_h=yes | |
13960 | else | |
13961 | echo "$as_me: failed program was:" >&5 | |
13962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13963 | ||
13964 | gas_cv_decl_getopt_unistd_h=no | |
13965 | fi | |
13966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13967 | fi | |
13968 | ||
13969 | echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5 | |
13970 | echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6 | |
13971 | if test $gas_cv_decl_getopt_unistd_h = yes; then | |
13972 | ||
13973 | cat >>confdefs.h <<\_ACEOF | |
13974 | #define HAVE_DECL_GETOPT 1 | |
13975 | _ACEOF | |
13976 | ||
13977 | fi | |
13978 | ||
e8a38df5 AL |
13979 | |
13980 | echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5 | |
13981 | echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6 | |
13982 | if test "${gas_cv_decl_needed_environ+set}" = set; then | |
13b2be9c DJ |
13983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13984 | else | |
13985 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13986 | /* confdefs.h. */ |
13987 | _ACEOF | |
13988 | cat confdefs.h >>conftest.$ac_ext | |
13989 | cat >>conftest.$ac_ext <<_ACEOF | |
13990 | /* end confdefs.h. */ | |
252b5132 | 13991 | $gas_test_headers |
13b2be9c DJ |
13992 | int |
13993 | main () | |
13994 | { | |
252b5132 | 13995 | |
e8a38df5 | 13996 | typedef char **f; |
252b5132 | 13997 | f x; |
e8a38df5 | 13998 | x = (f) environ; |
252b5132 | 13999 | |
13b2be9c DJ |
14000 | ; |
14001 | return 0; | |
14002 | } | |
14003 | _ACEOF | |
14004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14006 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14007 | ac_status=$? |
ab509236 L |
14008 | grep -v '^ *+' conftest.er1 >conftest.err |
14009 | rm -f conftest.er1 | |
14010 | cat conftest.err >&5 | |
13b2be9c DJ |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14012 | (exit $ac_status); } && | |
1ad12f97 NC |
14013 | { ac_try='test -z "$ac_c_werror_flag" |
14014 | || test ! -s conftest.err' | |
ab509236 L |
14015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14016 | (eval $ac_try) 2>&5 | |
14017 | ac_status=$? | |
14018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14019 | (exit $ac_status); }; } && | |
14020 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14022 | (eval $ac_try) 2>&5 | |
14023 | ac_status=$? | |
14024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14025 | (exit $ac_status); }; }; then | |
e8a38df5 | 14026 | gas_cv_decl_needed_environ=no |
252b5132 | 14027 | else |
13b2be9c DJ |
14028 | echo "$as_me: failed program was:" >&5 |
14029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14030 | ||
e8a38df5 | 14031 | gas_cv_decl_needed_environ=yes |
252b5132 | 14032 | fi |
ab509236 L |
14033 | rm -f conftest.err conftest.$ac_objext \ |
14034 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 14035 | fi |
e8a38df5 AL |
14036 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5 |
14037 | echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6 | |
14038 | if test $gas_cv_decl_needed_environ = yes; then | |
13b2be9c DJ |
14039 | |
14040 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14041 | #define NEED_DECLARATION_ENVIRON 1 |
13b2be9c DJ |
14042 | _ACEOF |
14043 | ||
14044 | fi | |
14045 | ||
14046 | ||
e8a38df5 AL |
14047 | echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5 |
14048 | echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6 | |
14049 | if test "${gas_cv_decl_needed_ffs+set}" = set; then | |
13b2be9c DJ |
14050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14051 | else | |
14052 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14053 | /* confdefs.h. */ |
14054 | _ACEOF | |
14055 | cat confdefs.h >>conftest.$ac_ext | |
14056 | cat >>conftest.$ac_ext <<_ACEOF | |
14057 | /* end confdefs.h. */ | |
14058 | $gas_test_headers | |
14059 | int | |
14060 | main () | |
14061 | { | |
14062 | ||
e8a38df5 | 14063 | typedef int (*f)(int); |
13b2be9c | 14064 | f x; |
e8a38df5 | 14065 | x = (f) ffs; |
13b2be9c DJ |
14066 | |
14067 | ; | |
14068 | return 0; | |
14069 | } | |
14070 | _ACEOF | |
14071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14073 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14074 | ac_status=$? |
ab509236 L |
14075 | grep -v '^ *+' conftest.er1 >conftest.err |
14076 | rm -f conftest.er1 | |
14077 | cat conftest.err >&5 | |
13b2be9c DJ |
14078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14079 | (exit $ac_status); } && | |
1ad12f97 NC |
14080 | { ac_try='test -z "$ac_c_werror_flag" |
14081 | || test ! -s conftest.err' | |
ab509236 L |
14082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14083 | (eval $ac_try) 2>&5 | |
14084 | ac_status=$? | |
14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14086 | (exit $ac_status); }; } && | |
14087 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14089 | (eval $ac_try) 2>&5 | |
14090 | ac_status=$? | |
14091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14092 | (exit $ac_status); }; }; then | |
e8a38df5 | 14093 | gas_cv_decl_needed_ffs=no |
13b2be9c DJ |
14094 | else |
14095 | echo "$as_me: failed program was:" >&5 | |
14096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14097 | ||
e8a38df5 | 14098 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 14099 | fi |
ab509236 L |
14100 | rm -f conftest.err conftest.$ac_objext \ |
14101 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14102 | fi |
e8a38df5 AL |
14103 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5 |
14104 | echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6 | |
14105 | if test $gas_cv_decl_needed_ffs = yes; then | |
13b2be9c DJ |
14106 | |
14107 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14108 | #define NEED_DECLARATION_FFS 1 |
13b2be9c DJ |
14109 | _ACEOF |
14110 | ||
14111 | fi | |
14112 | ||
14113 | ||
14114 | echo "$as_me:$LINENO: checking whether declaration is required for free" >&5 | |
14115 | echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6 | |
14116 | if test "${gas_cv_decl_needed_free+set}" = set; then | |
14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14118 | else | |
14119 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14120 | /* confdefs.h. */ |
14121 | _ACEOF | |
14122 | cat confdefs.h >>conftest.$ac_ext | |
14123 | cat >>conftest.$ac_ext <<_ACEOF | |
14124 | /* end confdefs.h. */ | |
14125 | $gas_test_headers | |
14126 | int | |
14127 | main () | |
14128 | { | |
14129 | ||
14130 | typedef void (*f)(); | |
14131 | f x; | |
14132 | x = (f) free; | |
14133 | ||
14134 | ; | |
14135 | return 0; | |
14136 | } | |
14137 | _ACEOF | |
14138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14140 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14141 | ac_status=$? |
ab509236 L |
14142 | grep -v '^ *+' conftest.er1 >conftest.err |
14143 | rm -f conftest.er1 | |
14144 | cat conftest.err >&5 | |
13b2be9c DJ |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14146 | (exit $ac_status); } && | |
1ad12f97 NC |
14147 | { ac_try='test -z "$ac_c_werror_flag" |
14148 | || test ! -s conftest.err' | |
ab509236 L |
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_exeext' | |
13b2be9c DJ |
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 | gas_cv_decl_needed_free=no | |
14161 | else | |
14162 | echo "$as_me: failed program was:" >&5 | |
14163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14164 | ||
14165 | gas_cv_decl_needed_free=yes | |
14166 | fi | |
ab509236 L |
14167 | rm -f conftest.err conftest.$ac_objext \ |
14168 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14169 | fi |
14170 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5 | |
14171 | echo "${ECHO_T}$gas_cv_decl_needed_free" >&6 | |
14172 | if test $gas_cv_decl_needed_free = yes; then | |
14173 | ||
14174 | cat >>confdefs.h <<\_ACEOF | |
14175 | #define NEED_DECLARATION_FREE 1 | |
14176 | _ACEOF | |
14177 | ||
14178 | fi | |
14179 | ||
14180 | ||
e8a38df5 AL |
14181 | echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5 |
14182 | echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6 | |
14183 | if test "${gas_cv_decl_needed_malloc+set}" = set; then | |
13b2be9c DJ |
14184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14185 | else | |
14186 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14187 | /* confdefs.h. */ |
14188 | _ACEOF | |
14189 | cat confdefs.h >>conftest.$ac_ext | |
14190 | cat >>conftest.$ac_ext <<_ACEOF | |
14191 | /* end confdefs.h. */ | |
14192 | $gas_test_headers | |
14193 | int | |
14194 | main () | |
14195 | { | |
14196 | ||
14197 | typedef char *(*f)(); | |
14198 | f x; | |
e8a38df5 | 14199 | x = (f) malloc; |
13b2be9c DJ |
14200 | |
14201 | ; | |
14202 | return 0; | |
14203 | } | |
14204 | _ACEOF | |
14205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14207 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14208 | ac_status=$? |
ab509236 L |
14209 | grep -v '^ *+' conftest.er1 >conftest.err |
14210 | rm -f conftest.er1 | |
14211 | cat conftest.err >&5 | |
13b2be9c DJ |
14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14213 | (exit $ac_status); } && | |
1ad12f97 NC |
14214 | { ac_try='test -z "$ac_c_werror_flag" |
14215 | || test ! -s conftest.err' | |
ab509236 L |
14216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14217 | (eval $ac_try) 2>&5 | |
14218 | ac_status=$? | |
14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14220 | (exit $ac_status); }; } && | |
14221 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14223 | (eval $ac_try) 2>&5 | |
14224 | ac_status=$? | |
14225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14226 | (exit $ac_status); }; }; then | |
e8a38df5 | 14227 | gas_cv_decl_needed_malloc=no |
13b2be9c DJ |
14228 | else |
14229 | echo "$as_me: failed program was:" >&5 | |
14230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14231 | ||
e8a38df5 | 14232 | gas_cv_decl_needed_malloc=yes |
13b2be9c | 14233 | fi |
ab509236 L |
14234 | rm -f conftest.err conftest.$ac_objext \ |
14235 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14236 | fi |
e8a38df5 AL |
14237 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5 |
14238 | echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6 | |
14239 | if test $gas_cv_decl_needed_malloc = yes; then | |
13b2be9c DJ |
14240 | |
14241 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14242 | #define NEED_DECLARATION_MALLOC 1 |
13b2be9c DJ |
14243 | _ACEOF |
14244 | ||
14245 | fi | |
14246 | ||
14247 | ||
e8a38df5 AL |
14248 | echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5 |
14249 | echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6 | |
14250 | if test "${gas_cv_decl_needed_sbrk+set}" = set; then | |
13b2be9c DJ |
14251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14252 | else | |
14253 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14254 | /* confdefs.h. */ |
14255 | _ACEOF | |
14256 | cat confdefs.h >>conftest.$ac_ext | |
14257 | cat >>conftest.$ac_ext <<_ACEOF | |
14258 | /* end confdefs.h. */ | |
14259 | $gas_test_headers | |
14260 | int | |
14261 | main () | |
14262 | { | |
14263 | ||
e8a38df5 | 14264 | typedef char *(*f)(); |
13b2be9c | 14265 | f x; |
e8a38df5 | 14266 | x = (f) sbrk; |
13b2be9c DJ |
14267 | |
14268 | ; | |
14269 | return 0; | |
14270 | } | |
14271 | _ACEOF | |
14272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14274 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14275 | ac_status=$? |
ab509236 L |
14276 | grep -v '^ *+' conftest.er1 >conftest.err |
14277 | rm -f conftest.er1 | |
14278 | cat conftest.err >&5 | |
13b2be9c DJ |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14280 | (exit $ac_status); } && | |
1ad12f97 NC |
14281 | { ac_try='test -z "$ac_c_werror_flag" |
14282 | || test ! -s conftest.err' | |
ab509236 L |
14283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14284 | (eval $ac_try) 2>&5 | |
14285 | ac_status=$? | |
14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14287 | (exit $ac_status); }; } && | |
14288 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14290 | (eval $ac_try) 2>&5 | |
14291 | ac_status=$? | |
14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14293 | (exit $ac_status); }; }; then | |
e8a38df5 | 14294 | gas_cv_decl_needed_sbrk=no |
13b2be9c DJ |
14295 | else |
14296 | echo "$as_me: failed program was:" >&5 | |
14297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14298 | ||
e8a38df5 | 14299 | gas_cv_decl_needed_sbrk=yes |
13b2be9c | 14300 | fi |
ab509236 L |
14301 | rm -f conftest.err conftest.$ac_objext \ |
14302 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14303 | fi |
e8a38df5 AL |
14304 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5 |
14305 | echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6 | |
14306 | if test $gas_cv_decl_needed_sbrk = yes; then | |
13b2be9c DJ |
14307 | |
14308 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14309 | #define NEED_DECLARATION_SBRK 1 |
13b2be9c DJ |
14310 | _ACEOF |
14311 | ||
14312 | fi | |
14313 | ||
14314 | ||
e8a38df5 AL |
14315 | echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5 |
14316 | echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6 | |
14317 | if test "${gas_cv_decl_needed_strstr+set}" = set; then | |
13b2be9c DJ |
14318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14319 | else | |
14320 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14321 | /* confdefs.h. */ |
14322 | _ACEOF | |
14323 | cat confdefs.h >>conftest.$ac_ext | |
14324 | cat >>conftest.$ac_ext <<_ACEOF | |
14325 | /* end confdefs.h. */ | |
e8a38df5 | 14326 | $gas_test_headers |
13b2be9c DJ |
14327 | int |
14328 | main () | |
14329 | { | |
14330 | ||
e8a38df5 | 14331 | typedef char *(*f)(); |
13b2be9c | 14332 | f x; |
e8a38df5 | 14333 | x = (f) strstr; |
13b2be9c DJ |
14334 | |
14335 | ; | |
14336 | return 0; | |
14337 | } | |
14338 | _ACEOF | |
14339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14341 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14342 | ac_status=$? |
ab509236 L |
14343 | grep -v '^ *+' conftest.er1 >conftest.err |
14344 | rm -f conftest.er1 | |
14345 | cat conftest.err >&5 | |
13b2be9c DJ |
14346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14347 | (exit $ac_status); } && | |
1ad12f97 NC |
14348 | { ac_try='test -z "$ac_c_werror_flag" |
14349 | || test ! -s conftest.err' | |
ab509236 L |
14350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14351 | (eval $ac_try) 2>&5 | |
14352 | ac_status=$? | |
14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14354 | (exit $ac_status); }; } && | |
14355 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14357 | (eval $ac_try) 2>&5 | |
14358 | ac_status=$? | |
14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14360 | (exit $ac_status); }; }; then | |
e8a38df5 | 14361 | gas_cv_decl_needed_strstr=no |
13b2be9c DJ |
14362 | else |
14363 | echo "$as_me: failed program was:" >&5 | |
14364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14365 | ||
e8a38df5 | 14366 | gas_cv_decl_needed_strstr=yes |
13b2be9c | 14367 | fi |
ab509236 L |
14368 | rm -f conftest.err conftest.$ac_objext \ |
14369 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14370 | fi |
e8a38df5 AL |
14371 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5 |
14372 | echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6 | |
14373 | if test $gas_cv_decl_needed_strstr = yes; then | |
13b2be9c DJ |
14374 | |
14375 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14376 | #define NEED_DECLARATION_STRSTR 1 |
13b2be9c DJ |
14377 | _ACEOF |
14378 | ||
14379 | fi | |
14380 | ||
14381 | ||
6d74f28b EB |
14382 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
14383 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
14384 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
14385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14386 | else | |
14387 | cat >conftest.$ac_ext <<_ACEOF | |
14388 | /* confdefs.h. */ | |
14389 | _ACEOF | |
14390 | cat confdefs.h >>conftest.$ac_ext | |
14391 | cat >>conftest.$ac_ext <<_ACEOF | |
14392 | /* end confdefs.h. */ | |
14393 | $ac_includes_default | |
14394 | int | |
14395 | main () | |
14396 | { | |
14397 | #ifndef vsnprintf | |
14398 | char *p = (char *) vsnprintf; | |
14399 | #endif | |
14400 | ||
14401 | ; | |
14402 | return 0; | |
14403 | } | |
14404 | _ACEOF | |
14405 | rm -f conftest.$ac_objext | |
14406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14407 | (eval $ac_compile) 2>conftest.er1 | |
14408 | ac_status=$? | |
14409 | grep -v '^ *+' conftest.er1 >conftest.err | |
14410 | rm -f conftest.er1 | |
14411 | cat conftest.err >&5 | |
14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14413 | (exit $ac_status); } && | |
14414 | { ac_try='test -z "$ac_c_werror_flag" | |
14415 | || test ! -s conftest.err' | |
14416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14417 | (eval $ac_try) 2>&5 | |
14418 | ac_status=$? | |
14419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14420 | (exit $ac_status); }; } && | |
14421 | { ac_try='test -s conftest.$ac_objext' | |
14422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14423 | (eval $ac_try) 2>&5 | |
14424 | ac_status=$? | |
14425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14426 | (exit $ac_status); }; }; then | |
14427 | ac_cv_have_decl_vsnprintf=yes | |
14428 | else | |
14429 | echo "$as_me: failed program was:" >&5 | |
14430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14431 | ||
14432 | ac_cv_have_decl_vsnprintf=no | |
14433 | fi | |
14434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14435 | fi | |
14436 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
14437 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
14438 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
14439 | ||
14440 | cat >>confdefs.h <<_ACEOF | |
14441 | #define HAVE_DECL_VSNPRINTF 1 | |
14442 | _ACEOF | |
14443 | ||
14444 | ||
14445 | else | |
14446 | cat >>confdefs.h <<_ACEOF | |
14447 | #define HAVE_DECL_VSNPRINTF 0 | |
14448 | _ACEOF | |
14449 | ||
14450 | ||
14451 | fi | |
14452 | ||
14453 | ||
14454 | ||
13b2be9c | 14455 | |
c973bc5c NC |
14456 | case "${host}" in |
14457 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
14458 | ||
14459 | cat >>confdefs.h <<\_ACEOF | |
14460 | #define USE_BINARY_FOPEN 1 | |
14461 | _ACEOF | |
14462 | ;; | |
14463 | esac | |
14464 | ||
14465 | ||
13b2be9c | 14466 | |
108a6f8e CD |
14467 | |
14468 | ||
14469 | ||
14470 | ||
13b2be9c DJ |
14471 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
14472 | ||
14473 | ac_config_commands="$ac_config_commands default" | |
14474 | ||
14475 | ||
14476 | cat >confcache <<\_ACEOF | |
14477 | # This file is a shell script that caches the results of configure | |
14478 | # tests run on this system so they can be shared between configure | |
14479 | # scripts and configure runs, see configure's option --config-cache. | |
14480 | # It is not useful on other systems. If it contains results you don't | |
14481 | # want to keep, you may remove or edit it. | |
14482 | # | |
14483 | # config.status only pays attention to the cache file if you give it | |
14484 | # the --recheck option to rerun configure. | |
14485 | # | |
14486 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14487 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14488 | # following values. | |
14489 | ||
14490 | _ACEOF | |
14491 | ||
14492 | # The following way of writing the cache mishandles newlines in values, | |
14493 | # but we know of no workaround that is simple, portable, and efficient. | |
14494 | # So, don't put newlines in cache variables' values. | |
14495 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14496 | # and sets the high bit in the cache file unless we assign to the vars. | |
14497 | { | |
14498 | (set) 2>&1 | | |
14499 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14500 | *ac_space=\ *) | |
14501 | # `set' does not quote correctly, so add quotes (double-quote | |
14502 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14503 | sed -n \ | |
ab509236 L |
14504 | "s/'/'\\\\''/g; |
14505 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13b2be9c DJ |
14506 | ;; |
14507 | *) | |
14508 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14509 | sed -n \ | |
ab509236 | 14510 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
14511 | ;; |
14512 | esac; | |
14513 | } | | |
14514 | sed ' | |
14515 | t clear | |
14516 | : clear | |
14517 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14518 | t end | |
14519 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14520 | : end' >>confcache | |
14521 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
14522 | if test -w $cache_file; then | |
14523 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
14524 | cat confcache >$cache_file | |
14525 | else | |
14526 | echo "not updating unwritable cache $cache_file" | |
14527 | fi | |
14528 | fi | |
14529 | rm -f confcache | |
14530 | ||
14531 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14532 | # Let make expand exec_prefix. | |
14533 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14534 | ||
14535 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14536 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14537 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14538 | # (actually we leave an empty line to preserve line numbers). | |
14539 | if test "x$srcdir" = x.; then | |
ab509236 | 14540 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
13b2be9c DJ |
14541 | s/:*\$(srcdir):*/:/; |
14542 | s/:*\${srcdir}:*/:/; | |
14543 | s/:*@srcdir@:*/:/; | |
ab509236 | 14544 | s/^\([^=]*=[ ]*\):*/\1/; |
13b2be9c | 14545 | s/:*$//; |
ab509236 | 14546 | s/^[^=]*=[ ]*$//; |
13b2be9c DJ |
14547 | }' |
14548 | fi | |
14549 | ||
14550 | DEFS=-DHAVE_CONFIG_H | |
14551 | ||
14552 | ac_libobjs= | |
14553 | ac_ltlibobjs= | |
14554 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14555 | # 1. Remove the extension, and $U if already installed. | |
14556 | ac_i=`echo "$ac_i" | | |
ab509236 | 14557 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
13b2be9c DJ |
14558 | # 2. Add them. |
14559 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
14560 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
14561 | done | |
14562 | LIBOBJS=$ac_libobjs | |
14563 | ||
14564 | LTLIBOBJS=$ac_ltlibobjs | |
14565 | ||
14566 | ||
14567 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
14568 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
14569 | Usually this means the macro was only invoked conditionally." >&5 | |
14570 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
14571 | Usually this means the macro was only invoked conditionally." >&2;} | |
14572 | { (exit 1); exit 1; }; } | |
14573 | fi | |
14574 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14575 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
14576 | Usually this means the macro was only invoked conditionally." >&5 | |
14577 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
14578 | Usually this means the macro was only invoked conditionally." >&2;} | |
14579 | { (exit 1); exit 1; }; } | |
14580 | fi | |
14581 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
14582 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
14583 | Usually this means the macro was only invoked conditionally." >&5 | |
14584 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
14585 | Usually this means the macro was only invoked conditionally." >&2;} | |
14586 | { (exit 1); exit 1; }; } | |
14587 | fi | |
d5fbea21 DJ |
14588 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
14589 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
14590 | Usually this means the macro was only invoked conditionally." >&5 | |
14591 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
14592 | Usually this means the macro was only invoked conditionally." >&2;} | |
14593 | { (exit 1); exit 1; }; } | |
14594 | fi | |
13b2be9c DJ |
14595 | |
14596 | : ${CONFIG_STATUS=./config.status} | |
14597 | ac_clean_files_save=$ac_clean_files | |
14598 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14599 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14600 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14601 | cat >$CONFIG_STATUS <<_ACEOF | |
14602 | #! $SHELL | |
14603 | # Generated by $as_me. | |
14604 | # Run this file to recreate the current configuration. | |
14605 | # Compiler output produced by configure, useful for debugging | |
14606 | # configure, is in config.log if it exists. | |
14607 | ||
14608 | debug=false | |
14609 | ac_cs_recheck=false | |
14610 | ac_cs_silent=false | |
14611 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14612 | _ACEOF | |
14613 | ||
14614 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14615 | ## --------------------- ## | |
14616 | ## M4sh Initialization. ## | |
14617 | ## --------------------- ## | |
14618 | ||
14619 | # Be Bourne compatible | |
14620 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14621 | emulate sh | |
14622 | NULLCMD=: | |
14623 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14624 | # is contrary to our usage. Disable this feature. | |
14625 | alias -g '${1+"$@"}'='"$@"' | |
14626 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
14627 | set -o posix | |
14628 | fi | |
ab509236 | 14629 | DUALCASE=1; export DUALCASE # for MKS sh |
13b2be9c DJ |
14630 | |
14631 | # Support unset when possible. | |
ab509236 | 14632 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13b2be9c DJ |
14633 | as_unset=unset |
14634 | else | |
14635 | as_unset=false | |
14636 | fi | |
14637 | ||
14638 | ||
14639 | # Work around bugs in pre-3.0 UWIN ksh. | |
14640 | $as_unset ENV MAIL MAILPATH | |
14641 | PS1='$ ' | |
14642 | PS2='> ' | |
14643 | PS4='+ ' | |
14644 | ||
14645 | # NLS nuisances. | |
14646 | for as_var in \ | |
14647 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14648 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14649 | LC_TELEPHONE LC_TIME | |
14650 | do | |
ab509236 | 14651 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13b2be9c DJ |
14652 | eval $as_var=C; export $as_var |
14653 | else | |
14654 | $as_unset $as_var | |
14655 | fi | |
14656 | done | |
14657 | ||
14658 | # Required to use basename. | |
14659 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14660 | as_expr=expr | |
14661 | else | |
14662 | as_expr=false | |
14663 | fi | |
14664 | ||
14665 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
14666 | as_basename=basename | |
14667 | else | |
14668 | as_basename=false | |
14669 | fi | |
14670 | ||
14671 | ||
14672 | # Name of the executable. | |
14673 | as_me=`$as_basename "$0" || | |
14674 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14675 | X"$0" : 'X\(//\)$' \| \ | |
14676 | X"$0" : 'X\(/\)$' \| \ | |
14677 | . : '\(.\)' 2>/dev/null || | |
14678 | echo X/"$0" | | |
14679 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
14680 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
14681 | /^X\/\(\/\).*/{ s//\1/; q; } | |
14682 | s/.*/./; q'` | |
14683 | ||
14684 | ||
14685 | # PATH needs CR, and LINENO needs CR and PATH. | |
14686 | # Avoid depending upon Character Ranges. | |
14687 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14688 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14689 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14690 | as_cr_digits='0123456789' | |
14691 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14692 | ||
14693 | # The user is always right. | |
14694 | if test "${PATH_SEPARATOR+set}" != set; then | |
14695 | echo "#! /bin/sh" >conf$$.sh | |
14696 | echo "exit 0" >>conf$$.sh | |
14697 | chmod +x conf$$.sh | |
14698 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14699 | PATH_SEPARATOR=';' | |
14700 | else | |
14701 | PATH_SEPARATOR=: | |
14702 | fi | |
14703 | rm -f conf$$.sh | |
14704 | fi | |
14705 | ||
14706 | ||
14707 | as_lineno_1=$LINENO | |
14708 | as_lineno_2=$LINENO | |
14709 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14710 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14711 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
14712 | # Find who we are. Look in the path if we contain no path at all | |
14713 | # relative or not. | |
14714 | case $0 in | |
14715 | *[\\/]* ) as_myself=$0 ;; | |
14716 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14717 | for as_dir in $PATH | |
14718 | do | |
14719 | IFS=$as_save_IFS | |
14720 | test -z "$as_dir" && as_dir=. | |
14721 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14722 | done | |
252b5132 | 14723 | |
13b2be9c DJ |
14724 | ;; |
14725 | esac | |
14726 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14727 | # in which case we are not to be found in the path. | |
14728 | if test "x$as_myself" = x; then | |
14729 | as_myself=$0 | |
14730 | fi | |
14731 | if test ! -f "$as_myself"; then | |
14732 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
14733 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
14734 | { (exit 1); exit 1; }; } | |
14735 | fi | |
14736 | case $CONFIG_SHELL in | |
14737 | '') | |
14738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14739 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
14740 | do | |
14741 | IFS=$as_save_IFS | |
14742 | test -z "$as_dir" && as_dir=. | |
14743 | for as_base in sh bash ksh sh5; do | |
14744 | case $as_dir in | |
14745 | /*) | |
14746 | if ("$as_dir/$as_base" -c ' | |
14747 | as_lineno_1=$LINENO | |
14748 | as_lineno_2=$LINENO | |
14749 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14750 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14751 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
14752 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
14753 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
14754 | CONFIG_SHELL=$as_dir/$as_base | |
14755 | export CONFIG_SHELL | |
14756 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
14757 | fi;; | |
14758 | esac | |
14759 | done | |
14760 | done | |
14761 | ;; | |
14762 | esac | |
252b5132 | 14763 | |
13b2be9c DJ |
14764 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
14765 | # uniformly replaced by the line number. The first 'sed' inserts a | |
14766 | # line-number line before each line; the second 'sed' does the real | |
14767 | # work. The second script uses 'N' to pair each line-number line | |
14768 | # with the numbered line, and appends trailing '-' during | |
14769 | # substitution so that $LINENO is not a special case at line end. | |
14770 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
14771 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
14772 | sed '=' <$as_myself | | |
14773 | sed ' | |
14774 | N | |
14775 | s,$,-, | |
14776 | : loop | |
14777 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
14778 | t loop | |
14779 | s,-$,, | |
14780 | s,^['$as_cr_digits']*\n,, | |
14781 | ' >$as_me.lineno && | |
14782 | chmod +x $as_me.lineno || | |
14783 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
14784 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
14785 | { (exit 1); exit 1; }; } | |
14786 | ||
14787 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14788 | # (the dirname of $[0] is not the place where we might find the | |
14789 | # original and so on. Autoconf is especially sensible to this). | |
14790 | . ./$as_me.lineno | |
14791 | # Exit status is that of the last command. | |
14792 | exit | |
14793 | } | |
d6d788bd | 14794 | |
252b5132 | 14795 | |
13b2be9c DJ |
14796 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
14797 | *c*,-n*) ECHO_N= ECHO_C=' | |
14798 | ' ECHO_T=' ' ;; | |
14799 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
14800 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
14801 | esac | |
252b5132 | 14802 | |
13b2be9c DJ |
14803 | if expr a : '\(a\)' >/dev/null 2>&1; then |
14804 | as_expr=expr | |
252b5132 | 14805 | else |
13b2be9c | 14806 | as_expr=false |
252b5132 | 14807 | fi |
252b5132 | 14808 | |
13b2be9c DJ |
14809 | rm -f conf$$ conf$$.exe conf$$.file |
14810 | echo >conf$$.file | |
14811 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14812 | # We could just check for DJGPP; but this test a) works b) is more generic | |
14813 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
14814 | if test -f conf$$.exe; then | |
14815 | # Don't use ln at all; we don't have any links | |
14816 | as_ln_s='cp -p' | |
14817 | else | |
14818 | as_ln_s='ln -s' | |
14819 | fi | |
14820 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14821 | as_ln_s=ln | |
14822 | else | |
14823 | as_ln_s='cp -p' | |
252b5132 | 14824 | fi |
13b2be9c | 14825 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 14826 | |
13b2be9c DJ |
14827 | if mkdir -p . 2>/dev/null; then |
14828 | as_mkdir_p=: | |
252b5132 | 14829 | else |
ab509236 | 14830 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
14831 | as_mkdir_p=false |
14832 | fi | |
252b5132 | 14833 | |
13b2be9c | 14834 | as_executable_p="test -f" |
252b5132 | 14835 | |
13b2be9c | 14836 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 14837 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14838 | |
13b2be9c | 14839 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 14840 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14841 | |
d6d788bd | 14842 | |
13b2be9c DJ |
14843 | # IFS |
14844 | # We need space, tab and new line, in precisely that order. | |
14845 | as_nl=' | |
14846 | ' | |
14847 | IFS=" $as_nl" | |
252b5132 | 14848 | |
13b2be9c DJ |
14849 | # CDPATH. |
14850 | $as_unset CDPATH | |
252b5132 | 14851 | |
13b2be9c | 14852 | exec 6>&1 |
252b5132 | 14853 | |
13b2be9c DJ |
14854 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
14855 | # report actual input values of CONFIG_FILES etc. instead of their | |
14856 | # values after options handling. Logging --version etc. is OK. | |
14857 | exec 5>>config.log | |
14858 | { | |
14859 | echo | |
14860 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14861 | ## Running $as_me. ## | |
14862 | _ASBOX | |
14863 | } >&5 | |
14864 | cat >&5 <<_CSEOF | |
252b5132 | 14865 | |
13b2be9c | 14866 | This file was extended by $as_me, which was |
ab509236 | 14867 | generated by GNU Autoconf 2.59. Invocation command line was |
d6d788bd | 14868 | |
13b2be9c DJ |
14869 | CONFIG_FILES = $CONFIG_FILES |
14870 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14871 | CONFIG_LINKS = $CONFIG_LINKS | |
14872 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14873 | $ $0 $@ | |
252b5132 | 14874 | |
13b2be9c DJ |
14875 | _CSEOF |
14876 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
14877 | echo >&5 | |
14878 | _ACEOF | |
252b5132 | 14879 | |
13b2be9c DJ |
14880 | # Files that config.status was made for. |
14881 | if test -n "$ac_config_files"; then | |
14882 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
252b5132 | 14883 | fi |
13b2be9c DJ |
14884 | |
14885 | if test -n "$ac_config_headers"; then | |
14886 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
252b5132 | 14887 | fi |
252b5132 | 14888 | |
13b2be9c DJ |
14889 | if test -n "$ac_config_links"; then |
14890 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 RH |
14891 | fi |
14892 | ||
13b2be9c DJ |
14893 | if test -n "$ac_config_commands"; then |
14894 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
14895 | fi | |
d6d788bd | 14896 | |
13b2be9c | 14897 | cat >>$CONFIG_STATUS <<\_ACEOF |
252b5132 | 14898 | |
13b2be9c DJ |
14899 | ac_cs_usage="\ |
14900 | \`$as_me' instantiates files from templates according to the | |
14901 | current configuration. | |
252b5132 | 14902 | |
13b2be9c | 14903 | Usage: $0 [OPTIONS] [FILE]... |
252b5132 | 14904 | |
13b2be9c DJ |
14905 | -h, --help print this help, then exit |
14906 | -V, --version print version number, then exit | |
14907 | -q, --quiet do not print progress messages | |
14908 | -d, --debug don't remove temporary files | |
14909 | --recheck update $as_me by reconfiguring in the same conditions | |
14910 | --file=FILE[:TEMPLATE] | |
ab509236 | 14911 | instantiate the configuration file FILE |
13b2be9c | 14912 | --header=FILE[:TEMPLATE] |
ab509236 | 14913 | instantiate the configuration header FILE |
252b5132 | 14914 | |
13b2be9c DJ |
14915 | Configuration files: |
14916 | $config_files | |
252b5132 | 14917 | |
13b2be9c DJ |
14918 | Configuration headers: |
14919 | $config_headers | |
252b5132 | 14920 | |
13b2be9c DJ |
14921 | Configuration commands: |
14922 | $config_commands | |
252b5132 | 14923 | |
13b2be9c DJ |
14924 | Report bugs to <bug-autoconf@gnu.org>." |
14925 | _ACEOF | |
d6d788bd | 14926 | |
13b2be9c DJ |
14927 | cat >>$CONFIG_STATUS <<_ACEOF |
14928 | ac_cs_version="\\ | |
14929 | config.status | |
ab509236 | 14930 | configured by $0, generated by GNU Autoconf 2.59, |
13b2be9c | 14931 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
d6d788bd | 14932 | |
ab509236 | 14933 | Copyright (C) 2003 Free Software Foundation, Inc. |
13b2be9c DJ |
14934 | This config.status script is free software; the Free Software Foundation |
14935 | gives unlimited permission to copy, distribute and modify it." | |
14936 | srcdir=$srcdir | |
14937 | INSTALL="$INSTALL" | |
14938 | _ACEOF | |
d6d788bd | 14939 | |
13b2be9c DJ |
14940 | cat >>$CONFIG_STATUS <<\_ACEOF |
14941 | # If no file are specified by the user, then we need to provide default | |
14942 | # value. By we need to know if files were specified by the user. | |
14943 | ac_need_defaults=: | |
14944 | while test $# != 0 | |
14945 | do | |
14946 | case $1 in | |
14947 | --*=*) | |
14948 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
14949 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
14950 | ac_shift=: | |
c8615825 | 14951 | ;; |
13b2be9c DJ |
14952 | -*) |
14953 | ac_option=$1 | |
14954 | ac_optarg=$2 | |
14955 | ac_shift=shift | |
c8615825 | 14956 | ;; |
13b2be9c DJ |
14957 | *) # This is not an option, so the user has probably given explicit |
14958 | # arguments. | |
14959 | ac_option=$1 | |
14960 | ac_need_defaults=false;; | |
14961 | esac | |
252b5132 | 14962 | |
13b2be9c DJ |
14963 | case $ac_option in |
14964 | # Handling of the options. | |
14965 | _ACEOF | |
14966 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14967 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14968 | ac_cs_recheck=: ;; | |
14969 | --version | --vers* | -V ) | |
14970 | echo "$ac_cs_version"; exit 0 ;; | |
14971 | --he | --h) | |
14972 | # Conflict between --help and --header | |
14973 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
14974 | Try \`$0 --help' for more information." >&5 | |
14975 | echo "$as_me: error: ambiguous option: $1 | |
14976 | Try \`$0 --help' for more information." >&2;} | |
14977 | { (exit 1); exit 1; }; };; | |
14978 | --help | --hel | -h ) | |
14979 | echo "$ac_cs_usage"; exit 0 ;; | |
14980 | --debug | --d* | -d ) | |
14981 | debug=: ;; | |
14982 | --file | --fil | --fi | --f ) | |
14983 | $ac_shift | |
14984 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14985 | ac_need_defaults=false;; | |
14986 | --header | --heade | --head | --hea ) | |
14987 | $ac_shift | |
14988 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14989 | ac_need_defaults=false;; | |
14990 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14991 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14992 | ac_cs_silent=: ;; | |
c8615825 | 14993 | |
13b2be9c DJ |
14994 | # This is an error. |
14995 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
14996 | Try \`$0 --help' for more information." >&5 | |
14997 | echo "$as_me: error: unrecognized option: $1 | |
14998 | Try \`$0 --help' for more information." >&2;} | |
14999 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 15000 | |
13b2be9c | 15001 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 15002 | |
13b2be9c DJ |
15003 | esac |
15004 | shift | |
15005 | done | |
252b5132 | 15006 | |
13b2be9c | 15007 | ac_configure_extra_args= |
d6d788bd | 15008 | |
13b2be9c DJ |
15009 | if $ac_cs_silent; then |
15010 | exec 6>/dev/null | |
15011 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15012 | fi | |
9b2b7d69 | 15013 | |
13b2be9c DJ |
15014 | _ACEOF |
15015 | cat >>$CONFIG_STATUS <<_ACEOF | |
15016 | if \$ac_cs_recheck; then | |
15017 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
15018 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
15019 | fi | |
15020 | ||
15021 | _ACEOF | |
15022 | ||
15023 | cat >>$CONFIG_STATUS <<_ACEOF | |
9b2b7d69 | 15024 | # |
13b2be9c | 15025 | # INIT-COMMANDS section. |
9b2b7d69 MM |
15026 | # |
15027 | ||
13b2be9c | 15028 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
15029 | |
15030 | ||
15031 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15032 | # if CDPATH is set. | |
15033 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15034 | ||
15035 | sed_quote_subst='$sed_quote_subst' | |
15036 | double_quote_subst='$double_quote_subst' | |
15037 | delay_variable_subst='$delay_variable_subst' | |
15038 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
15039 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
15040 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
15041 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15042 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
15043 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
15044 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
15045 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
15046 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
15047 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
15048 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
15049 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
15050 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
15051 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
15052 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15053 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15054 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15055 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
15056 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
15057 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
15058 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
15059 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
15060 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
15061 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
15062 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
15063 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
15064 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15065 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15066 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
15067 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
15068 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
15069 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
15070 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
15071 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
15072 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15073 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15074 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15075 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
15076 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
15077 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
15078 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
15079 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
15080 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
15081 | 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"`' | |
15082 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
15083 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
15084 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
15085 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
15086 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15087 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
15088 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
15089 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15090 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
15091 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
15092 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
15093 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15094 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15095 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
15096 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
15097 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15098 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15099 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
15100 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15101 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15102 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15103 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15104 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15105 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15106 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
15107 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15108 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15109 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15110 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
15111 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
15112 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
15113 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
15114 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
15115 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15116 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
15117 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
15118 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
15119 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
15120 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
15121 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15122 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
15123 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
15124 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15125 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15126 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
15127 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
15128 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
15129 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
15130 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15131 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15132 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
15133 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15134 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15135 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15136 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15137 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15138 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15139 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
15140 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
15141 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15142 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15143 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
15144 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
15145 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
15146 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15147 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
15148 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
15149 | ||
15150 | LTCC='$LTCC' | |
15151 | LTCFLAGS='$LTCFLAGS' | |
15152 | compiler='$compiler_DEFAULT' | |
15153 | ||
15154 | # Quote evaled strings. | |
15155 | for var in SED \ | |
15156 | GREP \ | |
15157 | EGREP \ | |
15158 | FGREP \ | |
15159 | LD \ | |
15160 | NM \ | |
15161 | LN_S \ | |
15162 | lt_SP2NL \ | |
15163 | lt_NL2SP \ | |
15164 | reload_flag \ | |
15165 | deplibs_check_method \ | |
15166 | file_magic_cmd \ | |
15167 | AR \ | |
15168 | AR_FLAGS \ | |
15169 | STRIP \ | |
15170 | RANLIB \ | |
15171 | CC \ | |
15172 | CFLAGS \ | |
15173 | compiler \ | |
15174 | lt_cv_sys_global_symbol_pipe \ | |
15175 | lt_cv_sys_global_symbol_to_cdecl \ | |
15176 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15177 | SHELL \ | |
15178 | ECHO \ | |
15179 | lt_prog_compiler_no_builtin_flag \ | |
15180 | lt_prog_compiler_wl \ | |
15181 | lt_prog_compiler_pic \ | |
15182 | lt_prog_compiler_static \ | |
15183 | lt_cv_prog_compiler_c_o \ | |
15184 | need_locks \ | |
15185 | shrext_cmds \ | |
15186 | export_dynamic_flag_spec \ | |
15187 | whole_archive_flag_spec \ | |
15188 | compiler_needs_object \ | |
15189 | with_gnu_ld \ | |
15190 | allow_undefined_flag \ | |
15191 | no_undefined_flag \ | |
15192 | hardcode_libdir_flag_spec \ | |
15193 | hardcode_libdir_flag_spec_ld \ | |
15194 | hardcode_libdir_separator \ | |
15195 | fix_srcfile_path \ | |
15196 | exclude_expsyms \ | |
15197 | include_expsyms \ | |
15198 | file_list_spec \ | |
15199 | variables_saved_for_relink \ | |
15200 | libname_spec \ | |
15201 | library_names_spec \ | |
15202 | soname_spec \ | |
15203 | finish_eval \ | |
15204 | old_striplib \ | |
15205 | striplib; do | |
15206 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
15207 | *[\\\\\\\`\\"\\\$]*) | |
15208 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
15209 | ;; | |
15210 | *) | |
15211 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15212 | ;; | |
15213 | esac | |
15214 | done | |
15215 | ||
15216 | # Double-quote double-evaled strings. | |
15217 | for var in reload_cmds \ | |
15218 | old_postinstall_cmds \ | |
15219 | old_postuninstall_cmds \ | |
15220 | old_archive_cmds \ | |
15221 | extract_expsyms_cmds \ | |
15222 | old_archive_from_new_cmds \ | |
15223 | old_archive_from_expsyms_cmds \ | |
15224 | archive_cmds \ | |
15225 | archive_expsym_cmds \ | |
15226 | module_cmds \ | |
15227 | module_expsym_cmds \ | |
15228 | export_symbols_cmds \ | |
15229 | prelink_cmds \ | |
15230 | postinstall_cmds \ | |
15231 | postuninstall_cmds \ | |
15232 | finish_cmds \ | |
15233 | sys_lib_search_path_spec \ | |
15234 | sys_lib_dlsearch_path_spec; do | |
15235 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
15236 | *[\\\\\\\`\\"\\\$]*) | |
15237 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
15238 | ;; | |
15239 | *) | |
15240 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15241 | ;; | |
15242 | esac | |
15243 | done | |
15244 | ||
15245 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
15246 | case \$lt_ECHO in | |
15247 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
15248 | ;; | |
15249 | esac | |
15250 | ||
15251 | ac_aux_dir='$ac_aux_dir' | |
15252 | xsi_shell='$xsi_shell' | |
15253 | lt_shell_append='$lt_shell_append' | |
15254 | ||
15255 | # See if we are running on zsh, and set the options which allow our | |
15256 | # commands through without removal of \ escapes INIT. | |
15257 | if test -n "\${ZSH_VERSION+set}" ; then | |
15258 | setopt NO_GLOB_SUBST | |
15259 | fi | |
15260 | ||
15261 | ||
15262 | PACKAGE='$PACKAGE' | |
15263 | VERSION='$VERSION' | |
15264 | TIMESTAMP='$TIMESTAMP' | |
15265 | RM='$RM' | |
15266 | ofile='$ofile' | |
15267 | ||
15268 | ||
15269 | ||
20e95c23 DJ |
15270 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15271 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15272 | # from automake. | |
15273 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15274 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15275 | LINGUAS="${LINGUAS-%UNSET%}" | |
15276 | ||
13b2be9c DJ |
15277 | target_cpu_type=${target_cpu_type} |
15278 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
15279 | obj_format=${obj_format} | |
15280 | te_file=${te_file} | |
15281 | ||
15282 | _ACEOF | |
15283 | ||
15284 | ||
15285 | ||
15286 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15287 | for ac_config_target in $ac_config_targets | |
9b2b7d69 | 15288 | do |
13b2be9c DJ |
15289 | case "$ac_config_target" in |
15290 | # Handling of arguments. | |
15291 | "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
15292 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
15293 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15294 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15295 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15296 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
d7040cdb | 15297 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 15298 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
13b2be9c DJ |
15299 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
15300 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15301 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
15302 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
15303 | { (exit 1); exit 1; }; };; | |
9b2b7d69 MM |
15304 | esac |
15305 | done | |
15306 | ||
13b2be9c DJ |
15307 | # If the user did not use the arguments to specify the items to instantiate, |
15308 | # then the envvar interface is used. Set only those that are not. | |
15309 | # We use the long form for the default assignment because of an extremely | |
15310 | # bizarre bug on SunOS 4.1.3. | |
15311 | if $ac_need_defaults; then | |
15312 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15313 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15314 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15315 | fi | |
15316 | ||
15317 | # Have a temporary directory for convenience. Make it in the build tree | |
15318 | # simply because there is no reason to put it here, and in addition, | |
15319 | # creating and moving files from /tmp can sometimes cause problems. | |
15320 | # Create a temporary directory, and hook for its removal unless debugging. | |
15321 | $debug || | |
15322 | { | |
15323 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
15324 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
15325 | } | |
9b2b7d69 | 15326 | |
13b2be9c | 15327 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 15328 | |
13b2be9c DJ |
15329 | { |
15330 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
15331 | test -n "$tmp" && test -d "$tmp" | |
15332 | } || | |
15333 | { | |
15334 | tmp=./confstat$$-$RANDOM | |
15335 | (umask 077 && mkdir $tmp) | |
15336 | } || | |
15337 | { | |
15338 | echo "$me: cannot create a temporary directory in ." >&2 | |
15339 | { (exit 1); exit 1; } | |
15340 | } | |
9b2b7d69 | 15341 | |
13b2be9c DJ |
15342 | _ACEOF |
15343 | ||
15344 | cat >>$CONFIG_STATUS <<_ACEOF | |
15345 | ||
15346 | # | |
15347 | # CONFIG_FILES section. | |
15348 | # | |
15349 | ||
15350 | # No need to generate the scripts if there are no CONFIG_FILES. | |
15351 | # This happens for instance when ./config.status config.h | |
15352 | if test -n "\$CONFIG_FILES"; then | |
15353 | # Protect against being on the right side of a sed subst in config.status. | |
15354 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
15355 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
15356 | s,@SHELL@,$SHELL,;t t | |
15357 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
15358 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
15359 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
15360 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
15361 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
15362 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
15363 | s,@exec_prefix@,$exec_prefix,;t t | |
15364 | s,@prefix@,$prefix,;t t | |
15365 | s,@program_transform_name@,$program_transform_name,;t t | |
15366 | s,@bindir@,$bindir,;t t | |
15367 | s,@sbindir@,$sbindir,;t t | |
15368 | s,@libexecdir@,$libexecdir,;t t | |
15369 | s,@datadir@,$datadir,;t t | |
15370 | s,@sysconfdir@,$sysconfdir,;t t | |
15371 | s,@sharedstatedir@,$sharedstatedir,;t t | |
15372 | s,@localstatedir@,$localstatedir,;t t | |
15373 | s,@libdir@,$libdir,;t t | |
15374 | s,@includedir@,$includedir,;t t | |
15375 | s,@oldincludedir@,$oldincludedir,;t t | |
15376 | s,@infodir@,$infodir,;t t | |
15377 | s,@mandir@,$mandir,;t t | |
15378 | s,@build_alias@,$build_alias,;t t | |
15379 | s,@host_alias@,$host_alias,;t t | |
15380 | s,@target_alias@,$target_alias,;t t | |
15381 | s,@DEFS@,$DEFS,;t t | |
15382 | s,@ECHO_C@,$ECHO_C,;t t | |
15383 | s,@ECHO_N@,$ECHO_N,;t t | |
15384 | s,@ECHO_T@,$ECHO_T,;t t | |
15385 | s,@LIBS@,$LIBS,;t t | |
15386 | s,@build@,$build,;t t | |
15387 | s,@build_cpu@,$build_cpu,;t t | |
15388 | s,@build_vendor@,$build_vendor,;t t | |
15389 | s,@build_os@,$build_os,;t t | |
15390 | s,@host@,$host,;t t | |
15391 | s,@host_cpu@,$host_cpu,;t t | |
15392 | s,@host_vendor@,$host_vendor,;t t | |
15393 | s,@host_os@,$host_os,;t t | |
15394 | s,@target@,$target,;t t | |
15395 | s,@target_cpu@,$target_cpu,;t t | |
15396 | s,@target_vendor@,$target_vendor,;t t | |
15397 | s,@target_os@,$target_os,;t t | |
15398 | s,@CC@,$CC,;t t | |
15399 | s,@CFLAGS@,$CFLAGS,;t t | |
15400 | s,@LDFLAGS@,$LDFLAGS,;t t | |
15401 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
15402 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
15403 | s,@EXEEXT@,$EXEEXT,;t t | |
15404 | s,@OBJEXT@,$OBJEXT,;t t | |
15405 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
15406 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
15407 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
15408 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
15409 | s,@PACKAGE@,$PACKAGE,;t t | |
15410 | s,@VERSION@,$VERSION,;t t | |
15411 | s,@ACLOCAL@,$ACLOCAL,;t t | |
15412 | s,@AUTOCONF@,$AUTOCONF,;t t | |
15413 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
15414 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
15415 | s,@MAKEINFO@,$MAKEINFO,;t t | |
13b2be9c DJ |
15416 | s,@install_sh@,$install_sh,;t t |
15417 | s,@STRIP@,$STRIP,;t t | |
15418 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
15419 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
ab509236 | 15420 | s,@mkdir_p@,$mkdir_p,;t t |
13b2be9c DJ |
15421 | s,@AWK@,$AWK,;t t |
15422 | s,@SET_MAKE@,$SET_MAKE,;t t | |
15423 | s,@am__leading_dot@,$am__leading_dot,;t t | |
8ea2b00f AM |
15424 | s,@AMTAR@,$AMTAR,;t t |
15425 | s,@am__tar@,$am__tar,;t t | |
15426 | s,@am__untar@,$am__untar,;t t | |
13b2be9c DJ |
15427 | s,@DEPDIR@,$DEPDIR,;t t |
15428 | s,@am__include@,$am__include,;t t | |
15429 | s,@am__quote@,$am__quote,;t t | |
15430 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
15431 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
15432 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
15433 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
15434 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
15435 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
7357c5b6 AM |
15436 | s,@CPP@,$CPP,;t t |
15437 | s,@EGREP@,$EGREP,;t t | |
d7040cdb SE |
15438 | s,@LIBTOOL@,$LIBTOOL,;t t |
15439 | s,@SED@,$SED,;t t | |
d7040cdb SE |
15440 | s,@FGREP@,$FGREP,;t t |
15441 | s,@GREP@,$GREP,;t t | |
15442 | s,@LD@,$LD,;t t | |
15443 | s,@DUMPBIN@,$DUMPBIN,;t t | |
15444 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
15445 | s,@NM@,$NM,;t t | |
13b2be9c | 15446 | s,@LN_S@,$LN_S,;t t |
d7040cdb SE |
15447 | s,@AR@,$AR,;t t |
15448 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
13b2be9c DJ |
15449 | s,@RANLIB@,$RANLIB,;t t |
15450 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
d7040cdb | 15451 | s,@lt_ECHO@,$lt_ECHO,;t t |
13b2be9c | 15452 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
9e9b66a9 | 15453 | s,@NO_WERROR@,$NO_WERROR,;t t |
13b2be9c DJ |
15454 | s,@GDBINIT@,$GDBINIT,;t t |
15455 | s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t | |
15456 | s,@extra_objects@,$extra_objects,;t t | |
15457 | s,@target_cpu_type@,$target_cpu_type,;t t | |
15458 | s,@obj_format@,$obj_format,;t t | |
15459 | s,@te_file@,$te_file,;t t | |
15460 | s,@install_tooldir@,$install_tooldir,;t t | |
15461 | s,@atof@,$atof,;t t | |
13b2be9c | 15462 | s,@OPCODES_LIB@,$OPCODES_LIB,;t t |
13b2be9c DJ |
15463 | s,@YACC@,$YACC,;t t |
15464 | s,@LEX@,$LEX,;t t | |
15465 | s,@LEXLIB@,$LEXLIB,;t t | |
15466 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
13b2be9c | 15467 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
15468 | s,@LIBINTL@,$LIBINTL,;t t |
15469 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
15470 | s,@INCINTL@,$INCINTL,;t t | |
13b2be9c | 15471 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
15472 | s,@GMSGFMT@,$GMSGFMT,;t t |
15473 | s,@POSUB@,$POSUB,;t t | |
13b2be9c | 15474 | s,@CATALOGS@,$CATALOGS,;t t |
13b2be9c | 15475 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
13b2be9c | 15476 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
15477 | s,@GENCAT@,$GENCAT,;t t |
15478 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
13b2be9c | 15479 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
15480 | s,@MSGFMT@,$MSGFMT,;t t |
15481 | s,@MSGMERGE@,$MSGMERGE,;t t | |
13b2be9c DJ |
15482 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
15483 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
15484 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
15485 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
15486 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
20e95c23 | 15487 | s,@ALLOCA@,$ALLOCA,;t t |
13b2be9c | 15488 | s,@LIBM@,$LIBM,;t t |
108a6f8e CD |
15489 | s,@datarootdir@,$datarootdir,;t t |
15490 | s,@docdir@,$docdir,;t t | |
15491 | s,@htmldir@,$htmldir,;t t | |
13b2be9c DJ |
15492 | s,@LIBOBJS@,$LIBOBJS,;t t |
15493 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9b2b7d69 MM |
15494 | CEOF |
15495 | ||
13b2be9c DJ |
15496 | _ACEOF |
15497 | ||
15498 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15499 | # Split the substitutions into bite-sized pieces for seds with | |
15500 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15501 | ac_max_sed_lines=48 | |
15502 | ac_sed_frag=1 # Number of current file. | |
15503 | ac_beg=1 # First line for current file. | |
15504 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
15505 | ac_more_lines=: | |
15506 | ac_sed_cmds= | |
15507 | while $ac_more_lines; do | |
15508 | if test $ac_beg -gt 1; then | |
15509 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
15510 | else | |
15511 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
15512 | fi | |
15513 | if test ! -s $tmp/subs.frag; then | |
15514 | ac_more_lines=false | |
9b2b7d69 | 15515 | else |
13b2be9c DJ |
15516 | # The purpose of the label and of the branching condition is to |
15517 | # speed up the sed processing (if there are no `@' at all, there | |
15518 | # is no need to browse any of the substitutions). | |
15519 | # These are the two extra sed commands mentioned above. | |
15520 | (echo ':t | |
15521 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
15522 | if test -z "$ac_sed_cmds"; then | |
ab509236 | 15523 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
13b2be9c | 15524 | else |
ab509236 | 15525 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
13b2be9c DJ |
15526 | fi |
15527 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
15528 | ac_beg=$ac_end | |
15529 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9b2b7d69 | 15530 | fi |
13b2be9c DJ |
15531 | done |
15532 | if test -z "$ac_sed_cmds"; then | |
15533 | ac_sed_cmds=cat | |
252b5132 | 15534 | fi |
13b2be9c | 15535 | fi # test -n "$CONFIG_FILES" |
252b5132 | 15536 | |
13b2be9c DJ |
15537 | _ACEOF |
15538 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15539 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c8615825 | 15540 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
13b2be9c DJ |
15541 | case $ac_file in |
15542 | - | *:- | *:-:* ) # input from stdin | |
ab509236 L |
15543 | cat >$tmp/stdin |
15544 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15545 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13b2be9c | 15546 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ab509236 | 15547 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
13b2be9c | 15548 | * ) ac_file_in=$ac_file.in ;; |
252b5132 | 15549 | esac |
9b2b7d69 | 15550 | |
13b2be9c DJ |
15551 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
15552 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15553 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
15554 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15555 | X"$ac_file" : 'X\(//\)$' \| \ | |
15556 | X"$ac_file" : 'X\(/\)' \| \ | |
15557 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
15558 | echo X"$ac_file" | |
15559 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15560 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15561 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15562 | /^X\(\/\).*/{ s//\1/; q; } | |
15563 | s/.*/./; q'` | |
15564 | { if $as_mkdir_p; then | |
15565 | mkdir -p "$ac_dir" | |
c8615825 | 15566 | else |
13b2be9c DJ |
15567 | as_dir="$ac_dir" |
15568 | as_dirs= | |
15569 | while test ! -d "$as_dir"; do | |
15570 | as_dirs="$as_dir $as_dirs" | |
15571 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15572 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
15573 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
15574 | X"$as_dir" : 'X\(//\)$' \| \ | |
15575 | X"$as_dir" : 'X\(/\)' \| \ | |
15576 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
15577 | echo X"$as_dir" | |
15578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15579 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15580 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15581 | /^X\(\/\).*/{ s//\1/; q; } | |
15582 | s/.*/./; q'` | |
15583 | done | |
15584 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15585 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15586 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15587 | { (exit 1); exit 1; }; }; } | |
15588 | ||
15589 | ac_builddir=. | |
15590 | ||
15591 | if test "$ac_dir" != .; then | |
15592 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15593 | # A "../" for each directory in $ac_dir_suffix. | |
15594 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15595 | else | |
15596 | ac_dir_suffix= ac_top_builddir= | |
15597 | fi | |
9b2b7d69 | 15598 | |
13b2be9c DJ |
15599 | case $srcdir in |
15600 | .) # No --srcdir option. We are building in place. | |
15601 | ac_srcdir=. | |
15602 | if test -z "$ac_top_builddir"; then | |
15603 | ac_top_srcdir=. | |
15604 | else | |
15605 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15606 | fi ;; | |
15607 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15608 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15609 | ac_top_srcdir=$srcdir ;; | |
9b2b7d69 | 15610 | *) # Relative path. |
13b2be9c DJ |
15611 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
15612 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15613 | esac | |
ab509236 L |
15614 | |
15615 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
15616 | # the directories may not exist. | |
15617 | case `pwd` in | |
15618 | .) ac_abs_builddir="$ac_dir";; | |
15619 | *) | |
15620 | case "$ac_dir" in | |
15621 | .) ac_abs_builddir=`pwd`;; | |
15622 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
15623 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
15624 | esac;; | |
15625 | esac | |
15626 | case $ac_abs_builddir in | |
15627 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15628 | *) | |
15629 | case ${ac_top_builddir}. in | |
15630 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
15631 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15632 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
15633 | esac;; | |
15634 | esac | |
15635 | case $ac_abs_builddir in | |
15636 | .) ac_abs_srcdir=$ac_srcdir;; | |
15637 | *) | |
15638 | case $ac_srcdir in | |
15639 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
15640 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
15641 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
15642 | esac;; | |
15643 | esac | |
15644 | case $ac_abs_builddir in | |
15645 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15646 | *) | |
15647 | case $ac_top_srcdir in | |
15648 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
15649 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15650 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
15651 | esac;; | |
15652 | esac | |
252b5132 | 15653 | |
9b2b7d69 | 15654 | |
13b2be9c DJ |
15655 | case $INSTALL in |
15656 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15657 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c8615825 | 15658 | esac |
9b2b7d69 | 15659 | |
1ad12f97 NC |
15660 | if test x"$ac_file" != x-; then |
15661 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15662 | echo "$as_me: creating $ac_file" >&6;} | |
15663 | rm -f "$ac_file" | |
15664 | fi | |
13b2be9c DJ |
15665 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15666 | # use $as_me), people would be surprised to read: | |
15667 | # /* config.h. Generated by config.status. */ | |
15668 | if test x"$ac_file" = x-; then | |
15669 | configure_input= | |
15670 | else | |
15671 | configure_input="$ac_file. " | |
15672 | fi | |
15673 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ab509236 | 15674 | sed 's,.*/,,'` by configure." |
13b2be9c DJ |
15675 | |
15676 | # First look for the input files in the build tree, otherwise in the | |
15677 | # src tree. | |
15678 | ac_file_inputs=`IFS=: | |
15679 | for f in $ac_file_in; do | |
15680 | case $f in | |
15681 | -) echo $tmp/stdin ;; | |
15682 | [\\/$]*) | |
ab509236 L |
15683 | # Absolute (can't be DOS-style, as IFS=:) |
15684 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
15685 | echo "$as_me: error: cannot find input file: $f" >&2;} |
15686 | { (exit 1); exit 1; }; } | |
ab509236 | 15687 | echo "$f";; |
13b2be9c | 15688 | *) # Relative |
ab509236 L |
15689 | if test -f "$f"; then |
15690 | # Build tree | |
15691 | echo "$f" | |
15692 | elif test -f "$srcdir/$f"; then | |
15693 | # Source tree | |
15694 | echo "$srcdir/$f" | |
15695 | else | |
15696 | # /dev/null tree | |
15697 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
15698 | echo "$as_me: error: cannot find input file: $f" >&2;} |
15699 | { (exit 1); exit 1; }; } | |
ab509236 | 15700 | fi;; |
13b2be9c DJ |
15701 | esac |
15702 | done` || { (exit 1); exit 1; } | |
15703 | _ACEOF | |
15704 | cat >>$CONFIG_STATUS <<_ACEOF | |
15705 | sed "$ac_vpsub | |
15706 | $extrasub | |
15707 | _ACEOF | |
15708 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15709 | :t | |
15710 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15711 | s,@configure_input@,$configure_input,;t t | |
15712 | s,@srcdir@,$ac_srcdir,;t t | |
15713 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
15714 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
15715 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
15716 | s,@builddir@,$ac_builddir,;t t | |
15717 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
15718 | s,@top_builddir@,$ac_top_builddir,;t t | |
15719 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
15720 | s,@INSTALL@,$ac_INSTALL,;t t | |
15721 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
15722 | rm -f $tmp/stdin | |
15723 | if test x"$ac_file" != x-; then | |
15724 | mv $tmp/out $ac_file | |
15725 | else | |
15726 | cat $tmp/out | |
15727 | rm -f $tmp/out | |
15728 | fi | |
15729 | ||
15730 | done | |
15731 | _ACEOF | |
15732 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15733 | ||
15734 | # | |
15735 | # CONFIG_HEADER section. | |
15736 | # | |
252b5132 RH |
15737 | |
15738 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
15739 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
15740 | # | |
15741 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ab509236 L |
15742 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
15743 | ac_dB='[ ].*$,\1#\2' | |
13b2be9c DJ |
15744 | ac_dC=' ' |
15745 | ac_dD=',;t' | |
15746 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ab509236 | 15747 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
13b2be9c | 15748 | ac_uB='$,\1#\2define\3' |
252b5132 | 15749 | ac_uC=' ' |
13b2be9c DJ |
15750 | ac_uD=',;t' |
15751 | ||
15752 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 15753 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
13b2be9c DJ |
15754 | case $ac_file in |
15755 | - | *:- | *:-:* ) # input from stdin | |
ab509236 L |
15756 | cat >$tmp/stdin |
15757 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15758 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13b2be9c | 15759 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ab509236 | 15760 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
13b2be9c | 15761 | * ) ac_file_in=$ac_file.in ;; |
252b5132 RH |
15762 | esac |
15763 | ||
13b2be9c DJ |
15764 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
15765 | echo "$as_me: creating $ac_file" >&6;} | |
15766 | ||
15767 | # First look for the input files in the build tree, otherwise in the | |
15768 | # src tree. | |
15769 | ac_file_inputs=`IFS=: | |
15770 | for f in $ac_file_in; do | |
15771 | case $f in | |
15772 | -) echo $tmp/stdin ;; | |
15773 | [\\/$]*) | |
ab509236 L |
15774 | # Absolute (can't be DOS-style, as IFS=:) |
15775 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
15776 | echo "$as_me: error: cannot find input file: $f" >&2;} |
15777 | { (exit 1); exit 1; }; } | |
ab509236 L |
15778 | # Do quote $f, to prevent DOS paths from being IFS'd. |
15779 | echo "$f";; | |
13b2be9c | 15780 | *) # Relative |
ab509236 L |
15781 | if test -f "$f"; then |
15782 | # Build tree | |
15783 | echo "$f" | |
15784 | elif test -f "$srcdir/$f"; then | |
15785 | # Source tree | |
15786 | echo "$srcdir/$f" | |
15787 | else | |
15788 | # /dev/null tree | |
15789 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
15790 | echo "$as_me: error: cannot find input file: $f" >&2;} |
15791 | { (exit 1); exit 1; }; } | |
ab509236 | 15792 | fi;; |
13b2be9c DJ |
15793 | esac |
15794 | done` || { (exit 1); exit 1; } | |
15795 | # Remove the trailing spaces. | |
ab509236 | 15796 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
13b2be9c DJ |
15797 | |
15798 | _ACEOF | |
15799 | ||
15800 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
15801 | # `conftest.undefs', that substitutes the proper values into | |
15802 | # config.h.in to produce config.h. The first handles `#define' | |
15803 | # templates, and the second `#undef' templates. | |
15804 | # And first: Protect against being on the right side of a sed subst in | |
15805 | # config.status. Protect against being in an unquoted here document | |
15806 | # in config.status. | |
15807 | rm -f conftest.defines conftest.undefs | |
15808 | # Using a here document instead of a string reduces the quoting nightmare. | |
15809 | # Putting comments in sed scripts is not portable. | |
15810 | # | |
15811 | # `end' is used to avoid that the second main sed command (meant for | |
15812 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
15813 | # See the Autoconf documentation for `clear'. | |
15814 | cat >confdef2sed.sed <<\_ACEOF | |
15815 | s/[\\&,]/\\&/g | |
15816 | s,[\\$`],\\&,g | |
15817 | t clear | |
15818 | : clear | |
ab509236 | 15819 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
13b2be9c | 15820 | t end |
ab509236 | 15821 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
13b2be9c DJ |
15822 | : end |
15823 | _ACEOF | |
15824 | # If some macros were called several times there might be several times | |
15825 | # the same #defines, which is useless. Nevertheless, we may not want to | |
15826 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
15827 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
15828 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
15829 | rm -f confdef2sed.sed | |
252b5132 RH |
15830 | |
15831 | # This sed command replaces #undef with comments. This is necessary, for | |
15832 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15833 | # on some systems where configure will not decide to define it. | |
13b2be9c | 15834 | cat >>conftest.undefs <<\_ACEOF |
ab509236 | 15835 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
13b2be9c DJ |
15836 | _ACEOF |
15837 | ||
15838 | # Break up conftest.defines because some shells have a limit on the size | |
15839 | # of here documents, and old seds have small limits too (100 cmds). | |
15840 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ab509236 | 15841 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
13b2be9c DJ |
15842 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
15843 | echo ' :' >>$CONFIG_STATUS | |
15844 | rm -f conftest.tail | |
15845 | while grep . conftest.defines >/dev/null | |
15846 | do | |
15847 | # Write a limited-size here document to $tmp/defines.sed. | |
15848 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
15849 | # Speed up: don't consider the non `#define' lines. | |
ab509236 | 15850 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
13b2be9c DJ |
15851 | # Work around the forget-to-reset-the-flag bug. |
15852 | echo 't clr' >>$CONFIG_STATUS | |
15853 | echo ': clr' >>$CONFIG_STATUS | |
15854 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
15855 | echo 'CEOF | |
15856 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
15857 | rm -f $tmp/in | |
15858 | mv $tmp/out $tmp/in | |
15859 | ' >>$CONFIG_STATUS | |
15860 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
15861 | rm -f conftest.defines | |
15862 | mv conftest.tail conftest.defines | |
15863 | done | |
15864 | rm -f conftest.defines | |
15865 | echo ' fi # grep' >>$CONFIG_STATUS | |
15866 | echo >>$CONFIG_STATUS | |
252b5132 | 15867 | |
13b2be9c DJ |
15868 | # Break up conftest.undefs because some shells have a limit on the size |
15869 | # of here documents, and old seds have small limits too (100 cmds). | |
15870 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 15871 | rm -f conftest.tail |
13b2be9c | 15872 | while grep . conftest.undefs >/dev/null |
252b5132 | 15873 | do |
13b2be9c DJ |
15874 | # Write a limited-size here document to $tmp/undefs.sed. |
15875 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
15876 | # Speed up: don't consider the non `#undef' | |
ab509236 | 15877 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
13b2be9c DJ |
15878 | # Work around the forget-to-reset-the-flag bug. |
15879 | echo 't clr' >>$CONFIG_STATUS | |
15880 | echo ': clr' >>$CONFIG_STATUS | |
15881 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 15882 | echo 'CEOF |
13b2be9c DJ |
15883 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
15884 | rm -f $tmp/in | |
15885 | mv $tmp/out $tmp/in | |
15886 | ' >>$CONFIG_STATUS | |
15887 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
15888 | rm -f conftest.undefs | |
15889 | mv conftest.tail conftest.undefs | |
252b5132 | 15890 | done |
13b2be9c DJ |
15891 | rm -f conftest.undefs |
15892 | ||
15893 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15894 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15895 | # use $as_me), people would be surprised to read: | |
15896 | # /* config.h. Generated by config.status. */ | |
15897 | if test x"$ac_file" = x-; then | |
15898 | echo "/* Generated by configure. */" >$tmp/config.h | |
252b5132 | 15899 | else |
13b2be9c DJ |
15900 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
15901 | fi | |
15902 | cat $tmp/in >>$tmp/config.h | |
15903 | rm -f $tmp/in | |
15904 | if test x"$ac_file" != x-; then | |
15905 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
15906 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
15907 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15908 | else | |
15909 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15910 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
15911 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15912 | X"$ac_file" : 'X\(//\)$' \| \ | |
15913 | X"$ac_file" : 'X\(/\)' \| \ | |
15914 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
15915 | echo X"$ac_file" | |
15916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15917 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15918 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15919 | /^X\(\/\).*/{ s//\1/; q; } | |
15920 | s/.*/./; q'` | |
15921 | { if $as_mkdir_p; then | |
15922 | mkdir -p "$ac_dir" | |
15923 | else | |
15924 | as_dir="$ac_dir" | |
15925 | as_dirs= | |
15926 | while test ! -d "$as_dir"; do | |
15927 | as_dirs="$as_dir $as_dirs" | |
15928 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15929 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
15930 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
15931 | X"$as_dir" : 'X\(//\)$' \| \ | |
15932 | X"$as_dir" : 'X\(/\)' \| \ | |
15933 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
15934 | echo X"$as_dir" | |
15935 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15936 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15937 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15938 | /^X\(\/\).*/{ s//\1/; q; } | |
15939 | s/.*/./; q'` | |
15940 | done | |
15941 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15942 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15943 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15944 | { (exit 1); exit 1; }; }; } | |
15945 | ||
15946 | rm -f $ac_file | |
15947 | mv $tmp/config.h $ac_file | |
9b2b7d69 | 15948 | fi |
13b2be9c DJ |
15949 | else |
15950 | cat $tmp/config.h | |
15951 | rm -f $tmp/config.h | |
9b2b7d69 | 15952 | fi |
13b2be9c DJ |
15953 | # Compute $ac_file's index in $config_headers. |
15954 | _am_stamp_count=1 | |
15955 | for _am_header in $config_headers :; do | |
15956 | case $_am_header in | |
15957 | $ac_file | $ac_file:* ) | |
15958 | break ;; | |
15959 | * ) | |
15960 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15961 | esac | |
15962 | done | |
15963 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
15964 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
15965 | X$ac_file : 'X\(//\)[^/]' \| \ |
15966 | X$ac_file : 'X\(//\)$' \| \ | |
15967 | X$ac_file : 'X\(/\)' \| \ | |
15968 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
15969 | echo X$ac_file | |
15970 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15971 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15972 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15973 | /^X\(\/\).*/{ s//\1/; q; } | |
15974 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15975 | done | |
15976 | _ACEOF | |
15977 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6840198f | 15978 | |
13b2be9c DJ |
15979 | # |
15980 | # CONFIG_COMMANDS section. | |
15981 | # | |
15982 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
15983 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
15984 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15985 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
15986 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
15987 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
15988 | X"$ac_dest" : 'X\(//\)$' \| \ | |
15989 | X"$ac_dest" : 'X\(/\)' \| \ | |
15990 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
15991 | echo X"$ac_dest" | |
15992 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15993 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15994 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15995 | /^X\(\/\).*/{ s//\1/; q; } | |
15996 | s/.*/./; q'` | |
ab509236 L |
15997 | { if $as_mkdir_p; then |
15998 | mkdir -p "$ac_dir" | |
15999 | else | |
16000 | as_dir="$ac_dir" | |
16001 | as_dirs= | |
16002 | while test ! -d "$as_dir"; do | |
16003 | as_dirs="$as_dir $as_dirs" | |
16004 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16005 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16006 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16007 | X"$as_dir" : 'X\(//\)$' \| \ | |
16008 | X"$as_dir" : 'X\(/\)' \| \ | |
16009 | . : '\(.\)' 2>/dev/null || | |
16010 | echo X"$as_dir" | | |
16011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16012 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16013 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16014 | /^X\(\/\).*/{ s//\1/; q; } | |
16015 | s/.*/./; q'` | |
16016 | done | |
16017 | test ! -n "$as_dirs" || mkdir $as_dirs | |
16018 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
16019 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
16020 | { (exit 1); exit 1; }; }; } | |
16021 | ||
13b2be9c DJ |
16022 | ac_builddir=. |
16023 | ||
16024 | if test "$ac_dir" != .; then | |
16025 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
16026 | # A "../" for each directory in $ac_dir_suffix. | |
16027 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
16028 | else | |
16029 | ac_dir_suffix= ac_top_builddir= | |
16030 | fi | |
16031 | ||
16032 | case $srcdir in | |
16033 | .) # No --srcdir option. We are building in place. | |
16034 | ac_srcdir=. | |
16035 | if test -z "$ac_top_builddir"; then | |
16036 | ac_top_srcdir=. | |
16037 | else | |
16038 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
16039 | fi ;; | |
16040 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
16041 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16042 | ac_top_srcdir=$srcdir ;; | |
16043 | *) # Relative path. | |
16044 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
16045 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
16046 | esac | |
ab509236 L |
16047 | |
16048 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
16049 | # the directories may not exist. | |
16050 | case `pwd` in | |
16051 | .) ac_abs_builddir="$ac_dir";; | |
16052 | *) | |
16053 | case "$ac_dir" in | |
16054 | .) ac_abs_builddir=`pwd`;; | |
16055 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
16056 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
16057 | esac;; | |
16058 | esac | |
16059 | case $ac_abs_builddir in | |
16060 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
16061 | *) | |
16062 | case ${ac_top_builddir}. in | |
16063 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
16064 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
16065 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
16066 | esac;; | |
16067 | esac | |
16068 | case $ac_abs_builddir in | |
16069 | .) ac_abs_srcdir=$ac_srcdir;; | |
16070 | *) | |
16071 | case $ac_srcdir in | |
16072 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
16073 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
16074 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
16075 | esac;; | |
16076 | esac | |
16077 | case $ac_abs_builddir in | |
16078 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
16079 | *) | |
16080 | case $ac_top_srcdir in | |
16081 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
16082 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
16083 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
16084 | esac;; | |
16085 | esac | |
13b2be9c DJ |
16086 | |
16087 | ||
16088 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
16089 | echo "$as_me: executing $ac_dest commands" >&6;} | |
16090 | case $ac_dest in | |
16091 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
16092 | # Strip MF so we end up with the name of the file. | |
16093 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16094 | # Check whether this is an Automake generated Makefile or not. | |
16095 | # We used to match only the files named `Makefile.in', but | |
16096 | # some people rename them; so instead we look at the file content. | |
16097 | # Grep'ing the first line is not enough: some people post-process | |
16098 | # each Makefile.in and add a new line on top of each file to say so. | |
16099 | # So let's grep whole file. | |
16100 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
16101 | dirpart=`(dirname "$mf") 2>/dev/null || | |
16102 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16103 | X"$mf" : 'X\(//\)[^/]' \| \ |
16104 | X"$mf" : 'X\(//\)$' \| \ | |
16105 | X"$mf" : 'X\(/\)' \| \ | |
16106 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16107 | echo X"$mf" | |
16108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16109 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16110 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16111 | /^X\(\/\).*/{ s//\1/; q; } | |
16112 | s/.*/./; q'` | |
16113 | else | |
16114 | continue | |
16115 | fi | |
8ea2b00f AM |
16116 | # Extract the definition of DEPDIR, am__include, and am__quote |
16117 | # from the Makefile without running `make'. | |
4b363073 | 16118 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13b2be9c | 16119 | test -z "$DEPDIR" && continue |
8ea2b00f AM |
16120 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
16121 | test -z "am__include" && continue | |
16122 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13b2be9c | 16123 | # When using ansi2knr, U may be empty or an underscore; expand it |
4b363073 | 16124 | U=`sed -n 's/^U = //p' < "$mf"` |
8ea2b00f AM |
16125 | # Find all dependency output files, they are included files with |
16126 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16127 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16128 | # expansion. | |
16129 | for file in `sed -n " | |
16130 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13b2be9c DJ |
16131 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
16132 | # Make sure the directory exists. | |
16133 | test -f "$dirpart/$file" && continue | |
16134 | fdir=`(dirname "$file") 2>/dev/null || | |
16135 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16136 | X"$file" : 'X\(//\)[^/]' \| \ |
16137 | X"$file" : 'X\(//\)$' \| \ | |
16138 | X"$file" : 'X\(/\)' \| \ | |
16139 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16140 | echo X"$file" | |
16141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16142 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16143 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16144 | /^X\(\/\).*/{ s//\1/; q; } | |
16145 | s/.*/./; q'` | |
16146 | { if $as_mkdir_p; then | |
16147 | mkdir -p $dirpart/$fdir | |
16148 | else | |
16149 | as_dir=$dirpart/$fdir | |
16150 | as_dirs= | |
16151 | while test ! -d "$as_dir"; do | |
16152 | as_dirs="$as_dir $as_dirs" | |
16153 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16154 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16155 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16156 | X"$as_dir" : 'X\(//\)$' \| \ | |
16157 | X"$as_dir" : 'X\(/\)' \| \ | |
16158 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16159 | echo X"$as_dir" | |
16160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16161 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16162 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16163 | /^X\(\/\).*/{ s//\1/; q; } | |
16164 | s/.*/./; q'` | |
16165 | done | |
16166 | test ! -n "$as_dirs" || mkdir $as_dirs | |
16167 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
16168 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
16169 | { (exit 1); exit 1; }; }; } | |
c8615825 | 16170 | |
13b2be9c DJ |
16171 | # echo "creating $dirpart/$file" |
16172 | echo '# dummy' > "$dirpart/$file" | |
16173 | done | |
16174 | done | |
d7040cdb SE |
16175 | ;; |
16176 | libtool ) | |
16177 | ||
16178 | # See if we are running on zsh, and set the options which allow our | |
16179 | # commands through without removal of \ escapes. | |
16180 | if test -n "${ZSH_VERSION+set}" ; then | |
16181 | setopt NO_GLOB_SUBST | |
16182 | fi | |
16183 | ||
16184 | cfgfile="${ofile}T" | |
16185 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16186 | $RM "$cfgfile" | |
16187 | ||
16188 | cat <<_LT_EOF >> "$cfgfile" | |
16189 | #! $SHELL | |
16190 | ||
16191 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
16192 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
16193 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
16194 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
16195 | # | |
16196 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
16197 | # 2006, 2007 Free Software Foundation, Inc. | |
16198 | # | |
16199 | # This file is part of GNU Libtool: | |
16200 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
16201 | # | |
16202 | # This program is free software; you can redistribute it and/or modify | |
16203 | # it under the terms of the GNU General Public License as published by | |
16204 | # the Free Software Foundation; either version 2 of the License, or | |
16205 | # (at your option) any later version. | |
16206 | # | |
16207 | # This program is distributed in the hope that it will be useful, but | |
16208 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
16209 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16210 | # General Public License for more details. | |
16211 | # | |
16212 | # You should have received a copy of the GNU General Public License | |
16213 | # along with this program; if not, a copy can be downloaded from | |
16214 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
16215 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
16216 | # MA 02110-1301, USA. | |
16217 | # | |
16218 | # As a special exception to the GNU General Public License, if you | |
16219 | # distribute this file as part of a program that contains a | |
16220 | # configuration script generated by Autoconf, you may include it under | |
16221 | # the same distribution terms that you use for the rest of that program. | |
16222 | ||
16223 | ||
16224 | # The names of the tagged configurations supported by this script. | |
16225 | available_tags="" | |
16226 | ||
16227 | # ### BEGIN LIBTOOL CONFIG | |
16228 | ||
16229 | # Which release of libtool.m4 was used? | |
16230 | macro_version=$macro_version | |
16231 | macro_revision=$macro_revision | |
16232 | ||
16233 | # Whether or not to build shared libraries. | |
16234 | build_libtool_libs=$enable_shared | |
16235 | ||
16236 | # Whether or not to build static libraries. | |
16237 | build_old_libs=$enable_static | |
16238 | ||
16239 | # What type of objects to build. | |
16240 | pic_mode=$pic_mode | |
16241 | ||
16242 | # Whether or not to optimize for fast installation. | |
16243 | fast_install=$enable_fast_install | |
16244 | ||
16245 | # The host system. | |
16246 | host_alias=$host_alias | |
16247 | host=$host | |
16248 | host_os=$host_os | |
16249 | ||
16250 | # The build system. | |
16251 | build_alias=$build_alias | |
16252 | build=$build | |
16253 | build_os=$build_os | |
16254 | ||
16255 | # A sed program that does not truncate output. | |
16256 | SED=$lt_SED | |
16257 | ||
16258 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
16259 | Xsed="\$SED -e 1s/^X//" | |
16260 | ||
16261 | # A grep program that handles long lines. | |
16262 | GREP=$lt_GREP | |
16263 | ||
16264 | # An ERE matcher. | |
16265 | EGREP=$lt_EGREP | |
16266 | ||
16267 | # A literal string matcher. | |
16268 | FGREP=$lt_FGREP | |
16269 | ||
16270 | # A BSD- or MS-compatible name lister. | |
16271 | NM=$lt_NM | |
16272 | ||
16273 | # Whether we need soft or hard links. | |
16274 | LN_S=$lt_LN_S | |
16275 | ||
16276 | # What is the maximum length of a command? | |
16277 | max_cmd_len=$max_cmd_len | |
16278 | ||
16279 | # Object file suffix (normally "o"). | |
16280 | objext=$ac_objext | |
16281 | ||
16282 | # Executable file suffix (normally ""). | |
16283 | exeext=$exeext | |
16284 | ||
16285 | # whether the shell understands "unset". | |
16286 | lt_unset=$lt_unset | |
16287 | ||
16288 | # turn spaces into newlines. | |
16289 | SP2NL=$lt_lt_SP2NL | |
16290 | ||
16291 | # turn newlines into spaces. | |
16292 | NL2SP=$lt_lt_NL2SP | |
16293 | ||
16294 | # How to create reloadable object files. | |
16295 | reload_flag=$lt_reload_flag | |
16296 | reload_cmds=$lt_reload_cmds | |
16297 | ||
16298 | # Method to check whether dependent libraries are shared objects. | |
16299 | deplibs_check_method=$lt_deplibs_check_method | |
16300 | ||
16301 | # Command to use when deplibs_check_method == "file_magic". | |
16302 | file_magic_cmd=$lt_file_magic_cmd | |
16303 | ||
16304 | # The archiver. | |
16305 | AR=$lt_AR | |
16306 | AR_FLAGS=$lt_AR_FLAGS | |
16307 | ||
16308 | # A symbol stripping program. | |
16309 | STRIP=$lt_STRIP | |
16310 | ||
16311 | # Commands used to install an old-style archive. | |
16312 | RANLIB=$lt_RANLIB | |
16313 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16314 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16315 | ||
16316 | # A C compiler. | |
16317 | LTCC=$lt_CC | |
16318 | ||
16319 | # LTCC compiler flags. | |
16320 | LTCFLAGS=$lt_CFLAGS | |
16321 | ||
16322 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16323 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16324 | ||
16325 | # Transform the output of nm in a proper C declaration. | |
16326 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16327 | ||
16328 | # Transform the output of nm in a C name address pair. | |
16329 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16330 | ||
16331 | # The name of the directory that contains temporary libtool files. | |
16332 | objdir=$objdir | |
16333 | ||
16334 | # Shell to use when invoking shell scripts. | |
16335 | SHELL=$lt_SHELL | |
16336 | ||
16337 | # An echo program that does not interpret backslashes. | |
16338 | ECHO=$lt_ECHO | |
16339 | ||
16340 | # Used to examine libraries when file_magic_cmd begins with "file". | |
16341 | MAGIC_CMD=$MAGIC_CMD | |
16342 | ||
16343 | # Must we lock files when doing compilation? | |
16344 | need_locks=$lt_need_locks | |
16345 | ||
16346 | # Old archive suffix (normally "a"). | |
16347 | libext=$libext | |
16348 | ||
16349 | # Shared library suffix (normally ".so"). | |
16350 | shrext_cmds=$lt_shrext_cmds | |
16351 | ||
16352 | # The commands to extract the exported symbol list from a shared archive. | |
16353 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16354 | ||
16355 | # Variables whose values should be saved in libtool wrapper scripts and | |
16356 | # restored at link time. | |
16357 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16358 | ||
16359 | # Do we need the "lib" prefix for modules? | |
16360 | need_lib_prefix=$need_lib_prefix | |
16361 | ||
16362 | # Do we need a version for libraries? | |
16363 | need_version=$need_version | |
16364 | ||
16365 | # Library versioning type. | |
16366 | version_type=$version_type | |
16367 | ||
16368 | # Shared library runtime path variable. | |
16369 | runpath_var=$runpath_var | |
16370 | ||
16371 | # Shared library path variable. | |
16372 | shlibpath_var=$shlibpath_var | |
16373 | ||
16374 | # Is shlibpath searched before the hard-coded library search path? | |
16375 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16376 | ||
16377 | # Format of library name prefix. | |
16378 | libname_spec=$lt_libname_spec | |
16379 | ||
16380 | # List of archive names. First name is the real one, the rest are links. | |
16381 | # The last name is the one that the linker finds with -lNAME | |
16382 | library_names_spec=$lt_library_names_spec | |
16383 | ||
16384 | # The coded name of the library, if different from the real name. | |
16385 | soname_spec=$lt_soname_spec | |
16386 | ||
16387 | # Command to use after installation of a shared archive. | |
16388 | postinstall_cmds=$lt_postinstall_cmds | |
16389 | ||
16390 | # Command to use after uninstallation of a shared archive. | |
16391 | postuninstall_cmds=$lt_postuninstall_cmds | |
16392 | ||
16393 | # Commands used to finish a libtool library installation in a directory. | |
16394 | finish_cmds=$lt_finish_cmds | |
16395 | ||
16396 | # As "finish_cmds", except a single script fragment to be evaled but | |
16397 | # not shown. | |
16398 | finish_eval=$lt_finish_eval | |
16399 | ||
16400 | # Whether we should hardcode library paths into libraries. | |
16401 | hardcode_into_libs=$hardcode_into_libs | |
16402 | ||
16403 | # Compile-time system search path for libraries. | |
16404 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16405 | ||
16406 | # Run-time system search path for libraries. | |
16407 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16408 | ||
16409 | # Whether dlopen is supported. | |
16410 | dlopen_support=$enable_dlopen | |
16411 | ||
16412 | # Whether dlopen of programs is supported. | |
16413 | dlopen_self=$enable_dlopen_self | |
16414 | ||
16415 | # Whether dlopen of statically linked programs is supported. | |
16416 | dlopen_self_static=$enable_dlopen_self_static | |
16417 | ||
16418 | # Commands to strip libraries. | |
16419 | old_striplib=$lt_old_striplib | |
16420 | striplib=$lt_striplib | |
16421 | ||
16422 | ||
16423 | # The linker used to build libraries. | |
16424 | LD=$lt_LD | |
16425 | ||
16426 | # Commands used to build an old-style archive. | |
16427 | old_archive_cmds=$lt_old_archive_cmds | |
16428 | ||
16429 | # A language specific compiler. | |
16430 | CC=$lt_compiler | |
16431 | ||
16432 | # Is the compiler the GNU compiler? | |
16433 | with_gcc=$GCC | |
16434 | ||
16435 | # Compiler flag to turn off builtin functions. | |
16436 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16437 | ||
16438 | # How to pass a linker flag through the compiler. | |
16439 | wl=$lt_lt_prog_compiler_wl | |
16440 | ||
16441 | # Additional compiler flags for building library objects. | |
16442 | pic_flag=$lt_lt_prog_compiler_pic | |
16443 | ||
16444 | # Compiler flag to prevent dynamic linking. | |
16445 | link_static_flag=$lt_lt_prog_compiler_static | |
16446 | ||
16447 | # Does compiler simultaneously support -c and -o options? | |
16448 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16449 | ||
16450 | # Whether or not to add -lc for building shared libraries. | |
16451 | build_libtool_need_lc=$archive_cmds_need_lc | |
16452 | ||
16453 | # Whether or not to disallow shared libs when runtime libs are static. | |
16454 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16455 | ||
16456 | # Compiler flag to allow reflexive dlopens. | |
16457 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16458 | ||
16459 | # Compiler flag to generate shared objects directly from archives. | |
16460 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16461 | ||
16462 | # Whether the compiler copes with passing no objects directly. | |
16463 | compiler_needs_object=$lt_compiler_needs_object | |
16464 | ||
16465 | # Create an old-style archive from a shared archive. | |
16466 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16467 | ||
16468 | # Create a temporary old-style archive to link instead of a shared archive. | |
16469 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16470 | ||
16471 | # Commands used to build a shared archive. | |
16472 | archive_cmds=$lt_archive_cmds | |
16473 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16474 | ||
16475 | # Commands used to build a loadable module if different from building | |
16476 | # a shared archive. | |
16477 | module_cmds=$lt_module_cmds | |
16478 | module_expsym_cmds=$lt_module_expsym_cmds | |
16479 | ||
16480 | # Whether we are building with GNU ld or not. | |
16481 | with_gnu_ld=$lt_with_gnu_ld | |
16482 | ||
16483 | # Flag that allows shared libraries with undefined symbols to be built. | |
16484 | allow_undefined_flag=$lt_allow_undefined_flag | |
16485 | ||
16486 | # Flag that enforces no undefined symbols. | |
16487 | no_undefined_flag=$lt_no_undefined_flag | |
16488 | ||
16489 | # Flag to hardcode \$libdir into a binary during linking. | |
16490 | # This must work even if \$libdir does not exist | |
16491 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16492 | ||
16493 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16494 | # during linking. This must work even if \$libdir does not exist. | |
16495 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16496 | ||
16497 | # Whether we need a single "-rpath" flag with a separated argument. | |
16498 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16499 | ||
16500 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16501 | # DIR into the resulting binary. | |
16502 | hardcode_direct=$hardcode_direct | |
16503 | ||
16504 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16505 | # DIR into the resulting binary and the resulting library dependency is | |
16506 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16507 | # library is relocated. | |
16508 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16509 | ||
16510 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16511 | # into the resulting binary. | |
16512 | hardcode_minus_L=$hardcode_minus_L | |
16513 | ||
16514 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16515 | # into the resulting binary. | |
16516 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16517 | ||
16518 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16519 | # into the library and all subsequent libraries and executables linked | |
16520 | # against it. | |
16521 | hardcode_automatic=$hardcode_automatic | |
16522 | ||
16523 | # Set to yes if linker adds runtime paths of dependent libraries | |
16524 | # to runtime path list. | |
16525 | inherit_rpath=$inherit_rpath | |
16526 | ||
16527 | # Whether libtool must link a program against all its dependency libraries. | |
16528 | link_all_deplibs=$link_all_deplibs | |
16529 | ||
16530 | # Fix the shell variable \$srcfile for the compiler. | |
16531 | fix_srcfile_path=$lt_fix_srcfile_path | |
16532 | ||
16533 | # Set to "yes" if exported symbols are required. | |
16534 | always_export_symbols=$always_export_symbols | |
16535 | ||
16536 | # The commands to list exported symbols. | |
16537 | export_symbols_cmds=$lt_export_symbols_cmds | |
16538 | ||
16539 | # Symbols that should not be listed in the preloaded symbols. | |
16540 | exclude_expsyms=$lt_exclude_expsyms | |
16541 | ||
16542 | # Symbols that must always be exported. | |
16543 | include_expsyms=$lt_include_expsyms | |
16544 | ||
16545 | # Commands necessary for linking programs (against libraries) with templates. | |
16546 | prelink_cmds=$lt_prelink_cmds | |
16547 | ||
16548 | # Specify filename containing input files. | |
16549 | file_list_spec=$lt_file_list_spec | |
16550 | ||
16551 | # How to hardcode a shared library path into an executable. | |
16552 | hardcode_action=$hardcode_action | |
16553 | ||
16554 | # ### END LIBTOOL CONFIG | |
16555 | ||
16556 | _LT_EOF | |
16557 | ||
16558 | case $host_os in | |
16559 | aix3*) | |
16560 | cat <<\_LT_EOF >> "$cfgfile" | |
16561 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16562 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16563 | # vanish in a puff of smoke. | |
16564 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16565 | COLLECT_NAMES= | |
16566 | export COLLECT_NAMES | |
16567 | fi | |
16568 | _LT_EOF | |
16569 | ;; | |
16570 | esac | |
16571 | ||
16572 | ||
16573 | ltmain="$ac_aux_dir/ltmain.sh" | |
16574 | ||
16575 | ||
16576 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16577 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16578 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16579 | # is reportedly fixed, but why not run on old versions too? | |
16580 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16581 | || (rm -f "$cfgfile"; exit 1) | |
16582 | ||
16583 | case $xsi_shell in | |
16584 | yes) | |
16585 | cat << \_LT_EOF >> "$cfgfile" | |
16586 | # func_dirname file append nondir_replacement | |
16587 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16588 | # otherwise set result to NONDIR_REPLACEMENT. | |
16589 | func_dirname () | |
16590 | { | |
16591 | case ${1} in | |
16592 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16593 | * ) func_dirname_result="${3}" ;; | |
16594 | esac | |
16595 | } | |
16596 | ||
16597 | # func_basename file | |
16598 | func_basename () | |
16599 | { | |
16600 | func_basename_result="${1##*/}" | |
16601 | } | |
16602 | ||
16603 | # func_stripname prefix suffix name | |
16604 | # strip PREFIX and SUFFIX off of NAME. | |
16605 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16606 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16607 | # dot (in which case that matches only a dot). | |
16608 | func_stripname () | |
16609 | { | |
16610 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16611 | # positional parameters, so assign one to ordinary parameter first. | |
16612 | func_stripname_result=${3} | |
16613 | func_stripname_result=${func_stripname_result#"${1}"} | |
16614 | func_stripname_result=${func_stripname_result%"${2}"} | |
16615 | } | |
16616 | ||
16617 | # func_opt_split | |
16618 | func_opt_split () | |
16619 | { | |
16620 | func_opt_split_opt=${1%%=*} | |
16621 | func_opt_split_arg=${1#*=} | |
16622 | } | |
16623 | ||
16624 | # func_lo2o object | |
16625 | func_lo2o () | |
16626 | { | |
16627 | case ${1} in | |
16628 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16629 | *) func_lo2o_result=${1} ;; | |
16630 | esac | |
16631 | } | |
16632 | _LT_EOF | |
16633 | ;; | |
16634 | *) # Bourne compatible functions. | |
16635 | cat << \_LT_EOF >> "$cfgfile" | |
16636 | # func_dirname file append nondir_replacement | |
16637 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16638 | # otherwise set result to NONDIR_REPLACEMENT. | |
16639 | func_dirname () | |
16640 | { | |
16641 | # Extract subdirectory from the argument. | |
16642 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
16643 | if test "X$func_dirname_result" = "X${1}"; then | |
16644 | func_dirname_result="${3}" | |
16645 | else | |
16646 | func_dirname_result="$func_dirname_result${2}" | |
16647 | fi | |
16648 | } | |
16649 | ||
16650 | # func_basename file | |
16651 | func_basename () | |
16652 | { | |
16653 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
16654 | } | |
16655 | ||
16656 | # func_stripname prefix suffix name | |
16657 | # strip PREFIX and SUFFIX off of NAME. | |
16658 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16659 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16660 | # dot (in which case that matches only a dot). | |
16661 | # func_strip_suffix prefix name | |
16662 | func_stripname () | |
16663 | { | |
16664 | case ${2} in | |
16665 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
16666 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
16667 | *) func_stripname_result=`$ECHO "X${3}" \ | |
16668 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
16669 | esac | |
16670 | } | |
16671 | ||
16672 | # sed scripts: | |
16673 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16674 | my_sed_long_arg='1s/^-[^=]*=//' | |
16675 | ||
16676 | # func_opt_split | |
16677 | func_opt_split () | |
16678 | { | |
16679 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
16680 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
16681 | } | |
16682 | ||
16683 | # func_lo2o object | |
16684 | func_lo2o () | |
16685 | { | |
16686 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
16687 | } | |
16688 | _LT_EOF | |
16689 | esac | |
16690 | ||
16691 | case $lt_shell_append in | |
16692 | yes) | |
16693 | cat << \_LT_EOF >> "$cfgfile" | |
16694 | ||
16695 | # func_append var value | |
16696 | # Append VALUE to the end of shell variable VAR. | |
16697 | func_append () | |
16698 | { | |
16699 | eval "$1+=\$2" | |
16700 | } | |
16701 | _LT_EOF | |
16702 | ;; | |
16703 | *) | |
16704 | cat << \_LT_EOF >> "$cfgfile" | |
16705 | ||
16706 | # func_append var value | |
16707 | # Append VALUE to the end of shell variable VAR. | |
16708 | func_append () | |
16709 | { | |
16710 | eval "$1=\$$1\$2" | |
16711 | } | |
16712 | _LT_EOF | |
16713 | ;; | |
16714 | esac | |
16715 | ||
16716 | ||
16717 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16718 | || (rm -f "$cfgfile"; exit 1) | |
16719 | ||
16720 | mv -f "$cfgfile" "$ofile" || | |
16721 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16722 | chmod +x "$ofile" | |
16723 | ||
13b2be9c | 16724 | ;; |
20e95c23 DJ |
16725 | default-1 ) |
16726 | for ac_file in $CONFIG_FILES; do | |
16727 | # Support "outfile[:infile[:infile...]]" | |
16728 | case "$ac_file" in | |
16729 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16730 | esac | |
16731 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16732 | case "$ac_file" in */Makefile.in) | |
16733 | # Adjust a relative srcdir. | |
16734 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
16735 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
16736 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
16737 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16738 | # In autoconf-2.50 it is called $srcdir. | |
16739 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16740 | case "$ac_given_srcdir" in | |
16741 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16742 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16743 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16744 | esac | |
16745 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16746 | rm -f "$ac_dir/POTFILES" | |
16747 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16748 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
16749 | POMAKEFILEDEPS="POTFILES.in" | |
16750 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
16751 | # on $ac_dir but don't depend on user-specified configuration | |
16752 | # parameters. | |
16753 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16754 | # The LINGUAS file contains the set of available languages. | |
16755 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
16756 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
16757 | fi | |
16758 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16759 | # Hide the ALL_LINGUAS assigment from automake. | |
16760 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
16761 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
16762 | else | |
16763 | # The set of available languages was given in configure.in. | |
16764 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
16765 | fi | |
16766 | case "$ac_given_srcdir" in | |
16767 | .) srcdirpre= ;; | |
16768 | *) srcdirpre='$(srcdir)/' ;; | |
16769 | esac | |
16770 | POFILES= | |
16771 | GMOFILES= | |
16772 | UPDATEPOFILES= | |
16773 | DUMMYPOFILES= | |
16774 | for lang in $ALL_LINGUAS; do | |
16775 | POFILES="$POFILES $srcdirpre$lang.po" | |
16776 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
16777 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
16778 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
16779 | done | |
16780 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16781 | # environment variable. | |
16782 | INST_LINGUAS= | |
16783 | if test -n "$ALL_LINGUAS"; then | |
16784 | for presentlang in $ALL_LINGUAS; do | |
16785 | useit=no | |
16786 | if test "%UNSET%" != "$LINGUAS"; then | |
16787 | desiredlanguages="$LINGUAS" | |
16788 | else | |
16789 | desiredlanguages="$ALL_LINGUAS" | |
16790 | fi | |
16791 | for desiredlang in $desiredlanguages; do | |
16792 | # Use the presentlang catalog if desiredlang is | |
16793 | # a. equal to presentlang, or | |
16794 | # b. a variant of presentlang (because in this case, | |
16795 | # presentlang can be used as a fallback for messages | |
16796 | # which are not translated in the desiredlang catalog). | |
16797 | case "$desiredlang" in | |
16798 | "$presentlang"*) useit=yes;; | |
16799 | esac | |
16800 | done | |
16801 | if test $useit = yes; then | |
16802 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16803 | fi | |
16804 | done | |
16805 | fi | |
16806 | CATALOGS= | |
16807 | if test -n "$INST_LINGUAS"; then | |
16808 | for lang in $INST_LINGUAS; do | |
16809 | CATALOGS="$CATALOGS $lang.gmo" | |
16810 | done | |
16811 | fi | |
16812 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
16813 | 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" | |
16814 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
16815 | if test -f "$f"; then | |
16816 | case "$f" in | |
16817 | *.orig | *.bak | *~) ;; | |
16818 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16819 | esac | |
16820 | fi | |
16821 | done | |
16822 | fi | |
16823 | ;; | |
16824 | esac | |
16825 | done ;; | |
13b2be9c | 16826 | default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h |
252b5132 RH |
16827 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
16828 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
16829 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
16830 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
16831 | if test "x$cgen_cpu_prefix" != x ; then | |
16832 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 16833 | fi ;; |
13b2be9c DJ |
16834 | esac |
16835 | done | |
16836 | _ACEOF | |
16837 | ||
16838 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16839 | ||
16840 | { (exit 0); exit 0; } | |
16841 | _ACEOF | |
252b5132 | 16842 | chmod +x $CONFIG_STATUS |
13b2be9c DJ |
16843 | ac_clean_files=$ac_clean_files_save |
16844 | ||
16845 | ||
16846 | # configure is writing to config.log, and then calls config.status. | |
16847 | # config.status does its own redirection, appending to config.log. | |
16848 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16849 | # by configure, so config.status won't be able to write to it; its | |
16850 | # output is simply discarded. So we exec the FD to /dev/null, | |
16851 | # effectively closing config.log, so it can be properly (re)opened and | |
16852 | # appended to by config.status. When coming back to configure, we | |
16853 | # need to make the FD available again. | |
16854 | if test "$no_create" != yes; then | |
16855 | ac_cs_success=: | |
16856 | ac_config_status_args= | |
16857 | test "$silent" = yes && | |
16858 | ac_config_status_args="$ac_config_status_args --quiet" | |
16859 | exec 5>/dev/null | |
16860 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16861 | exec 5>>config.log | |
16862 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16863 | # would make configure fail if this is the last instruction. | |
16864 | $ac_cs_success || { (exit 1); exit 1; } | |
16865 | fi | |
252b5132 | 16866 |