Parent Directory
|
Revision Log
Load pcre-6.2 into code/trunk.
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59. |
4 | # |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## |
10 | ## --------------------- ## |
11 | |
12 | # Be Bourne compatible |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 | emulate sh |
15 | NULLCMD=: |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
17 | # is contrary to our usage. Disable this feature. |
18 | alias -g '${1+"$@"}'='"$@"' |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix |
21 | fi |
22 | DUALCASE=1; export DUALCASE # for MKS sh |
23 | |
24 | # Support unset when possible. |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
26 | as_unset=unset |
27 | else |
28 | as_unset=false |
29 | fi |
30 | |
31 | |
32 | # Work around bugs in pre-3.0 UWIN ksh. |
33 | $as_unset ENV MAIL MAILPATH |
34 | PS1='$ ' |
35 | PS2='> ' |
36 | PS4='+ ' |
37 | |
38 | # NLS nuisances. |
39 | for as_var in \ |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
42 | LC_TELEPHONE LC_TIME |
43 | do |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
45 | eval $as_var=C; export $as_var |
46 | else |
47 | $as_unset $as_var |
48 | fi |
49 | done |
50 | |
51 | # Required to use basename. |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
53 | as_expr=expr |
54 | else |
55 | as_expr=false |
56 | fi |
57 | |
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 | as_basename=basename |
60 | else |
61 | as_basename=false |
62 | fi |
63 | |
64 | |
65 | # Name of the executable. |
66 | as_me=`$as_basename "$0" || |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || |
71 | echo X/"$0" | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
74 | /^X\/\(\/\).*/{ s//\1/; q; } |
75 | s/.*/./; q'` |
76 | |
77 | |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 | as_cr_digits='0123456789' |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
85 | |
86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then |
88 | echo "#! /bin/sh" >conf$$.sh |
89 | echo "exit 0" >>conf$$.sh |
90 | chmod +x conf$$.sh |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
92 | PATH_SEPARATOR=';' |
93 | else |
94 | PATH_SEPARATOR=: |
95 | fi |
96 | rm -f conf$$.sh |
97 | fi |
98 | |
99 | |
100 | as_lineno_1=$LINENO |
101 | as_lineno_2=$LINENO |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
105 | # Find who we are. Look in the path if we contain no path at all |
106 | # relative or not. |
107 | case $0 in |
108 | *[\\/]* ) as_myself=$0 ;; |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 | for as_dir in $PATH |
111 | do |
112 | IFS=$as_save_IFS |
113 | test -z "$as_dir" && as_dir=. |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 | done |
116 | |
117 | ;; |
118 | esac |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
120 | # in which case we are not to be found in the path. |
121 | if test "x$as_myself" = x; then |
122 | as_myself=$0 |
123 | fi |
124 | if test ! -f "$as_myself"; then |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
126 | { (exit 1); exit 1; }; } |
127 | fi |
128 | case $CONFIG_SHELL in |
129 | '') |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 | do |
133 | IFS=$as_save_IFS |
134 | test -z "$as_dir" && as_dir=. |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in |
137 | /*) |
138 | if ("$as_dir/$as_base" -c ' |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
146 | CONFIG_SHELL=$as_dir/$as_base |
147 | export CONFIG_SHELL |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
149 | fi;; |
150 | esac |
151 | done |
152 | done |
153 | ;; |
154 | esac |
155 | |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 | # uniformly replaced by the line number. The first 'sed' inserts a |
158 | # line-number line before each line; the second 'sed' does the real |
159 | # work. The second script uses 'N' to pair each line-number line |
160 | # with the numbered line, and appends trailing '-' during |
161 | # substitution so that $LINENO is not a special case at line end. |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | |
165 | sed ' |
166 | N |
167 | s,$,-, |
168 | : loop |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
170 | t loop |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, |
173 | ' >$as_me.lineno && |
174 | chmod +x $as_me.lineno || |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 | { (exit 1); exit 1; }; } |
177 | |
178 | # Don't try to exec as it changes $[0], causing all sort of problems |
179 | # (the dirname of $[0] is not the place where we might find the |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno |
182 | # Exit status is that of the last command. |
183 | exit |
184 | } |
185 | |
186 | |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' |
189 | ' ECHO_T=' ' ;; |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
192 | esac |
193 | |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
195 | as_expr=expr |
196 | else |
197 | as_expr=false |
198 | fi |
199 | |
200 | rm -f conf$$ conf$$.exe conf$$.file |
201 | echo >conf$$.file |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
205 | if test -f conf$$.exe; then |
206 | # Don't use ln at all; we don't have any links |
207 | as_ln_s='cp -p' |
208 | else |
209 | as_ln_s='ln -s' |
210 | fi |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
212 | as_ln_s=ln |
213 | else |
214 | as_ln_s='cp -p' |
215 | fi |
216 | rm -f conf$$ conf$$.exe conf$$.file |
217 | |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: |
220 | else |
221 | test -d ./-p && rmdir ./-p |
222 | as_mkdir_p=false |
223 | fi |
224 | |
225 | as_executable_p="test -f" |
226 | |
227 | # Sed expression to map a string onto a valid CPP name. |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
229 | |
230 | # Sed expression to map a string onto a valid variable name. |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
232 | |
233 | |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. |
236 | as_nl=' |
237 | ' |
238 | IFS=" $as_nl" |
239 | |
240 | # CDPATH. |
241 | $as_unset CDPATH |
242 | |
243 | |
244 | |
245 | # Check that we are running under the correct shell. |
246 | SHELL=${CONFIG_SHELL-/bin/sh} |
247 | |
248 | case X$ECHO in |
249 | X*--fallback-echo) |
250 | # Remove one level of quotation (which was required for Make). |
251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
252 | ;; |
253 | esac |
254 | |
255 | echo=${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 <<EOF |
274 | $* |
275 | 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 "$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 | echo_test_string="`eval $cmd`" && |
290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
291 | then |
292 | break |
293 | fi |
294 | done |
295 | fi |
296 | |
297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
299 | test "X$echo_testing_string" = "X$echo_test_string"; then |
300 | : |
301 | else |
302 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
303 | # backslashes. This makes it impossible to quote backslashes using |
304 | # echo "$something" | sed 's/\\/\\\\/g' |
305 | # |
306 | # So, first we look for a working echo in the user's PATH. |
307 | |
308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
309 | for dir in $PATH /usr/ucb; do |
310 | IFS="$lt_save_ifs" |
311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
314 | test "X$echo_testing_string" = "X$echo_test_string"; then |
315 | echo="$dir/echo" |
316 | break |
317 | fi |
318 | done |
319 | IFS="$lt_save_ifs" |
320 | |
321 | if test "X$echo" = Xecho; then |
322 | # We didn't find a better echo, so look for alternatives. |
323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
326 | # This shell has a builtin print -r that does the trick. |
327 | echo='print -r' |
328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
329 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
330 | # If we have ksh, try running configure again with it. |
331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
332 | export ORIGINAL_CONFIG_SHELL |
333 | CONFIG_SHELL=/bin/ksh |
334 | export CONFIG_SHELL |
335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
336 | else |
337 | # Try using printf. |
338 | echo='printf %s\n' |
339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
341 | test "X$echo_testing_string" = "X$echo_test_string"; then |
342 | # Cool, printf works |
343 | : |
344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
345 | test "X$echo_testing_string" = 'X\t' && |
346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
349 | export CONFIG_SHELL |
350 | SHELL="$CONFIG_SHELL" |
351 | export SHELL |
352 | echo="$CONFIG_SHELL $0 --fallback-echo" |
353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
354 | test "X$echo_testing_string" = 'X\t' && |
355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
357 | echo="$CONFIG_SHELL $0 --fallback-echo" |
358 | else |
359 | # maybe with a smaller string... |
360 | prev=: |
361 | |
362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
364 | then |
365 | break |
366 | fi |
367 | prev="$cmd" |
368 | done |
369 | |
370 | if test "$prev" != 'sed 50q "$0"'; then |
371 | echo_test_string=`eval $prev` |
372 | export echo_test_string |
373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
374 | else |
375 | # Oops. We lost completely, so just stick with echo. |
376 | echo=echo |
377 | fi |
378 | fi |
379 | fi |
380 | fi |
381 | fi |
382 | fi |
383 | |
384 | # Copy echo and quote the copy suitably for passing to libtool from |
385 | # the Makefile, instead of quoting the original, which is used later. |
386 | ECHO=$echo |
387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
389 | fi |
390 | |
391 | |
392 | |
393 | |
394 | tagnames=${tagnames+${tagnames},}CXX |
395 | |
396 | tagnames=${tagnames+${tagnames},}F77 |
397 | |
398 | # Name of the host. |
399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
400 | # so uname gets run too. |
401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
402 | |
403 | exec 6>&1 |
404 | |
405 | # |
406 | # Initializations. |
407 | # |
408 | ac_default_prefix=/usr/local |
409 | ac_config_libobj_dir=. |
410 | cross_compiling=no |
411 | subdirs= |
412 | MFLAGS= |
413 | MAKEFLAGS= |
414 | SHELL=${CONFIG_SHELL-/bin/sh} |
415 | |
416 | # Maximum number of lines to put in a shell here document. |
417 | # This variable seems obsolete. It should probably be removed, and |
418 | # only ac_max_sed_lines should be used. |
419 | : ${ac_max_here_lines=38} |
420 | |
421 | # Identity of this package. |
422 | PACKAGE_NAME= |
423 | PACKAGE_TARNAME= |
424 | PACKAGE_VERSION= |
425 | PACKAGE_STRING= |
426 | PACKAGE_BUGREPORT= |
427 | |
428 | ac_unique_file="dftables.c" |
429 | # Factoring default headers for most tests. |
430 | ac_includes_default="\ |
431 | #include <stdio.h> |
432 | #if HAVE_SYS_TYPES_H |
433 | # include <sys/types.h> |
434 | #endif |
435 | #if HAVE_SYS_STAT_H |
436 | # include <sys/stat.h> |
437 | #endif |
438 | #if STDC_HEADERS |
439 | # include <stdlib.h> |
440 | # include <stddef.h> |
441 | #else |
442 | # if HAVE_STDLIB_H |
443 | # include <stdlib.h> |
444 | # endif |
445 | #endif |
446 | #if HAVE_STRING_H |
447 | # if !STDC_HEADERS && HAVE_MEMORY_H |
448 | # include <memory.h> |
449 | # endif |
450 | # include <string.h> |
451 | #endif |
452 | #if HAVE_STRINGS_H |
453 | # include <strings.h> |
454 | #endif |
455 | #if HAVE_INTTYPES_H |
456 | # include <inttypes.h> |
457 | #else |
458 | # if HAVE_STDINT_H |
459 | # include <stdint.h> |
460 | # endif |
461 | #endif |
462 | #if HAVE_UNISTD_H |
463 | # include <unistd.h> |
464 | #endif" |
465 | |
466 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_has_bits_type_traits pcre_has_type_traits MAYBE_CPP_TARGETS pcre_has_long_long pcre_has_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS' |
467 | ac_subst_files='' |
468 | |
469 | # Initialize some variables set by options. |
470 | ac_init_help= |
471 | ac_init_version=false |
472 | # The variables have the same names as the options, with |
473 | # dashes changed to underlines. |
474 | cache_file=/dev/null |
475 | exec_prefix=NONE |
476 | no_create= |
477 | no_recursion= |
478 | prefix=NONE |
479 | program_prefix=NONE |
480 | program_suffix=NONE |
481 | program_transform_name=s,x,x, |
482 | silent= |
483 | site= |
484 | srcdir= |
485 | verbose= |
486 | x_includes=NONE |
487 | x_libraries=NONE |
488 | |
489 | # Installation directory options. |
490 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
491 | # and all the variables that are supposed to be based on exec_prefix |
492 | # by default will actually change. |
493 | # Use braces instead of parens because sh, perl, etc. also accept them. |
494 | bindir='${exec_prefix}/bin' |
495 | sbindir='${exec_prefix}/sbin' |
496 | libexecdir='${exec_prefix}/libexec' |
497 | datadir='${prefix}/share' |
498 | sysconfdir='${prefix}/etc' |
499 | sharedstatedir='${prefix}/com' |
500 | localstatedir='${prefix}/var' |
501 | libdir='${exec_prefix}/lib' |
502 | includedir='${prefix}/include' |
503 | oldincludedir='/usr/include' |
504 | infodir='${prefix}/info' |
505 | mandir='${prefix}/man' |
506 | |
507 | ac_prev= |
508 | for ac_option |
509 | do |
510 | # If the previous option needs an argument, assign it. |
511 | if test -n "$ac_prev"; then |
512 | eval "$ac_prev=\$ac_option" |
513 | ac_prev= |
514 | continue |
515 | fi |
516 | |
517 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
518 | |
519 | # Accept the important Cygnus configure options, so we can diagnose typos. |
520 | |
521 | case $ac_option in |
522 | |
523 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
524 | ac_prev=bindir ;; |
525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
526 | bindir=$ac_optarg ;; |
527 | |
528 | -build | --build | --buil | --bui | --bu) |
529 | ac_prev=build_alias ;; |
530 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
531 | build_alias=$ac_optarg ;; |
532 | |
533 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
534 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
535 | ac_prev=cache_file ;; |
536 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
537 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
538 | cache_file=$ac_optarg ;; |
539 | |
540 | --config-cache | -C) |
541 | cache_file=config.cache ;; |
542 | |
543 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
544 | ac_prev=datadir ;; |
545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
546 | | --da=*) |
547 | datadir=$ac_optarg ;; |
548 | |
549 | -disable-* | --disable-*) |
550 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
551 | # Reject names that are not valid shell variable names. |
552 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
553 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
554 | { (exit 1); exit 1; }; } |
555 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
556 | eval "enable_$ac_feature=no" ;; |
557 | |
558 | -enable-* | --enable-*) |
559 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
560 | # Reject names that are not valid shell variable names. |
561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
563 | { (exit 1); exit 1; }; } |
564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
565 | case $ac_option in |
566 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
567 | *) ac_optarg=yes ;; |
568 | esac |
569 | eval "enable_$ac_feature='$ac_optarg'" ;; |
570 | |
571 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
572 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
573 | | --exec | --exe | --ex) |
574 | ac_prev=exec_prefix ;; |
575 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
576 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
577 | | --exec=* | --exe=* | --ex=*) |
578 | exec_prefix=$ac_optarg ;; |
579 | |
580 | -gas | --gas | --ga | --g) |
581 | # Obsolete; use --with-gas. |
582 | with_gas=yes ;; |
583 | |
584 | -help | --help | --hel | --he | -h) |
585 | ac_init_help=long ;; |
586 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
587 | ac_init_help=recursive ;; |
588 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
589 | ac_init_help=short ;; |
590 | |
591 | -host | --host | --hos | --ho) |
592 | ac_prev=host_alias ;; |
593 | -host=* | --host=* | --hos=* | --ho=*) |
594 | host_alias=$ac_optarg ;; |
595 | |
596 | -includedir | --includedir | --includedi | --included | --include \ |
597 | | --includ | --inclu | --incl | --inc) |
598 | ac_prev=includedir ;; |
599 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
600 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
601 | includedir=$ac_optarg ;; |
602 | |
603 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
604 | ac_prev=infodir ;; |
605 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
606 | infodir=$ac_optarg ;; |
607 | |
608 | -libdir | --libdir | --libdi | --libd) |
609 | ac_prev=libdir ;; |
610 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
611 | libdir=$ac_optarg ;; |
612 | |
613 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
614 | | --libexe | --libex | --libe) |
615 | ac_prev=libexecdir ;; |
616 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
617 | | --libexe=* | --libex=* | --libe=*) |
618 | libexecdir=$ac_optarg ;; |
619 | |
620 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
621 | | --localstate | --localstat | --localsta | --localst \ |
622 | | --locals | --local | --loca | --loc | --lo) |
623 | ac_prev=localstatedir ;; |
624 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
625 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
626 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
627 | localstatedir=$ac_optarg ;; |
628 | |
629 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
630 | ac_prev=mandir ;; |
631 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
632 | mandir=$ac_optarg ;; |
633 | |
634 | -nfp | --nfp | --nf) |
635 | # Obsolete; use --without-fp. |
636 | with_fp=no ;; |
637 | |
638 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
639 | | --no-cr | --no-c | -n) |
640 | no_create=yes ;; |
641 | |
642 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
643 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
644 | no_recursion=yes ;; |
645 | |
646 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
647 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
648 | | --oldin | --oldi | --old | --ol | --o) |
649 | ac_prev=oldincludedir ;; |
650 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
651 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
652 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
653 | oldincludedir=$ac_optarg ;; |
654 | |
655 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
656 | ac_prev=prefix ;; |
657 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
658 | prefix=$ac_optarg ;; |
659 | |
660 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
661 | | --program-pre | --program-pr | --program-p) |
662 | ac_prev=program_prefix ;; |
663 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
664 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
665 | program_prefix=$ac_optarg ;; |
666 | |
667 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
668 | | --program-suf | --program-su | --program-s) |
669 | ac_prev=program_suffix ;; |
670 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
671 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
672 | program_suffix=$ac_optarg ;; |
673 | |
674 | -program-transform-name | --program-transform-name \ |
675 | | --program-transform-nam | --program-transform-na \ |
676 | | --program-transform-n | --program-transform- \ |
677 | | --program-transform | --program-transfor \ |
678 | | --program-transfo | --program-transf \ |
679 | | --program-trans | --program-tran \ |
680 | | --progr-tra | --program-tr | --program-t) |
681 | ac_prev=program_transform_name ;; |
682 | -program-transform-name=* | --program-transform-name=* \ |
683 | | --program-transform-nam=* | --program-transform-na=* \ |
684 | | --program-transform-n=* | --program-transform-=* \ |
685 | | --program-transform=* | --program-transfor=* \ |
686 | | --program-transfo=* | --program-transf=* \ |
687 | | --program-trans=* | --program-tran=* \ |
688 | | --progr-tra=* | --program-tr=* | --program-t=*) |
689 | program_transform_name=$ac_optarg ;; |
690 | |
691 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
692 | | -silent | --silent | --silen | --sile | --sil) |
693 | silent=yes ;; |
694 | |
695 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
696 | ac_prev=sbindir ;; |
697 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
698 | | --sbi=* | --sb=*) |
699 | sbindir=$ac_optarg ;; |
700 | |
701 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
702 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
703 | | --sharedst | --shareds | --shared | --share | --shar \ |
704 | | --sha | --sh) |
705 | ac_prev=sharedstatedir ;; |
706 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
707 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
708 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
709 | | --sha=* | --sh=*) |
710 | sharedstatedir=$ac_optarg ;; |
711 | |
712 | -site | --site | --sit) |
713 | ac_prev=site ;; |
714 | -site=* | --site=* | --sit=*) |
715 | site=$ac_optarg ;; |
716 | |
717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
718 | ac_prev=srcdir ;; |
719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
720 | srcdir=$ac_optarg ;; |
721 | |
722 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
723 | | --syscon | --sysco | --sysc | --sys | --sy) |
724 | ac_prev=sysconfdir ;; |
725 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
726 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
727 | sysconfdir=$ac_optarg ;; |
728 | |
729 | -target | --target | --targe | --targ | --tar | --ta | --t) |
730 | ac_prev=target_alias ;; |
731 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
732 | target_alias=$ac_optarg ;; |
733 | |
734 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
735 | verbose=yes ;; |
736 | |
737 | -version | --version | --versio | --versi | --vers | -V) |
738 | ac_init_version=: ;; |
739 | |
740 | -with-* | --with-*) |
741 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
742 | # Reject names that are not valid shell variable names. |
743 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
744 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
745 | { (exit 1); exit 1; }; } |
746 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
747 | case $ac_option in |
748 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
749 | *) ac_optarg=yes ;; |
750 | esac |
751 | eval "with_$ac_package='$ac_optarg'" ;; |
752 | |
753 | -without-* | --without-*) |
754 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
755 | # Reject names that are not valid shell variable names. |
756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
758 | { (exit 1); exit 1; }; } |
759 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
760 | eval "with_$ac_package=no" ;; |
761 | |
762 | --x) |
763 | # Obsolete; use --with-x. |
764 | with_x=yes ;; |
765 | |
766 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
767 | | --x-incl | --x-inc | --x-in | --x-i) |
768 | ac_prev=x_includes ;; |
769 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
770 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
771 | x_includes=$ac_optarg ;; |
772 | |
773 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
774 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
775 | ac_prev=x_libraries ;; |
776 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
777 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
778 | x_libraries=$ac_optarg ;; |
779 | |
780 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
781 | Try \`$0 --help' for more information." >&2 |
782 | { (exit 1); exit 1; }; } |
783 | ;; |
784 | |
785 | *=*) |
786 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
787 | # Reject names that are not valid shell variable names. |
788 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
789 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
790 | { (exit 1); exit 1; }; } |
791 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
792 | eval "$ac_envvar='$ac_optarg'" |
793 | export $ac_envvar ;; |
794 | |
795 | *) |
796 | # FIXME: should be removed in autoconf 3.0. |
797 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
798 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
799 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
800 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
801 | ;; |
802 | |
803 | esac |
804 | done |
805 | |
806 | if test -n "$ac_prev"; then |
807 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
808 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
809 | { (exit 1); exit 1; }; } |
810 | fi |
811 | |
812 | # Be sure to have absolute paths. |
813 | for ac_var in exec_prefix prefix |
814 | do |
815 | eval ac_val=$`echo $ac_var` |
816 | case $ac_val in |
817 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
818 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
819 | { (exit 1); exit 1; }; };; |
820 | esac |
821 | done |
822 | |
823 | # Be sure to have absolute paths. |
824 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
825 | localstatedir libdir includedir oldincludedir infodir mandir |
826 | do |
827 | eval ac_val=$`echo $ac_var` |
828 | case $ac_val in |
829 | [\\/$]* | ?:[\\/]* ) ;; |
830 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
831 | { (exit 1); exit 1; }; };; |
832 | esac |
833 | done |
834 | |
835 | # There might be people who depend on the old broken behavior: `$host' |
836 | # used to hold the argument of --host etc. |
837 | # FIXME: To remove some day. |
838 | build=$build_alias |
839 | host=$host_alias |
840 | target=$target_alias |
841 | |
842 | # FIXME: To remove some day. |
843 | if test "x$host_alias" != x; then |
844 | if test "x$build_alias" = x; then |
845 | cross_compiling=maybe |
846 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
847 | If a cross compiler is detected then cross compile mode will be used." >&2 |
848 | elif test "x$build_alias" != "x$host_alias"; then |
849 | cross_compiling=yes |
850 | fi |
851 | fi |
852 | |
853 | ac_tool_prefix= |
854 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
855 | |
856 | test "$silent" = yes && exec 6>/dev/null |
857 | |
858 | |
859 | # Find the source files, if location was not specified. |
860 | if test -z "$srcdir"; then |
861 | ac_srcdir_defaulted=yes |
862 | # Try the directory containing this script, then its parent. |
863 | ac_confdir=`(dirname "$0") 2>/dev/null || |
864 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
865 | X"$0" : 'X\(//\)[^/]' \| \ |
866 | X"$0" : 'X\(//\)$' \| \ |
867 | X"$0" : 'X\(/\)' \| \ |
868 | . : '\(.\)' 2>/dev/null || |
869 | echo X"$0" | |
870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
872 | /^X\(\/\/\)$/{ s//\1/; q; } |
873 | /^X\(\/\).*/{ s//\1/; q; } |
874 | s/.*/./; q'` |
875 | srcdir=$ac_confdir |
876 | if test ! -r $srcdir/$ac_unique_file; then |
877 | srcdir=.. |
878 | fi |
879 | else |
880 | ac_srcdir_defaulted=no |
881 | fi |
882 | if test ! -r $srcdir/$ac_unique_file; then |
883 | if test "$ac_srcdir_defaulted" = yes; then |
884 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
885 | { (exit 1); exit 1; }; } |
886 | else |
887 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
888 | { (exit 1); exit 1; }; } |
889 | fi |
890 | fi |
891 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
892 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
893 | { (exit 1); exit 1; }; } |
894 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
895 | ac_env_build_alias_set=${build_alias+set} |
896 | ac_env_build_alias_value=$build_alias |
897 | ac_cv_env_build_alias_set=${build_alias+set} |
898 | ac_cv_env_build_alias_value=$build_alias |
899 | ac_env_host_alias_set=${host_alias+set} |
900 | ac_env_host_alias_value=$host_alias |
901 | ac_cv_env_host_alias_set=${host_alias+set} |
902 | ac_cv_env_host_alias_value=$host_alias |
903 | ac_env_target_alias_set=${target_alias+set} |
904 | ac_env_target_alias_value=$target_alias |
905 | ac_cv_env_target_alias_set=${target_alias+set} |
906 | ac_cv_env_target_alias_value=$target_alias |
907 | ac_env_CC_set=${CC+set} |
908 | ac_env_CC_value=$CC |
909 | ac_cv_env_CC_set=${CC+set} |
910 | ac_cv_env_CC_value=$CC |
911 | ac_env_CFLAGS_set=${CFLAGS+set} |
912 | ac_env_CFLAGS_value=$CFLAGS |
913 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
914 | ac_cv_env_CFLAGS_value=$CFLAGS |
915 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
916 | ac_env_LDFLAGS_value=$LDFLAGS |
917 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
918 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
919 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
920 | ac_env_CPPFLAGS_value=$CPPFLAGS |
921 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
923 | ac_env_CXX_set=${CXX+set} |
924 | ac_env_CXX_value=$CXX |
925 | ac_cv_env_CXX_set=${CXX+set} |
926 | ac_cv_env_CXX_value=$CXX |
927 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
928 | ac_env_CXXFLAGS_value=$CXXFLAGS |
929 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
930 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
931 | ac_env_CPP_set=${CPP+set} |
932 | ac_env_CPP_value=$CPP |
933 | ac_cv_env_CPP_set=${CPP+set} |
934 | ac_cv_env_CPP_value=$CPP |
935 | ac_env_CXXCPP_set=${CXXCPP+set} |
936 | ac_env_CXXCPP_value=$CXXCPP |
937 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
938 | ac_cv_env_CXXCPP_value=$CXXCPP |
939 | ac_env_F77_set=${F77+set} |
940 | ac_env_F77_value=$F77 |
941 | ac_cv_env_F77_set=${F77+set} |
942 | ac_cv_env_F77_value=$F77 |
943 | ac_env_FFLAGS_set=${FFLAGS+set} |
944 | ac_env_FFLAGS_value=$FFLAGS |
945 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
946 | ac_cv_env_FFLAGS_value=$FFLAGS |
947 | |
948 | # |
949 | # Report the --help message. |
950 | # |
951 | if test "$ac_init_help" = "long"; then |
952 | # Omit some internal or obsolete options to make the list less imposing. |
953 | # This message is too long to be a string in the A/UX 3.1 sh. |
954 | cat <<_ACEOF |
955 | \`configure' configures this package to adapt to many kinds of systems. |
956 | |
957 | Usage: $0 [OPTION]... [VAR=VALUE]... |
958 | |
959 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
960 | VAR=VALUE. See below for descriptions of some of the useful variables. |
961 | |
962 | Defaults for the options are specified in brackets. |
963 | |
964 | Configuration: |
965 | -h, --help display this help and exit |
966 | --help=short display options specific to this package |
967 | --help=recursive display the short help of all the included packages |
968 | -V, --version display version information and exit |
969 | -q, --quiet, --silent do not print \`checking...' messages |
970 | --cache-file=FILE cache test results in FILE [disabled] |
971 | -C, --config-cache alias for \`--cache-file=config.cache' |
972 | -n, --no-create do not create output files |
973 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
974 | |
975 | _ACEOF |
976 | |
977 | cat <<_ACEOF |
978 | Installation directories: |
979 | --prefix=PREFIX install architecture-independent files in PREFIX |
980 | [$ac_default_prefix] |
981 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
982 | [PREFIX] |
983 | |
984 | By default, \`make install' will install all the files in |
985 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
986 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
987 | for instance \`--prefix=\$HOME'. |
988 | |
989 | For better control, use the options below. |
990 | |
991 | Fine tuning of the installation directories: |
992 | --bindir=DIR user executables [EPREFIX/bin] |
993 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
994 | --libexecdir=DIR program executables [EPREFIX/libexec] |
995 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
996 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
997 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
998 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
999 | --libdir=DIR object code libraries [EPREFIX/lib] |
1000 | --includedir=DIR C header files [PREFIX/include] |
1001 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1002 | --infodir=DIR info documentation [PREFIX/info] |
1003 | --mandir=DIR man documentation [PREFIX/man] |
1004 | _ACEOF |
1005 | |
1006 | cat <<\_ACEOF |
1007 | |
1008 | System types: |
1009 | --build=BUILD configure for building on BUILD [guessed] |
1010 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1011 | _ACEOF |
1012 | fi |
1013 | |
1014 | if test -n "$ac_init_help"; then |
1015 | |
1016 | cat <<\_ACEOF |
1017 | |
1018 | Optional Features: |
1019 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1020 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1021 | --enable-shared[=PKGS] |
1022 | build shared libraries [default=yes] |
1023 | --enable-static[=PKGS] |
1024 | build static libraries [default=yes] |
1025 | --enable-fast-install[=PKGS] |
1026 | optimize for fast installation [default=yes] |
1027 | --disable-libtool-lock avoid locking (might break parallel builds) |
1028 | --enable-utf8 enable UTF8 support |
1029 | --enable-unicode-properties enable Unicode properties support |
1030 | --enable-newline-is-cr use CR as the newline character |
1031 | --enable-newline-is-lf use LF as the newline character |
1032 | --enable-ebcdic assume EBCDIC coding rather than ASCII |
1033 | --disable-stack-for-recursion disable use of stack recursion when matching |
1034 | |
1035 | Optional Packages: |
1036 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1037 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1038 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1039 | --with-pic try to use only PIC/non-PIC objects [default=use |
1040 | both] |
1041 | --with-tags[=TAGS] |
1042 | include additional configurations [automatic] |
1043 | --with-posix-malloc-threshold=5 threshold for POSIX malloc usage |
1044 | --with-link-size=2 internal link size (2, 3, or 4 allowed) |
1045 | --with-match-limit=10000000 default limit on internal looping) |
1046 | |
1047 | Some influential environment variables: |
1048 | CC C compiler command |
1049 | CFLAGS C compiler flags |
1050 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1051 | nonstandard directory <lib dir> |
1052 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1053 | headers in a nonstandard directory <include dir> |
1054 | CXX C++ compiler command |
1055 | CXXFLAGS C++ compiler flags |
1056 | CPP C preprocessor |
1057 | CXXCPP C++ preprocessor |
1058 | F77 Fortran 77 compiler command |
1059 | FFLAGS Fortran 77 compiler flags |
1060 | |
1061 | Use these variables to override the choices made by `configure' or to help |
1062 | it to find libraries and programs with nonstandard names/locations. |
1063 | |
1064 | _ACEOF |
1065 | fi |
1066 | |
1067 | if test "$ac_init_help" = "recursive"; then |
1068 | # If there are subdirs, report their specific --help. |
1069 | ac_popdir=`pwd` |
1070 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1071 | test -d $ac_dir || continue |
1072 | ac_builddir=. |
1073 | |
1074 | if test "$ac_dir" != .; then |
1075 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1076 | # A "../" for each directory in $ac_dir_suffix. |
1077 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1078 | else |
1079 | ac_dir_suffix= ac_top_builddir= |
1080 | fi |
1081 | |
1082 | case $srcdir in |
1083 | .) # No --srcdir option. We are building in place. |
1084 | ac_srcdir=. |
1085 | if test -z "$ac_top_builddir"; then |
1086 | ac_top_srcdir=. |
1087 | else |
1088 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1089 | fi ;; |
1090 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1091 | ac_srcdir=$srcdir$ac_dir_suffix; |
1092 | ac_top_srcdir=$srcdir ;; |
1093 | *) # Relative path. |
1094 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1095 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1096 | esac |
1097 | |
1098 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1099 | # the directories may not exist. |
1100 | case `pwd` in |
1101 | .) ac_abs_builddir="$ac_dir";; |
1102 | *) |
1103 | case "$ac_dir" in |
1104 | .) ac_abs_builddir=`pwd`;; |
1105 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1106 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1107 | esac;; |
1108 | esac |
1109 | case $ac_abs_builddir in |
1110 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1111 | *) |
1112 | case ${ac_top_builddir}. in |
1113 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1114 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1115 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1116 | esac;; |
1117 | esac |
1118 | case $ac_abs_builddir in |
1119 | .) ac_abs_srcdir=$ac_srcdir;; |
1120 | *) |
1121 | case $ac_srcdir in |
1122 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1123 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1124 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1125 | esac;; |
1126 | esac |
1127 | case $ac_abs_builddir in |
1128 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1129 | *) |
1130 | case $ac_top_srcdir in |
1131 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1132 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1133 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1134 | esac;; |
1135 | esac |
1136 | |
1137 | cd $ac_dir |
1138 | # Check for guested configure; otherwise get Cygnus style configure. |
1139 | if test -f $ac_srcdir/configure.gnu; then |
1140 | echo |
1141 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1142 | elif test -f $ac_srcdir/configure; then |
1143 | echo |
1144 | $SHELL $ac_srcdir/configure --help=recursive |
1145 | elif test -f $ac_srcdir/configure.ac || |
1146 | test -f $ac_srcdir/configure.in; then |
1147 | echo |
1148 | $ac_configure --help |
1149 | else |
1150 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1151 | fi |
1152 | cd $ac_popdir |
1153 | done |
1154 | fi |
1155 | |
1156 | test -n "$ac_init_help" && exit 0 |
1157 | if $ac_init_version; then |
1158 | cat <<\_ACEOF |
1159 | |
1160 | Copyright (C) 2003 Free Software Foundation, Inc. |
1161 | This configure script is free software; the Free Software Foundation |
1162 | gives unlimited permission to copy, distribute and modify it. |
1163 | _ACEOF |
1164 | exit 0 |
1165 | fi |
1166 | exec 5>config.log |
1167 | cat >&5 <<_ACEOF |
1168 | This file contains any messages produced by compilers while |
1169 | running configure, to aid debugging if configure makes a mistake. |
1170 | |
1171 | It was created by $as_me, which was |
1172 | generated by GNU Autoconf 2.59. Invocation command line was |
1173 | |
1174 | $ $0 $@ |
1175 | |
1176 | _ACEOF |
1177 | { |
1178 | cat <<_ASUNAME |
1179 | ## --------- ## |
1180 | ## Platform. ## |
1181 | ## --------- ## |
1182 | |
1183 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1184 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1185 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1186 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1187 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1188 | |
1189 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1190 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1191 | |
1192 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1193 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1194 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1195 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1196 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1197 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1198 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1199 | |
1200 | _ASUNAME |
1201 | |
1202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1203 | for as_dir in $PATH |
1204 | do |
1205 | IFS=$as_save_IFS |
1206 | test -z "$as_dir" && as_dir=. |
1207 | echo "PATH: $as_dir" |
1208 | done |
1209 | |
1210 | } >&5 |
1211 | |
1212 | cat >&5 <<_ACEOF |
1213 | |
1214 | |
1215 | ## ----------- ## |
1216 | ## Core tests. ## |
1217 | ## ----------- ## |
1218 | |
1219 | _ACEOF |
1220 | |
1221 | |
1222 | # Keep a trace of the command line. |
1223 | # Strip out --no-create and --no-recursion so they do not pile up. |
1224 | # Strip out --silent because we don't want to record it for future runs. |
1225 | # Also quote any args containing shell meta-characters. |
1226 | # Make two passes to allow for proper duplicate-argument suppression. |
1227 | ac_configure_args= |
1228 | ac_configure_args0= |
1229 | ac_configure_args1= |
1230 | ac_sep= |
1231 | ac_must_keep_next=false |
1232 | for ac_pass in 1 2 |
1233 | do |
1234 | for ac_arg |
1235 | do |
1236 | case $ac_arg in |
1237 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1238 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1239 | | -silent | --silent | --silen | --sile | --sil) |
1240 | continue ;; |
1241 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1242 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1243 | esac |
1244 | case $ac_pass in |
1245 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1246 | 2) |
1247 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1248 | if test $ac_must_keep_next = true; then |
1249 | ac_must_keep_next=false # Got value, back to normal. |
1250 | else |
1251 | case $ac_arg in |
1252 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1253 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1254 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1255 | | -with-* | --with-* | -without-* | --without-* | --x) |
1256 | case "$ac_configure_args0 " in |
1257 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1258 | esac |
1259 | ;; |
1260 | -* ) ac_must_keep_next=true ;; |
1261 | esac |
1262 | fi |
1263 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1264 | # Get rid of the leading space. |
1265 | ac_sep=" " |
1266 | ;; |
1267 | esac |
1268 | done |
1269 | done |
1270 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1271 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1272 | |
1273 | # When interrupted or exit'd, cleanup temporary files, and complete |
1274 | # config.log. We remove comments because anyway the quotes in there |
1275 | # would cause problems or look ugly. |
1276 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1277 | # such as our DU 5.0 friend, will then `close' the trap. |
1278 | trap 'exit_status=$? |
1279 | # Save into config.log some information that might help in debugging. |
1280 | { |
1281 | echo |
1282 | |
1283 | cat <<\_ASBOX |
1284 | ## ---------------- ## |
1285 | ## Cache variables. ## |
1286 | ## ---------------- ## |
1287 | _ASBOX |
1288 | echo |
1289 | # The following way of writing the cache mishandles newlines in values, |
1290 | { |
1291 | (set) 2>&1 | |
1292 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1293 | *ac_space=\ *) |
1294 | sed -n \ |
1295 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1296 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1297 | ;; |
1298 | *) |
1299 | sed -n \ |
1300 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1301 | ;; |
1302 | esac; |
1303 | } |
1304 | echo |
1305 | |
1306 | cat <<\_ASBOX |
1307 | ## ----------------- ## |
1308 | ## Output variables. ## |
1309 | ## ----------------- ## |
1310 | _ASBOX |
1311 | echo |
1312 | for ac_var in $ac_subst_vars |
1313 | do |
1314 | eval ac_val=$`echo $ac_var` |
1315 | echo "$ac_var='"'"'$ac_val'"'"'" |
1316 | done | sort |
1317 | echo |
1318 | |
1319 | if test -n "$ac_subst_files"; then |
1320 | cat <<\_ASBOX |
1321 | ## ------------- ## |
1322 | ## Output files. ## |
1323 | ## ------------- ## |
1324 | _ASBOX |
1325 | echo |
1326 | for ac_var in $ac_subst_files |
1327 | do |
1328 | eval ac_val=$`echo $ac_var` |
1329 | echo "$ac_var='"'"'$ac_val'"'"'" |
1330 | done | sort |
1331 | echo |
1332 | fi |
1333 | |
1334 | if test -s confdefs.h; then |
1335 | cat <<\_ASBOX |
1336 | ## ----------- ## |
1337 | ## confdefs.h. ## |
1338 | ## ----------- ## |
1339 | _ASBOX |
1340 | echo |
1341 | sed "/^$/d" confdefs.h | sort |
1342 | echo |
1343 | fi |
1344 | test "$ac_signal" != 0 && |
1345 | echo "$as_me: caught signal $ac_signal" |
1346 | echo "$as_me: exit $exit_status" |
1347 | } >&5 |
1348 | rm -f core *.core && |
1349 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1350 | exit $exit_status |
1351 | ' 0 |
1352 | for ac_signal in 1 2 13 15; do |
1353 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1354 | done |
1355 | ac_signal=0 |
1356 | |
1357 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1358 | rm -rf conftest* confdefs.h |
1359 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1360 | echo >confdefs.h |
1361 | |
1362 | # Predefined preprocessor variables. |
1363 | |
1364 | cat >>confdefs.h <<_ACEOF |
1365 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1366 | _ACEOF |
1367 | |
1368 | |
1369 | cat >>confdefs.h <<_ACEOF |
1370 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1371 | _ACEOF |
1372 | |
1373 | |
1374 | cat >>confdefs.h <<_ACEOF |
1375 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1376 | _ACEOF |
1377 | |
1378 | |
1379 | cat >>confdefs.h <<_ACEOF |
1380 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1381 | _ACEOF |
1382 | |
1383 | |
1384 | cat >>confdefs.h <<_ACEOF |
1385 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1386 | _ACEOF |
1387 | |
1388 | |
1389 | # Let the site file select an alternate cache file if it wants to. |
1390 | # Prefer explicitly selected file to automatically selected ones. |
1391 | if test -z "$CONFIG_SITE"; then |
1392 | if test "x$prefix" != xNONE; then |
1393 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1394 | else |
1395 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1396 | fi |
1397 | fi |
1398 | for ac_site_file in $CONFIG_SITE; do |
1399 | if test -r "$ac_site_file"; then |
1400 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1401 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1402 | sed 's/^/| /' "$ac_site_file" >&5 |
1403 | . "$ac_site_file" |
1404 | fi |
1405 | done |
1406 | |
1407 | if test -r "$cache_file"; then |
1408 | # Some versions of bash will fail to source /dev/null (special |
1409 | # files actually), so we avoid doing that. |
1410 | if test -f "$cache_file"; then |
1411 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1412 | echo "$as_me: loading cache $cache_file" >&6;} |
1413 | case $cache_file in |
1414 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1415 | *) . ./$cache_file;; |
1416 | esac |
1417 | fi |
1418 | else |
1419 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1420 | echo "$as_me: creating cache $cache_file" >&6;} |
1421 | >$cache_file |
1422 | fi |
1423 | |
1424 | # Check that the precious variables saved in the cache have kept the same |
1425 | # value. |
1426 | ac_cache_corrupted=false |
1427 | for ac_var in `(set) 2>&1 | |
1428 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1429 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1430 | eval ac_new_set=\$ac_env_${ac_var}_set |
1431 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1432 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1433 | case $ac_old_set,$ac_new_set in |
1434 | set,) |
1435 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1436 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1437 | ac_cache_corrupted=: ;; |
1438 | ,set) |
1439 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1440 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1441 | ac_cache_corrupted=: ;; |
1442 | ,);; |
1443 | *) |
1444 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1445 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1446 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1447 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1448 | echo "$as_me: former value: $ac_old_val" >&2;} |
1449 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1450 | echo "$as_me: current value: $ac_new_val" >&2;} |
1451 | ac_cache_corrupted=: |
1452 | fi;; |
1453 | esac |
1454 | # Pass precious variables to config.status. |
1455 | if test "$ac_new_set" = set; then |
1456 | case $ac_new_val in |
1457 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1458 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1459 | *) ac_arg=$ac_var=$ac_new_val ;; |
1460 | esac |
1461 | case " $ac_configure_args " in |
1462 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1463 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1464 | esac |
1465 | fi |
1466 | done |
1467 | if $ac_cache_corrupted; then |
1468 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1469 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1470 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1471 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1472 | { (exit 1); exit 1; }; } |
1473 | fi |
1474 | |
1475 | ac_ext=c |
1476 | ac_cpp='$CPP $CPPFLAGS' |
1477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1480 | |
1481 | |
1482 | |
1483 | |
1484 | |
1485 | |
1486 | |
1487 | |
1488 | |
1489 | |
1490 | |
1491 | |
1492 | |
1493 | |
1494 | |
1495 | |
1496 | |
1497 | |
1498 | |
1499 | |
1500 | |
1501 | |
1502 | |
1503 | ac_config_headers="$ac_config_headers config.h:config.in" |
1504 | |
1505 | |
1506 | |
1507 | PCRE_MAJOR=6 |
1508 | PCRE_MINOR=2 |
1509 | PCRE_DATE=01-Aug-2005 |
1510 | PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
1511 | |
1512 | |
1513 | POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10 |
1514 | |
1515 | |
1516 | PCRE_LIB_VERSION=0:1:0 |
1517 | PCRE_POSIXLIB_VERSION=0:0:0 |
1518 | PCRE_CPPLIB_VERSION=0:0:0 |
1519 | |
1520 | |
1521 | ac_ext=c |
1522 | ac_cpp='$CPP $CPPFLAGS' |
1523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1526 | if test -n "$ac_tool_prefix"; then |
1527 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1528 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1531 | if test "${ac_cv_prog_CC+set}" = set; then |
1532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1533 | else |
1534 | if test -n "$CC"; then |
1535 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1536 | else |
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1538 | for as_dir in $PATH |
1539 | do |
1540 | IFS=$as_save_IFS |
1541 | test -z "$as_dir" && as_dir=. |
1542 | for ac_exec_ext in '' $ac_executable_extensions; do |
1543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1544 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1546 | break 2 |
1547 | fi |
1548 | done |
1549 | done |
1550 | |
1551 | fi |
1552 | fi |
1553 | CC=$ac_cv_prog_CC |
1554 | if test -n "$CC"; then |
1555 | echo "$as_me:$LINENO: result: $CC" >&5 |
1556 | echo "${ECHO_T}$CC" >&6 |
1557 | else |
1558 | echo "$as_me:$LINENO: result: no" >&5 |
1559 | echo "${ECHO_T}no" >&6 |
1560 | fi |
1561 | |
1562 | fi |
1563 | if test -z "$ac_cv_prog_CC"; then |
1564 | ac_ct_CC=$CC |
1565 | # Extract the first word of "gcc", so it can be a program name with args. |
1566 | set dummy gcc; ac_word=$2 |
1567 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1569 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1571 | else |
1572 | if test -n "$ac_ct_CC"; then |
1573 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1574 | else |
1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1576 | for as_dir in $PATH |
1577 | do |
1578 | IFS=$as_save_IFS |
1579 | test -z "$as_dir" && as_dir=. |
1580 | for ac_exec_ext in '' $ac_executable_extensions; do |
1581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1582 | ac_cv_prog_ac_ct_CC="gcc" |
1583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1584 | break 2 |
1585 | fi |
1586 | done |
1587 | done |
1588 | |
1589 | fi |
1590 | fi |
1591 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1592 | if test -n "$ac_ct_CC"; then |
1593 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1594 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1595 | else |
1596 | echo "$as_me:$LINENO: result: no" >&5 |
1597 | echo "${ECHO_T}no" >&6 |
1598 | fi |
1599 | |
1600 | CC=$ac_ct_CC |
1601 | else |
1602 | CC="$ac_cv_prog_CC" |
1603 | fi |
1604 | |
1605 | if test -z "$CC"; then |
1606 | if test -n "$ac_tool_prefix"; then |
1607 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1608 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1611 | if test "${ac_cv_prog_CC+set}" = set; then |
1612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1613 | else |
1614 | if test -n "$CC"; then |
1615 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1616 | else |
1617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1618 | for as_dir in $PATH |
1619 | do |
1620 | IFS=$as_save_IFS |
1621 | test -z "$as_dir" && as_dir=. |
1622 | for ac_exec_ext in '' $ac_executable_extensions; do |
1623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1624 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1626 | break 2 |
1627 | fi |
1628 | done |
1629 | done |
1630 | |
1631 | fi |
1632 | fi |
1633 | CC=$ac_cv_prog_CC |
1634 | if test -n "$CC"; then |
1635 | echo "$as_me:$LINENO: result: $CC" >&5 |
1636 | echo "${ECHO_T}$CC" >&6 |
1637 | else |
1638 | echo "$as_me:$LINENO: result: no" >&5 |
1639 | echo "${ECHO_T}no" >&6 |
1640 | fi |
1641 | |
1642 | fi |
1643 | if test -z "$ac_cv_prog_CC"; then |
1644 | ac_ct_CC=$CC |
1645 | # Extract the first word of "cc", so it can be a program name with args. |
1646 | set dummy cc; ac_word=$2 |
1647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1649 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1651 | else |
1652 | if test -n "$ac_ct_CC"; then |
1653 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1654 | else |
1655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1656 | for as_dir in $PATH |
1657 | do |
1658 | IFS=$as_save_IFS |
1659 | test -z "$as_dir" && as_dir=. |
1660 | for ac_exec_ext in '' $ac_executable_extensions; do |
1661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1662 | ac_cv_prog_ac_ct_CC="cc" |
1663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1664 | break 2 |
1665 | fi |
1666 | done |
1667 | done |
1668 | |
1669 | fi |
1670 | fi |
1671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1672 | if test -n "$ac_ct_CC"; then |
1673 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1674 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1675 | else |
1676 | echo "$as_me:$LINENO: result: no" >&5 |
1677 | echo "${ECHO_T}no" >&6 |
1678 | fi |
1679 | |
1680 | CC=$ac_ct_CC |
1681 | else |
1682 | CC="$ac_cv_prog_CC" |
1683 | fi |
1684 | |
1685 | fi |
1686 | if test -z "$CC"; then |
1687 | # Extract the first word of "cc", so it can be a program name with args. |
1688 | set dummy cc; ac_word=$2 |
1689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1691 | if test "${ac_cv_prog_CC+set}" = set; then |
1692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1693 | else |
1694 | if test -n "$CC"; then |
1695 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1696 | else |
1697 | ac_prog_rejected=no |
1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1699 | for as_dir in $PATH |
1700 | do |
1701 | IFS=$as_save_IFS |
1702 | test -z "$as_dir" && as_dir=. |
1703 | for ac_exec_ext in '' $ac_executable_extensions; do |
1704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1705 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1706 | ac_prog_rejected=yes |
1707 | continue |
1708 | fi |
1709 | ac_cv_prog_CC="cc" |
1710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1711 | break 2 |
1712 | fi |
1713 | done |
1714 | done |
1715 | |
1716 | if test $ac_prog_rejected = yes; then |
1717 | # We found a bogon in the path, so make sure we never use it. |
1718 | set dummy $ac_cv_prog_CC |
1719 | shift |
1720 | if test $# != 0; then |
1721 | # We chose a different compiler from the bogus one. |
1722 | # However, it has the same basename, so the bogon will be chosen |
1723 | # first if we set CC to just the basename; use the full file name. |
1724 | shift |
1725 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1726 | fi |
1727 | fi |
1728 | fi |
1729 | fi |
1730 | CC=$ac_cv_prog_CC |
1731 | if test -n "$CC"; then |
1732 | echo "$as_me:$LINENO: result: $CC" >&5 |
1733 | echo "${ECHO_T}$CC" >&6 |
1734 | else |
1735 | echo "$as_me:$LINENO: result: no" >&5 |
1736 | echo "${ECHO_T}no" >&6 |
1737 | fi |
1738 | |
1739 | fi |
1740 | if test -z "$CC"; then |
1741 | if test -n "$ac_tool_prefix"; then |
1742 | for ac_prog in cl |
1743 | do |
1744 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1745 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1748 | if test "${ac_cv_prog_CC+set}" = set; then |
1749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1750 | else |
1751 | if test -n "$CC"; then |
1752 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1753 | else |
1754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1755 | for as_dir in $PATH |
1756 | do |
1757 | IFS=$as_save_IFS |
1758 | test -z "$as_dir" && as_dir=. |
1759 | for ac_exec_ext in '' $ac_executable_extensions; do |
1760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1761 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1763 | break 2 |
1764 | fi |
1765 | done |
1766 | done |
1767 | |
1768 | fi |
1769 | fi |
1770 | CC=$ac_cv_prog_CC |
1771 | if test -n "$CC"; then |
1772 | echo "$as_me:$LINENO: result: $CC" >&5 |
1773 | echo "${ECHO_T}$CC" >&6 |
1774 | else |
1775 | echo "$as_me:$LINENO: result: no" >&5 |
1776 | echo "${ECHO_T}no" >&6 |
1777 | fi |
1778 | |
1779 | test -n "$CC" && break |
1780 | done |
1781 | fi |
1782 | if test -z "$CC"; then |
1783 | ac_ct_CC=$CC |
1784 | for ac_prog in cl |
1785 | do |
1786 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1787 | set dummy $ac_prog; ac_word=$2 |
1788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1790 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1792 | else |
1793 | if test -n "$ac_ct_CC"; then |
1794 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1795 | else |
1796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1797 | for as_dir in $PATH |
1798 | do |
1799 | IFS=$as_save_IFS |
1800 | test -z "$as_dir" && as_dir=. |
1801 | for ac_exec_ext in '' $ac_executable_extensions; do |
1802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1803 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1805 | break 2 |
1806 | fi |
1807 | done |
1808 | done |
1809 | |
1810 | fi |
1811 | fi |
1812 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1813 | if test -n "$ac_ct_CC"; then |
1814 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1815 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1816 | else |
1817 | echo "$as_me:$LINENO: result: no" >&5 |
1818 | echo "${ECHO_T}no" >&6 |
1819 | fi |
1820 | |
1821 | test -n "$ac_ct_CC" && break |
1822 | done |
1823 | |
1824 | CC=$ac_ct_CC |
1825 | fi |
1826 | |
1827 | fi |
1828 | |
1829 | |
1830 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1831 | See \`config.log' for more details." >&5 |
1832 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
1833 | See \`config.log' for more details." >&2;} |
1834 | { (exit 1); exit 1; }; } |
1835 | |
1836 | # Provide some information about the compiler. |
1837 | echo "$as_me:$LINENO:" \ |
1838 | "checking for C compiler version" >&5 |
1839 | ac_compiler=`set X $ac_compile; echo $2` |
1840 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1841 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1842 | ac_status=$? |
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1844 | (exit $ac_status); } |
1845 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1846 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1847 | ac_status=$? |
1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1849 | (exit $ac_status); } |
1850 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1851 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1852 | ac_status=$? |
1853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1854 | (exit $ac_status); } |
1855 | |
1856 | cat >conftest.$ac_ext <<_ACEOF |
1857 | /* confdefs.h. */ |
1858 | _ACEOF |
1859 | cat confdefs.h >>conftest.$ac_ext |
1860 | cat >>conftest.$ac_ext <<_ACEOF |
1861 | /* end confdefs.h. */ |
1862 | |
1863 | int |
1864 | main () |
1865 | { |
1866 | |
1867 | ; |
1868 | return 0; |
1869 | } |
1870 | _ACEOF |
1871 | ac_clean_files_save=$ac_clean_files |
1872 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1873 | # Try to create an executable without -o first, disregard a.out. |
1874 | # It will help us diagnose broken compilers, and finding out an intuition |
1875 | # of exeext. |
1876 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1877 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
1878 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1880 | (eval $ac_link_default) 2>&5 |
1881 | ac_status=$? |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1883 | (exit $ac_status); }; then |
1884 | # Find the output, starting from the most likely. This scheme is |
1885 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1886 | # resort. |
1887 | |
1888 | # Be careful to initialize this variable, since it used to be cached. |
1889 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1890 | ac_cv_exeext= |
1891 | # b.out is created by i960 compilers. |
1892 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1893 | do |
1894 | test -f "$ac_file" || continue |
1895 | case $ac_file in |
1896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1897 | ;; |
1898 | conftest.$ac_ext ) |
1899 | # This is the source file. |
1900 | ;; |
1901 | [ab].out ) |
1902 | # We found the default executable, but exeext='' is most |
1903 | # certainly right. |
1904 | break;; |
1905 | *.* ) |
1906 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1907 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
1908 | # but it would be cool to find out if it's true. Does anybody |
1909 | # maintain Libtool? --akim. |
1910 | export ac_cv_exeext |
1911 | break;; |
1912 | * ) |
1913 | break;; |
1914 | esac |
1915 | done |
1916 | else |
1917 | echo "$as_me: failed program was:" >&5 |
1918 | sed 's/^/| /' conftest.$ac_ext >&5 |
1919 | |
1920 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1921 | See \`config.log' for more details." >&5 |
1922 | echo "$as_me: error: C compiler cannot create executables |
1923 | See \`config.log' for more details." >&2;} |
1924 | { (exit 77); exit 77; }; } |
1925 | fi |
1926 | |
1927 | ac_exeext=$ac_cv_exeext |
1928 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
1929 | echo "${ECHO_T}$ac_file" >&6 |
1930 | |
1931 | # Check the compiler produces executables we can run. If not, either |
1932 | # the compiler is broken, or we cross compile. |
1933 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1934 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1935 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1936 | # If not cross compiling, check that we can run a simple program. |
1937 | if test "$cross_compiling" != yes; then |
1938 | if { ac_try='./$ac_file' |
1939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1940 | (eval $ac_try) 2>&5 |
1941 | ac_status=$? |
1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1943 | (exit $ac_status); }; }; then |
1944 | cross_compiling=no |
1945 | else |
1946 | if test "$cross_compiling" = maybe; then |
1947 | cross_compiling=yes |
1948 | else |
1949 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1950 | If you meant to cross compile, use \`--host'. |
1951 | See \`config.log' for more details." >&5 |
1952 | echo "$as_me: error: cannot run C compiled programs. |
1953 | If you meant to cross compile, use \`--host'. |
1954 | See \`config.log' for more details." >&2;} |
1955 | { (exit 1); exit 1; }; } |
1956 | fi |
1957 | fi |
1958 | fi |
1959 | echo "$as_me:$LINENO: result: yes" >&5 |
1960 | echo "${ECHO_T}yes" >&6 |
1961 | |
1962 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1963 | ac_clean_files=$ac_clean_files_save |
1964 | # Check the compiler produces executables we can run. If not, either |
1965 | # the compiler is broken, or we cross compile. |
1966 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1967 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1968 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1969 | echo "${ECHO_T}$cross_compiling" >&6 |
1970 | |
1971 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1972 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1974 | (eval $ac_link) 2>&5 |
1975 | ac_status=$? |
1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1977 | (exit $ac_status); }; then |
1978 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1979 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1980 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
1981 | # `rm'. |
1982 | for ac_file in conftest.exe conftest conftest.*; do |
1983 | test -f "$ac_file" || continue |
1984 | case $ac_file in |
1985 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1986 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1987 | export ac_cv_exeext |
1988 | break;; |
1989 | * ) break;; |
1990 | esac |
1991 | done |
1992 | else |
1993 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1994 | See \`config.log' for more details." >&5 |
1995 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
1996 | See \`config.log' for more details." >&2;} |
1997 | { (exit 1); exit 1; }; } |
1998 | fi |
1999 | |
2000 | rm -f conftest$ac_cv_exeext |
2001 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2002 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2003 | |
2004 | rm -f conftest.$ac_ext |
2005 | EXEEXT=$ac_cv_exeext |
2006 | ac_exeext=$EXEEXT |
2007 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2008 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2009 | if test "${ac_cv_objext+set}" = set; then |
2010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2011 | else |
2012 | cat >conftest.$ac_ext <<_ACEOF |
2013 | /* confdefs.h. */ |
2014 | _ACEOF |
2015 | cat confdefs.h >>conftest.$ac_ext |
2016 | cat >>conftest.$ac_ext <<_ACEOF |
2017 | /* end confdefs.h. */ |
2018 | |
2019 | int |
2020 | main () |
2021 | { |
2022 | |
2023 | ; |
2024 | return 0; |
2025 | } |
2026 | _ACEOF |
2027 | rm -f conftest.o conftest.obj |
2028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2029 | (eval $ac_compile) 2>&5 |
2030 | ac_status=$? |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2032 | (exit $ac_status); }; then |
2033 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2034 | case $ac_file in |
2035 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2036 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2037 | break;; |
2038 | esac |
2039 | done |
2040 | else |
2041 | echo "$as_me: failed program was:" >&5 |
2042 | sed 's/^/| /' conftest.$ac_ext >&5 |
2043 | |
2044 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2045 | See \`config.log' for more details." >&5 |
2046 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2047 | See \`config.log' for more details." >&2;} |
2048 | { (exit 1); exit 1; }; } |
2049 | fi |
2050 | |
2051 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2052 | fi |
2053 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2054 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2055 | OBJEXT=$ac_cv_objext |
2056 | ac_objext=$OBJEXT |
2057 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2058 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2059 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2061 | else |
2062 | cat >conftest.$ac_ext <<_ACEOF |
2063 | /* confdefs.h. */ |
2064 | _ACEOF |
2065 | cat confdefs.h >>conftest.$ac_ext |
2066 | cat >>conftest.$ac_ext <<_ACEOF |
2067 | /* end confdefs.h. */ |
2068 | |
2069 | int |
2070 | main () |
2071 | { |
2072 | #ifndef __GNUC__ |
2073 | choke me |
2074 | #endif |
2075 | |
2076 | ; |
2077 | return 0; |
2078 | } |
2079 | _ACEOF |
2080 | rm -f conftest.$ac_objext |
2081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2082 | (eval $ac_compile) 2>conftest.er1 |
2083 | ac_status=$? |
2084 | grep -v '^ *+' conftest.er1 >conftest.err |
2085 | rm -f conftest.er1 |
2086 | cat conftest.err >&5 |
2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2088 | (exit $ac_status); } && |
2089 | { ac_try='test -z "$ac_c_werror_flag" |
2090 | || test ! -s conftest.err' |
2091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2092 | (eval $ac_try) 2>&5 |
2093 | ac_status=$? |
2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2095 | (exit $ac_status); }; } && |
2096 | { ac_try='test -s conftest.$ac_objext' |
2097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2098 | (eval $ac_try) 2>&5 |
2099 | ac_status=$? |
2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2101 | (exit $ac_status); }; }; then |
2102 | ac_compiler_gnu=yes |
2103 | else |
2104 | echo "$as_me: failed program was:" >&5 |
2105 | sed 's/^/| /' conftest.$ac_ext >&5 |
2106 | |
2107 | ac_compiler_gnu=no |
2108 | fi |
2109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2110 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2111 | |
2112 | fi |
2113 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2114 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2115 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2116 | ac_test_CFLAGS=${CFLAGS+set} |
2117 | ac_save_CFLAGS=$CFLAGS |
2118 | CFLAGS="-g" |
2119 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2120 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2121 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2123 | else |
2124 | cat >conftest.$ac_ext <<_ACEOF |
2125 | /* confdefs.h. */ |
2126 | _ACEOF |
2127 | cat confdefs.h >>conftest.$ac_ext |
2128 | cat >>conftest.$ac_ext <<_ACEOF |
2129 | /* end confdefs.h. */ |
2130 | |
2131 | int |
2132 | main () |
2133 | { |
2134 | |
2135 | ; |
2136 | return 0; |
2137 | } |
2138 | _ACEOF |
2139 | rm -f conftest.$ac_objext |
2140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2141 | (eval $ac_compile) 2>conftest.er1 |
2142 | ac_status=$? |
2143 | grep -v '^ *+' conftest.er1 >conftest.err |
2144 | rm -f conftest.er1 |
2145 | cat conftest.err >&5 |
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2147 | (exit $ac_status); } && |
2148 | { ac_try='test -z "$ac_c_werror_flag" |
2149 | || test ! -s conftest.err' |
2150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2151 | (eval $ac_try) 2>&5 |
2152 | ac_status=$? |
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2154 | (exit $ac_status); }; } && |
2155 | { ac_try='test -s conftest.$ac_objext' |
2156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2157 | (eval $ac_try) 2>&5 |
2158 | ac_status=$? |
2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2160 | (exit $ac_status); }; }; then |
2161 | ac_cv_prog_cc_g=yes |
2162 | else |
2163 | echo "$as_me: failed program was:" >&5 |
2164 | sed 's/^/| /' conftest.$ac_ext >&5 |
2165 | |
2166 | ac_cv_prog_cc_g=no |
2167 | fi |
2168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2169 | fi |
2170 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2171 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2172 | if test "$ac_test_CFLAGS" = set; then |
2173 | CFLAGS=$ac_save_CFLAGS |
2174 | elif test $ac_cv_prog_cc_g = yes; then |
2175 | if test "$GCC" = yes; then |
2176 | CFLAGS="-g -O2" |
2177 | else |
2178 | CFLAGS="-g" |
2179 | fi |
2180 | else |
2181 | if test "$GCC" = yes; then |
2182 | CFLAGS="-O2" |
2183 | else |
2184 | CFLAGS= |
2185 | fi |
2186 | fi |
2187 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2188 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2189 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2191 | else |
2192 | ac_cv_prog_cc_stdc=no |
2193 | ac_save_CC=$CC |
2194 | cat >conftest.$ac_ext <<_ACEOF |
2195 | /* confdefs.h. */ |
2196 | _ACEOF |
2197 | cat confdefs.h >>conftest.$ac_ext |
2198 | cat >>conftest.$ac_ext <<_ACEOF |
2199 | /* end confdefs.h. */ |
2200 | #include <stdarg.h> |
2201 | #include <stdio.h> |
2202 | #include <sys/types.h> |
2203 | #include <sys/stat.h> |
2204 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2205 | struct buf { int x; }; |
2206 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2207 | static char *e (p, i) |
2208 | char **p; |
2209 | int i; |
2210 | { |
2211 | return p[i]; |
2212 | } |
2213 | static char *f (char * (*g) (char **, int), char **p, ...) |
2214 | { |
2215 | char *s; |
2216 | va_list v; |
2217 | va_start (v,p); |
2218 | s = g (p, va_arg (v,int)); |
2219 | va_end (v); |
2220 | return s; |
2221 | } |
2222 | |
2223 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2224 | function prototypes and stuff, but not '\xHH' hex character constants. |
2225 | These don't provoke an error unfortunately, instead are silently treated |
2226 | as 'x'. The following induces an error, until -std1 is added to get |
2227 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2228 | array size at least. It's necessary to write '\x00'==0 to get something |
2229 | that's true only with -std1. */ |
2230 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2231 | |
2232 | int test (int i, double x); |
2233 | struct s1 {int (*f) (int a);}; |
2234 | struct s2 {int (*f) (double a);}; |
2235 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2236 | int argc; |
2237 | char **argv; |
2238 | int |
2239 | main () |
2240 | { |
2241 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2242 | ; |
2243 | return 0; |
2244 | } |
2245 | _ACEOF |
2246 | # Don't try gcc -ansi; that turns off useful extensions and |
2247 | # breaks some systems' header files. |
2248 | # AIX -qlanglvl=ansi |
2249 | # Ultrix and OSF/1 -std1 |
2250 | # HP-UX 10.20 and later -Ae |
2251 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2252 | # SVR4 -Xc -D__EXTENSIONS__ |
2253 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2254 | do |
2255 | CC="$ac_save_CC $ac_arg" |
2256 | rm -f conftest.$ac_objext |
2257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2258 | (eval $ac_compile) 2>conftest.er1 |
2259 | ac_status=$? |
2260 | grep -v '^ *+' conftest.er1 >conftest.err |
2261 | rm -f conftest.er1 |
2262 | cat conftest.err >&5 |
2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2264 | (exit $ac_status); } && |
2265 | { ac_try='test -z "$ac_c_werror_flag" |
2266 | || test ! -s conftest.err' |
2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2268 | (eval $ac_try) 2>&5 |
2269 | ac_status=$? |
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2271 | (exit $ac_status); }; } && |
2272 | { ac_try='test -s conftest.$ac_objext' |
2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2274 | (eval $ac_try) 2>&5 |
2275 | ac_status=$? |
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2277 | (exit $ac_status); }; }; then |
2278 | ac_cv_prog_cc_stdc=$ac_arg |
2279 | break |
2280 | else |
2281 | echo "$as_me: failed program was:" >&5 |
2282 | sed 's/^/| /' conftest.$ac_ext >&5 |
2283 | |
2284 | fi |
2285 | rm -f conftest.err conftest.$ac_objext |
2286 | done |
2287 | rm -f conftest.$ac_ext conftest.$ac_objext |
2288 | CC=$ac_save_CC |
2289 | |
2290 | fi |
2291 | |
2292 | case "x$ac_cv_prog_cc_stdc" in |
2293 | x|xno) |
2294 | echo "$as_me:$LINENO: result: none needed" >&5 |
2295 | echo "${ECHO_T}none needed" >&6 ;; |
2296 | *) |
2297 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2298 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2299 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2300 | esac |
2301 | |
2302 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2303 | # in C++ we need to declare it. In case someone uses the same compiler |
2304 | # for both compiling C and C++ we need to have the C++ compiler decide |
2305 | # the declaration of exit, since it's the most demanding environment. |
2306 | cat >conftest.$ac_ext <<_ACEOF |
2307 | #ifndef __cplusplus |
2308 | choke me |
2309 | #endif |
2310 | _ACEOF |
2311 | rm -f conftest.$ac_objext |
2312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2313 | (eval $ac_compile) 2>conftest.er1 |
2314 | ac_status=$? |
2315 | grep -v '^ *+' conftest.er1 >conftest.err |
2316 | rm -f conftest.er1 |
2317 | cat conftest.err >&5 |
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2319 | (exit $ac_status); } && |
2320 | { ac_try='test -z "$ac_c_werror_flag" |
2321 | || test ! -s conftest.err' |
2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2323 | (eval $ac_try) 2>&5 |
2324 | ac_status=$? |
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2326 | (exit $ac_status); }; } && |
2327 | { ac_try='test -s conftest.$ac_objext' |
2328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2329 | (eval $ac_try) 2>&5 |
2330 | ac_status=$? |
2331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2332 | (exit $ac_status); }; }; then |
2333 | for ac_declaration in \ |
2334 | '' \ |
2335 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2336 | 'extern "C" void std::exit (int); using std::exit;' \ |
2337 | 'extern "C" void exit (int) throw ();' \ |
2338 | 'extern "C" void exit (int);' \ |
2339 | 'void exit (int);' |
2340 | do |
2341 | cat >conftest.$ac_ext <<_ACEOF |
2342 | /* confdefs.h. */ |
2343 | _ACEOF |
2344 | cat confdefs.h >>conftest.$ac_ext |
2345 | cat >>conftest.$ac_ext <<_ACEOF |
2346 | /* end confdefs.h. */ |
2347 | $ac_declaration |
2348 | #include <stdlib.h> |
2349 | int |
2350 | main () |
2351 | { |
2352 | exit (42); |
2353 | ; |
2354 | return 0; |
2355 | } |
2356 | _ACEOF |
2357 | rm -f conftest.$ac_objext |
2358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2359 | (eval $ac_compile) 2>conftest.er1 |
2360 | ac_status=$? |
2361 | grep -v '^ *+' conftest.er1 >conftest.err |
2362 | rm -f conftest.er1 |
2363 | cat conftest.err >&5 |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2365 | (exit $ac_status); } && |
2366 | { ac_try='test -z "$ac_c_werror_flag" |
2367 | || test ! -s conftest.err' |
2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2369 | (eval $ac_try) 2>&5 |
2370 | ac_status=$? |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2372 | (exit $ac_status); }; } && |
2373 | { ac_try='test -s conftest.$ac_objext' |
2374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2375 | (eval $ac_try) 2>&5 |
2376 | ac_status=$? |
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2378 | (exit $ac_status); }; }; then |
2379 | : |
2380 | else |
2381 | echo "$as_me: failed program was:" >&5 |
2382 | sed 's/^/| /' conftest.$ac_ext >&5 |
2383 | |
2384 | continue |
2385 | fi |
2386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2387 | cat >conftest.$ac_ext <<_ACEOF |
2388 | /* confdefs.h. */ |
2389 | _ACEOF |
2390 | cat confdefs.h >>conftest.$ac_ext |
2391 | cat >>conftest.$ac_ext <<_ACEOF |
2392 | /* end confdefs.h. */ |
2393 | $ac_declaration |
2394 | int |
2395 | main () |
2396 | { |
2397 | exit (42); |
2398 | ; |
2399 | return 0; |
2400 | } |
2401 | _ACEOF |
2402 | rm -f conftest.$ac_objext |
2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2404 | (eval $ac_compile) 2>conftest.er1 |
2405 | ac_status=$? |
2406 | grep -v '^ *+' conftest.er1 >conftest.err |
2407 | rm -f conftest.er1 |
2408 | cat conftest.err >&5 |
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2410 | (exit $ac_status); } && |
2411 | { ac_try='test -z "$ac_c_werror_flag" |
2412 | || test ! -s conftest.err' |
2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2414 | (eval $ac_try) 2>&5 |
2415 | ac_status=$? |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2417 | (exit $ac_status); }; } && |
2418 | { ac_try='test -s conftest.$ac_objext' |
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2420 | (eval $ac_try) 2>&5 |
2421 | ac_status=$? |
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2423 | (exit $ac_status); }; }; then |
2424 | break |
2425 | else |
2426 | echo "$as_me: failed program was:" >&5 |
2427 | sed 's/^/| /' conftest.$ac_ext >&5 |
2428 | |
2429 | fi |
2430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2431 | done |
2432 | rm -f conftest* |
2433 | if test -n "$ac_declaration"; then |
2434 | echo '#ifdef __cplusplus' >>confdefs.h |
2435 | echo $ac_declaration >>confdefs.h |
2436 | echo '#endif' >>confdefs.h |
2437 | fi |
2438 | |
2439 | else |
2440 | echo "$as_me: failed program was:" >&5 |
2441 | sed 's/^/| /' conftest.$ac_ext >&5 |
2442 | |
2443 | fi |
2444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2445 | ac_ext=c |
2446 | ac_cpp='$CPP $CPPFLAGS' |
2447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2450 | |
2451 | |
2452 | |
2453 | ac_ext=cc |
2454 | ac_cpp='$CXXCPP $CPPFLAGS' |
2455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2458 | if test -n "$ac_tool_prefix"; then |
2459 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2460 | do |
2461 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2462 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2465 | if test "${ac_cv_prog_CXX+set}" = set; then |
2466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2467 | else |
2468 | if test -n "$CXX"; then |
2469 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2470 | else |
2471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2472 | for as_dir in $PATH |
2473 | do |
2474 | IFS=$as_save_IFS |
2475 | test -z "$as_dir" && as_dir=. |
2476 | for ac_exec_ext in '' $ac_executable_extensions; do |
2477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2478 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2480 | break 2 |
2481 | fi |
2482 | done |
2483 | done |
2484 | |
2485 | fi |
2486 | fi |
2487 | CXX=$ac_cv_prog_CXX |
2488 | if test -n "$CXX"; then |
2489 | echo "$as_me:$LINENO: result: $CXX" >&5 |
2490 | echo "${ECHO_T}$CXX" >&6 |
2491 | else |
2492 | echo "$as_me:$LINENO: result: no" >&5 |
2493 | echo "${ECHO_T}no" >&6 |
2494 | fi |
2495 | |
2496 | test -n "$CXX" && break |
2497 | done |
2498 | fi |
2499 | if test -z "$CXX"; then |
2500 | ac_ct_CXX=$CXX |
2501 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2502 | do |
2503 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2504 | set dummy $ac_prog; ac_word=$2 |
2505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2507 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2509 | else |
2510 | if test -n "$ac_ct_CXX"; then |
2511 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2512 | else |
2513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2514 | for as_dir in $PATH |
2515 | do |
2516 | IFS=$as_save_IFS |
2517 | test -z "$as_dir" && as_dir=. |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do |
2519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2520 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2522 | break 2 |
2523 | fi |
2524 | done |
2525 | done |
2526 | |
2527 | fi |
2528 | fi |
2529 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2530 | if test -n "$ac_ct_CXX"; then |
2531 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2532 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
2533 | else |
2534 | echo "$as_me:$LINENO: result: no" >&5 |
2535 | echo "${ECHO_T}no" >&6 |
2536 | fi |
2537 | |
2538 | test -n "$ac_ct_CXX" && break |
2539 | done |
2540 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
2541 | |
2542 | CXX=$ac_ct_CXX |
2543 | fi |
2544 | |
2545 | |
2546 | # Provide some information about the compiler. |
2547 | echo "$as_me:$LINENO:" \ |
2548 | "checking for C++ compiler version" >&5 |
2549 | ac_compiler=`set X $ac_compile; echo $2` |
2550 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2551 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2552 | ac_status=$? |
2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2554 | (exit $ac_status); } |
2555 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2556 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2557 | ac_status=$? |
2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2559 | (exit $ac_status); } |
2560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2561 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2562 | ac_status=$? |
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2564 | (exit $ac_status); } |
2565 | |
2566 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2567 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2568 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2570 | else |
2571 | cat >conftest.$ac_ext <<_ACEOF |
2572 | /* confdefs.h. */ |
2573 | _ACEOF |
2574 | cat confdefs.h >>conftest.$ac_ext |
2575 | cat >>conftest.$ac_ext <<_ACEOF |
2576 | /* end confdefs.h. */ |
2577 | |
2578 | int |
2579 | main () |
2580 | { |
2581 | #ifndef __GNUC__ |
2582 | choke me |
2583 | #endif |
2584 | |
2585 | ; |
2586 | return 0; |
2587 | } |
2588 | _ACEOF |
2589 | rm -f conftest.$ac_objext |
2590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2591 | (eval $ac_compile) 2>conftest.er1 |
2592 | ac_status=$? |
2593 | grep -v '^ *+' conftest.er1 >conftest.err |
2594 | rm -f conftest.er1 |
2595 | cat conftest.err >&5 |
2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2597 | (exit $ac_status); } && |
2598 | { ac_try='test -z "$ac_cxx_werror_flag" |
2599 | || test ! -s conftest.err' |
2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2601 | (eval $ac_try) 2>&5 |
2602 | ac_status=$? |
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2604 | (exit $ac_status); }; } && |
2605 | { ac_try='test -s conftest.$ac_objext' |
2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2607 | (eval $ac_try) 2>&5 |
2608 | ac_status=$? |
2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2610 | (exit $ac_status); }; }; then |
2611 | ac_compiler_gnu=yes |
2612 | else |
2613 | echo "$as_me: failed program was:" >&5 |
2614 | sed 's/^/| /' conftest.$ac_ext >&5 |
2615 | |
2616 | ac_compiler_gnu=no |
2617 | fi |
2618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2619 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2620 | |
2621 | fi |
2622 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2623 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
2624 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
2625 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
2626 | ac_save_CXXFLAGS=$CXXFLAGS |
2627 | CXXFLAGS="-g" |
2628 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2629 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
2630 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
2631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2632 | else |
2633 | cat >conftest.$ac_ext <<_ACEOF |
2634 | /* confdefs.h. */ |
2635 | _ACEOF |
2636 | cat confdefs.h >>conftest.$ac_ext |
2637 | cat >>conftest.$ac_ext <<_ACEOF |
2638 | /* end confdefs.h. */ |
2639 | |
2640 | int |
2641 | main () |
2642 | { |
2643 | |
2644 | ; |
2645 | return 0; |
2646 | } |
2647 | _ACEOF |
2648 | rm -f conftest.$ac_objext |
2649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2650 | (eval $ac_compile) 2>conftest.er1 |
2651 | ac_status=$? |
2652 | grep -v '^ *+' conftest.er1 >conftest.err |
2653 | rm -f conftest.er1 |
2654 | cat conftest.err >&5 |
2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2656 | (exit $ac_status); } && |
2657 | { ac_try='test -z "$ac_cxx_werror_flag" |
2658 | || test ! -s conftest.err' |
2659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2660 | (eval $ac_try) 2>&5 |
2661 | ac_status=$? |
2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2663 | (exit $ac_status); }; } && |
2664 | { ac_try='test -s conftest.$ac_objext' |
2665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2666 | (eval $ac_try) 2>&5 |
2667 | ac_status=$? |
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2669 | (exit $ac_status); }; }; then |
2670 | ac_cv_prog_cxx_g=yes |
2671 | else |
2672 | echo "$as_me: failed program was:" >&5 |
2673 | sed 's/^/| /' conftest.$ac_ext >&5 |
2674 | |
2675 | ac_cv_prog_cxx_g=no |
2676 | fi |
2677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2678 | fi |
2679 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2680 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2681 | if test "$ac_test_CXXFLAGS" = set; then |
2682 | CXXFLAGS=$ac_save_CXXFLAGS |
2683 | elif test $ac_cv_prog_cxx_g = yes; then |
2684 | if test "$GXX" = yes; then |
2685 | CXXFLAGS="-g -O2" |
2686 | else |
2687 | CXXFLAGS="-g" |
2688 | fi |
2689 | else |
2690 | if test "$GXX" = yes; then |
2691 | CXXFLAGS="-O2" |
2692 | else |
2693 | CXXFLAGS= |
2694 | fi |
2695 | fi |
2696 | for ac_declaration in \ |
2697 | '' \ |
2698 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2699 | 'extern "C" void std::exit (int); using std::exit;' \ |
2700 | 'extern "C" void exit (int) throw ();' \ |
2701 | 'extern "C" void exit (int);' \ |
2702 | 'void exit (int);' |
2703 | do |
2704 | cat >conftest.$ac_ext <<_ACEOF |
2705 | /* confdefs.h. */ |
2706 | _ACEOF |
2707 | cat confdefs.h >>conftest.$ac_ext |
2708 | cat >>conftest.$ac_ext <<_ACEOF |
2709 | /* end confdefs.h. */ |
2710 | $ac_declaration |
2711 | #include <stdlib.h> |
2712 | int |
2713 | main () |
2714 | { |
2715 | exit (42); |
2716 | ; |
2717 | return 0; |
2718 | } |
2719 | _ACEOF |
2720 | rm -f conftest.$ac_objext |
2721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2722 | (eval $ac_compile) 2>conftest.er1 |
2723 | ac_status=$? |
2724 | grep -v '^ *+' conftest.er1 >conftest.err |
2725 | rm -f conftest.er1 |
2726 | cat conftest.err >&5 |
2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2728 | (exit $ac_status); } && |
2729 | { ac_try='test -z "$ac_cxx_werror_flag" |
2730 | || test ! -s conftest.err' |
2731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2732 | (eval $ac_try) 2>&5 |
2733 | ac_status=$? |
2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2735 | (exit $ac_status); }; } && |
2736 | { ac_try='test -s conftest.$ac_objext' |
2737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2738 | (eval $ac_try) 2>&5 |
2739 | ac_status=$? |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2741 | (exit $ac_status); }; }; then |
2742 | : |
2743 | else |
2744 | echo "$as_me: failed program was:" >&5 |
2745 | sed 's/^/| /' conftest.$ac_ext >&5 |
2746 | |
2747 | continue |
2748 | fi |
2749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2750 | cat >conftest.$ac_ext <<_ACEOF |
2751 | /* confdefs.h. */ |
2752 | _ACEOF |
2753 | cat confdefs.h >>conftest.$ac_ext |
2754 | cat >>conftest.$ac_ext <<_ACEOF |
2755 | /* end confdefs.h. */ |
2756 | $ac_declaration |
2757 | int |
2758 | main () |
2759 | { |
2760 | exit (42); |
2761 | ; |
2762 | return 0; |
2763 | } |
2764 | _ACEOF |
2765 | rm -f conftest.$ac_objext |
2766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2767 | (eval $ac_compile) 2>conftest.er1 |
2768 | ac_status=$? |
2769 | grep -v '^ *+' conftest.er1 >conftest.err |
2770 | rm -f conftest.er1 |
2771 | cat conftest.err >&5 |
2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2773 | (exit $ac_status); } && |
2774 | { ac_try='test -z "$ac_cxx_werror_flag" |
2775 | || test ! -s conftest.err' |
2776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2777 | (eval $ac_try) 2>&5 |
2778 | ac_status=$? |
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2780 | (exit $ac_status); }; } && |
2781 | { ac_try='test -s conftest.$ac_objext' |
2782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2783 | (eval $ac_try) 2>&5 |
2784 | ac_status=$? |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2786 | (exit $ac_status); }; }; then |
2787 | break |
2788 | else |
2789 | echo "$as_me: failed program was:" >&5 |
2790 | sed 's/^/| /' conftest.$ac_ext >&5 |
2791 | |
2792 | fi |
2793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2794 | done |
2795 | rm -f conftest* |
2796 | if test -n "$ac_declaration"; then |
2797 | echo '#ifdef __cplusplus' >>confdefs.h |
2798 | echo $ac_declaration >>confdefs.h |
2799 | echo '#endif' >>confdefs.h |
2800 | fi |
2801 | |
2802 | ac_ext=c |
2803 | ac_cpp='$CPP $CPPFLAGS' |
2804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2807 | |
2808 | |
2809 | |
2810 | ac_aux_dir= |
2811 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
2812 | if test -f $ac_dir/install-sh; then |
2813 | ac_aux_dir=$ac_dir |
2814 | ac_install_sh="$ac_aux_dir/install-sh -c" |
2815 | break |
2816 | elif test -f $ac_dir/install.sh; then |
2817 | ac_aux_dir=$ac_dir |
2818 | ac_install_sh="$ac_aux_dir/install.sh -c" |
2819 | break |
2820 | elif test -f $ac_dir/shtool; then |
2821 | ac_aux_dir=$ac_dir |
2822 | ac_install_sh="$ac_aux_dir/shtool install -c" |
2823 | break |
2824 | fi |
2825 | done |
2826 | if test -z "$ac_aux_dir"; then |
2827 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
2828 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
2829 | { (exit 1); exit 1; }; } |
2830 | fi |
2831 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2832 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
2833 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
2834 | |
2835 | # Find a good install program. We prefer a C program (faster), |
2836 | # so one script is as good as another. But avoid the broken or |
2837 | # incompatible versions: |
2838 | # SysV /etc/install, /usr/sbin/install |
2839 | # SunOS /usr/etc/install |
2840 | # IRIX /sbin/install |
2841 | # AIX /bin/install |
2842 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2843 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2844 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2845 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2846 | # OS/2's system install, which has a completely different semantic |
2847 | # ./install, which can be erroneously created by make from ./install.sh. |
2848 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2849 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
2850 | if test -z "$INSTALL"; then |
2851 | if test "${ac_cv_path_install+set}" = set; then |
2852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2853 | else |
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2855 | for as_dir in $PATH |
2856 | do |
2857 | IFS=$as_save_IFS |
2858 | test -z "$as_dir" && as_dir=. |
2859 | # Account for people who put trailing slashes in PATH elements. |
2860 | case $as_dir/ in |
2861 | ./ | .// | /cC/* | \ |
2862 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2863 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2864 | /usr/ucb/* ) ;; |
2865 | *) |
2866 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2867 | # Don't use installbsd from OSF since it installs stuff as root |
2868 | # by default. |
2869 | for ac_prog in ginstall scoinst install; do |
2870 | for ac_exec_ext in '' $ac_executable_extensions; do |
2871 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2872 | if test $ac_prog = install && |
2873 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2874 | # AIX install. It has an incompatible calling convention. |
2875 | : |
2876 | elif test $ac_prog = install && |
2877 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2878 | # program-specific install script used by HP pwplus--don't use. |
2879 | : |
2880 | else |
2881 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2882 | break 3 |
2883 | fi |
2884 | fi |
2885 | done |
2886 | done |
2887 | ;; |
2888 | esac |
2889 | done |
2890 | |
2891 | |
2892 | fi |
2893 | if test "${ac_cv_path_install+set}" = set; then |
2894 | INSTALL=$ac_cv_path_install |
2895 | else |
2896 | # As a last resort, use the slow shell script. We don't cache a |
2897 | # path for INSTALL within a source directory, because that will |
2898 | # break other packages using the cache if that directory is |
2899 | # removed, or if the path is relative. |
2900 | INSTALL=$ac_install_sh |
2901 | fi |
2902 | fi |
2903 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2904 | echo "${ECHO_T}$INSTALL" >&6 |
2905 | |
2906 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2907 | # It thinks the first close brace ends the variable substitution. |
2908 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2909 | |
2910 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2911 | |
2912 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2913 | |
2914 | |
2915 | |
2916 | # Check whether --enable-shared or --disable-shared was given. |
2917 | if test "${enable_shared+set}" = set; then |
2918 | enableval="$enable_shared" |
2919 | p=${PACKAGE-default} |
2920 | case $enableval in |
2921 | yes) enable_shared=yes ;; |
2922 | no) enable_shared=no ;; |
2923 | *) |
2924 | enable_shared=no |
2925 | # Look at the argument we got. We use all the common list separators. |
2926 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2927 | for pkg in $enableval; do |
2928 | IFS="$lt_save_ifs" |
2929 | if test "X$pkg" = "X$p"; then |
2930 | enable_shared=yes |
2931 | fi |
2932 | done |
2933 | IFS="$lt_save_ifs" |
2934 | ;; |
2935 | esac |
2936 | else |
2937 | enable_shared=yes |
2938 | fi; |
2939 | |
2940 | # Check whether --enable-static or --disable-static was given. |
2941 | if test "${enable_static+set}" = set; then |
2942 | enableval="$enable_static" |
2943 | p=${PACKAGE-default} |
2944 | case $enableval in |
2945 | yes) enable_static=yes ;; |
2946 | no) enable_static=no ;; |
2947 | *) |
2948 | enable_static=no |
2949 | # Look at the argument we got. We use all the common list separators. |
2950 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2951 | for pkg in $enableval; do |
2952 | IFS="$lt_save_ifs" |
2953 | if test "X$pkg" = "X$p"; then |
2954 | enable_static=yes |
2955 | fi |
2956 | done |
2957 | IFS="$lt_save_ifs" |
2958 | ;; |
2959 | esac |
2960 | else |
2961 | enable_static=yes |
2962 | fi; |
2963 | |
2964 | # Check whether --enable-fast-install or --disable-fast-install was given. |
2965 | if test "${enable_fast_install+set}" = set; then |
2966 | enableval="$enable_fast_install" |
2967 | p=${PACKAGE-default} |
2968 | case $enableval in |
2969 | yes) enable_fast_install=yes ;; |
2970 | no) enable_fast_install=no ;; |
2971 | *) |
2972 | enable_fast_install=no |
2973 | # Look at the argument we got. We use all the common list separators. |
2974 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2975 | for pkg in $enableval; do |
2976 | IFS="$lt_save_ifs" |
2977 | if test "X$pkg" = "X$p"; then |
2978 | enable_fast_install=yes |
2979 | fi |
2980 | done |
2981 | IFS="$lt_save_ifs" |
2982 | ;; |
2983 | esac |
2984 | else |
2985 | enable_fast_install=yes |
2986 | fi; |
2987 | |
2988 | # Make sure we can run config.sub. |
2989 | $ac_config_sub sun4 >/dev/null 2>&1 || |
2990 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
2991 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
2992 | { (exit 1); exit 1; }; } |
2993 | |
2994 | echo "$as_me:$LINENO: checking build system type" >&5 |
2995 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
2996 | if test "${ac_cv_build+set}" = set; then |
2997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2998 | else |
2999 | ac_cv_build_alias=$build_alias |
3000 | test -z "$ac_cv_build_alias" && |
3001 | ac_cv_build_alias=`$ac_config_guess` |
3002 | test -z "$ac_cv_build_alias" && |
3003 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3004 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3005 | { (exit 1); exit 1; }; } |
3006 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3007 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3008 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3009 | { (exit 1); exit 1; }; } |
3010 | |
3011 | fi |
3012 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3013 | echo "${ECHO_T}$ac_cv_build" >&6 |
3014 | build=$ac_cv_build |
3015 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3016 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3017 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3018 | |
3019 | |
3020 | echo "$as_me:$LINENO: checking host system type" >&5 |
3021 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3022 | if test "${ac_cv_host+set}" = set; then |
3023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3024 | else |
3025 | ac_cv_host_alias=$host_alias |
3026 | test -z "$ac_cv_host_alias" && |
3027 | ac_cv_host_alias=$ac_cv_build_alias |
3028 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3029 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3030 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3031 | { (exit 1); exit 1; }; } |
3032 | |
3033 | fi |
3034 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3035 | echo "${ECHO_T}$ac_cv_host" >&6 |
3036 | host=$ac_cv_host |
3037 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3038 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3039 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3040 | |
3041 | |
3042 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3043 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3044 | if test "${lt_cv_path_SED+set}" = set; then |
3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3046 | else |
3047 | # Loop through the user's path and test for sed and gsed. |
3048 | # Then use that list of sed's as ones to test for truncation. |
3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3050 | for as_dir in $PATH |
3051 | do |
3052 | IFS=$as_save_IFS |
3053 | test -z "$as_dir" && as_dir=. |
3054 | for lt_ac_prog in sed gsed; do |
3055 | for ac_exec_ext in '' $ac_executable_extensions; do |
3056 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3057 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3058 | fi |
3059 | done |
3060 | done |
3061 | done |
3062 | lt_ac_max=0 |
3063 | lt_ac_count=0 |
3064 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3065 | # along with /bin/sed that truncates output. |
3066 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3067 | test ! -f $lt_ac_sed && break |
3068 | cat /dev/null > conftest.in |
3069 | lt_ac_count=0 |
3070 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3071 | # Check for GNU sed and select it if it is found. |
3072 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3073 | lt_cv_path_SED=$lt_ac_sed |
3074 | break |
3075 | fi |
3076 | while true; do |
3077 | cat conftest.in conftest.in >conftest.tmp |
3078 | mv conftest.tmp conftest.in |
3079 | cp conftest.in conftest.nl |
3080 | echo >>conftest.nl |
3081 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3082 | cmp -s conftest.out conftest.nl || break |
3083 | # 10000 chars as input seems more than enough |
3084 | test $lt_ac_count -gt 10 && break |
3085 | lt_ac_count=`expr $lt_ac_count + 1` |
3086 | if test $lt_ac_count -gt $lt_ac_max; then |
3087 | lt_ac_max=$lt_ac_count |
3088 | lt_cv_path_SED=$lt_ac_sed |
3089 | fi |
3090 | done |
3091 | done |
3092 | |
3093 | fi |
3094 | |
3095 | SED=$lt_cv_path_SED |
3096 | echo "$as_me:$LINENO: result: $SED" >&5 |
3097 | echo "${ECHO_T}$SED" >&6 |
3098 | |
3099 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3100 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3101 | if test "${ac_cv_prog_egrep+set}" = set; then |
3102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3103 | else |
3104 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3105 | then ac_cv_prog_egrep='grep -E' |
3106 | else ac_cv_prog_egrep='egrep' |
3107 | fi |
3108 | fi |
3109 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3110 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3111 | EGREP=$ac_cv_prog_egrep |
3112 | |
3113 | |
3114 | |
3115 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3116 | if test "${with_gnu_ld+set}" = set; then |
3117 | withval="$with_gnu_ld" |
3118 | test "$withval" = no || with_gnu_ld=yes |
3119 | else |
3120 | with_gnu_ld=no |
3121 | fi; |
3122 | ac_prog=ld |
3123 | if test "$GCC" = yes; then |
3124 | # Check if gcc -print-prog-name=ld gives a path. |
3125 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3126 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3127 | case $host in |
3128 | *-*-mingw*) |
3129 | # gcc leaves a trailing carriage return which upsets mingw |
3130 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3131 | *) |
3132 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3133 | esac |
3134 | case $ac_prog in |
3135 | # Accept absolute paths. |
3136 | [\\/]* | ?:[\\/]*) |
3137 | re_direlt='/[^/][^/]*/\.\./' |
3138 | # Canonicalize the pathname of ld |
3139 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3140 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3141 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3142 | done |
3143 | test -z "$LD" && LD="$ac_prog" |
3144 | ;; |
3145 | "") |
3146 | # If it fails, then pretend we aren't using GCC. |
3147 | ac_prog=ld |
3148 | ;; |
3149 | *) |
3150 | # If it is relative, then search for the first ld in PATH. |
3151 | with_gnu_ld=unknown |
3152 | ;; |
3153 | esac |
3154 | elif test "$with_gnu_ld" = yes; then |
3155 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3156 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3157 | else |
3158 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3159 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3160 | fi |
3161 | if test "${lt_cv_path_LD+set}" = set; then |
3162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3163 | else |
3164 | if test -z "$LD"; then |
3165 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3166 | for ac_dir in $PATH; do |
3167 | IFS="$lt_save_ifs" |
3168 | test -z "$ac_dir" && ac_dir=. |
3169 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3170 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3171 | # Check to see if the program is GNU ld. I'd rather use --version, |
3172 | # but apparently some GNU ld's only accept -v. |
3173 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3174 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3175 | *GNU* | *'with BFD'*) |
3176 | test "$with_gnu_ld" != no && break |
3177 | ;; |
3178 | *) |
3179 | test "$with_gnu_ld" != yes && break |
3180 | ;; |
3181 | esac |
3182 | fi |
3183 | done |
3184 | IFS="$lt_save_ifs" |
3185 | else |
3186 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3187 | fi |
3188 | fi |
3189 | |
3190 | LD="$lt_cv_path_LD" |
3191 | if test -n "$LD"; then |
3192 | echo "$as_me:$LINENO: result: $LD" >&5 |
3193 | echo "${ECHO_T}$LD" >&6 |
3194 | else |
3195 | echo "$as_me:$LINENO: result: no" >&5 |
3196 | echo "${ECHO_T}no" >&6 |
3197 | fi |
3198 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3199 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3200 | { (exit 1); exit 1; }; } |
3201 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3202 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3203 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3205 | else |
3206 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
3207 | case `$LD -v 2>&1 </dev/null` in |
3208 | *GNU* | *'with BFD'*) |
3209 | lt_cv_prog_gnu_ld=yes |
3210 | ;; |
3211 | *) |
3212 | lt_cv_prog_gnu_ld=no |
3213 | ;; |
3214 | esac |
3215 | fi |
3216 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3217 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3218 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3219 | |
3220 | |
3221 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3222 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3223 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3225 | else |
3226 | lt_cv_ld_reload_flag='-r' |
3227 | fi |
3228 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3229 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3230 | reload_flag=$lt_cv_ld_reload_flag |
3231 | case $reload_flag in |
3232 | "" | " "*) ;; |
3233 | *) reload_flag=" $reload_flag" ;; |
3234 | esac |
3235 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3236 | case $host_os in |
3237 | darwin*) |
3238 | if test "$GCC" = yes; then |
3239 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
3240 | else |
3241 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3242 | fi |
3243 | ;; |
3244 | esac |
3245 | |
3246 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3247 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3248 | if test "${lt_cv_path_NM+set}" = set; then |
3249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3250 | else |
3251 | if test -n "$NM"; then |
3252 | # Let the user override the test. |
3253 | lt_cv_path_NM="$NM" |
3254 | else |
3255 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3256 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3257 | IFS="$lt_save_ifs" |
3258 | test -z "$ac_dir" && ac_dir=. |
3259 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
3260 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3261 | # Check to see if the nm accepts a BSD-compat flag. |
3262 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3263 | # nm: unknown option "B" ignored |
3264 | # Tru64's nm complains that /dev/null is an invalid object file |
3265 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3266 | */dev/null* | *'Invalid file or object type'*) |
3267 | lt_cv_path_NM="$tmp_nm -B" |
3268 | break |
3269 | ;; |
3270 | *) |
3271 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3272 | */dev/null*) |
3273 | lt_cv_path_NM="$tmp_nm -p" |
3274 | break |
3275 | ;; |
3276 | *) |
3277 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3278 | continue # so that we can try to find one that supports BSD flags |
3279 | ;; |
3280 | esac |
3281 | esac |
3282 | fi |
3283 | done |
3284 | IFS="$lt_save_ifs" |
3285 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3286 | fi |
3287 | fi |
3288 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3289 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3290 | NM="$lt_cv_path_NM" |
3291 | |
3292 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3293 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3294 | LN_S=$as_ln_s |
3295 | if test "$LN_S" = "ln -s"; then |
3296 | echo "$as_me:$LINENO: result: yes" >&5 |
3297 | echo "${ECHO_T}yes" >&6 |
3298 | else |
3299 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3300 | echo "${ECHO_T}no, using $LN_S" >&6 |
3301 | fi |
3302 | |
3303 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3304 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3305 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3307 | else |
3308 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3309 | lt_cv_file_magic_test_file= |
3310 | lt_cv_deplibs_check_method='unknown' |
3311 | # Need to set the preceding variable on all platforms that support |
3312 | # interlibrary dependencies. |
3313 | # 'none' -- dependencies not supported. |
3314 | # `unknown' -- same as none, but documents that we really don't know. |
3315 | # 'pass_all' -- all dependencies passed with no checks. |
3316 | # 'test_compile' -- check by making test program. |
3317 | # 'file_magic [[regex]]' -- check by looking for files in library path |
3318 | # which responds to the $file_magic_cmd with a given extended regex. |
3319 | # If you have `file' or equivalent on your system and you're not sure |
3320 | # whether `pass_all' will *always* work, you probably want this one. |
3321 | |
3322 | case $host_os in |
3323 | aix4* | aix5*) |
3324 | lt_cv_deplibs_check_method=pass_all |
3325 | ;; |
3326 | |
3327 | beos*) |
3328 | lt_cv_deplibs_check_method=pass_all |
3329 | ;; |
3330 | |
3331 | bsdi[45]*) |
3332 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3333 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3334 | lt_cv_file_magic_test_file=/shlib/libc.so |
3335 | ;; |
3336 | |
3337 | cygwin*) |
3338 | # func_win32_libid is a shell function defined in ltmain.sh |
3339 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3340 | lt_cv_file_magic_cmd='func_win32_libid' |
3341 | ;; |
3342 | |
3343 | mingw* | pw32*) |
3344 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3345 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3346 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3347 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3348 | ;; |
3349 | |
3350 | darwin* | rhapsody*) |
3351 | lt_cv_deplibs_check_method=pass_all |
3352 | ;; |
3353 | |
3354 | freebsd* | kfreebsd*-gnu) |
3355 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3356 | case $host_cpu in |
3357 | i*86 ) |
3358 | # Not sure whether the presence of OpenBSD here was a mistake. |
3359 | # Let's accept both of them until this is cleared up. |
3360 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3361 | lt_cv_file_magic_cmd=/usr/bin/file |
3362 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3363 | ;; |
3364 | esac |
3365 | else |
3366 | lt_cv_deplibs_check_method=pass_all |
3367 | fi |
3368 | ;; |
3369 | |
3370 | gnu*) |
3371 | lt_cv_deplibs_check_method=pass_all |
3372 | ;; |
3373 | |
3374 | hpux10.20* | hpux11*) |
3375 | lt_cv_file_magic_cmd=/usr/bin/file |
3376 | case "$host_cpu" in |
3377 | ia64*) |
3378 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3379 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3380 | ;; |
3381 | hppa*64*) |
3382 | 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]' |
3383 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3384 | ;; |
3385 | *) |
3386 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
3387 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3388 | ;; |
3389 | esac |
3390 | ;; |
3391 | |
3392 | irix5* | irix6* | nonstopux*) |
3393 | case $LD in |
3394 | *-32|*"-32 ") libmagic=32-bit;; |
3395 | *-n32|*"-n32 ") libmagic=N32;; |
3396 | *-64|*"-64 ") libmagic=64-bit;; |
3397 | *) libmagic=never-match;; |
3398 | esac |
3399 | lt_cv_deplibs_check_method=pass_all |
3400 | ;; |
3401 | |
3402 | # This must be Linux ELF. |
3403 | linux*) |
3404 | case $host_cpu in |
3405 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
3406 | lt_cv_deplibs_check_method=pass_all ;; |
3407 | *) |
3408 | # glibc up to 2.1.1 does not perform some relocations on ARM |
3409 | # this will be overridden with pass_all, but let us keep it just in case |
3410 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3411 | esac |
3412 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3413 | lt_cv_deplibs_check_method=pass_all |
3414 | ;; |
3415 | |
3416 | netbsd*) |
3417 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3418 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3419 | else |
3420 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3421 | fi |
3422 | ;; |
3423 | |
3424 | newos6*) |
3425 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
3426 | lt_cv_file_magic_cmd=/usr/bin/file |
3427 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3428 | ;; |
3429 | |
3430 | nto-qnx*) |
3431 | lt_cv_deplibs_check_method=unknown |
3432 | ;; |
3433 | |
3434 | openbsd*) |
3435 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3436 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
3437 | else |
3438 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3439 | fi |
3440 | ;; |
3441 | |
3442 | osf3* | osf4* | osf5*) |
3443 | lt_cv_deplibs_check_method=pass_all |
3444 | ;; |
3445 | |
3446 | sco3.2v5*) |
3447 | lt_cv_deplibs_check_method=pass_all |
3448 | ;; |
3449 | |
3450 | solaris*) |
3451 | lt_cv_deplibs_check_method=pass_all |
3452 | ;; |
3453 | |
3454 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
3455 | case $host_vendor in |
3456 | motorola) |
3457 | 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]' |
3458 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3459 | ;; |
3460 | ncr) |
3461 | lt_cv_deplibs_check_method=pass_all |
3462 | ;; |
3463 | sequent) |
3464 | lt_cv_file_magic_cmd='/bin/file' |
3465 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3466 | ;; |
3467 | sni) |
3468 | lt_cv_file_magic_cmd='/bin/file' |
3469 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3470 | lt_cv_file_magic_test_file=/lib/libc.so |
3471 | ;; |
3472 | siemens) |
3473 | lt_cv_deplibs_check_method=pass_all |
3474 | ;; |
3475 | esac |
3476 | ;; |
3477 | |
3478 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
3479 | lt_cv_deplibs_check_method=pass_all |
3480 | ;; |
3481 | esac |
3482 | |
3483 | fi |
3484 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3485 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3486 | file_magic_cmd=$lt_cv_file_magic_cmd |
3487 | deplibs_check_method=$lt_cv_deplibs_check_method |
3488 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3489 | |
3490 | |
3491 | |
3492 | |
3493 | # If no C compiler was specified, use CC. |
3494 | LTCC=${LTCC-"$CC"} |
3495 | |
3496 | # Allow CC to be a program name with arguments. |
3497 | compiler=$CC |
3498 | |
3499 | |
3500 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3501 | if test "${enable_libtool_lock+set}" = set; then |
3502 | enableval="$enable_libtool_lock" |
3503 | |
3504 | fi; |
3505 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3506 | |
3507 | # Some flags need to be propagated to the compiler or linker for good |
3508 | # libtool support. |
3509 | case $host in |
3510 | ia64-*-hpux*) |
3511 | # Find out which ABI we are using. |
3512 | echo 'int i;' > conftest.$ac_ext |
3513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3514 | (eval $ac_compile) 2>&5 |
3515 | ac_status=$? |
3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3517 | (exit $ac_status); }; then |
3518 | case `/usr/bin/file conftest.$ac_objext` in |
3519 | *ELF-32*) |
3520 | HPUX_IA64_MODE="32" |
3521 | ;; |
3522 | *ELF-64*) |
3523 | HPUX_IA64_MODE="64" |
3524 | ;; |
3525 | esac |
3526 | fi |
3527 | rm -rf conftest* |
3528 | ;; |
3529 | *-*-irix6*) |
3530 | # Find out which ABI we are using. |
3531 | echo '#line 3531 "configure"' > conftest.$ac_ext |
3532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3533 | (eval $ac_compile) 2>&5 |
3534 | ac_status=$? |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3536 | (exit $ac_status); }; then |
3537 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3538 | case `/usr/bin/file conftest.$ac_objext` in |
3539 | *32-bit*) |
3540 | LD="${LD-ld} -melf32bsmip" |
3541 | ;; |
3542 | *N32*) |
3543 | LD="${LD-ld} -melf32bmipn32" |
3544 | ;; |
3545 | *64-bit*) |
3546 | LD="${LD-ld} -melf64bmip" |
3547 | ;; |
3548 | esac |
3549 | else |
3550 | case `/usr/bin/file conftest.$ac_objext` in |
3551 | *32-bit*) |
3552 | LD="${LD-ld} -32" |
3553 | ;; |
3554 | *N32*) |
3555 | LD="${LD-ld} -n32" |
3556 | ;; |
3557 | *64-bit*) |
3558 | LD="${LD-ld} -64" |
3559 | ;; |
3560 | esac |
3561 | fi |
3562 | fi |
3563 | rm -rf conftest* |
3564 | ;; |
3565 | |
3566 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3567 | # Find out which ABI we are using. |
3568 | echo 'int i;' > conftest.$ac_ext |
3569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3570 | (eval $ac_compile) 2>&5 |
3571 | ac_status=$? |
3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3573 | (exit $ac_status); }; then |
3574 | case "`/usr/bin/file conftest.o`" in |
3575 | *32-bit*) |
3576 | case $host in |
3577 | x86_64-*linux*) |
3578 | LD="${LD-ld} -m elf_i386" |
3579 | ;; |
3580 | ppc64-*linux*|powerpc64-*linux*) |
3581 | LD="${LD-ld} -m elf32ppclinux" |
3582 | ;; |
3583 | s390x-*linux*) |
3584 | LD="${LD-ld} -m elf_s390" |
3585 | ;; |
3586 | sparc64-*linux*) |
3587 | LD="${LD-ld} -m elf32_sparc" |
3588 | ;; |
3589 | esac |
3590 | ;; |
3591 | *64-bit*) |
3592 | case $host in |
3593 | x86_64-*linux*) |
3594 | LD="${LD-ld} -m elf_x86_64" |
3595 | ;; |
3596 | ppc*-*linux*|powerpc*-*linux*) |
3597 | LD="${LD-ld} -m elf64ppc" |
3598 | ;; |
3599 | s390*-*linux*) |
3600 | LD="${LD-ld} -m elf64_s390" |
3601 | ;; |
3602 | sparc*-*linux*) |
3603 | LD="${LD-ld} -m elf64_sparc" |
3604 | ;; |
3605 | esac |
3606 | ;; |
3607 | esac |
3608 | fi |
3609 | rm -rf conftest* |
3610 | ;; |
3611 | |
3612 | *-*-sco3.2v5*) |
3613 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3614 | SAVE_CFLAGS="$CFLAGS" |
3615 | CFLAGS="$CFLAGS -belf" |
3616 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3617 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3618 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3620 | else |
3621 | ac_ext=c |
3622 | ac_cpp='$CPP $CPPFLAGS' |
3623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3626 | |
3627 | cat >conftest.$ac_ext <<_ACEOF |
3628 | /* confdefs.h. */ |
3629 | _ACEOF |
3630 | cat confdefs.h >>conftest.$ac_ext |
3631 | cat >>conftest.$ac_ext <<_ACEOF |
3632 | /* end confdefs.h. */ |
3633 | |
3634 | int |
3635 | main () |
3636 | { |
3637 | |
3638 | ; |
3639 | return 0; |
3640 | } |
3641 | _ACEOF |
3642 | rm -f conftest.$ac_objext conftest$ac_exeext |
3643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3644 | (eval $ac_link) 2>conftest.er1 |
3645 | ac_status=$? |
3646 | grep -v '^ *+' conftest.er1 >conftest.err |
3647 | rm -f conftest.er1 |
3648 | cat conftest.err >&5 |
3649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3650 | (exit $ac_status); } && |
3651 | { ac_try='test -z "$ac_c_werror_flag" |
3652 | || test ! -s conftest.err' |
3653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3654 | (eval $ac_try) 2>&5 |
3655 | ac_status=$? |
3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3657 | (exit $ac_status); }; } && |
3658 | { ac_try='test -s conftest$ac_exeext' |
3659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3660 | (eval $ac_try) 2>&5 |
3661 | ac_status=$? |
3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3663 | (exit $ac_status); }; }; then |
3664 | lt_cv_cc_needs_belf=yes |
3665 | else |
3666 | echo "$as_me: failed program was:" >&5 |
3667 | sed 's/^/| /' conftest.$ac_ext >&5 |
3668 | |
3669 | lt_cv_cc_needs_belf=no |
3670 | fi |
3671 | rm -f conftest.err conftest.$ac_objext \ |
3672 | conftest$ac_exeext conftest.$ac_ext |
3673 | ac_ext=c |
3674 | ac_cpp='$CPP $CPPFLAGS' |
3675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3678 | |
3679 | fi |
3680 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3681 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
3682 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3683 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3684 | CFLAGS="$SAVE_CFLAGS" |
3685 | fi |
3686 | ;; |
3687 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
3688 | if test -n "$ac_tool_prefix"; then |
3689 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
3690 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
3691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3693 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3695 | else |
3696 | if test -n "$DLLTOOL"; then |
3697 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
3698 | else |
3699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3700 | for as_dir in $PATH |
3701 | do |
3702 | IFS=$as_save_IFS |
3703 | test -z "$as_dir" && as_dir=. |
3704 | for ac_exec_ext in '' $ac_executable_extensions; do |
3705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3706 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
3707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3708 | break 2 |
3709 | fi |
3710 | done |
3711 | done |
3712 | |
3713 | fi |
3714 | fi |
3715 | DLLTOOL=$ac_cv_prog_DLLTOOL |
3716 | if test -n "$DLLTOOL"; then |
3717 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
3718 | echo "${ECHO_T}$DLLTOOL" >&6 |
3719 | else |
3720 | echo "$as_me:$LINENO: result: no" >&5 |
3721 | echo "${ECHO_T}no" >&6 |
3722 | fi |
3723 | |
3724 | fi |
3725 | if test -z "$ac_cv_prog_DLLTOOL"; then |
3726 | ac_ct_DLLTOOL=$DLLTOOL |
3727 | # Extract the first word of "dlltool", so it can be a program name with args. |
3728 | set dummy dlltool; ac_word=$2 |
3729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3731 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3733 | else |
3734 | if test -n "$ac_ct_DLLTOOL"; then |
3735 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
3736 | else |
3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3738 | for as_dir in $PATH |
3739 | do |
3740 | IFS=$as_save_IFS |
3741 | test -z "$as_dir" && as_dir=. |
3742 | for ac_exec_ext in '' $ac_executable_extensions; do |
3743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3744 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
3745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3746 | break 2 |
3747 | fi |
3748 | done |
3749 | done |
3750 | |
3751 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
3752 | fi |
3753 | fi |
3754 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
3755 | if test -n "$ac_ct_DLLTOOL"; then |
3756 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
3757 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
3758 | else |
3759 | echo "$as_me:$LINENO: result: no" >&5 |
3760 | echo "${ECHO_T}no" >&6 |
3761 | fi |
3762 | |
3763 | DLLTOOL=$ac_ct_DLLTOOL |
3764 | else |
3765 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
3766 | fi |
3767 | |
3768 | if test -n "$ac_tool_prefix"; then |
3769 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
3770 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
3771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3773 | if test "${ac_cv_prog_AS+set}" = set; then |
3774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3775 | else |
3776 | if test -n "$AS"; then |
3777 | ac_cv_prog_AS="$AS" # Let the user override the test. |
3778 | else |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3780 | for as_dir in $PATH |
3781 | do |
3782 | IFS=$as_save_IFS |
3783 | test -z "$as_dir" && as_dir=. |
3784 | for ac_exec_ext in '' $ac_executable_extensions; do |
3785 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3786 | ac_cv_prog_AS="${ac_tool_prefix}as" |
3787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3788 | break 2 |
3789 | fi |
3790 | done |
3791 | done |
3792 | |
3793 | fi |
3794 | fi |
3795 | AS=$ac_cv_prog_AS |
3796 | if test -n "$AS"; then |
3797 | echo "$as_me:$LINENO: result: $AS" >&5 |
3798 | echo "${ECHO_T}$AS" >&6 |
3799 | else |
3800 | echo "$as_me:$LINENO: result: no" >&5 |
3801 | echo "${ECHO_T}no" >&6 |
3802 | fi |
3803 | |
3804 | fi |
3805 | if test -z "$ac_cv_prog_AS"; then |
3806 | ac_ct_AS=$AS |
3807 | # Extract the first word of "as", so it can be a program name with args. |
3808 | set dummy as; ac_word=$2 |
3809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3811 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3813 | else |
3814 | if test -n "$ac_ct_AS"; then |
3815 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
3816 | else |
3817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3818 | for as_dir in $PATH |
3819 | do |
3820 | IFS=$as_save_IFS |
3821 | test -z "$as_dir" && as_dir=. |
3822 | for ac_exec_ext in '' $ac_executable_extensions; do |
3823 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3824 | ac_cv_prog_ac_ct_AS="as" |
3825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3826 | break 2 |
3827 | fi |
3828 | done |
3829 | done |
3830 | |
3831 | test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" |
3832 | fi |
3833 | fi |
3834 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
3835 | if test -n "$ac_ct_AS"; then |
3836 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
3837 | echo "${ECHO_T}$ac_ct_AS" >&6 |
3838 | else |
3839 | echo "$as_me:$LINENO: result: no" >&5 |
3840 | echo "${ECHO_T}no" >&6 |
3841 | fi |
3842 | |
3843 | AS=$ac_ct_AS |
3844 | else |
3845 | AS="$ac_cv_prog_AS" |
3846 | fi |
3847 | |
3848 | if test -n "$ac_tool_prefix"; then |
3849 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
3850 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
3851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3853 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
3854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3855 | else |
3856 | if test -n "$OBJDUMP"; then |
3857 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
3858 | else |
3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3860 | for as_dir in $PATH |
3861 | do |
3862 | IFS=$as_save_IFS |
3863 | test -z "$as_dir" && as_dir=. |
3864 | for ac_exec_ext in '' $ac_executable_extensions; do |
3865 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3866 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
3867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3868 | break 2 |
3869 | fi |
3870 | done |
3871 | done |
3872 | |
3873 | fi |
3874 | fi |
3875 | OBJDUMP=$ac_cv_prog_OBJDUMP |
3876 | if test -n "$OBJDUMP"; then |
3877 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
3878 | echo "${ECHO_T}$OBJDUMP" >&6 |
3879 | else |
3880 | echo "$as_me:$LINENO: result: no" >&5 |
3881 | echo "${ECHO_T}no" >&6 |
3882 | fi |
3883 | |
3884 | fi |
3885 | if test -z "$ac_cv_prog_OBJDUMP"; then |
3886 | ac_ct_OBJDUMP=$OBJDUMP |
3887 | # Extract the first word of "objdump", so it can be a program name with args. |
3888 | set dummy objdump; ac_word=$2 |
3889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3891 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
3892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3893 | else |
3894 | if test -n "$ac_ct_OBJDUMP"; then |
3895 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
3896 | else |
3897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3898 | for as_dir in $PATH |
3899 | do |
3900 | IFS=$as_save_IFS |
3901 | test -z "$as_dir" && as_dir=. |
3902 | for ac_exec_ext in '' $ac_executable_extensions; do |
3903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3904 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
3905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3906 | break 2 |
3907 | fi |
3908 | done |
3909 | done |
3910 | |
3911 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" |
3912 | fi |
3913 | fi |
3914 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
3915 | if test -n "$ac_ct_OBJDUMP"; then |
3916 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
3917 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 |
3918 | else |
3919 | echo "$as_me:$LINENO: result: no" >&5 |
3920 | echo "${ECHO_T}no" >&6 |
3921 | fi |
3922 | |
3923 | OBJDUMP=$ac_ct_OBJDUMP |
3924 | else |
3925 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
3926 | fi |
3927 | |
3928 | ;; |
3929 | |
3930 | esac |
3931 | |
3932 | need_locks="$enable_libtool_lock" |
3933 | |
3934 | |
3935 | ac_ext=c |
3936 | ac_cpp='$CPP $CPPFLAGS' |
3937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3940 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3941 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3942 | # On Suns, sometimes $CPP names a directory. |
3943 | if test -n "$CPP" && test -d "$CPP"; then |
3944 | CPP= |
3945 | fi |
3946 | if test -z "$CPP"; then |
3947 | if test "${ac_cv_prog_CPP+set}" = set; then |
3948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3949 | else |
3950 | # Double quotes because CPP needs to be expanded |
3951 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3952 | do |
3953 | ac_preproc_ok=false |
3954 | for ac_c_preproc_warn_flag in '' yes |
3955 | do |
3956 | # Use a header file that comes with gcc, so configuring glibc |
3957 | # with a fresh cross-compiler works. |
3958 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3959 | # <limits.h> exists even on freestanding compilers. |
3960 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3961 | # not just through cpp. "Syntax error" is here to catch this case. |
3962 | cat >conftest.$ac_ext <<_ACEOF |
3963 | /* confdefs.h. */ |
3964 | _ACEOF |
3965 | cat confdefs.h >>conftest.$ac_ext |
3966 | cat >>conftest.$ac_ext <<_ACEOF |
3967 | /* end confdefs.h. */ |
3968 | #ifdef __STDC__ |
3969 | # include <limits.h> |
3970 | #else |
3971 | # include <assert.h> |
3972 | #endif |
3973 | Syntax error |
3974 | _ACEOF |
3975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3977 | ac_status=$? |
3978 | grep -v '^ *+' conftest.er1 >conftest.err |
3979 | rm -f conftest.er1 |
3980 | cat conftest.err >&5 |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3982 | (exit $ac_status); } >/dev/null; then |
3983 | if test -s conftest.err; then |
3984 | ac_cpp_err=$ac_c_preproc_warn_flag |
3985 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3986 | else |
3987 | ac_cpp_err= |
3988 | fi |
3989 | else |
3990 | ac_cpp_err=yes |
3991 | fi |
3992 | if test -z "$ac_cpp_err"; then |
3993 | : |
3994 | else |
3995 | echo "$as_me: failed program was:" >&5 |
3996 | sed 's/^/| /' conftest.$ac_ext >&5 |
3997 | |
3998 | # Broken: fails on valid input. |
3999 | continue |
4000 | fi |
4001 | rm -f conftest.err conftest.$ac_ext |
4002 | |
4003 | # OK, works on sane cases. Now check whether non-existent headers |
4004 | # can be detected and how. |
4005 | cat >conftest.$ac_ext <<_ACEOF |
4006 | /* confdefs.h. */ |
4007 | _ACEOF |
4008 | cat confdefs.h >>conftest.$ac_ext |
4009 | cat >>conftest.$ac_ext <<_ACEOF |
4010 | /* end confdefs.h. */ |
4011 | #include <ac_nonexistent.h> |
4012 | _ACEOF |
4013 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4014 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4015 | ac_status=$? |
4016 | grep -v '^ *+' conftest.er1 >conftest.err |
4017 | rm -f conftest.er1 |
4018 | cat conftest.err >&5 |
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4020 | (exit $ac_status); } >/dev/null; then |
4021 | if test -s conftest.err; then |
4022 | ac_cpp_err=$ac_c_preproc_warn_flag |
4023 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4024 | else |
4025 | ac_cpp_err= |
4026 | fi |
4027 | else |
4028 | ac_cpp_err=yes |
4029 | fi |
4030 | if test -z "$ac_cpp_err"; then |
4031 | # Broken: success on invalid input. |
4032 | continue |
4033 | else |
4034 | echo "$as_me: failed program was:" >&5 |
4035 | sed 's/^/| /' conftest.$ac_ext >&5 |
4036 | |
4037 | # Passes both tests. |
4038 | ac_preproc_ok=: |
4039 | break |
4040 | fi |
4041 | rm -f conftest.err conftest.$ac_ext |
4042 | |
4043 | done |
4044 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4045 | rm -f conftest.err conftest.$ac_ext |
4046 | if $ac_preproc_ok; then |
4047 | break |
4048 | fi |
4049 | |
4050 | done |
4051 | ac_cv_prog_CPP=$CPP |
4052 | |
4053 | fi |
4054 | CPP=$ac_cv_prog_CPP |
4055 | else |
4056 | ac_cv_prog_CPP=$CPP |
4057 | fi |
4058 | echo "$as_me:$LINENO: result: $CPP" >&5 |
4059 | echo "${ECHO_T}$CPP" >&6 |
4060 | ac_preproc_ok=false |
4061 | for ac_c_preproc_warn_flag in '' yes |
4062 | do |
4063 | # Use a header file that comes with gcc, so configuring glibc |
4064 | # with a fresh cross-compiler works. |
4065 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4066 | # <limits.h> exists even on freestanding compilers. |
4067 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4068 | # not just through cpp. "Syntax error" is here to catch this case. |
4069 | cat >conftest.$ac_ext <<_ACEOF |
4070 | /* confdefs.h. */ |
4071 | _ACEOF |
4072 | cat confdefs.h >>conftest.$ac_ext |
4073 | cat >>conftest.$ac_ext <<_ACEOF |
4074 | /* end confdefs.h. */ |
4075 | #ifdef __STDC__ |
4076 | # include <limits.h> |
4077 | #else |
4078 | # include <assert.h> |
4079 | #endif |
4080 | Syntax error |
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 | : |
4101 | else |
4102 | echo "$as_me: failed program was:" >&5 |
4103 | sed 's/^/| /' conftest.$ac_ext >&5 |
4104 | |
4105 | # Broken: fails on valid input. |
4106 | continue |
4107 | fi |
4108 | rm -f conftest.err conftest.$ac_ext |
4109 | |
4110 | # OK, works on sane cases. Now check whether non-existent headers |
4111 | # can be detected and how. |
4112 | cat >conftest.$ac_ext <<_ACEOF |
4113 | /* confdefs.h. */ |
4114 | _ACEOF |
4115 | cat confdefs.h >>conftest.$ac_ext |
4116 | cat >>conftest.$ac_ext <<_ACEOF |
4117 | /* end confdefs.h. */ |
4118 | #include <ac_nonexistent.h> |
4119 | _ACEOF |
4120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4122 | ac_status=$? |
4123 | grep -v '^ *+' conftest.er1 >conftest.err |
4124 | rm -f conftest.er1 |
4125 | cat conftest.err >&5 |
4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4127 | (exit $ac_status); } >/dev/null; then |
4128 | if test -s conftest.err; then |
4129 | ac_cpp_err=$ac_c_preproc_warn_flag |
4130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4131 | else |
4132 | ac_cpp_err= |
4133 | fi |
4134 | else |
4135 | ac_cpp_err=yes |
4136 | fi |
4137 | if test -z "$ac_cpp_err"; then |
4138 | # Broken: success on invalid input. |
4139 | continue |
4140 | else |
4141 | echo "$as_me: failed program was:" >&5 |
4142 | sed 's/^/| /' conftest.$ac_ext >&5 |
4143 | |
4144 | # Passes both tests. |
4145 | ac_preproc_ok=: |
4146 | break |
4147 | fi |
4148 | rm -f conftest.err conftest.$ac_ext |
4149 | |
4150 | done |
4151 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4152 | rm -f conftest.err conftest.$ac_ext |
4153 | if $ac_preproc_ok; then |
4154 | : |
4155 | else |
4156 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4157 | See \`config.log' for more details." >&5 |
4158 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4159 | See \`config.log' for more details." >&2;} |
4160 | { (exit 1); exit 1; }; } |
4161 | fi |
4162 | |
4163 | ac_ext=c |
4164 | ac_cpp='$CPP $CPPFLAGS' |
4165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4168 | |
4169 | |
4170 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4171 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4172 | if test "${ac_cv_header_stdc+set}" = set; then |
4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4174 | else |
4175 | cat >conftest.$ac_ext <<_ACEOF |
4176 | /* confdefs.h. */ |
4177 | _ACEOF |
4178 | cat confdefs.h >>conftest.$ac_ext |
4179 | cat >>conftest.$ac_ext <<_ACEOF |
4180 | /* end confdefs.h. */ |
4181 | #include <stdlib.h> |
4182 | #include <stdarg.h> |
4183 | #include <string.h> |
4184 | #include <float.h> |
4185 | |
4186 | int |
4187 | main () |
4188 | { |
4189 | |
4190 | ; |
4191 | return 0; |
4192 | } |
4193 | _ACEOF |
4194 | rm -f conftest.$ac_objext |
4195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4196 | (eval $ac_compile) 2>conftest.er1 |
4197 | ac_status=$? |
4198 | grep -v '^ *+' conftest.er1 >conftest.err |
4199 | rm -f conftest.er1 |
4200 | cat conftest.err >&5 |
4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4202 | (exit $ac_status); } && |
4203 | { ac_try='test -z "$ac_c_werror_flag" |
4204 | || test ! -s conftest.err' |
4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4206 | (eval $ac_try) 2>&5 |
4207 | ac_status=$? |
4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4209 | (exit $ac_status); }; } && |
4210 | { ac_try='test -s conftest.$ac_objext' |
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4212 | (eval $ac_try) 2>&5 |
4213 | ac_status=$? |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4215 | (exit $ac_status); }; }; then |
4216 | ac_cv_header_stdc=yes |
4217 | else |
4218 | echo "$as_me: failed program was:" >&5 |
4219 | sed 's/^/| /' conftest.$ac_ext >&5 |
4220 | |
4221 | ac_cv_header_stdc=no |
4222 | fi |
4223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4224 | |
4225 | if test $ac_cv_header_stdc = yes; then |
4226 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4227 | cat >conftest.$ac_ext <<_ACEOF |
4228 | /* confdefs.h. */ |
4229 | _ACEOF |
4230 | cat confdefs.h >>conftest.$ac_ext |
4231 | cat >>conftest.$ac_ext <<_ACEOF |
4232 | /* end confdefs.h. */ |
4233 | #include <string.h> |
4234 | |
4235 | _ACEOF |
4236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4237 | $EGREP "memchr" >/dev/null 2>&1; then |
4238 | : |
4239 | else |
4240 | ac_cv_header_stdc=no |
4241 | fi |
4242 | rm -f conftest* |
4243 | |
4244 | fi |
4245 | |
4246 | if test $ac_cv_header_stdc = yes; then |
4247 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4248 | cat >conftest.$ac_ext <<_ACEOF |
4249 | /* confdefs.h. */ |
4250 | _ACEOF |
4251 | cat confdefs.h >>conftest.$ac_ext |
4252 | cat >>conftest.$ac_ext <<_ACEOF |
4253 | /* end confdefs.h. */ |
4254 | #include <stdlib.h> |
4255 | |
4256 | _ACEOF |
4257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4258 | $EGREP "free" >/dev/null 2>&1; then |
4259 | : |
4260 | else |
4261 | ac_cv_header_stdc=no |
4262 | fi |
4263 | rm -f conftest* |
4264 | |
4265 | fi |
4266 | |
4267 | if test $ac_cv_header_stdc = yes; then |
4268 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4269 | if test "$cross_compiling" = yes; then |
4270 | : |
4271 | else |
4272 | cat >conftest.$ac_ext <<_ACEOF |
4273 | /* confdefs.h. */ |
4274 | _ACEOF |
4275 | cat confdefs.h >>conftest.$ac_ext |
4276 | cat >>conftest.$ac_ext <<_ACEOF |
4277 | /* end confdefs.h. */ |
4278 | #include <ctype.h> |
4279 | #if ((' ' & 0x0FF) == 0x020) |
4280 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4281 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4282 | #else |
4283 | # define ISLOWER(c) \ |
4284 | (('a' <= (c) && (c) <= 'i') \ |
4285 | || ('j' <= (c) && (c) <= 'r') \ |
4286 | || ('s' <= (c) && (c) <= 'z')) |
4287 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4288 | #endif |
4289 | |
4290 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4291 | int |
4292 | main () |
4293 | { |
4294 | int i; |
4295 | for (i = 0; i < 256; i++) |
4296 | if (XOR (islower (i), ISLOWER (i)) |
4297 | || toupper (i) != TOUPPER (i)) |
4298 | exit(2); |
4299 | exit (0); |
4300 | } |
4301 | _ACEOF |
4302 | rm -f conftest$ac_exeext |
4303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4304 | (eval $ac_link) 2>&5 |
4305 | ac_status=$? |
4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4309 | (eval $ac_try) 2>&5 |
4310 | ac_status=$? |
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4312 | (exit $ac_status); }; }; then |
4313 | : |
4314 | else |
4315 | echo "$as_me: program exited with status $ac_status" >&5 |
4316 | echo "$as_me: failed program was:" >&5 |
4317 | sed 's/^/| /' conftest.$ac_ext >&5 |
4318 | |
4319 | ( exit $ac_status ) |
4320 | ac_cv_header_stdc=no |
4321 | fi |
4322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4323 | fi |
4324 | fi |
4325 | fi |
4326 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4327 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4328 | if test $ac_cv_header_stdc = yes; then |
4329 | |
4330 | cat >>confdefs.h <<\_ACEOF |
4331 | #define STDC_HEADERS 1 |
4332 | _ACEOF |
4333 | |
4334 | fi |
4335 | |
4336 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4337 | |
4338 | |
4339 | |
4340 | |
4341 | |
4342 | |
4343 | |
4344 | |
4345 | |
4346 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4347 | inttypes.h stdint.h unistd.h |
4348 | do |
4349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4354 | else |
4355 | cat >conftest.$ac_ext <<_ACEOF |
4356 | /* confdefs.h. */ |
4357 | _ACEOF |
4358 | cat confdefs.h >>conftest.$ac_ext |
4359 | cat >>conftest.$ac_ext <<_ACEOF |
4360 | /* end confdefs.h. */ |
4361 | $ac_includes_default |
4362 | |
4363 | #include <$ac_header> |
4364 | _ACEOF |
4365 | rm -f conftest.$ac_objext |
4366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4367 | (eval $ac_compile) 2>conftest.er1 |
4368 | ac_status=$? |
4369 | grep -v '^ *+' conftest.er1 >conftest.err |
4370 | rm -f conftest.er1 |
4371 | cat conftest.err >&5 |
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4373 | (exit $ac_status); } && |
4374 | { ac_try='test -z "$ac_c_werror_flag" |
4375 | || test ! -s conftest.err' |
4376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4377 | (eval $ac_try) 2>&5 |
4378 | ac_status=$? |
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4380 | (exit $ac_status); }; } && |
4381 | { ac_try='test -s conftest.$ac_objext' |
4382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4383 | (eval $ac_try) 2>&5 |
4384 | ac_status=$? |
4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4386 | (exit $ac_status); }; }; then |
4387 | eval "$as_ac_Header=yes" |
4388 | else |
4389 | echo "$as_me: failed program was:" >&5 |
4390 | sed 's/^/| /' conftest.$ac_ext >&5 |
4391 | |
4392 | eval "$as_ac_Header=no" |
4393 | fi |
4394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4395 | fi |
4396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4398 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4399 | cat >>confdefs.h <<_ACEOF |
4400 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4401 | _ACEOF |
4402 | |
4403 | fi |
4404 | |
4405 | done |
4406 | |
4407 | |
4408 | |
4409 | for ac_header in dlfcn.h |
4410 | do |
4411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4413 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4417 | fi |
4418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4420 | else |
4421 | # Is the header compilable? |
4422 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4423 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4424 | cat >conftest.$ac_ext <<_ACEOF |
4425 | /* confdefs.h. */ |
4426 | _ACEOF |
4427 | cat confdefs.h >>conftest.$ac_ext |
4428 | cat >>conftest.$ac_ext <<_ACEOF |
4429 | /* end confdefs.h. */ |
4430 | $ac_includes_default |
4431 | #include <$ac_header> |
4432 | _ACEOF |
4433 | rm -f conftest.$ac_objext |
4434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4435 | (eval $ac_compile) 2>conftest.er1 |
4436 | ac_status=$? |
4437 | grep -v '^ *+' conftest.er1 >conftest.err |
4438 | rm -f conftest.er1 |
4439 | cat conftest.err >&5 |
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4441 | (exit $ac_status); } && |
4442 | { ac_try='test -z "$ac_c_werror_flag" |
4443 | || test ! -s conftest.err' |
4444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4445 | (eval $ac_try) 2>&5 |
4446 | ac_status=$? |
4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4448 | (exit $ac_status); }; } && |
4449 | { ac_try='test -s conftest.$ac_objext' |
4450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4451 | (eval $ac_try) 2>&5 |
4452 | ac_status=$? |
4453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4454 | (exit $ac_status); }; }; then |
4455 | ac_header_compiler=yes |
4456 | else |
4457 | echo "$as_me: failed program was:" >&5 |
4458 | sed 's/^/| /' conftest.$ac_ext >&5 |
4459 | |
4460 | ac_header_compiler=no |
4461 | fi |
4462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4463 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4464 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4465 | |
4466 | # Is the header present? |
4467 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4468 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4469 | cat >conftest.$ac_ext <<_ACEOF |
4470 | /* confdefs.h. */ |
4471 | _ACEOF |
4472 | cat confdefs.h >>conftest.$ac_ext |
4473 | cat >>conftest.$ac_ext <<_ACEOF |
4474 | /* end confdefs.h. */ |
4475 | #include <$ac_header> |
4476 | _ACEOF |
4477 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4479 | ac_status=$? |
4480 | grep -v '^ *+' conftest.er1 >conftest.err |
4481 | rm -f conftest.er1 |
4482 | cat conftest.err >&5 |
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4484 | (exit $ac_status); } >/dev/null; then |
4485 | if test -s conftest.err; then |
4486 | ac_cpp_err=$ac_c_preproc_warn_flag |
4487 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4488 | else |
4489 | ac_cpp_err= |
4490 | fi |
4491 | else |
4492 | ac_cpp_err=yes |
4493 | fi |
4494 | if test -z "$ac_cpp_err"; then |
4495 | ac_header_preproc=yes |
4496 | else |
4497 | echo "$as_me: failed program was:" >&5 |
4498 | sed 's/^/| /' conftest.$ac_ext >&5 |
4499 | |
4500 | ac_header_preproc=no |
4501 | fi |
4502 | rm -f conftest.err conftest.$ac_ext |
4503 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4504 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4505 | |
4506 | # So? What about this header? |
4507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4508 | yes:no: ) |
4509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4513 | ac_header_preproc=yes |
4514 | ;; |
4515 | no:yes:* ) |
4516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4528 | ( |
4529 | cat <<\_ASBOX |
4530 | ## ------------------------------------------ ## |
4531 | ## Report this to the AC_PACKAGE_NAME lists. ## |
4532 | ## ------------------------------------------ ## |
4533 | _ASBOX |
4534 | ) | |
4535 | sed "s/^/$as_me: WARNING: /" >&2 |
4536 | ;; |
4537 | esac |
4538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4542 | else |
4543 | eval "$as_ac_Header=\$ac_header_preproc" |
4544 | fi |
4545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4547 | |
4548 | fi |
4549 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4550 | cat >>confdefs.h <<_ACEOF |
4551 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4552 | _ACEOF |
4553 | |
4554 | fi |
4555 | |
4556 | done |
4557 | |
4558 | ac_ext=cc |
4559 | ac_cpp='$CXXCPP $CPPFLAGS' |
4560 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4561 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4562 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4563 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
4564 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
4565 | if test -z "$CXXCPP"; then |
4566 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
4567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4568 | else |
4569 | # Double quotes because CXXCPP needs to be expanded |
4570 | for CXXCPP in "$CXX -E" "/lib/cpp" |
4571 | do |
4572 | ac_preproc_ok=false |
4573 | for ac_cxx_preproc_warn_flag in '' yes |
4574 | do |
4575 | # Use a header file that comes with gcc, so configuring glibc |
4576 | # with a fresh cross-compiler works. |
4577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4578 | # <limits.h> exists even on freestanding compilers. |
4579 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4580 | # not just through cpp. "Syntax error" is here to catch this case. |
4581 | cat >conftest.$ac_ext <<_ACEOF |
4582 | /* confdefs.h. */ |
4583 | _ACEOF |
4584 | cat confdefs.h >>conftest.$ac_ext |
4585 | cat >>conftest.$ac_ext <<_ACEOF |
4586 | /* end confdefs.h. */ |
4587 | #ifdef __STDC__ |
4588 | # include <limits.h> |
4589 | #else |
4590 | # include <assert.h> |
4591 | #endif |
4592 | Syntax error |
4593 | _ACEOF |
4594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4595 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4596 | ac_status=$? |
4597 | grep -v '^ *+' conftest.er1 >conftest.err |
4598 | rm -f conftest.er1 |
4599 | cat conftest.err >&5 |
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4601 | (exit $ac_status); } >/dev/null; then |
4602 | if test -s conftest.err; then |
4603 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
4604 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
4605 | else |
4606 | ac_cpp_err= |
4607 | fi |
4608 | else |
4609 | ac_cpp_err=yes |
4610 | fi |
4611 | if test -z "$ac_cpp_err"; then |
4612 | : |
4613 | else |
4614 | echo "$as_me: failed program was:" >&5 |
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
4616 | |
4617 | # Broken: fails on valid input. |
4618 | continue |
4619 | fi |
4620 | rm -f conftest.err conftest.$ac_ext |
4621 | |
4622 | # OK, works on sane cases. Now check whether non-existent headers |
4623 | # can be detected and how. |
4624 | cat >conftest.$ac_ext <<_ACEOF |
4625 | /* confdefs.h. */ |
4626 | _ACEOF |
4627 | cat confdefs.h >>conftest.$ac_ext |
4628 | cat >>conftest.$ac_ext <<_ACEOF |
4629 | /* end confdefs.h. */ |
4630 | #include <ac_nonexistent.h> |
4631 | _ACEOF |
4632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4634 | ac_status=$? |
4635 | grep -v '^ *+' conftest.er1 >conftest.err |
4636 | rm -f conftest.er1 |
4637 | cat conftest.err >&5 |
4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4639 | (exit $ac_status); } >/dev/null; then |
4640 | if test -s conftest.err; then |
4641 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
4642 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
4643 | else |
4644 | ac_cpp_err= |
4645 | fi |
4646 | else |
4647 | ac_cpp_err=yes |
4648 | fi |
4649 | if test -z "$ac_cpp_err"; then |
4650 | # Broken: success on invalid input. |
4651 | continue |
4652 | else |
4653 | echo "$as_me: failed program was:" >&5 |
4654 | sed 's/^/| /' conftest.$ac_ext >&5 |
4655 | |
4656 | # Passes both tests. |
4657 | ac_preproc_ok=: |
4658 | break |
4659 | fi |
4660 | rm -f conftest.err conftest.$ac_ext |
4661 | |
4662 | done |
4663 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4664 | rm -f conftest.err conftest.$ac_ext |
4665 | if $ac_preproc_ok; then |
4666 | break |
4667 | fi |
4668 | |
4669 | done |
4670 | ac_cv_prog_CXXCPP=$CXXCPP |
4671 | |
4672 | fi |
4673 | CXXCPP=$ac_cv_prog_CXXCPP |
4674 | else |
4675 | ac_cv_prog_CXXCPP=$CXXCPP |
4676 | fi |
4677 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
4678 | echo "${ECHO_T}$CXXCPP" >&6 |
4679 | ac_preproc_ok=false |
4680 | for ac_cxx_preproc_warn_flag in '' yes |
4681 | do |
4682 | # Use a header file that comes with gcc, so configuring glibc |
4683 | # with a fresh cross-compiler works. |
4684 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4685 | # <limits.h> exists even on freestanding compilers. |
4686 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4687 | # not just through cpp. "Syntax error" is here to catch this case. |
4688 | cat >conftest.$ac_ext <<_ACEOF |
4689 | /* confdefs.h. */ |
4690 | _ACEOF |
4691 | cat confdefs.h >>conftest.$ac_ext |
4692 | cat >>conftest.$ac_ext <<_ACEOF |
4693 | /* end confdefs.h. */ |
4694 | #ifdef __STDC__ |
4695 | # include <limits.h> |
4696 | #else |
4697 | # include <assert.h> |
4698 | #endif |
4699 | Syntax error |
4700 | _ACEOF |
4701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4703 | ac_status=$? |
4704 | grep -v '^ *+' conftest.er1 >conftest.err |
4705 | rm -f conftest.er1 |
4706 | cat conftest.err >&5 |
4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4708 | (exit $ac_status); } >/dev/null; then |
4709 | if test -s conftest.err; then |
4710 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
4711 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
4712 | else |
4713 | ac_cpp_err= |
4714 | fi |
4715 | else |
4716 | ac_cpp_err=yes |
4717 | fi |
4718 | if test -z "$ac_cpp_err"; then |
4719 | : |
4720 | else |
4721 | echo "$as_me: failed program was:" >&5 |
4722 | sed 's/^/| /' conftest.$ac_ext >&5 |
4723 | |
4724 | # Broken: fails on valid input. |
4725 | continue |
4726 | fi |
4727 | rm -f conftest.err conftest.$ac_ext |
4728 | |
4729 | # OK, works on sane cases. Now check whether non-existent headers |
4730 | # can be detected and how. |
4731 | cat >conftest.$ac_ext <<_ACEOF |
4732 | /* confdefs.h. */ |
4733 | _ACEOF |
4734 | cat confdefs.h >>conftest.$ac_ext |
4735 | cat >>conftest.$ac_ext <<_ACEOF |
4736 | /* end confdefs.h. */ |
4737 | #include <ac_nonexistent.h> |
4738 | _ACEOF |
4739 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4740 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4741 | ac_status=$? |
4742 | grep -v '^ *+' conftest.er1 >conftest.err |
4743 | rm -f conftest.er1 |
4744 | cat conftest.err >&5 |
4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4746 | (exit $ac_status); } >/dev/null; then |
4747 | if test -s conftest.err; then |
4748 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
4749 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
4750 | else |
4751 | ac_cpp_err= |
4752 | fi |
4753 | else |
4754 | ac_cpp_err=yes |
4755 | fi |
4756 | if test -z "$ac_cpp_err"; then |
4757 | # Broken: success on invalid input. |
4758 | continue |
4759 | else |
4760 | echo "$as_me: failed program was:" >&5 |
4761 | sed 's/^/| /' conftest.$ac_ext >&5 |
4762 | |
4763 | # Passes both tests. |
4764 | ac_preproc_ok=: |
4765 | break |
4766 | fi |
4767 | rm -f conftest.err conftest.$ac_ext |
4768 | |
4769 | done |
4770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4771 | rm -f conftest.err conftest.$ac_ext |
4772 | if $ac_preproc_ok; then |
4773 | : |
4774 | else |
4775 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
4776 | See \`config.log' for more details." >&5 |
4777 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
4778 | See \`config.log' for more details." >&2;} |
4779 | { (exit 1); exit 1; }; } |
4780 | fi |
4781 | |
4782 | ac_ext=cc |
4783 | ac_cpp='$CXXCPP $CPPFLAGS' |
4784 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4785 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4786 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4787 | |
4788 | |
4789 | ac_ext=f |
4790 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
4791 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4792 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
4793 | if test -n "$ac_tool_prefix"; then |
4794 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
4795 | do |
4796 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4797 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4800 | if test "${ac_cv_prog_F77+set}" = set; then |
4801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4802 | else |
4803 | if test -n "$F77"; then |
4804 | ac_cv_prog_F77="$F77" # Let the user override the test. |
4805 | else |
4806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4807 | for as_dir in $PATH |
4808 | do |
4809 | IFS=$as_save_IFS |
4810 | test -z "$as_dir" && as_dir=. |
4811 | for ac_exec_ext in '' $ac_executable_extensions; do |
4812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4813 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
4814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4815 | break 2 |
4816 | fi |
4817 | done |
4818 | done |
4819 | |
4820 | fi |
4821 | fi |
4822 | F77=$ac_cv_prog_F77 |
4823 | if test -n "$F77"; then |
4824 | echo "$as_me:$LINENO: result: $F77" >&5 |
4825 | echo "${ECHO_T}$F77" >&6 |
4826 | else |
4827 | echo "$as_me:$LINENO: result: no" >&5 |
4828 | echo "${ECHO_T}no" >&6 |
4829 | fi |
4830 | |
4831 | test -n "$F77" && break |
4832 | done |
4833 | fi |
4834 | if test -z "$F77"; then |
4835 | ac_ct_F77=$F77 |
4836 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
4837 | do |
4838 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4839 | set dummy $ac_prog; ac_word=$2 |
4840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4842 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4844 | else |
4845 | if test -n "$ac_ct_F77"; then |
4846 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
4847 | else |
4848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4849 | for as_dir in $PATH |
4850 | do |
4851 | IFS=$as_save_IFS |
4852 | test -z "$as_dir" && as_dir=. |
4853 | for ac_exec_ext in '' $ac_executable_extensions; do |
4854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4855 | ac_cv_prog_ac_ct_F77="$ac_prog" |
4856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4857 | break 2 |
4858 | fi |
4859 | done |
4860 | done |
4861 | |
4862 | fi |
4863 | fi |
4864 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
4865 | if test -n "$ac_ct_F77"; then |
4866 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
4867 | echo "${ECHO_T}$ac_ct_F77" >&6 |
4868 | else |
4869 | echo "$as_me:$LINENO: result: no" >&5 |
4870 | echo "${ECHO_T}no" >&6 |
4871 | fi |
4872 | |
4873 | test -n "$ac_ct_F77" && break |
4874 | done |
4875 | |
4876 | F77=$ac_ct_F77 |
4877 | fi |
4878 | |
4879 | |
4880 | # Provide some information about the compiler. |
4881 | echo "$as_me:4881:" \ |
4882 | "checking for Fortran 77 compiler version" >&5 |
4883 | ac_compiler=`set X $ac_compile; echo $2` |
4884 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4885 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4886 | ac_status=$? |
4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4888 | (exit $ac_status); } |
4889 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4890 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4891 | ac_status=$? |
4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4893 | (exit $ac_status); } |
4894 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4895 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4896 | ac_status=$? |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4898 | (exit $ac_status); } |
4899 | rm -f a.out |
4900 | |
4901 | # If we don't use `.F' as extension, the preprocessor is not run on the |
4902 | # input file. (Note that this only needs to work for GNU compilers.) |
4903 | ac_save_ext=$ac_ext |
4904 | ac_ext=F |
4905 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
4906 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
4907 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4909 | else |
4910 | cat >conftest.$ac_ext <<_ACEOF |
4911 | program main |
4912 | #ifndef __GNUC__ |
4913 | choke me |
4914 | #endif |
4915 | |
4916 | end |
4917 | _ACEOF |
4918 | rm -f conftest.$ac_objext |
4919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4920 | (eval $ac_compile) 2>conftest.er1 |
4921 | ac_status=$? |
4922 | grep -v '^ *+' conftest.er1 >conftest.err |
4923 | rm -f conftest.er1 |
4924 | cat conftest.err >&5 |
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4926 | (exit $ac_status); } && |
4927 | { ac_try='test -z "$ac_f77_werror_flag" |
4928 | || test ! -s conftest.err' |
4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4930 | (eval $ac_try) 2>&5 |
4931 | ac_status=$? |
4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4933 | (exit $ac_status); }; } && |
4934 | { ac_try='test -s conftest.$ac_objext' |
4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4936 | (eval $ac_try) 2>&5 |
4937 | ac_status=$? |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4939 | (exit $ac_status); }; }; then |
4940 | ac_compiler_gnu=yes |
4941 | else |
4942 | echo "$as_me: failed program was:" >&5 |
4943 | sed 's/^/| /' conftest.$ac_ext >&5 |
4944 | |
4945 | ac_compiler_gnu=no |
4946 | fi |
4947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4948 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
4949 | |
4950 | fi |
4951 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
4952 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
4953 | ac_ext=$ac_save_ext |
4954 | ac_test_FFLAGS=${FFLAGS+set} |
4955 | ac_save_FFLAGS=$FFLAGS |
4956 | FFLAGS= |
4957 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
4958 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
4959 | if test "${ac_cv_prog_f77_g+set}" = set; then |
4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4961 | else |
4962 | FFLAGS=-g |
4963 | cat >conftest.$ac_ext <<_ACEOF |
4964 | program main |
4965 | |
4966 | end |
4967 | _ACEOF |
4968 | rm -f conftest.$ac_objext |
4969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4970 | (eval $ac_compile) 2>conftest.er1 |
4971 | ac_status=$? |
4972 | grep -v '^ *+' conftest.er1 >conftest.err |
4973 | rm -f conftest.er1 |
4974 | cat conftest.err >&5 |
4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4976 | (exit $ac_status); } && |
4977 | { ac_try='test -z "$ac_f77_werror_flag" |
4978 | || test ! -s conftest.err' |
4979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4980 | (eval $ac_try) 2>&5 |
4981 | ac_status=$? |
4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4983 | (exit $ac_status); }; } && |
4984 | { ac_try='test -s conftest.$ac_objext' |
4985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4986 | (eval $ac_try) 2>&5 |
4987 | ac_status=$? |
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4989 | (exit $ac_status); }; }; then |
4990 | ac_cv_prog_f77_g=yes |
4991 | else |
4992 | echo "$as_me: failed program was:" >&5 |
4993 | sed 's/^/| /' conftest.$ac_ext >&5 |
4994 | |
4995 | ac_cv_prog_f77_g=no |
4996 | fi |
4997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4998 | |
4999 | fi |
5000 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5001 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5002 | if test "$ac_test_FFLAGS" = set; then |
5003 | FFLAGS=$ac_save_FFLAGS |
5004 | elif test $ac_cv_prog_f77_g = yes; then |
5005 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5006 | FFLAGS="-g -O2" |
5007 | else |
5008 | FFLAGS="-g" |
5009 | fi |
5010 | else |
5011 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5012 | FFLAGS="-O2" |
5013 | else |
5014 | FFLAGS= |
5015 | fi |
5016 | fi |
5017 | |
5018 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5019 | ac_ext=c |
5020 | ac_cpp='$CPP $CPPFLAGS' |
5021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5024 | |
5025 | |
5026 | |
5027 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5028 | |
5029 | # find the maximum length of command line arguments |
5030 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5031 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5032 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5034 | else |
5035 | i=0 |
5036 | teststring="ABCD" |
5037 | |
5038 | case $build_os in |
5039 | msdosdjgpp*) |
5040 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5041 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5042 | # during glob expansion). Even if it were fixed, the result of this |
5043 | # check would be larger than it should be. |
5044 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5045 | ;; |
5046 | |
5047 | gnu*) |
5048 | # Under GNU Hurd, this test is not required because there is |
5049 | # no limit to the length of command line arguments. |
5050 | # Libtool will interpret -1 as no limit whatsoever |
5051 | lt_cv_sys_max_cmd_len=-1; |
5052 | ;; |
5053 | |
5054 | cygwin* | mingw*) |
5055 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5056 | # about 5 minutes as the teststring grows exponentially. |
5057 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5058 | # you end up with a "frozen" computer, even though with patience |
5059 | # the test eventually succeeds (with a max line length of 256k). |
5060 | # Instead, let's just punt: use the minimum linelength reported by |
5061 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5062 | lt_cv_sys_max_cmd_len=8192; |
5063 | ;; |
5064 | |
5065 | amigaos*) |
5066 | # On AmigaOS with pdksh, this test takes hours, literally. |
5067 | # So we just punt and use a minimum line length of 8192. |
5068 | lt_cv_sys_max_cmd_len=8192; |
5069 | ;; |
5070 | |
5071 | netbsd* | freebsd* | openbsd* | darwin* ) |
5072 | # This has been around since 386BSD, at least. Likely further. |
5073 | if test -x /sbin/sysctl; then |
5074 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5075 | elif test -x /usr/sbin/sysctl; then |
5076 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5077 | else |
5078 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
5079 | fi |
5080 | # And add a safety zone |
5081 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5082 | ;; |
5083 | |
5084 | *) |
5085 | # If test is not a shell built-in, we'll probably end up computing a |
5086 | # maximum length that is only half of the actual maximum length, but |
5087 | # we can't tell. |
5088 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5089 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5090 | = "XX$teststring") >/dev/null 2>&1 && |
5091 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5092 | lt_cv_sys_max_cmd_len=$new_result && |
5093 | test $i != 17 # 1/2 MB should be enough |
5094 | do |
5095 | i=`expr $i + 1` |
5096 | teststring=$teststring$teststring |
5097 | done |
5098 | teststring= |
5099 | # Add a significant safety factor because C++ compilers can tack on massive |
5100 | # amounts of additional arguments before passing them to the linker. |
5101 | # It appears as though 1/2 is a usable value. |
5102 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5103 | ;; |
5104 | esac |
5105 | |
5106 | fi |
5107 | |
5108 | if test -n $lt_cv_sys_max_cmd_len ; then |
5109 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5110 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5111 | else |
5112 | echo "$as_me:$LINENO: result: none" >&5 |
5113 | echo "${ECHO_T}none" >&6 |
5114 | fi |
5115 | |
5116 | |
5117 | |
5118 | |
5119 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5120 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5121 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5122 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5124 | else |
5125 | |
5126 | # These are sane defaults that work on at least a few old systems. |
5127 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5128 | |
5129 | # Character class describing NM global symbol codes. |
5130 | symcode='[BCDEGRST]' |
5131 | |
5132 | # Regexp to match symbols that can be accessed directly from C. |
5133 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5134 | |
5135 | # Transform the above into a raw symbol and a C symbol. |
5136 | symxfrm='\1 \2\3 \3' |
5137 | |
5138 | # Transform an extracted symbol line into a proper C declaration |
5139 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5140 | |
5141 | # Transform an extracted symbol line into symbol name and symbol address |
5142 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
5143 | |
5144 | # Define system-specific variables. |
5145 | case $host_os in |
5146 | aix*) |
5147 | symcode='[BCDT]' |
5148 | ;; |
5149 | cygwin* | mingw* | pw32*) |
5150 | symcode='[ABCDGISTW]' |
5151 | ;; |
5152 | hpux*) # Its linker distinguishes data from code symbols |
5153 | if test "$host_cpu" = ia64; then |
5154 | symcode='[ABCDEGRST]' |
5155 | fi |
5156 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5157 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
5158 | ;; |
5159 | irix* | nonstopux*) |
5160 | symcode='[BCDEGRST]' |
5161 | ;; |
5162 | osf*) |
5163 | symcode='[BCDEGQRST]' |
5164 | ;; |
5165 | solaris* | sysv5*) |
5166 | symcode='[BDRT]' |
5167 | ;; |
5168 | sysv4) |
5169 | symcode='[DFNSTU]' |
5170 | ;; |
5171 | esac |
5172 | |
5173 | # Handle CRLF in mingw tool chain |
5174 | opt_cr= |
5175 | case $build_os in |
5176 | mingw*) |
5177 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5178 | ;; |
5179 | esac |
5180 | |
5181 | # If we're using GNU nm, then use its standard symbol codes. |
5182 | case `$NM -V 2>&1` in |
5183 | *GNU* | *'with BFD'*) |
5184 | symcode='[ABCDGIRSTW]' ;; |
5185 | esac |
5186 | |
5187 | # Try without a prefix undercore, then with it. |
5188 | for ac_symprfx in "" "_"; do |
5189 | |
5190 | # Write the raw and C identifiers. |
5191 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
5192 | |
5193 | # Check to see that the pipe works correctly. |
5194 | pipe_works=no |
5195 | |
5196 | rm -f conftest* |
5197 | cat > conftest.$ac_ext <<EOF |
5198 | #ifdef __cplusplus |
5199 | extern "C" { |
5200 | #endif |
5201 | char nm_test_var; |
5202 | void nm_test_func(){} |
5203 | #ifdef __cplusplus |
5204 | } |
5205 | #endif |
5206 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5207 | EOF |
5208 | |
5209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5210 | (eval $ac_compile) 2>&5 |
5211 | ac_status=$? |
5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5213 | (exit $ac_status); }; then |
5214 | # Now try to grab the symbols. |
5215 | nlist=conftest.nm |
5216 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5217 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5218 | ac_status=$? |
5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5220 | (exit $ac_status); } && test -s "$nlist"; then |
5221 | # Try sorting and uniquifying the output. |
5222 | if sort "$nlist" | uniq > "$nlist"T; then |
5223 | mv -f "$nlist"T "$nlist" |
5224 | else |
5225 | rm -f "$nlist"T |
5226 | fi |
5227 | |
5228 | # Make sure that we snagged all the symbols we need. |
5229 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5230 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5231 | cat <<EOF > conftest.$ac_ext |
5232 | #ifdef __cplusplus |
5233 | extern "C" { |
5234 | #endif |
5235 | |
5236 | EOF |
5237 | # Now generate the symbol file. |
5238 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5239 | |
5240 | cat <<EOF >> conftest.$ac_ext |
5241 | #if defined (__STDC__) && __STDC__ |
5242 | # define lt_ptr_t void * |
5243 | #else |
5244 | # define lt_ptr_t char * |
5245 | # define const |
5246 | #endif |
5247 | |
5248 | /* The mapping between symbol names and symbols. */ |
5249 | const struct { |
5250 | const char *name; |
5251 | lt_ptr_t address; |
5252 | } |
5253 | lt_preloaded_symbols[] = |
5254 | { |
5255 | EOF |
5256 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5257 | cat <<\EOF >> conftest.$ac_ext |
5258 | {0, (lt_ptr_t) 0} |
5259 | }; |
5260 | |
5261 | #ifdef __cplusplus |
5262 | } |
5263 | #endif |
5264 | EOF |
5265 | # Now try linking the two files. |
5266 | mv conftest.$ac_objext conftstm.$ac_objext |
5267 | lt_save_LIBS="$LIBS" |
5268 | lt_save_CFLAGS="$CFLAGS" |
5269 | LIBS="conftstm.$ac_objext" |
5270 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5272 | (eval $ac_link) 2>&5 |
5273 | ac_status=$? |
5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5275 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5276 | pipe_works=yes |
5277 | fi |
5278 | LIBS="$lt_save_LIBS" |
5279 | CFLAGS="$lt_save_CFLAGS" |
5280 | else |
5281 | echo "cannot find nm_test_func in $nlist" >&5 |
5282 | fi |
5283 | else |
5284 | echo "cannot find nm_test_var in $nlist" >&5 |
5285 | fi |
5286 | else |
5287 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5288 | fi |
5289 | else |
5290 | echo "$progname: failed program was:" >&5 |
5291 | cat conftest.$ac_ext >&5 |
5292 | fi |
5293 | rm -f conftest* conftst* |
5294 | |
5295 | # Do not use the global_symbol_pipe unless it works. |
5296 | if test "$pipe_works" = yes; then |
5297 | break |
5298 | else |
5299 | lt_cv_sys_global_symbol_pipe= |
5300 | fi |
5301 | done |
5302 | |
5303 | fi |
5304 | |
5305 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5306 | lt_cv_sys_global_symbol_to_cdecl= |
5307 | fi |
5308 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5309 | echo "$as_me:$LINENO: result: failed" >&5 |
5310 | echo "${ECHO_T}failed" >&6 |
5311 | else |
5312 | echo "$as_me:$LINENO: result: ok" >&5 |
5313 | echo "${ECHO_T}ok" >&6 |
5314 | fi |
5315 | |
5316 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5317 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5318 | if test "${lt_cv_objdir+set}" = set; then |
5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5320 | else |
5321 | rm -f .libs 2>/dev/null |
5322 | mkdir .libs 2>/dev/null |
5323 | if test -d .libs; then |
5324 | lt_cv_objdir=.libs |
5325 | else |
5326 | # MS-DOS does not allow filenames that begin with a dot. |
5327 | lt_cv_objdir=_libs |
5328 | fi |
5329 | rmdir .libs 2>/dev/null |
5330 | fi |
5331 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5332 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5333 | objdir=$lt_cv_objdir |
5334 | |
5335 | |
5336 | |
5337 | |
5338 | |
5339 | case $host_os in |
5340 | aix3*) |
5341 | # AIX sometimes has problems with the GCC collect2 program. For some |
5342 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
5343 | # vanish in a puff of smoke. |
5344 | if test "X${COLLECT_NAMES+set}" != Xset; then |
5345 | COLLECT_NAMES= |
5346 | export COLLECT_NAMES |
5347 | fi |
5348 | ;; |
5349 | esac |
5350 | |
5351 | # Sed substitution that helps us do robust quoting. It backslashifies |
5352 | # metacharacters that are still active within double-quoted strings. |
5353 | Xsed='sed -e s/^X//' |
5354 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5355 | |
5356 | # Same as above, but do not quote variable references. |
5357 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5358 | |
5359 | # Sed substitution to delay expansion of an escaped shell variable in a |
5360 | # double_quote_subst'ed string. |
5361 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5362 | |
5363 | # Sed substitution to avoid accidental globbing in evaled expressions |
5364 | no_glob_subst='s/\*/\\\*/g' |
5365 | |
5366 | # Constants: |
5367 | rm="rm -f" |
5368 | |
5369 | # Global variables: |
5370 | default_ofile=libtool |
5371 | can_build_shared=yes |
5372 | |
5373 | # All known linkers require a `.a' archive for static linking (except M$VC, |
5374 | # which needs '.lib'). |
5375 | libext=a |
5376 | ltmain="$ac_aux_dir/ltmain.sh" |
5377 | ofile="$default_ofile" |
5378 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5379 | |
5380 | if test -n "$ac_tool_prefix"; then |
5381 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5382 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5385 | if test "${ac_cv_prog_AR+set}" = set; then |
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5387 | else |
5388 | if test -n "$AR"; then |
5389 | ac_cv_prog_AR="$AR" # Let the user override the test. |
5390 | else |
5391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5392 | for as_dir in $PATH |
5393 | do |
5394 | IFS=$as_save_IFS |
5395 | test -z "$as_dir" && as_dir=. |
5396 | for ac_exec_ext in '' $ac_executable_extensions; do |
5397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5398 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5400 | break 2 |
5401 | fi |
5402 | done |
5403 | done |
5404 | |
5405 | fi |
5406 | fi |
5407 | AR=$ac_cv_prog_AR |
5408 | if test -n "$AR"; then |
5409 | echo "$as_me:$LINENO: result: $AR" >&5 |
5410 | echo "${ECHO_T}$AR" >&6 |
5411 | else |
5412 | echo "$as_me:$LINENO: result: no" >&5 |
5413 | echo "${ECHO_T}no" >&6 |
5414 | fi |
5415 | |
5416 | fi |
5417 | if test -z "$ac_cv_prog_AR"; then |
5418 | ac_ct_AR=$AR |
5419 | # Extract the first word of "ar", so it can be a program name with args. |
5420 | set dummy ar; ac_word=$2 |
5421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5423 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5425 | else |
5426 | if test -n "$ac_ct_AR"; then |
5427 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5428 | else |
5429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5430 | for as_dir in $PATH |
5431 | do |
5432 | IFS=$as_save_IFS |
5433 | test -z "$as_dir" && as_dir=. |
5434 | for ac_exec_ext in '' $ac_executable_extensions; do |
5435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5436 | ac_cv_prog_ac_ct_AR="ar" |
5437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5438 | break 2 |
5439 | fi |
5440 | done |
5441 | done |
5442 | |
5443 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
5444 | fi |
5445 | fi |
5446 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5447 | if test -n "$ac_ct_AR"; then |
5448 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
5449 | echo "${ECHO_T}$ac_ct_AR" >&6 |
5450 | else |
5451 | echo "$as_me:$LINENO: result: no" >&5 |
5452 | echo "${ECHO_T}no" >&6 |
5453 | fi |
5454 | |
5455 | AR=$ac_ct_AR |
5456 | else |
5457 | AR="$ac_cv_prog_AR" |
5458 | fi |
5459 | |
5460 | if test -n "$ac_tool_prefix"; then |
5461 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5462 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5465 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5467 | else |
5468 | if test -n "$RANLIB"; then |
5469 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5470 | else |
5471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5472 | for as_dir in $PATH |
5473 | do |
5474 | IFS=$as_save_IFS |
5475 | test -z "$as_dir" && as_dir=. |
5476 | for ac_exec_ext in '' $ac_executable_extensions; do |
5477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5478 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5480 | break 2 |
5481 | fi |
5482 | done |
5483 | done |
5484 | |
5485 | fi |
5486 | fi |
5487 | RANLIB=$ac_cv_prog_RANLIB |
5488 | if test -n "$RANLIB"; then |
5489 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5490 | echo "${ECHO_T}$RANLIB" >&6 |
5491 | else |
5492 | echo "$as_me:$LINENO: result: no" >&5 |
5493 | echo "${ECHO_T}no" >&6 |
5494 | fi |
5495 | |
5496 | fi |
5497 | if test -z "$ac_cv_prog_RANLIB"; then |
5498 | ac_ct_RANLIB=$RANLIB |
5499 | # Extract the first word of "ranlib", so it can be a program name with args. |
5500 | set dummy ranlib; ac_word=$2 |
5501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5503 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5505 | else |
5506 | if test -n "$ac_ct_RANLIB"; then |
5507 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5508 | else |
5509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5510 | for as_dir in $PATH |
5511 | do |
5512 | IFS=$as_save_IFS |
5513 | test -z "$as_dir" && as_dir=. |
5514 | for ac_exec_ext in '' $ac_executable_extensions; do |
5515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5516 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5518 | break 2 |
5519 | fi |
5520 | done |
5521 | done |
5522 | |
5523 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5524 | fi |
5525 | fi |
5526 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5527 | if test -n "$ac_ct_RANLIB"; then |
5528 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5529 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
5530 | else |
5531 | echo "$as_me:$LINENO: result: no" >&5 |
5532 | echo "${ECHO_T}no" >&6 |
5533 | fi |
5534 | |
5535 | RANLIB=$ac_ct_RANLIB |
5536 | else |
5537 | RANLIB="$ac_cv_prog_RANLIB" |
5538 | fi |
5539 | |
5540 | if test -n "$ac_tool_prefix"; then |
5541 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
5542 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5545 | if test "${ac_cv_prog_STRIP+set}" = set; then |
5546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5547 | else |
5548 | if test -n "$STRIP"; then |
5549 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
5550 | else |
5551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5552 | for as_dir in $PATH |
5553 | do |
5554 | IFS=$as_save_IFS |
5555 | test -z "$as_dir" && as_dir=. |
5556 | for ac_exec_ext in '' $ac_executable_extensions; do |
5557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5558 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5560 | break 2 |
5561 | fi |
5562 | done |
5563 | done |
5564 | |
5565 | fi |
5566 | fi |
5567 | STRIP=$ac_cv_prog_STRIP |
5568 | if test -n "$STRIP"; then |
5569 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
5570 | echo "${ECHO_T}$STRIP" >&6 |
5571 | else |
5572 | echo "$as_me:$LINENO: result: no" >&5 |
5573 | echo "${ECHO_T}no" >&6 |
5574 | fi |
5575 | |
5576 | fi |
5577 | if test -z "$ac_cv_prog_STRIP"; then |
5578 | ac_ct_STRIP=$STRIP |
5579 | # Extract the first word of "strip", so it can be a program name with args. |
5580 | set dummy strip; ac_word=$2 |
5581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5583 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5585 | else |
5586 | if test -n "$ac_ct_STRIP"; then |
5587 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5588 | else |
5589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5590 | for as_dir in $PATH |
5591 | do |
5592 | IFS=$as_save_IFS |
5593 | test -z "$as_dir" && as_dir=. |
5594 | for ac_exec_ext in '' $ac_executable_extensions; do |
5595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5596 | ac_cv_prog_ac_ct_STRIP="strip" |
5597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5598 | break 2 |
5599 | fi |
5600 | done |
5601 | done |
5602 | |
5603 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
5604 | fi |
5605 | fi |
5606 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5607 | if test -n "$ac_ct_STRIP"; then |
5608 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
5609 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
5610 | else |
5611 | echo "$as_me:$LINENO: result: no" >&5 |
5612 | echo "${ECHO_T}no" >&6 |
5613 | fi |
5614 | |
5615 | STRIP=$ac_ct_STRIP |
5616 | else |
5617 | STRIP="$ac_cv_prog_STRIP" |
5618 | fi |
5619 | |
5620 | |
5621 | old_CC="$CC" |
5622 | old_CFLAGS="$CFLAGS" |
5623 | |
5624 | # Set sane defaults for various variables |
5625 | test -z "$AR" && AR=ar |
5626 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
5627 | test -z "$AS" && AS=as |
5628 | test -z "$CC" && CC=cc |
5629 | test -z "$LTCC" && LTCC=$CC |
5630 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
5631 | test -z "$LD" && LD=ld |
5632 | test -z "$LN_S" && LN_S="ln -s" |
5633 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
5634 | test -z "$NM" && NM=nm |
5635 | test -z "$SED" && SED=sed |
5636 | test -z "$OBJDUMP" && OBJDUMP=objdump |
5637 | test -z "$RANLIB" && RANLIB=: |
5638 | test -z "$STRIP" && STRIP=: |
5639 | test -z "$ac_objext" && ac_objext=o |
5640 | |
5641 | # Determine commands to create old-style static archives. |
5642 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
5643 | old_postinstall_cmds='chmod 644 $oldlib' |
5644 | old_postuninstall_cmds= |
5645 | |
5646 | if test -n "$RANLIB"; then |
5647 | case $host_os in |
5648 | openbsd*) |
5649 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
5650 | ;; |
5651 | *) |
5652 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
5653 | ;; |
5654 | esac |
5655 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
5656 | fi |
5657 | |
5658 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
5659 | |
5660 | # Only perform the check for file, if the check method requires it |
5661 | case $deplibs_check_method in |
5662 | file_magic*) |
5663 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
5664 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
5665 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
5666 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5668 | else |
5669 | case $MAGIC_CMD in |
5670 | [\\/*] | ?:[\\/]*) |
5671 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
5672 | ;; |
5673 | *) |
5674 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
5675 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5676 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
5677 | for ac_dir in $ac_dummy; do |
5678 | IFS="$lt_save_ifs" |
5679 | test -z "$ac_dir" && ac_dir=. |
5680 | if test -f $ac_dir/${ac_tool_prefix}file; then |
5681 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
5682 | if test -n "$file_magic_test_file"; then |
5683 | case $deplibs_check_method in |
5684 | "file_magic "*) |
5685 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
5686 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5687 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5688 | $EGREP "$file_magic_regex" > /dev/null; then |
5689 | : |
5690 | else |
5691 | cat <<EOF 1>&2 |
5692 | |
5693 | *** Warning: the command libtool uses to detect shared libraries, |
5694 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
5695 | *** The result is that libtool may fail to recognize shared libraries |
5696 | *** as such. This will affect the creation of libtool libraries that |
5697 | *** depend on shared libraries, but programs linked with such libtool |
5698 | *** libraries will work regardless of this problem. Nevertheless, you |
5699 | *** may want to report the problem to your system manager and/or to |
5700 | *** bug-libtool@gnu.org |
5701 | |
5702 | EOF |
5703 | fi ;; |
5704 | esac |
5705 | fi |
5706 | break |
5707 | fi |
5708 | done |
5709 | IFS="$lt_save_ifs" |
5710 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
5711 | ;; |
5712 | esac |
5713 | fi |
5714 | |
5715 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5716 | if test -n "$MAGIC_CMD"; then |
5717 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
5718 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
5719 | else |
5720 | echo "$as_me:$LINENO: result: no" >&5 |
5721 | echo "${ECHO_T}no" >&6 |
5722 | fi |
5723 | |
5724 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
5725 | if test -n "$ac_tool_prefix"; then |
5726 | echo "$as_me:$LINENO: checking for file" >&5 |
5727 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
5728 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5730 | else |
5731 | case $MAGIC_CMD in |
5732 | [\\/*] | ?:[\\/]*) |
5733 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
5734 | ;; |
5735 | *) |
5736 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
5737 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5738 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
5739 | for ac_dir in $ac_dummy; do |
5740 | IFS="$lt_save_ifs" |
5741 | test -z "$ac_dir" && ac_dir=. |
5742 | if test -f $ac_dir/file; then |
5743 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
5744 | if test -n "$file_magic_test_file"; then |
5745 | case $deplibs_check_method in |
5746 | "file_magic "*) |
5747 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
5748 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5749 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5750 | $EGREP "$file_magic_regex" > /dev/null; then |
5751 | : |
5752 | else |
5753 | cat <<EOF 1>&2 |
5754 | |
5755 | *** Warning: the command libtool uses to detect shared libraries, |
5756 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
5757 | *** The result is that libtool may fail to recognize shared libraries |
5758 | *** as such. This will affect the creation of libtool libraries that |
5759 | *** depend on shared libraries, but programs linked with such libtool |
5760 | *** libraries will work regardless of this problem. Nevertheless, you |
5761 | *** may want to report the problem to your system manager and/or to |
5762 | *** bug-libtool@gnu.org |
5763 | |
5764 | EOF |
5765 | fi ;; |
5766 | esac |
5767 | fi |
5768 | break |
5769 | fi |
5770 | done |
5771 | IFS="$lt_save_ifs" |
5772 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
5773 | ;; |
5774 | esac |
5775 | fi |
5776 | |
5777 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5778 | if test -n "$MAGIC_CMD"; then |
5779 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
5780 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
5781 | else |
5782 | echo "$as_me:$LINENO: result: no" >&5 |
5783 | echo "${ECHO_T}no" >&6 |
5784 | fi |
5785 | |
5786 | else |
5787 | MAGIC_CMD=: |
5788 | fi |
5789 | fi |
5790 | |
5791 | fi |
5792 | ;; |
5793 | esac |
5794 | |
5795 | enable_dlopen=no |
5796 | enable_win32_dll=yes |
5797 | |
5798 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5799 | if test "${enable_libtool_lock+set}" = set; then |
5800 | enableval="$enable_libtool_lock" |
5801 | |
5802 | fi; |
5803 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5804 | |
5805 | |
5806 | # Check whether --with-pic or --without-pic was given. |
5807 | if test "${with_pic+set}" = set; then |
5808 | withval="$with_pic" |
5809 | pic_mode="$withval" |
5810 | else |
5811 | pic_mode=default |
5812 | fi; |
5813 | test -z "$pic_mode" && pic_mode=default |
5814 | |
5815 | # Use C for the default configuration in the libtool script |
5816 | tagname= |
5817 | lt_save_CC="$CC" |
5818 | ac_ext=c |
5819 | ac_cpp='$CPP $CPPFLAGS' |
5820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5823 | |
5824 | |
5825 | # Source file extension for C test sources. |
5826 | ac_ext=c |
5827 | |
5828 | # Object file extension for compiled C test sources. |
5829 | objext=o |
5830 | objext=$objext |
5831 | |
5832 | # Code to be used in simple compile tests |
5833 | lt_simple_compile_test_code="int some_variable = 0;\n" |
5834 | |
5835 | # Code to be used in simple link tests |
5836 | lt_simple_link_test_code='int main(){return(0);}\n' |
5837 | |
5838 | |
5839 | # If no C compiler was specified, use CC. |
5840 | LTCC=${LTCC-"$CC"} |
5841 | |
5842 | # Allow CC to be a program name with arguments. |
5843 | compiler=$CC |
5844 | |
5845 | |
5846 | # |
5847 | # Check for any special shared library compilation flags. |
5848 | # |
5849 | lt_prog_cc_shlib= |
5850 | if test "$GCC" = no; then |
5851 | case $host_os in |
5852 | sco3.2v5*) |
5853 | lt_prog_cc_shlib='-belf' |
5854 | ;; |
5855 | esac |
5856 | fi |
5857 | if test -n "$lt_prog_cc_shlib"; then |
5858 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
5859 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
5860 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
5861 | else |
5862 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
5863 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
5864 | lt_cv_prog_cc_can_build_shared=no |
5865 | fi |
5866 | fi |
5867 | |
5868 | |
5869 | # |
5870 | # Check to make sure the static flag actually works. |
5871 | # |
5872 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
5873 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
5874 | if test "${lt_prog_compiler_static_works+set}" = set; then |
5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5876 | else |
5877 | lt_prog_compiler_static_works=no |
5878 | save_LDFLAGS="$LDFLAGS" |
5879 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
5880 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
5881 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
5882 | # The compiler can only warn and ignore the option if not recognized |
5883 | # So say no if there are warnings |
5884 | if test -s conftest.err; then |
5885 | # Append any errors to the config.log. |
5886 | cat conftest.err 1>&5 |
5887 | else |
5888 | lt_prog_compiler_static_works=yes |
5889 | fi |
5890 | fi |
5891 | $rm conftest* |
5892 | LDFLAGS="$save_LDFLAGS" |
5893 | |
5894 | fi |
5895 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
5896 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
5897 | |
5898 | if test x"$lt_prog_compiler_static_works" = xyes; then |
5899 | : |
5900 | else |
5901 | lt_prog_compiler_static= |
5902 | fi |
5903 | |
5904 | |
5905 | |
5906 | ## CAVEAT EMPTOR: |
5907 | ## There is no encapsulation within the following macros, do not change |
5908 | ## the running order or otherwise move them around unless you know exactly |
5909 | ## what you are doing... |
5910 | |
5911 | lt_prog_compiler_no_builtin_flag= |
5912 | |
5913 | if test "$GCC" = yes; then |
5914 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
5915 | |
5916 | |
5917 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
5918 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
5919 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
5920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5921 | else |
5922 | lt_cv_prog_compiler_rtti_exceptions=no |
5923 | ac_outfile=conftest.$ac_objext |
5924 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
5925 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
5926 | # Insert the option either (1) after the last *FLAGS variable, or |
5927 | # (2) before a word containing "conftest.", or (3) at the end. |
5928 | # Note that $ac_compile itself does not contain backslashes and begins |
5929 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
5930 | # The option is referenced via a variable to avoid confusing sed. |
5931 | lt_compile=`echo "$ac_compile" | $SED \ |
5932 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
5933 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
5934 | -e 's:$: $lt_compiler_flag:'` |
5935 | (eval echo "\"\$as_me:5935: $lt_compile\"" >&5) |
5936 | (eval "$lt_compile" 2>conftest.err) |
5937 | ac_status=$? |
5938 | cat conftest.err >&5 |
5939 | echo "$as_me:5939: \$? = $ac_status" >&5 |
5940 | if (exit $ac_status) && test -s "$ac_outfile"; then |
5941 | # The compiler can only warn and ignore the option if not recognized |
5942 | # So say no if there are warnings |
5943 | if test ! -s conftest.err; then |
5944 | lt_cv_prog_compiler_rtti_exceptions=yes |
5945 | fi |
5946 | fi |
5947 | $rm conftest* |
5948 | |
5949 | fi |
5950 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
5951 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
5952 | |
5953 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
5954 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
5955 | else |
5956 | : |
5957 | fi |
5958 | |
5959 | fi |
5960 | |
5961 | lt_prog_compiler_wl= |
5962 | lt_prog_compiler_pic= |
5963 | lt_prog_compiler_static= |
5964 | |
5965 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
5966 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
5967 | |
5968 | if test "$GCC" = yes; then |
5969 | lt_prog_compiler_wl='-Wl,' |
5970 | lt_prog_compiler_static='-static' |
5971 | |
5972 | case $host_os in |
5973 | aix*) |
5974 | # All AIX code is PIC. |
5975 | if test "$host_cpu" = ia64; then |
5976 | # AIX 5 now supports IA64 processor |
5977 | lt_prog_compiler_static='-Bstatic' |
5978 | fi |
5979 | ;; |
5980 | |
5981 | amigaos*) |
5982 | # FIXME: we need at least 68020 code to build shared libraries, but |
5983 | # adding the `-m68020' flag to GCC prevents building anything better, |
5984 | # like `-m68040'. |
5985 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
5986 | ;; |
5987 | |
5988 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
5989 | # PIC is the default for these OSes. |
5990 | ;; |
5991 | |
5992 | mingw* | pw32* | os2*) |
5993 | # This hack is so that the source file can tell whether it is being |
5994 | # built for inclusion in a dll (and should export symbols for example). |
5995 | lt_prog_compiler_pic='-DDLL_EXPORT' |
5996 | ;; |
5997 | |
5998 | darwin* | rhapsody*) |
5999 | # PIC is the default on this platform |
6000 | # Common symbols not allowed in MH_DYLIB files |
6001 | lt_prog_compiler_pic='-fno-common' |
6002 | ;; |
6003 | |
6004 | msdosdjgpp*) |
6005 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6006 | # on systems that don't support them. |
6007 | lt_prog_compiler_can_build_shared=no |
6008 | enable_shared=no |
6009 | ;; |
6010 | |
6011 | sysv4*MP*) |
6012 | if test -d /usr/nec; then |
6013 | lt_prog_compiler_pic=-Kconform_pic |
6014 | fi |
6015 | ;; |
6016 | |
6017 | hpux*) |
6018 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6019 | # not for PA HP-UX. |
6020 | case "$host_cpu" in |
6021 | hppa*64*|ia64*) |
6022 | # +Z the default |
6023 | ;; |
6024 | *) |
6025 | lt_prog_compiler_pic='-fPIC' |
6026 | ;; |
6027 | esac |
6028 | ;; |
6029 | |
6030 | *) |
6031 | lt_prog_compiler_pic='-fPIC' |
6032 | ;; |
6033 | esac |
6034 | else |
6035 | # PORTME Check for flag to pass linker flags through the system compiler. |
6036 | case $host_os in |
6037 | aix*) |
6038 | lt_prog_compiler_wl='-Wl,' |
6039 | if test "$host_cpu" = ia64; then |
6040 | # AIX 5 now supports IA64 processor |
6041 | lt_prog_compiler_static='-Bstatic' |
6042 | else |
6043 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6044 | fi |
6045 | ;; |
6046 | darwin*) |
6047 | # PIC is the default on this platform |
6048 | # Common symbols not allowed in MH_DYLIB files |
6049 | case "$cc_basename" in |
6050 | xlc*) |
6051 | lt_prog_compiler_pic='-qnocommon' |
6052 | lt_prog_compiler_wl='-Wl,' |
6053 | ;; |
6054 | esac |
6055 | ;; |
6056 | |
6057 | mingw* | pw32* | os2*) |
6058 | # This hack is so that the source file can tell whether it is being |
6059 | # built for inclusion in a dll (and should export symbols for example). |
6060 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6061 | ;; |
6062 | |
6063 | hpux9* | hpux10* | hpux11*) |
6064 | lt_prog_compiler_wl='-Wl,' |
6065 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6066 | # not for PA HP-UX. |
6067 | case "$host_cpu" in |
6068 | hppa*64*|ia64*) |
6069 | # +Z the default |
6070 | ;; |
6071 | *) |
6072 | lt_prog_compiler_pic='+Z' |
6073 | ;; |
6074 | esac |
6075 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6076 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6077 | ;; |
6078 | |
6079 | irix5* | irix6* | nonstopux*) |
6080 | lt_prog_compiler_wl='-Wl,' |
6081 | # PIC (with -KPIC) is the default. |
6082 | lt_prog_compiler_static='-non_shared' |
6083 | ;; |
6084 | |
6085 | newsos6) |
6086 | lt_prog_compiler_pic='-KPIC' |
6087 | lt_prog_compiler_static='-Bstatic' |
6088 | ;; |
6089 | |
6090 | linux*) |
6091 | case $CC in |
6092 | icc* | ecc*) |
6093 | lt_prog_compiler_wl='-Wl,' |
6094 | lt_prog_compiler_pic='-KPIC' |
6095 | lt_prog_compiler_static='-static' |
6096 | ;; |
6097 | ccc*) |
6098 | lt_prog_compiler_wl='-Wl,' |
6099 | # All Alpha code is PIC. |
6100 | lt_prog_compiler_static='-non_shared' |
6101 | ;; |
6102 | esac |
6103 | ;; |
6104 | |
6105 | osf3* | osf4* | osf5*) |
6106 | lt_prog_compiler_wl='-Wl,' |
6107 | # All OSF/1 code is PIC. |
6108 | lt_prog_compiler_static='-non_shared' |
6109 | ;; |
6110 | |
6111 | sco3.2v5*) |
6112 | lt_prog_compiler_pic='-Kpic' |
6113 | lt_prog_compiler_static='-dn' |
6114 | ;; |
6115 | |
6116 | solaris*) |
6117 | lt_prog_compiler_wl='-Wl,' |
6118 | lt_prog_compiler_pic='-KPIC' |
6119 | lt_prog_compiler_static='-Bstatic' |
6120 | ;; |
6121 | |
6122 | sunos4*) |
6123 | lt_prog_compiler_wl='-Qoption ld ' |
6124 | lt_prog_compiler_pic='-PIC' |
6125 | lt_prog_compiler_static='-Bstatic' |
6126 | ;; |
6127 | |
6128 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6129 | lt_prog_compiler_wl='-Wl,' |
6130 | lt_prog_compiler_pic='-KPIC' |
6131 | lt_prog_compiler_static='-Bstatic' |
6132 | ;; |
6133 | |
6134 | sysv4*MP*) |
6135 | if test -d /usr/nec ;then |
6136 | lt_prog_compiler_pic='-Kconform_pic' |
6137 | lt_prog_compiler_static='-Bstatic' |
6138 | fi |
6139 | ;; |
6140 | |
6141 | uts4*) |
6142 | lt_prog_compiler_pic='-pic' |
6143 | lt_prog_compiler_static='-Bstatic' |
6144 | ;; |
6145 | |
6146 | *) |
6147 | lt_prog_compiler_can_build_shared=no |
6148 | ;; |
6149 | esac |
6150 | fi |
6151 | |
6152 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6153 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6154 | |
6155 | # |
6156 | # Check to make sure the PIC flag actually works. |
6157 | # |
6158 | if test -n "$lt_prog_compiler_pic"; then |
6159 | |
6160 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6161 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6162 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6164 | else |
6165 | lt_prog_compiler_pic_works=no |
6166 | ac_outfile=conftest.$ac_objext |
6167 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6168 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6169 | # Insert the option either (1) after the last *FLAGS variable, or |
6170 | # (2) before a word containing "conftest.", or (3) at the end. |
6171 | # Note that $ac_compile itself does not contain backslashes and begins |
6172 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6173 | # The option is referenced via a variable to avoid confusing sed. |
6174 | lt_compile=`echo "$ac_compile" | $SED \ |
6175 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6176 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6177 | -e 's:$: $lt_compiler_flag:'` |
6178 | (eval echo "\"\$as_me:6178: $lt_compile\"" >&5) |
6179 | (eval "$lt_compile" 2>conftest.err) |
6180 | ac_status=$? |
6181 | cat conftest.err >&5 |
6182 | echo "$as_me:6182: \$? = $ac_status" >&5 |
6183 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6184 | # The compiler can only warn and ignore the option if not recognized |
6185 | # So say no if there are warnings |
6186 | if test ! -s conftest.err; then |
6187 | lt_prog_compiler_pic_works=yes |
6188 | fi |
6189 | fi |
6190 | $rm conftest* |
6191 | |
6192 | fi |
6193 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6194 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6195 | |
6196 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6197 | case $lt_prog_compiler_pic in |
6198 | "" | " "*) ;; |
6199 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6200 | esac |
6201 | else |
6202 | lt_prog_compiler_pic= |
6203 | lt_prog_compiler_can_build_shared=no |
6204 | fi |
6205 | |
6206 | fi |
6207 | case "$host_os" in |
6208 | # For platforms which do not support PIC, -DPIC is meaningless: |
6209 | *djgpp*) |
6210 | lt_prog_compiler_pic= |
6211 | ;; |
6212 | *) |
6213 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6214 | ;; |
6215 | esac |
6216 | |
6217 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6218 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6219 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6221 | else |
6222 | lt_cv_prog_compiler_c_o=no |
6223 | $rm -r conftest 2>/dev/null |
6224 | mkdir conftest |
6225 | cd conftest |
6226 | mkdir out |
6227 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6228 | |
6229 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6230 | # Insert the option either (1) after the last *FLAGS variable, or |
6231 | # (2) before a word containing "conftest.", or (3) at the end. |
6232 | # Note that $ac_compile itself does not contain backslashes and begins |
6233 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6234 | lt_compile=`echo "$ac_compile" | $SED \ |
6235 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6236 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6237 | -e 's:$: $lt_compiler_flag:'` |
6238 | (eval echo "\"\$as_me:6238: $lt_compile\"" >&5) |
6239 | (eval "$lt_compile" 2>out/conftest.err) |
6240 | ac_status=$? |
6241 | cat out/conftest.err >&5 |
6242 | echo "$as_me:6242: \$? = $ac_status" >&5 |
6243 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6244 | then |
6245 | # The compiler can only warn and ignore the option if not recognized |
6246 | # So say no if there are warnings |
6247 | if test ! -s out/conftest.err; then |
6248 | lt_cv_prog_compiler_c_o=yes |
6249 | fi |
6250 | fi |
6251 | chmod u+w . |
6252 | $rm conftest* |
6253 | # SGI C++ compiler will create directory out/ii_files/ for |
6254 | # template instantiation |
6255 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6256 | $rm out/* && rmdir out |
6257 | cd .. |
6258 | rmdir conftest |
6259 | $rm conftest* |
6260 | |
6261 | fi |
6262 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6263 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6264 | |
6265 | |
6266 | hard_links="nottested" |
6267 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6268 | # do not overwrite the value of need_locks provided by the user |
6269 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6270 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6271 | hard_links=yes |
6272 | $rm conftest* |
6273 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6274 | touch conftest.a |
6275 | ln conftest.a conftest.b 2>&5 || hard_links=no |
6276 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6277 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
6278 | echo "${ECHO_T}$hard_links" >&6 |
6279 | if test "$hard_links" = no; then |
6280 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6281 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6282 | need_locks=warn |
6283 | fi |
6284 | else |
6285 | need_locks=no |
6286 | fi |
6287 | |
6288 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6289 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6290 | |
6291 | runpath_var= |
6292 | allow_undefined_flag= |
6293 | enable_shared_with_static_runtimes=no |
6294 | archive_cmds= |
6295 | archive_expsym_cmds= |
6296 | old_archive_From_new_cmds= |
6297 | old_archive_from_expsyms_cmds= |
6298 | export_dynamic_flag_spec= |
6299 | whole_archive_flag_spec= |
6300 | thread_safe_flag_spec= |
6301 | hardcode_libdir_flag_spec= |
6302 | hardcode_libdir_flag_spec_ld= |
6303 | hardcode_libdir_separator= |
6304 | hardcode_direct=no |
6305 | hardcode_minus_L=no |
6306 | hardcode_shlibpath_var=unsupported |
6307 | link_all_deplibs=unknown |
6308 | hardcode_automatic=no |
6309 | module_cmds= |
6310 | module_expsym_cmds= |
6311 | always_export_symbols=no |
6312 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6313 | # include_expsyms should be a list of space-separated symbols to be *always* |
6314 | # included in the symbol list |
6315 | include_expsyms= |
6316 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6317 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6318 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6319 | # as well as any symbol that contains `d'. |
6320 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6321 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6322 | # platforms (ab)use it in PIC code, but their linkers get confused if |
6323 | # the symbol is explicitly referenced. Since portable code cannot |
6324 | # rely on this symbol name, it's probably fine to never include it in |
6325 | # preloaded symbol tables. |
6326 | extract_expsyms_cmds= |
6327 | |
6328 | case $host_os in |
6329 | cygwin* | mingw* | pw32*) |
6330 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6331 | # When not using gcc, we currently assume that we are using |
6332 | # Microsoft Visual C++. |
6333 | if test "$GCC" != yes; then |
6334 | with_gnu_ld=no |
6335 | fi |
6336 | ;; |
6337 | openbsd*) |
6338 | with_gnu_ld=no |
6339 | ;; |
6340 | esac |
6341 | |
6342 | ld_shlibs=yes |
6343 | if test "$with_gnu_ld" = yes; then |
6344 | # If archive_cmds runs LD, not CC, wlarc should be empty |
6345 | wlarc='${wl}' |
6346 | |
6347 | # See if GNU ld supports shared libraries. |
6348 | case $host_os in |
6349 | aix3* | aix4* | aix5*) |
6350 | # On AIX/PPC, the GNU linker is very broken |
6351 | if test "$host_cpu" != ia64; then |
6352 | ld_shlibs=no |
6353 | cat <<EOF 1>&2 |
6354 | |
6355 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6356 | *** to be unable to reliably create shared libraries on AIX. |
6357 | *** Therefore, libtool is disabling shared libraries support. If you |
6358 | *** really care for shared libraries, you may want to modify your PATH |
6359 | *** so that a non-GNU linker is found, and then restart. |
6360 | |
6361 | EOF |
6362 | fi |
6363 | ;; |
6364 | |
6365 | amigaos*) |
6366 | 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)' |
6367 | hardcode_libdir_flag_spec='-L$libdir' |
6368 | hardcode_minus_L=yes |
6369 | |
6370 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6371 | # that the semantics of dynamic libraries on AmigaOS, at least up |
6372 | # to version 4, is to share data among multiple programs linked |
6373 | # with the same dynamic library. Since this doesn't match the |
6374 | # behavior of shared libraries on other platforms, we can't use |
6375 | # them. |
6376 | ld_shlibs=no |
6377 | ;; |
6378 | |
6379 | beos*) |
6380 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6381 | allow_undefined_flag=unsupported |
6382 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
6383 | # support --undefined. This deserves some investigation. FIXME |
6384 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6385 | else |
6386 | ld_shlibs=no |
6387 | fi |
6388 | ;; |
6389 | |
6390 | cygwin* | mingw* | pw32*) |
6391 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
6392 | # as there is no search path for DLLs. |
6393 | hardcode_libdir_flag_spec='-L$libdir' |
6394 | allow_undefined_flag=unsupported |
6395 | always_export_symbols=no |
6396 | enable_shared_with_static_runtimes=yes |
6397 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
6398 | |
6399 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
6400 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
6401 | # If the export-symbols file already is a .def file (1st line |
6402 | # is EXPORTS), use it as is; otherwise, prepend... |
6403 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6404 | cp $export_symbols $output_objdir/$soname.def; |
6405 | else |
6406 | echo EXPORTS > $output_objdir/$soname.def; |
6407 | cat $export_symbols >> $output_objdir/$soname.def; |
6408 | fi~ |
6409 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
6410 | else |
6411 | ld_shlibs=no |
6412 | fi |
6413 | ;; |
6414 | |
6415 | netbsd*) |
6416 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6417 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6418 | wlarc= |
6419 | else |
6420 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6421 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6422 | fi |
6423 | ;; |
6424 | |
6425 | solaris* | sysv5*) |
6426 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
6427 | ld_shlibs=no |
6428 | cat <<EOF 1>&2 |
6429 | |
6430 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
6431 | *** create shared libraries on Solaris systems. Therefore, libtool |
6432 | *** is disabling shared libraries support. We urge you to upgrade GNU |
6433 | *** binutils to release 2.9.1 or newer. Another option is to modify |
6434 | *** your PATH or compiler configuration so that the native linker is |
6435 | *** used, and then restart. |
6436 | |
6437 | EOF |
6438 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6439 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6440 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6441 | else |
6442 | ld_shlibs=no |
6443 | fi |
6444 | ;; |
6445 | |
6446 | sunos4*) |
6447 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6448 | wlarc= |
6449 | hardcode_direct=yes |
6450 | hardcode_shlibpath_var=no |
6451 | ;; |
6452 | |
6453 | linux*) |
6454 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6455 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6456 | archive_cmds="$tmp_archive_cmds" |
6457 | supports_anon_versioning=no |
6458 | case `$LD -v 2>/dev/null` in |
6459 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6460 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6461 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6462 | *\ 2.11.*) ;; # other 2.11 versions |
6463 | *) supports_anon_versioning=yes ;; |
6464 | esac |
6465 | if test $supports_anon_versioning = yes; then |
6466 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
6467 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
6468 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
6469 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
6470 | else |
6471 | archive_expsym_cmds="$tmp_archive_cmds" |
6472 | fi |
6473 | else |
6474 | ld_shlibs=no |
6475 | fi |
6476 | ;; |
6477 | |
6478 | *) |
6479 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6480 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6481 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6482 | else |
6483 | ld_shlibs=no |
6484 | fi |
6485 | ;; |
6486 | esac |
6487 | |
6488 | if test "$ld_shlibs" = yes; then |
6489 | runpath_var=LD_RUN_PATH |
6490 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6491 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6492 | # ancient GNU ld didn't support --whole-archive et. al. |
6493 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
6494 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6495 | else |
6496 | whole_archive_flag_spec= |
6497 | fi |
6498 | fi |
6499 | else |
6500 | # PORTME fill in a description of your system's linker (not GNU ld) |
6501 | case $host_os in |
6502 | aix3*) |
6503 | allow_undefined_flag=unsupported |
6504 | always_export_symbols=yes |
6505 | 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' |
6506 | # Note: this linker hardcodes the directories in LIBPATH if there |
6507 | # are no directories specified by -L. |
6508 | hardcode_minus_L=yes |
6509 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
6510 | # Neither direct hardcoding nor static linking is supported with a |
6511 | # broken collect2. |
6512 | hardcode_direct=unsupported |
6513 | fi |
6514 | ;; |
6515 | |
6516 | aix4* | aix5*) |
6517 | if test "$host_cpu" = ia64; then |
6518 | # On IA64, the linker does run time linking by default, so we don't |
6519 | # have to do anything special. |
6520 | aix_use_runtimelinking=no |
6521 | exp_sym_flag='-Bexport' |
6522 | no_entry_flag="" |
6523 | else |
6524 | # If we're using GNU nm, then we don't want the "-C" option. |
6525 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
6526 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
6527 | 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' |
6528 | else |
6529 | 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' |
6530 | fi |
6531 | aix_use_runtimelinking=no |
6532 | |
6533 | # Test if we are trying to use run time linking or normal |
6534 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
6535 | # need to do runtime linking. |
6536 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
6537 | for ld_flag in $LDFLAGS; do |
6538 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
6539 | aix_use_runtimelinking=yes |
6540 | break |
6541 | fi |
6542 | done |
6543 | esac |
6544 | |
6545 | exp_sym_flag='-bexport' |
6546 | no_entry_flag='-bnoentry' |
6547 | fi |
6548 | |
6549 | # When large executables or shared objects are built, AIX ld can |
6550 | # have problems creating the table of contents. If linking a library |
6551 | # or program results in "error TOC overflow" add -mminimal-toc to |
6552 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
6553 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
6554 | |
6555 | archive_cmds='' |
6556 | hardcode_direct=yes |
6557 | hardcode_libdir_separator=':' |
6558 | link_all_deplibs=yes |
6559 | |
6560 | if test "$GCC" = yes; then |
6561 | case $host_os in aix4.012|aix4.012.*) |
6562 | # We only want to do this on AIX 4.2 and lower, the check |
6563 | # below for broken collect2 doesn't work under 4.3+ |
6564 | collect2name=`${CC} -print-prog-name=collect2` |
6565 | if test -f "$collect2name" && \ |
6566 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
6567 | then |
6568 | # We have reworked collect2 |
6569 | hardcode_direct=yes |
6570 | else |
6571 | # We have old collect2 |
6572 | hardcode_direct=unsupported |
6573 | # It fails to find uninstalled libraries when the uninstalled |
6574 | # path is not listed in the libpath. Setting hardcode_minus_L |
6575 | # to unsupported forces relinking |
6576 | hardcode_minus_L=yes |
6577 | hardcode_libdir_flag_spec='-L$libdir' |
6578 | hardcode_libdir_separator= |
6579 | fi |
6580 | esac |
6581 | shared_flag='-shared' |
6582 | else |
6583 | # not using gcc |
6584 | if test "$host_cpu" = ia64; then |
6585 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
6586 | # chokes on -Wl,-G. The following line is correct: |
6587 | shared_flag='-G' |
6588 | else |
6589 | if test "$aix_use_runtimelinking" = yes; then |
6590 | shared_flag='${wl}-G' |
6591 | else |
6592 | shared_flag='${wl}-bM:SRE' |
6593 | fi |
6594 | fi |
6595 | fi |
6596 | |
6597 | # It seems that -bexpall does not export symbols beginning with |
6598 | # underscore (_), so it is better to generate a list of symbols to export. |
6599 | always_export_symbols=yes |
6600 | if test "$aix_use_runtimelinking" = yes; then |
6601 | # Warning - without using the other runtime loading flags (-brtl), |
6602 | # -berok will link without error, but may produce a broken library. |
6603 | allow_undefined_flag='-berok' |
6604 | # Determine the default libpath from the value encoded in an empty executable. |
6605 | cat >conftest.$ac_ext <<_ACEOF |
6606 | /* confdefs.h. */ |
6607 | _ACEOF |
6608 | cat confdefs.h >>conftest.$ac_ext |
6609 | cat >>conftest.$ac_ext <<_ACEOF |
6610 | /* end confdefs.h. */ |
6611 | |
6612 | int |
6613 | main () |
6614 | { |
6615 | |
6616 | ; |