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