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