Commit | Line | Data |
---|---|---|
3cd4b0f8 MW |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.53 for cparse 0.0.20040813. | |
4 | # | |
5 | # Report bugs to <richard+cparse@sfere.greenend.org.uk>. | |
6 | # | |
7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
8 | # Free Software Foundation, Inc. | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ||
12 | # Find the correct PATH separator. Usually this is `:', but | |
13 | # DJGPP uses `;' like DOS. | |
14 | if test "X${PATH_SEPARATOR+set}" != Xset; then | |
15 | UNAME=${UNAME-`uname 2>/dev/null`} | |
16 | case X$UNAME in | |
17 | *-DOS) lt_cv_sys_path_separator=';' ;; | |
18 | *) lt_cv_sys_path_separator=':' ;; | |
19 | esac | |
20 | PATH_SEPARATOR=$lt_cv_sys_path_separator | |
21 | fi | |
22 | ||
23 | ||
24 | # Check that we are running under the correct shell. | |
25 | SHELL=${CONFIG_SHELL-/bin/sh} | |
26 | ||
27 | case X$ECHO in | |
28 | X*--fallback-echo) | |
29 | # Remove one level of quotation (which was required for Make). | |
30 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
31 | ;; | |
32 | esac | |
33 | ||
34 | echo=${ECHO-echo} | |
35 | if test "X$1" = X--no-reexec; then | |
36 | # Discard the --no-reexec flag, and continue. | |
37 | shift | |
38 | elif test "X$1" = X--fallback-echo; then | |
39 | # Avoid inline document here, it may be left over | |
40 | : | |
41 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
42 | # Yippee, $echo works! | |
43 | : | |
44 | else | |
45 | # Restart under the correct shell. | |
46 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
47 | fi | |
48 | ||
49 | if test "X$1" = X--fallback-echo; then | |
50 | # used as fallback echo | |
51 | shift | |
52 | cat <<EOF | |
53 | ||
54 | EOF | |
55 | exit 0 | |
56 | fi | |
57 | ||
58 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
59 | # if CDPATH is set. | |
60 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
61 | ||
62 | if test -z "$ECHO"; then | |
63 | if test "X${echo_test_string+set}" != Xset; then | |
64 | # find a string as large as possible, as long as the shell can cope with it | |
65 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
66 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
67 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
68 | echo_test_string="`eval $cmd`" && | |
69 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
70 | then | |
71 | break | |
72 | fi | |
73 | done | |
74 | fi | |
75 | ||
76 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
77 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
78 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
79 | : | |
80 | else | |
81 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
82 | # backslashes. This makes it impossible to quote backslashes using | |
83 | # echo "$something" | sed 's/\\/\\\\/g' | |
84 | # | |
85 | # So, first we look for a working echo in the user's PATH. | |
86 | ||
87 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
88 | for dir in $PATH /usr/ucb; do | |
89 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
90 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
91 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
92 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
93 | echo="$dir/echo" | |
94 | break | |
95 | fi | |
96 | done | |
97 | IFS="$save_ifs" | |
98 | ||
99 | if test "X$echo" = Xecho; then | |
100 | # We didn't find a better echo, so look for alternatives. | |
101 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
102 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
103 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
104 | # This shell has a builtin print -r that does the trick. | |
105 | echo='print -r' | |
106 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
107 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
108 | # If we have ksh, try running configure again with it. | |
109 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
110 | export ORIGINAL_CONFIG_SHELL | |
111 | CONFIG_SHELL=/bin/ksh | |
112 | export CONFIG_SHELL | |
113 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
114 | else | |
115 | # Try using printf. | |
116 | echo='printf %s\n' | |
117 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
118 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
119 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
120 | # Cool, printf works | |
121 | : | |
122 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
123 | test "X$echo_testing_string" = 'X\t' && | |
124 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
125 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
126 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
127 | export CONFIG_SHELL | |
128 | SHELL="$CONFIG_SHELL" | |
129 | export SHELL | |
130 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
131 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
132 | test "X$echo_testing_string" = 'X\t' && | |
133 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
134 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
135 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
136 | else | |
137 | # maybe with a smaller string... | |
138 | prev=: | |
139 | ||
140 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
141 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
142 | then | |
143 | break | |
144 | fi | |
145 | prev="$cmd" | |
146 | done | |
147 | ||
148 | if test "$prev" != 'sed 50q "$0"'; then | |
149 | echo_test_string=`eval $prev` | |
150 | export echo_test_string | |
151 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
152 | else | |
153 | # Oops. We lost completely, so just stick with echo. | |
154 | echo=echo | |
155 | fi | |
156 | fi | |
157 | fi | |
158 | fi | |
159 | fi | |
160 | fi | |
161 | ||
162 | # Copy echo and quote the copy suitably for passing to libtool from | |
163 | # the Makefile, instead of quoting the original, which is used later. | |
164 | ECHO=$echo | |
165 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
166 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
167 | fi | |
168 | ||
169 | ||
170 | ||
171 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
172 | as_expr=expr | |
173 | else | |
174 | as_expr=false | |
175 | fi | |
176 | ||
177 | ||
178 | ## --------------------- ## | |
179 | ## M4sh Initialization. ## | |
180 | ## --------------------- ## | |
181 | ||
182 | # Be Bourne compatible | |
183 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
184 | emulate sh | |
185 | NULLCMD=: | |
186 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
187 | set -o posix | |
188 | fi | |
189 | ||
190 | # NLS nuisances. | |
191 | # Support unset when possible. | |
192 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
193 | as_unset=unset | |
194 | else | |
195 | as_unset=false | |
196 | fi | |
197 | ||
198 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
199 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
200 | { LANG=C; export LANG; } | |
201 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
202 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
203 | { LC_ALL=C; export LC_ALL; } | |
204 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
205 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
206 | { LC_TIME=C; export LC_TIME; } | |
207 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
208 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
209 | { LC_CTYPE=C; export LC_CTYPE; } | |
210 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
211 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
212 | { LANGUAGE=C; export LANGUAGE; } | |
213 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
214 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
215 | { LC_COLLATE=C; export LC_COLLATE; } | |
216 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
217 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
218 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
219 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
220 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
221 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
222 | ||
223 | ||
224 | # Name of the executable. | |
225 | as_me=`(basename "$0") 2>/dev/null || | |
226 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
227 | X"$0" : 'X\(//\)$' \| \ | |
228 | X"$0" : 'X\(/\)$' \| \ | |
229 | . : '\(.\)' 2>/dev/null || | |
230 | echo X/"$0" | | |
231 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
232 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
233 | /^X\/\(\/\).*/{ s//\1/; q; } | |
234 | s/.*/./; q'` | |
235 | ||
236 | # PATH needs CR, and LINENO needs CR and PATH. | |
237 | # Avoid depending upon Character Ranges. | |
238 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
239 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
240 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
241 | as_cr_digits='0123456789' | |
242 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
243 | ||
244 | # The user is always right. | |
245 | if test "${PATH_SEPARATOR+set}" != set; then | |
246 | echo "#! /bin/sh" >conftest.sh | |
247 | echo "exit 0" >>conftest.sh | |
248 | chmod +x conftest.sh | |
249 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
250 | PATH_SEPARATOR=';' | |
251 | else | |
252 | PATH_SEPARATOR=: | |
253 | fi | |
254 | rm -f conftest.sh | |
255 | fi | |
256 | ||
257 | ||
258 | as_lineno_1=$LINENO | |
259 | as_lineno_2=$LINENO | |
260 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
261 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
262 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
263 | # Find who we are. Look in the path if we contain no path at all | |
264 | # relative or not. | |
265 | case $0 in | |
266 | *[\\/]* ) as_myself=$0 ;; | |
267 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
268 | for as_dir in $PATH | |
269 | do | |
270 | IFS=$as_save_IFS | |
271 | test -z "$as_dir" && as_dir=. | |
272 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
273 | done | |
274 | ||
275 | ;; | |
276 | esac | |
277 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
278 | # in which case we are not to be found in the path. | |
279 | if test "x$as_myself" = x; then | |
280 | as_myself=$0 | |
281 | fi | |
282 | if test ! -f "$as_myself"; then | |
283 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
284 | { (exit 1); exit 1; }; } | |
285 | fi | |
286 | case $CONFIG_SHELL in | |
287 | '') | |
288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
289 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
290 | do | |
291 | IFS=$as_save_IFS | |
292 | test -z "$as_dir" && as_dir=. | |
293 | for as_base in sh bash ksh sh5; do | |
294 | case $as_dir in | |
295 | /*) | |
296 | if ("$as_dir/$as_base" -c ' | |
297 | as_lineno_1=$LINENO | |
298 | as_lineno_2=$LINENO | |
299 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
300 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
301 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
302 | CONFIG_SHELL=$as_dir/$as_base | |
303 | export CONFIG_SHELL | |
304 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
305 | fi;; | |
306 | esac | |
307 | done | |
308 | done | |
309 | ;; | |
310 | esac | |
311 | ||
312 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
313 | # uniformly replaced by the line number. The first 'sed' inserts a | |
314 | # line-number line before each line; the second 'sed' does the real | |
315 | # work. The second script uses 'N' to pair each line-number line | |
316 | # with the numbered line, and appends trailing '-' during | |
317 | # substitution so that $LINENO is not a special case at line end. | |
318 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
319 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
320 | sed '=' <$as_myself | | |
321 | sed ' | |
322 | N | |
323 | s,$,-, | |
324 | : loop | |
325 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
326 | t loop | |
327 | s,-$,, | |
328 | s,^['$as_cr_digits']*\n,, | |
329 | ' >$as_me.lineno && | |
330 | chmod +x $as_me.lineno || | |
331 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
332 | { (exit 1); exit 1; }; } | |
333 | ||
334 | # Don't try to exec as it changes $[0], causing all sort of problems | |
335 | # (the dirname of $[0] is not the place where we might find the | |
336 | # original and so on. Autoconf is especially sensible to this). | |
337 | . ./$as_me.lineno | |
338 | # Exit status is that of the last command. | |
339 | exit | |
340 | } | |
341 | ||
342 | ||
343 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
344 | *c*,-n*) ECHO_N= ECHO_C=' | |
345 | ' ECHO_T=' ' ;; | |
346 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
347 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
348 | esac | |
349 | ||
350 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
351 | as_expr=expr | |
352 | else | |
353 | as_expr=false | |
354 | fi | |
355 | ||
356 | rm -f conf$$ conf$$.exe conf$$.file | |
357 | echo >conf$$.file | |
358 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
359 | # We could just check for DJGPP; but this test a) works b) is more generic | |
360 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
361 | if test -f conf$$.exe; then | |
362 | # Don't use ln at all; we don't have any links | |
363 | as_ln_s='cp -p' | |
364 | else | |
365 | as_ln_s='ln -s' | |
366 | fi | |
367 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
368 | as_ln_s=ln | |
369 | else | |
370 | as_ln_s='cp -p' | |
371 | fi | |
372 | rm -f conf$$ conf$$.exe conf$$.file | |
373 | ||
374 | as_executable_p="test -f" | |
375 | ||
376 | # Sed expression to map a string onto a valid CPP name. | |
377 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
378 | ||
379 | # Sed expression to map a string onto a valid variable name. | |
380 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
381 | ||
382 | ||
383 | # IFS | |
384 | # We need space, tab and new line, in precisely that order. | |
385 | as_nl=' | |
386 | ' | |
387 | IFS=" $as_nl" | |
388 | ||
389 | # CDPATH. | |
390 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
391 | ||
392 | ||
393 | # Name of the host. | |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
397 | ||
398 | exec 6>&1 | |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
403 | ac_default_prefix=/usr/local | |
404 | cross_compiling=no | |
405 | subdirs= | |
406 | MFLAGS= | |
407 | MAKEFLAGS= | |
408 | SHELL=${CONFIG_SHELL-/bin/sh} | |
409 | ||
410 | # Maximum number of lines to put in a shell here document. | |
411 | # This variable seems obsolete. It should probably be removed, and | |
412 | # only ac_max_sed_lines should be used. | |
413 | : ${ac_max_here_lines=38} | |
414 | ||
415 | # Identity of this package. | |
416 | PACKAGE_NAME='cparse' | |
417 | PACKAGE_TARNAME='cparse' | |
418 | PACKAGE_VERSION='0.0.20040813' | |
419 | PACKAGE_STRING='cparse 0.0.20040813' | |
420 | PACKAGE_BUGREPORT='richard+cparse@sfere.greenend.org.uk' | |
421 | ||
422 | ac_unique_file="cparse.h" | |
423 | # Factoring default headers for most tests. | |
424 | ac_includes_default="\ | |
425 | #include <stdio.h> | |
426 | #if HAVE_SYS_TYPES_H | |
427 | # include <sys/types.h> | |
428 | #endif | |
429 | #if HAVE_SYS_STAT_H | |
430 | # include <sys/stat.h> | |
431 | #endif | |
432 | #if STDC_HEADERS | |
433 | # include <stdlib.h> | |
434 | # include <stddef.h> | |
435 | #else | |
436 | # if HAVE_STDLIB_H | |
437 | # include <stdlib.h> | |
438 | # endif | |
439 | #endif | |
440 | #if HAVE_STRING_H | |
441 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
442 | # include <memory.h> | |
443 | # endif | |
444 | # include <string.h> | |
445 | #endif | |
446 | #if HAVE_STRINGS_H | |
447 | # include <strings.h> | |
448 | #endif | |
449 | #if HAVE_INTTYPES_H | |
450 | # include <inttypes.h> | |
451 | #else | |
452 | # if HAVE_STDINT_H | |
453 | # include <stdint.h> | |
454 | # endif | |
455 | #endif | |
456 | #if HAVE_UNISTD_H | |
457 | # include <unistd.h> | |
458 | #endif" | |
459 | ||
460 | ||
461 | # Initialize some variables set by options. | |
462 | ac_init_help= | |
463 | ac_init_version=false | |
464 | # The variables have the same names as the options, with | |
465 | # dashes changed to underlines. | |
466 | cache_file=/dev/null | |
467 | exec_prefix=NONE | |
468 | no_create= | |
469 | no_recursion= | |
470 | prefix=NONE | |
471 | program_prefix=NONE | |
472 | program_suffix=NONE | |
473 | program_transform_name=s,x,x, | |
474 | silent= | |
475 | site= | |
476 | srcdir= | |
477 | verbose= | |
478 | x_includes=NONE | |
479 | x_libraries=NONE | |
480 | ||
481 | # Installation directory options. | |
482 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
483 | # and all the variables that are supposed to be based on exec_prefix | |
484 | # by default will actually change. | |
485 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
486 | bindir='${exec_prefix}/bin' | |
487 | sbindir='${exec_prefix}/sbin' | |
488 | libexecdir='${exec_prefix}/libexec' | |
489 | datadir='${prefix}/share' | |
490 | sysconfdir='${prefix}/etc' | |
491 | sharedstatedir='${prefix}/com' | |
492 | localstatedir='${prefix}/var' | |
493 | libdir='${exec_prefix}/lib' | |
494 | includedir='${prefix}/include' | |
495 | oldincludedir='/usr/include' | |
496 | infodir='${prefix}/info' | |
497 | mandir='${prefix}/man' | |
498 | ||
499 | ac_prev= | |
500 | for ac_option | |
501 | do | |
502 | # If the previous option needs an argument, assign it. | |
503 | if test -n "$ac_prev"; then | |
504 | eval "$ac_prev=\$ac_option" | |
505 | ac_prev= | |
506 | continue | |
507 | fi | |
508 | ||
509 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
510 | ||
511 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
512 | ||
513 | case $ac_option in | |
514 | ||
515 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
516 | ac_prev=bindir ;; | |
517 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
518 | bindir=$ac_optarg ;; | |
519 | ||
520 | -build | --build | --buil | --bui | --bu) | |
521 | ac_prev=build_alias ;; | |
522 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
523 | build_alias=$ac_optarg ;; | |
524 | ||
525 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
526 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
527 | ac_prev=cache_file ;; | |
528 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
529 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
530 | cache_file=$ac_optarg ;; | |
531 | ||
532 | --config-cache | -C) | |
533 | cache_file=config.cache ;; | |
534 | ||
535 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
536 | ac_prev=datadir ;; | |
537 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
538 | | --da=*) | |
539 | datadir=$ac_optarg ;; | |
540 | ||
541 | -disable-* | --disable-*) | |
542 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
543 | # Reject names that are not valid shell variable names. | |
544 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
545 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
546 | { (exit 1); exit 1; }; } | |
547 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
548 | eval "enable_$ac_feature=no" ;; | |
549 | ||
550 | -enable-* | --enable-*) | |
551 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
552 | # Reject names that are not valid shell variable names. | |
553 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
554 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
555 | { (exit 1); exit 1; }; } | |
556 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
557 | case $ac_option in | |
558 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
559 | *) ac_optarg=yes ;; | |
560 | esac | |
561 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
562 | ||
563 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
564 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
565 | | --exec | --exe | --ex) | |
566 | ac_prev=exec_prefix ;; | |
567 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
568 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
569 | | --exec=* | --exe=* | --ex=*) | |
570 | exec_prefix=$ac_optarg ;; | |
571 | ||
572 | -gas | --gas | --ga | --g) | |
573 | # Obsolete; use --with-gas. | |
574 | with_gas=yes ;; | |
575 | ||
576 | -help | --help | --hel | --he | -h) | |
577 | ac_init_help=long ;; | |
578 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
579 | ac_init_help=recursive ;; | |
580 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
581 | ac_init_help=short ;; | |
582 | ||
583 | -host | --host | --hos | --ho) | |
584 | ac_prev=host_alias ;; | |
585 | -host=* | --host=* | --hos=* | --ho=*) | |
586 | host_alias=$ac_optarg ;; | |
587 | ||
588 | -includedir | --includedir | --includedi | --included | --include \ | |
589 | | --includ | --inclu | --incl | --inc) | |
590 | ac_prev=includedir ;; | |
591 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
592 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
593 | includedir=$ac_optarg ;; | |
594 | ||
595 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
596 | ac_prev=infodir ;; | |
597 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
598 | infodir=$ac_optarg ;; | |
599 | ||
600 | -libdir | --libdir | --libdi | --libd) | |
601 | ac_prev=libdir ;; | |
602 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
603 | libdir=$ac_optarg ;; | |
604 | ||
605 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
606 | | --libexe | --libex | --libe) | |
607 | ac_prev=libexecdir ;; | |
608 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
609 | | --libexe=* | --libex=* | --libe=*) | |
610 | libexecdir=$ac_optarg ;; | |
611 | ||
612 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
613 | | --localstate | --localstat | --localsta | --localst \ | |
614 | | --locals | --local | --loca | --loc | --lo) | |
615 | ac_prev=localstatedir ;; | |
616 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
617 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
618 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
619 | localstatedir=$ac_optarg ;; | |
620 | ||
621 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
622 | ac_prev=mandir ;; | |
623 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
624 | mandir=$ac_optarg ;; | |
625 | ||
626 | -nfp | --nfp | --nf) | |
627 | # Obsolete; use --without-fp. | |
628 | with_fp=no ;; | |
629 | ||
630 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
631 | | --no-cr | --no-c | -n) | |
632 | no_create=yes ;; | |
633 | ||
634 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
635 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
636 | no_recursion=yes ;; | |
637 | ||
638 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
639 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
640 | | --oldin | --oldi | --old | --ol | --o) | |
641 | ac_prev=oldincludedir ;; | |
642 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
643 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
644 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
645 | oldincludedir=$ac_optarg ;; | |
646 | ||
647 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
648 | ac_prev=prefix ;; | |
649 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
650 | prefix=$ac_optarg ;; | |
651 | ||
652 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
653 | | --program-pre | --program-pr | --program-p) | |
654 | ac_prev=program_prefix ;; | |
655 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
656 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
657 | program_prefix=$ac_optarg ;; | |
658 | ||
659 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
660 | | --program-suf | --program-su | --program-s) | |
661 | ac_prev=program_suffix ;; | |
662 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
663 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
664 | program_suffix=$ac_optarg ;; | |
665 | ||
666 | -program-transform-name | --program-transform-name \ | |
667 | | --program-transform-nam | --program-transform-na \ | |
668 | | --program-transform-n | --program-transform- \ | |
669 | | --program-transform | --program-transfor \ | |
670 | | --program-transfo | --program-transf \ | |
671 | | --program-trans | --program-tran \ | |
672 | | --progr-tra | --program-tr | --program-t) | |
673 | ac_prev=program_transform_name ;; | |
674 | -program-transform-name=* | --program-transform-name=* \ | |
675 | | --program-transform-nam=* | --program-transform-na=* \ | |
676 | | --program-transform-n=* | --program-transform-=* \ | |
677 | | --program-transform=* | --program-transfor=* \ | |
678 | | --program-transfo=* | --program-transf=* \ | |
679 | | --program-trans=* | --program-tran=* \ | |
680 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
681 | program_transform_name=$ac_optarg ;; | |
682 | ||
683 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
684 | | -silent | --silent | --silen | --sile | --sil) | |
685 | silent=yes ;; | |
686 | ||
687 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
688 | ac_prev=sbindir ;; | |
689 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
690 | | --sbi=* | --sb=*) | |
691 | sbindir=$ac_optarg ;; | |
692 | ||
693 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
694 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
695 | | --sharedst | --shareds | --shared | --share | --shar \ | |
696 | | --sha | --sh) | |
697 | ac_prev=sharedstatedir ;; | |
698 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
699 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
700 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
701 | | --sha=* | --sh=*) | |
702 | sharedstatedir=$ac_optarg ;; | |
703 | ||
704 | -site | --site | --sit) | |
705 | ac_prev=site ;; | |
706 | -site=* | --site=* | --sit=*) | |
707 | site=$ac_optarg ;; | |
708 | ||
709 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
710 | ac_prev=srcdir ;; | |
711 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
712 | srcdir=$ac_optarg ;; | |
713 | ||
714 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
715 | | --syscon | --sysco | --sysc | --sys | --sy) | |
716 | ac_prev=sysconfdir ;; | |
717 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
718 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
719 | sysconfdir=$ac_optarg ;; | |
720 | ||
721 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
722 | ac_prev=target_alias ;; | |
723 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
724 | target_alias=$ac_optarg ;; | |
725 | ||
726 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
727 | verbose=yes ;; | |
728 | ||
729 | -version | --version | --versio | --versi | --vers | -V) | |
730 | ac_init_version=: ;; | |
731 | ||
732 | -with-* | --with-*) | |
733 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
734 | # Reject names that are not valid shell variable names. | |
735 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
736 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
737 | { (exit 1); exit 1; }; } | |
738 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
739 | case $ac_option in | |
740 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
741 | *) ac_optarg=yes ;; | |
742 | esac | |
743 | eval "with_$ac_package='$ac_optarg'" ;; | |
744 | ||
745 | -without-* | --without-*) | |
746 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
747 | # Reject names that are not valid shell variable names. | |
748 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
749 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
750 | { (exit 1); exit 1; }; } | |
751 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
752 | eval "with_$ac_package=no" ;; | |
753 | ||
754 | --x) | |
755 | # Obsolete; use --with-x. | |
756 | with_x=yes ;; | |
757 | ||
758 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
759 | | --x-incl | --x-inc | --x-in | --x-i) | |
760 | ac_prev=x_includes ;; | |
761 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
762 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
763 | x_includes=$ac_optarg ;; | |
764 | ||
765 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
766 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
767 | ac_prev=x_libraries ;; | |
768 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
769 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
770 | x_libraries=$ac_optarg ;; | |
771 | ||
772 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
773 | Try \`$0 --help' for more information." >&2 | |
774 | { (exit 1); exit 1; }; } | |
775 | ;; | |
776 | ||
777 | *=*) | |
778 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
779 | # Reject names that are not valid shell variable names. | |
780 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
781 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
782 | { (exit 1); exit 1; }; } | |
783 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
784 | eval "$ac_envvar='$ac_optarg'" | |
785 | export $ac_envvar ;; | |
786 | ||
787 | *) | |
788 | # FIXME: should be removed in autoconf 3.0. | |
789 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
790 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
791 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
792 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
793 | ;; | |
794 | ||
795 | esac | |
796 | done | |
797 | ||
798 | if test -n "$ac_prev"; then | |
799 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
800 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
801 | { (exit 1); exit 1; }; } | |
802 | fi | |
803 | ||
804 | # Be sure to have absolute paths. | |
805 | for ac_var in exec_prefix prefix | |
806 | do | |
807 | eval ac_val=$`echo $ac_var` | |
808 | case $ac_val in | |
809 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
810 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
811 | { (exit 1); exit 1; }; };; | |
812 | esac | |
813 | done | |
814 | ||
815 | # Be sure to have absolute paths. | |
816 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
817 | localstatedir libdir includedir oldincludedir infodir mandir | |
818 | do | |
819 | eval ac_val=$`echo $ac_var` | |
820 | case $ac_val in | |
821 | [\\/$]* | ?:[\\/]* ) ;; | |
822 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
823 | { (exit 1); exit 1; }; };; | |
824 | esac | |
825 | done | |
826 | ||
827 | # There might be people who depend on the old broken behavior: `$host' | |
828 | # used to hold the argument of --host etc. | |
829 | # FIXME: To remove some day. | |
830 | build=$build_alias | |
831 | host=$host_alias | |
832 | target=$target_alias | |
833 | ||
834 | # FIXME: To remove some day. | |
835 | if test "x$host_alias" != x; then | |
836 | if test "x$build_alias" = x; then | |
837 | cross_compiling=maybe | |
838 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
839 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
840 | elif test "x$build_alias" != "x$host_alias"; then | |
841 | cross_compiling=yes | |
842 | fi | |
843 | fi | |
844 | ||
845 | ac_tool_prefix= | |
846 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
847 | ||
848 | test "$silent" = yes && exec 6>/dev/null | |
849 | ||
850 | ||
851 | # Find the source files, if location was not specified. | |
852 | if test -z "$srcdir"; then | |
853 | ac_srcdir_defaulted=yes | |
854 | # Try the directory containing this script, then its parent. | |
855 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
856 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
857 | X"$0" : 'X\(//\)[^/]' \| \ | |
858 | X"$0" : 'X\(//\)$' \| \ | |
859 | X"$0" : 'X\(/\)' \| \ | |
860 | . : '\(.\)' 2>/dev/null || | |
861 | echo X"$0" | | |
862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
863 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
864 | /^X\(\/\/\)$/{ s//\1/; q; } | |
865 | /^X\(\/\).*/{ s//\1/; q; } | |
866 | s/.*/./; q'` | |
867 | srcdir=$ac_confdir | |
868 | if test ! -r $srcdir/$ac_unique_file; then | |
869 | srcdir=.. | |
870 | fi | |
871 | else | |
872 | ac_srcdir_defaulted=no | |
873 | fi | |
874 | if test ! -r $srcdir/$ac_unique_file; then | |
875 | if test "$ac_srcdir_defaulted" = yes; then | |
876 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
877 | { (exit 1); exit 1; }; } | |
878 | else | |
879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
880 | { (exit 1); exit 1; }; } | |
881 | fi | |
882 | fi | |
883 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
884 | ac_env_build_alias_set=${build_alias+set} | |
885 | ac_env_build_alias_value=$build_alias | |
886 | ac_cv_env_build_alias_set=${build_alias+set} | |
887 | ac_cv_env_build_alias_value=$build_alias | |
888 | ac_env_host_alias_set=${host_alias+set} | |
889 | ac_env_host_alias_value=$host_alias | |
890 | ac_cv_env_host_alias_set=${host_alias+set} | |
891 | ac_cv_env_host_alias_value=$host_alias | |
892 | ac_env_target_alias_set=${target_alias+set} | |
893 | ac_env_target_alias_value=$target_alias | |
894 | ac_cv_env_target_alias_set=${target_alias+set} | |
895 | ac_cv_env_target_alias_value=$target_alias | |
896 | ac_env_CC_set=${CC+set} | |
897 | ac_env_CC_value=$CC | |
898 | ac_cv_env_CC_set=${CC+set} | |
899 | ac_cv_env_CC_value=$CC | |
900 | ac_env_CFLAGS_set=${CFLAGS+set} | |
901 | ac_env_CFLAGS_value=$CFLAGS | |
902 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
903 | ac_cv_env_CFLAGS_value=$CFLAGS | |
904 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
905 | ac_env_LDFLAGS_value=$LDFLAGS | |
906 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
907 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
908 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
909 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
910 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
911 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
912 | ac_env_CPP_set=${CPP+set} | |
913 | ac_env_CPP_value=$CPP | |
914 | ac_cv_env_CPP_set=${CPP+set} | |
915 | ac_cv_env_CPP_value=$CPP | |
916 | ||
917 | # | |
918 | # Report the --help message. | |
919 | # | |
920 | if test "$ac_init_help" = "long"; then | |
921 | # Omit some internal or obsolete options to make the list less imposing. | |
922 | # This message is too long to be a string in the A/UX 3.1 sh. | |
923 | cat <<_ACEOF | |
924 | \`configure' configures cparse 0.0.20040813 to adapt to many kinds of systems. | |
925 | ||
926 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
927 | ||
928 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
929 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
930 | ||
931 | Defaults for the options are specified in brackets. | |
932 | ||
933 | Configuration: | |
934 | -h, --help display this help and exit | |
935 | --help=short display options specific to this package | |
936 | --help=recursive display the short help of all the included packages | |
937 | -V, --version display version information and exit | |
938 | -q, --quiet, --silent do not print \`checking...' messages | |
939 | --cache-file=FILE cache test results in FILE [disabled] | |
940 | -C, --config-cache alias for \`--cache-file=config.cache' | |
941 | -n, --no-create do not create output files | |
942 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
943 | ||
944 | _ACEOF | |
945 | ||
946 | cat <<_ACEOF | |
947 | Installation directories: | |
948 | --prefix=PREFIX install architecture-independent files in PREFIX | |
949 | [$ac_default_prefix] | |
950 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
951 | [PREFIX] | |
952 | ||
953 | By default, \`make install' will install all the files in | |
954 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
955 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
956 | for instance \`--prefix=\$HOME'. | |
957 | ||
958 | For better control, use the options below. | |
959 | ||
960 | Fine tuning of the installation directories: | |
961 | --bindir=DIR user executables [EPREFIX/bin] | |
962 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
963 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
964 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
965 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
966 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
967 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
968 | --libdir=DIR object code libraries [EPREFIX/lib] | |
969 | --includedir=DIR C header files [PREFIX/include] | |
970 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
971 | --infodir=DIR info documentation [PREFIX/info] | |
972 | --mandir=DIR man documentation [PREFIX/man] | |
973 | _ACEOF | |
974 | ||
975 | cat <<\_ACEOF | |
976 | ||
977 | Program names: | |
978 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
979 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
980 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
981 | ||
982 | System types: | |
983 | --build=BUILD configure for building on BUILD [guessed] | |
984 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
985 | _ACEOF | |
986 | fi | |
987 | ||
988 | if test -n "$ac_init_help"; then | |
989 | case $ac_init_help in | |
990 | short | recursive ) echo "Configuration of cparse 0.0.20040813:";; | |
991 | esac | |
992 | cat <<\_ACEOF | |
993 | ||
994 | Optional Features: | |
995 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
996 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
997 | --disable-dependency-tracking Speeds up one-time builds | |
998 | --enable-dependency-tracking Do not reject slow dependency extractors | |
999 | --enable-static=PKGS build static libraries default=no | |
1000 | --enable-shared=PKGS build shared libraries default=yes | |
1001 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
1002 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1003 | ||
1004 | Optional Packages: | |
1005 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1006 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1007 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1008 | --with-pic try to use only PIC/non-PIC objects default=use both | |
1009 | use the garbage collector | |
1010 | ||
1011 | Some influential environment variables: | |
1012 | CC C compiler command | |
1013 | CFLAGS C compiler flags | |
1014 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1015 | nonstandard directory <lib dir> | |
1016 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1017 | headers in a nonstandard directory <include dir> | |
1018 | CPP C preprocessor | |
1019 | ||
1020 | Use these variables to override the choices made by `configure' or to help | |
1021 | it to find libraries and programs with nonstandard names/locations. | |
1022 | ||
1023 | Report bugs to <richard+cparse@sfere.greenend.org.uk>. | |
1024 | _ACEOF | |
1025 | fi | |
1026 | ||
1027 | if test "$ac_init_help" = "recursive"; then | |
1028 | # If there are subdirs, report their specific --help. | |
1029 | ac_popdir=`pwd` | |
1030 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1031 | test -d $ac_dir || continue | |
1032 | ac_builddir=. | |
1033 | ||
1034 | if test "$ac_dir" != .; then | |
1035 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1036 | # A "../" for each directory in $ac_dir_suffix. | |
1037 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1038 | else | |
1039 | ac_dir_suffix= ac_top_builddir= | |
1040 | fi | |
1041 | ||
1042 | case $srcdir in | |
1043 | .) # No --srcdir option. We are building in place. | |
1044 | ac_srcdir=. | |
1045 | if test -z "$ac_top_builddir"; then | |
1046 | ac_top_srcdir=. | |
1047 | else | |
1048 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1049 | fi ;; | |
1050 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1051 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1052 | ac_top_srcdir=$srcdir ;; | |
1053 | *) # Relative path. | |
1054 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1055 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1056 | esac | |
1057 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1058 | # absolute. | |
1059 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1060 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
1061 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1062 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1063 | ||
1064 | cd $ac_dir | |
1065 | # Check for guested configure; otherwise get Cygnus style configure. | |
1066 | if test -f $ac_srcdir/configure.gnu; then | |
1067 | echo | |
1068 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1069 | elif test -f $ac_srcdir/configure; then | |
1070 | echo | |
1071 | $SHELL $ac_srcdir/configure --help=recursive | |
1072 | elif test -f $ac_srcdir/configure.ac || | |
1073 | test -f $ac_srcdir/configure.in; then | |
1074 | echo | |
1075 | $ac_configure --help | |
1076 | else | |
1077 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1078 | fi | |
1079 | cd $ac_popdir | |
1080 | done | |
1081 | fi | |
1082 | ||
1083 | test -n "$ac_init_help" && exit 0 | |
1084 | if $ac_init_version; then | |
1085 | cat <<\_ACEOF | |
1086 | cparse configure 0.0.20040813 | |
1087 | generated by GNU Autoconf 2.53 | |
1088 | ||
1089 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
1090 | Free Software Foundation, Inc. | |
1091 | This configure script is free software; the Free Software Foundation | |
1092 | gives unlimited permission to copy, distribute and modify it. | |
1093 | _ACEOF | |
1094 | exit 0 | |
1095 | fi | |
1096 | exec 5>config.log | |
1097 | cat >&5 <<_ACEOF | |
1098 | This file contains any messages produced by compilers while | |
1099 | running configure, to aid debugging if configure makes a mistake. | |
1100 | ||
1101 | It was created by cparse $as_me 0.0.20040813, which was | |
1102 | generated by GNU Autoconf 2.53. Invocation command line was | |
1103 | ||
1104 | $ $0 $@ | |
1105 | ||
1106 | _ACEOF | |
1107 | { | |
1108 | cat <<_ASUNAME | |
1109 | ## --------- ## | |
1110 | ## Platform. ## | |
1111 | ## --------- ## | |
1112 | ||
1113 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1114 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1115 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1116 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1117 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1118 | ||
1119 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1120 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1121 | ||
1122 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1123 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1124 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1125 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1126 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1127 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1128 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1129 | ||
1130 | _ASUNAME | |
1131 | ||
1132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1133 | for as_dir in $PATH | |
1134 | do | |
1135 | IFS=$as_save_IFS | |
1136 | test -z "$as_dir" && as_dir=. | |
1137 | echo "PATH: $as_dir" | |
1138 | done | |
1139 | ||
1140 | } >&5 | |
1141 | ||
1142 | cat >&5 <<_ACEOF | |
1143 | ||
1144 | ||
1145 | ## ----------- ## | |
1146 | ## Core tests. ## | |
1147 | ## ----------- ## | |
1148 | ||
1149 | _ACEOF | |
1150 | ||
1151 | ||
1152 | # Keep a trace of the command line. | |
1153 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1154 | # Also quote any args containing shell meta-characters. | |
1155 | ac_configure_args= | |
1156 | ac_sep= | |
1157 | for ac_arg | |
1158 | do | |
1159 | case $ac_arg in | |
1160 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1161 | | --no-cr | --no-c | -n ) continue ;; | |
1162 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1163 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1164 | continue ;; | |
1165 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1166 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1167 | esac | |
1168 | case " $ac_configure_args " in | |
1169 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1170 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1171 | ac_sep=" " ;; | |
1172 | esac | |
1173 | # Get rid of the leading space. | |
1174 | done | |
1175 | ||
1176 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1177 | # config.log. We remove comments because anyway the quotes in there | |
1178 | # would cause problems or look ugly. | |
1179 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1180 | # such as our DU 5.0 friend, will then `close' the trap. | |
1181 | trap 'exit_status=$? | |
1182 | # Save into config.log some information that might help in debugging. | |
1183 | { | |
1184 | echo | |
1185 | cat <<\_ASBOX | |
1186 | ## ---------------- ## | |
1187 | ## Cache variables. ## | |
1188 | ## ---------------- ## | |
1189 | _ASBOX | |
1190 | echo | |
1191 | # The following way of writing the cache mishandles newlines in values, | |
1192 | { | |
1193 | (set) 2>&1 | | |
1194 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1195 | *ac_space=\ *) | |
1196 | sed -n \ | |
1197 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1198 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1199 | ;; | |
1200 | *) | |
1201 | sed -n \ | |
1202 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1203 | ;; | |
1204 | esac; | |
1205 | } | |
1206 | echo | |
1207 | if test -s confdefs.h; then | |
1208 | cat <<\_ASBOX | |
1209 | ## ----------- ## | |
1210 | ## confdefs.h. ## | |
1211 | ## ----------- ## | |
1212 | _ASBOX | |
1213 | echo | |
1214 | sed "/^$/d" confdefs.h | |
1215 | echo | |
1216 | fi | |
1217 | test "$ac_signal" != 0 && | |
1218 | echo "$as_me: caught signal $ac_signal" | |
1219 | echo "$as_me: exit $exit_status" | |
1220 | } >&5 | |
1221 | rm -f core core.* *.core && | |
1222 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1223 | exit $exit_status | |
1224 | ' 0 | |
1225 | for ac_signal in 1 2 13 15; do | |
1226 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1227 | done | |
1228 | ac_signal=0 | |
1229 | ||
1230 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1231 | rm -rf conftest* confdefs.h | |
1232 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1233 | echo >confdefs.h | |
1234 | ||
1235 | # Predefined preprocessor variables. | |
1236 | ||
1237 | cat >>confdefs.h <<_ACEOF | |
1238 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1239 | _ACEOF | |
1240 | ||
1241 | ||
1242 | cat >>confdefs.h <<_ACEOF | |
1243 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1244 | _ACEOF | |
1245 | ||
1246 | ||
1247 | cat >>confdefs.h <<_ACEOF | |
1248 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1249 | _ACEOF | |
1250 | ||
1251 | ||
1252 | cat >>confdefs.h <<_ACEOF | |
1253 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1254 | _ACEOF | |
1255 | ||
1256 | ||
1257 | cat >>confdefs.h <<_ACEOF | |
1258 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1259 | _ACEOF | |
1260 | ||
1261 | ||
1262 | # Let the site file select an alternate cache file if it wants to. | |
1263 | # Prefer explicitly selected file to automatically selected ones. | |
1264 | if test -z "$CONFIG_SITE"; then | |
1265 | if test "x$prefix" != xNONE; then | |
1266 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1267 | else | |
1268 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1269 | fi | |
1270 | fi | |
1271 | for ac_site_file in $CONFIG_SITE; do | |
1272 | if test -r "$ac_site_file"; then | |
1273 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1274 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1275 | sed 's/^/| /' "$ac_site_file" >&5 | |
1276 | . "$ac_site_file" | |
1277 | fi | |
1278 | done | |
1279 | ||
1280 | if test -r "$cache_file"; then | |
1281 | # Some versions of bash will fail to source /dev/null (special | |
1282 | # files actually), so we avoid doing that. | |
1283 | if test -f "$cache_file"; then | |
1284 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1285 | echo "$as_me: loading cache $cache_file" >&6;} | |
1286 | case $cache_file in | |
1287 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1288 | *) . ./$cache_file;; | |
1289 | esac | |
1290 | fi | |
1291 | else | |
1292 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1293 | echo "$as_me: creating cache $cache_file" >&6;} | |
1294 | >$cache_file | |
1295 | fi | |
1296 | ||
1297 | # Check that the precious variables saved in the cache have kept the same | |
1298 | # value. | |
1299 | ac_cache_corrupted=false | |
1300 | for ac_var in `(set) 2>&1 | | |
1301 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1302 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1303 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1304 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1305 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1306 | case $ac_old_set,$ac_new_set in | |
1307 | set,) | |
1308 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1309 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1310 | ac_cache_corrupted=: ;; | |
1311 | ,set) | |
1312 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1313 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1314 | ac_cache_corrupted=: ;; | |
1315 | ,);; | |
1316 | *) | |
1317 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1318 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1319 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1320 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1321 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1322 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1323 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1324 | ac_cache_corrupted=: | |
1325 | fi;; | |
1326 | esac | |
1327 | # Pass precious variables to config.status. | |
1328 | if test "$ac_new_set" = set; then | |
1329 | case $ac_new_val in | |
1330 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1331 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1332 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1333 | esac | |
1334 | case " $ac_configure_args " in | |
1335 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1336 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1337 | esac | |
1338 | fi | |
1339 | done | |
1340 | if $ac_cache_corrupted; then | |
1341 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1342 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1343 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1344 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1345 | { (exit 1); exit 1; }; } | |
1346 | fi | |
1347 | ||
1348 | ac_ext=c | |
1349 | ac_cpp='$CPP $CPPFLAGS' | |
1350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ac_aux_dir= | |
1380 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1381 | if test -f $ac_dir/install-sh; then | |
1382 | ac_aux_dir=$ac_dir | |
1383 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1384 | break | |
1385 | elif test -f $ac_dir/install.sh; then | |
1386 | ac_aux_dir=$ac_dir | |
1387 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1388 | break | |
1389 | elif test -f $ac_dir/shtool; then | |
1390 | ac_aux_dir=$ac_dir | |
1391 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1392 | break | |
1393 | fi | |
1394 | done | |
1395 | if test -z "$ac_aux_dir"; then | |
1396 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1397 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1398 | { (exit 1); exit 1; }; } | |
1399 | fi | |
1400 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1401 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1402 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1403 | ||
1404 | # Find a good install program. We prefer a C program (faster), | |
1405 | # so one script is as good as another. But avoid the broken or | |
1406 | # incompatible versions: | |
1407 | # SysV /etc/install, /usr/sbin/install | |
1408 | # SunOS /usr/etc/install | |
1409 | # IRIX /sbin/install | |
1410 | # AIX /bin/install | |
1411 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1412 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1413 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1414 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1415 | # ./install, which can be erroneously created by make from ./install.sh. | |
1416 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1417 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1418 | if test -z "$INSTALL"; then | |
1419 | if test "${ac_cv_path_install+set}" = set; then | |
1420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1421 | else | |
1422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1423 | for as_dir in $PATH | |
1424 | do | |
1425 | IFS=$as_save_IFS | |
1426 | test -z "$as_dir" && as_dir=. | |
1427 | # Account for people who put trailing slashes in PATH elements. | |
1428 | case $as_dir/ in | |
1429 | ./ | .// | /cC/* | \ | |
1430 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1431 | /usr/ucb/* ) ;; | |
1432 | *) | |
1433 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1434 | # Don't use installbsd from OSF since it installs stuff as root | |
1435 | # by default. | |
1436 | for ac_prog in ginstall scoinst install; do | |
1437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1438 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1439 | if test $ac_prog = install && | |
1440 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1441 | # AIX install. It has an incompatible calling convention. | |
1442 | : | |
1443 | elif test $ac_prog = install && | |
1444 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1445 | # program-specific install script used by HP pwplus--don't use. | |
1446 | : | |
1447 | else | |
1448 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1449 | break 3 | |
1450 | fi | |
1451 | fi | |
1452 | done | |
1453 | done | |
1454 | ;; | |
1455 | esac | |
1456 | done | |
1457 | ||
1458 | ||
1459 | fi | |
1460 | if test "${ac_cv_path_install+set}" = set; then | |
1461 | INSTALL=$ac_cv_path_install | |
1462 | else | |
1463 | # As a last resort, use the slow shell script. We don't cache a | |
1464 | # path for INSTALL within a source directory, because that will | |
1465 | # break other packages using the cache if that directory is | |
1466 | # removed, or if the path is relative. | |
1467 | INSTALL=$ac_install_sh | |
1468 | fi | |
1469 | fi | |
1470 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1471 | echo "${ECHO_T}$INSTALL" >&6 | |
1472 | ||
1473 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1474 | # It thinks the first close brace ends the variable substitution. | |
1475 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1476 | ||
1477 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1478 | ||
1479 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1480 | ||
1481 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1482 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1483 | # Just in case | |
1484 | sleep 1 | |
1485 | echo timestamp > conftest.file | |
1486 | # Do `set' in a subshell so we don't clobber the current shell's | |
1487 | # arguments. Must try -L first in case configure is actually a | |
1488 | # symlink; some systems play weird games with the mod time of symlinks | |
1489 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1490 | # directory). | |
1491 | if ( | |
1492 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1493 | if test "$*" = "X"; then | |
1494 | # -L didn't work. | |
1495 | set X `ls -t $srcdir/configure conftest.file` | |
1496 | fi | |
1497 | rm -f conftest.file | |
1498 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1499 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1500 | ||
1501 | # If neither matched, then we have a broken ls. This can happen | |
1502 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1503 | # broken ls alias from the environment. This has actually | |
1504 | # happened. Such a system could not be considered "sane". | |
1505 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1506 | alias in your environment" >&5 | |
1507 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1508 | alias in your environment" >&2;} | |
1509 | { (exit 1); exit 1; }; } | |
1510 | fi | |
1511 | ||
1512 | test "$2" = conftest.file | |
1513 | ) | |
1514 | then | |
1515 | # Ok. | |
1516 | : | |
1517 | else | |
1518 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1519 | Check your system clock" >&5 | |
1520 | echo "$as_me: error: newly created file is older than distributed files! | |
1521 | Check your system clock" >&2;} | |
1522 | { (exit 1); exit 1; }; } | |
1523 | fi | |
1524 | echo "$as_me:$LINENO: result: yes" >&5 | |
1525 | echo "${ECHO_T}yes" >&6 | |
1526 | test "$program_prefix" != NONE && | |
1527 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1528 | # Use a double $ so make ignores it. | |
1529 | test "$program_suffix" != NONE && | |
1530 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1531 | # Double any \ or $. echo might interpret backslashes. | |
1532 | # By default was `s,x,x', remove it if useless. | |
1533 | cat <<\_ACEOF >conftest.sed | |
1534 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1535 | _ACEOF | |
1536 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1537 | rm conftest.sed | |
1538 | ||
1539 | ||
1540 | # expand $ac_aux_dir to an absolute path | |
1541 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` | |
1542 | ||
1543 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1544 | # Use eval to expand $SHELL | |
1545 | if eval "$MISSING --run true"; then | |
1546 | am_missing_run="$MISSING --run " | |
1547 | else | |
1548 | am_missing_run= | |
1549 | am_backtick='`' | |
1550 | { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5 | |
1551 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} | |
1552 | fi | |
1553 | ||
1554 | for ac_prog in gawk mawk nawk awk | |
1555 | do | |
1556 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1557 | set dummy $ac_prog; ac_word=$2 | |
1558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1560 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1562 | else | |
1563 | if test -n "$AWK"; then | |
1564 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1565 | else | |
1566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1567 | for as_dir in $PATH | |
1568 | do | |
1569 | IFS=$as_save_IFS | |
1570 | test -z "$as_dir" && as_dir=. | |
1571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1573 | ac_cv_prog_AWK="$ac_prog" | |
1574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1575 | break 2 | |
1576 | fi | |
1577 | done | |
1578 | done | |
1579 | ||
1580 | fi | |
1581 | fi | |
1582 | AWK=$ac_cv_prog_AWK | |
1583 | if test -n "$AWK"; then | |
1584 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1585 | echo "${ECHO_T}$AWK" >&6 | |
1586 | else | |
1587 | echo "$as_me:$LINENO: result: no" >&5 | |
1588 | echo "${ECHO_T}no" >&6 | |
1589 | fi | |
1590 | ||
1591 | test -n "$AWK" && break | |
1592 | done | |
1593 | ||
1594 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1595 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1596 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1597 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1599 | else | |
1600 | cat >conftest.make <<\_ACEOF | |
1601 | all: | |
1602 | @echo 'ac_maketemp="${MAKE}"' | |
1603 | _ACEOF | |
1604 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1605 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1606 | if test -n "$ac_maketemp"; then | |
1607 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1608 | else | |
1609 | eval ac_cv_prog_make_${ac_make}_set=no | |
1610 | fi | |
1611 | rm -f conftest.make | |
1612 | fi | |
1613 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1614 | echo "$as_me:$LINENO: result: yes" >&5 | |
1615 | echo "${ECHO_T}yes" >&6 | |
1616 | SET_MAKE= | |
1617 | else | |
1618 | echo "$as_me:$LINENO: result: no" >&5 | |
1619 | echo "${ECHO_T}no" >&6 | |
1620 | SET_MAKE="MAKE=${MAKE-make}" | |
1621 | fi | |
1622 | ||
1623 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
1624 | if test "${enable_dependency_tracking+set}" = set; then | |
1625 | enableval="$enable_dependency_tracking" | |
1626 | ||
1627 | fi; | |
1628 | if test "x$enable_dependency_tracking" != xno; then | |
1629 | am_depcomp="$ac_aux_dir/depcomp" | |
1630 | AMDEPBACKSLASH='\' | |
1631 | fi | |
1632 | ||
1633 | ||
1634 | if test "x$enable_dependency_tracking" != xno; then | |
1635 | AMDEP_TRUE= | |
1636 | AMDEP_FALSE='#' | |
1637 | else | |
1638 | AMDEP_TRUE='#' | |
1639 | AMDEP_FALSE= | |
1640 | fi | |
1641 | ||
1642 | ||
1643 | ||
1644 | ||
1645 | rm -f .deps 2>/dev/null | |
1646 | mkdir .deps 2>/dev/null | |
1647 | if test -d .deps; then | |
1648 | DEPDIR=.deps | |
1649 | else | |
1650 | # MS-DOS does not allow filenames that begin with a dot. | |
1651 | DEPDIR=_deps | |
1652 | fi | |
1653 | rmdir .deps 2>/dev/null | |
1654 | ||
1655 | ||
1656 | # test to see if srcdir already configured | |
1657 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && | |
1658 | test -f $srcdir/config.status; then | |
1659 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1660 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1661 | { (exit 1); exit 1; }; } | |
1662 | fi | |
1663 | ||
1664 | # Define the identity of the package. | |
1665 | PACKAGE=cparse | |
1666 | VERSION=0.0.20040813 | |
1667 | ||
1668 | cat >>confdefs.h <<_ACEOF | |
1669 | #define PACKAGE "$PACKAGE" | |
1670 | _ACEOF | |
1671 | ||
1672 | ||
1673 | cat >>confdefs.h <<_ACEOF | |
1674 | #define VERSION "$VERSION" | |
1675 | _ACEOF | |
1676 | ||
1677 | ||
1678 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow | |
1679 | # the ones we care about. | |
1680 | ||
1681 | # Autoconf 2.50 always computes EXEEXT. However we need to be | |
1682 | # compatible with 2.13, for now. So we always define EXEEXT, but we | |
1683 | # don't compute it. | |
1684 | ||
1685 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually | |
1686 | # requests that it be used. This is a bit dumb. | |
1687 | : ${OBJEXT=o} | |
1688 | ||
1689 | ||
1690 | # Some tools Automake needs. | |
1691 | ||
1692 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | |
1693 | ||
1694 | ||
1695 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1696 | ||
1697 | ||
1698 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | |
1699 | ||
1700 | ||
1701 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1702 | ||
1703 | ||
1704 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1705 | ||
1706 | ||
1707 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1708 | ||
1709 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1710 | ||
1711 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1712 | ||
1713 | # We need awk for the "check" target. The system "awk" is bad on | |
1714 | # some platforms. | |
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ac_config_headers="$ac_config_headers config.h" | |
1721 | ||
1722 | ||
1723 | # Checks for programs. | |
1724 | ac_ext=c | |
1725 | ac_cpp='$CPP $CPPFLAGS' | |
1726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1729 | if test -n "$ac_tool_prefix"; then | |
1730 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1731 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1734 | if test "${ac_cv_prog_CC+set}" = set; then | |
1735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1736 | else | |
1737 | if test -n "$CC"; then | |
1738 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1739 | else | |
1740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1741 | for as_dir in $PATH | |
1742 | do | |
1743 | IFS=$as_save_IFS | |
1744 | test -z "$as_dir" && as_dir=. | |
1745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1747 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1749 | break 2 | |
1750 | fi | |
1751 | done | |
1752 | done | |
1753 | ||
1754 | fi | |
1755 | fi | |
1756 | CC=$ac_cv_prog_CC | |
1757 | if test -n "$CC"; then | |
1758 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1759 | echo "${ECHO_T}$CC" >&6 | |
1760 | else | |
1761 | echo "$as_me:$LINENO: result: no" >&5 | |
1762 | echo "${ECHO_T}no" >&6 | |
1763 | fi | |
1764 | ||
1765 | fi | |
1766 | if test -z "$ac_cv_prog_CC"; then | |
1767 | ac_ct_CC=$CC | |
1768 | # Extract the first word of "gcc", so it can be a program name with args. | |
1769 | set dummy gcc; ac_word=$2 | |
1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1772 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1774 | else | |
1775 | if test -n "$ac_ct_CC"; then | |
1776 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1777 | else | |
1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1779 | for as_dir in $PATH | |
1780 | do | |
1781 | IFS=$as_save_IFS | |
1782 | test -z "$as_dir" && as_dir=. | |
1783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1785 | ac_cv_prog_ac_ct_CC="gcc" | |
1786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1787 | break 2 | |
1788 | fi | |
1789 | done | |
1790 | done | |
1791 | ||
1792 | fi | |
1793 | fi | |
1794 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1795 | if test -n "$ac_ct_CC"; then | |
1796 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1797 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1798 | else | |
1799 | echo "$as_me:$LINENO: result: no" >&5 | |
1800 | echo "${ECHO_T}no" >&6 | |
1801 | fi | |
1802 | ||
1803 | CC=$ac_ct_CC | |
1804 | else | |
1805 | CC="$ac_cv_prog_CC" | |
1806 | fi | |
1807 | ||
1808 | if test -z "$CC"; then | |
1809 | if test -n "$ac_tool_prefix"; then | |
1810 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1811 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1814 | if test "${ac_cv_prog_CC+set}" = set; then | |
1815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1816 | else | |
1817 | if test -n "$CC"; then | |
1818 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1819 | else | |
1820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1821 | for as_dir in $PATH | |
1822 | do | |
1823 | IFS=$as_save_IFS | |
1824 | test -z "$as_dir" && as_dir=. | |
1825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1827 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1829 | break 2 | |
1830 | fi | |
1831 | done | |
1832 | done | |
1833 | ||
1834 | fi | |
1835 | fi | |
1836 | CC=$ac_cv_prog_CC | |
1837 | if test -n "$CC"; then | |
1838 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1839 | echo "${ECHO_T}$CC" >&6 | |
1840 | else | |
1841 | echo "$as_me:$LINENO: result: no" >&5 | |
1842 | echo "${ECHO_T}no" >&6 | |
1843 | fi | |
1844 | ||
1845 | fi | |
1846 | if test -z "$ac_cv_prog_CC"; then | |
1847 | ac_ct_CC=$CC | |
1848 | # Extract the first word of "cc", so it can be a program name with args. | |
1849 | set dummy cc; ac_word=$2 | |
1850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1852 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1854 | else | |
1855 | if test -n "$ac_ct_CC"; then | |
1856 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1857 | else | |
1858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1859 | for as_dir in $PATH | |
1860 | do | |
1861 | IFS=$as_save_IFS | |
1862 | test -z "$as_dir" && as_dir=. | |
1863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1865 | ac_cv_prog_ac_ct_CC="cc" | |
1866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1867 | break 2 | |
1868 | fi | |
1869 | done | |
1870 | done | |
1871 | ||
1872 | fi | |
1873 | fi | |
1874 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1875 | if test -n "$ac_ct_CC"; then | |
1876 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1877 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1878 | else | |
1879 | echo "$as_me:$LINENO: result: no" >&5 | |
1880 | echo "${ECHO_T}no" >&6 | |
1881 | fi | |
1882 | ||
1883 | CC=$ac_ct_CC | |
1884 | else | |
1885 | CC="$ac_cv_prog_CC" | |
1886 | fi | |
1887 | ||
1888 | fi | |
1889 | if test -z "$CC"; then | |
1890 | # Extract the first word of "cc", so it can be a program name with args. | |
1891 | set dummy cc; ac_word=$2 | |
1892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1894 | if test "${ac_cv_prog_CC+set}" = set; then | |
1895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1896 | else | |
1897 | if test -n "$CC"; then | |
1898 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1899 | else | |
1900 | ac_prog_rejected=no | |
1901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1902 | for as_dir in $PATH | |
1903 | do | |
1904 | IFS=$as_save_IFS | |
1905 | test -z "$as_dir" && as_dir=. | |
1906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1907 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1908 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1909 | ac_prog_rejected=yes | |
1910 | continue | |
1911 | fi | |
1912 | ac_cv_prog_CC="cc" | |
1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1914 | break 2 | |
1915 | fi | |
1916 | done | |
1917 | done | |
1918 | ||
1919 | if test $ac_prog_rejected = yes; then | |
1920 | # We found a bogon in the path, so make sure we never use it. | |
1921 | set dummy $ac_cv_prog_CC | |
1922 | shift | |
1923 | if test $# != 0; then | |
1924 | # We chose a different compiler from the bogus one. | |
1925 | # However, it has the same basename, so the bogon will be chosen | |
1926 | # first if we set CC to just the basename; use the full file name. | |
1927 | shift | |
1928 | set dummy "$as_dir/$ac_word" ${1+"$@"} | |
1929 | shift | |
1930 | ac_cv_prog_CC="$@" | |
1931 | fi | |
1932 | fi | |
1933 | fi | |
1934 | fi | |
1935 | CC=$ac_cv_prog_CC | |
1936 | if test -n "$CC"; then | |
1937 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1938 | echo "${ECHO_T}$CC" >&6 | |
1939 | else | |
1940 | echo "$as_me:$LINENO: result: no" >&5 | |
1941 | echo "${ECHO_T}no" >&6 | |
1942 | fi | |
1943 | ||
1944 | fi | |
1945 | if test -z "$CC"; then | |
1946 | if test -n "$ac_tool_prefix"; then | |
1947 | for ac_prog in cl | |
1948 | do | |
1949 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1950 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1953 | if test "${ac_cv_prog_CC+set}" = set; then | |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1955 | else | |
1956 | if test -n "$CC"; then | |
1957 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1958 | else | |
1959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1960 | for as_dir in $PATH | |
1961 | do | |
1962 | IFS=$as_save_IFS | |
1963 | test -z "$as_dir" && as_dir=. | |
1964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1965 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1966 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1968 | break 2 | |
1969 | fi | |
1970 | done | |
1971 | done | |
1972 | ||
1973 | fi | |
1974 | fi | |
1975 | CC=$ac_cv_prog_CC | |
1976 | if test -n "$CC"; then | |
1977 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1978 | echo "${ECHO_T}$CC" >&6 | |
1979 | else | |
1980 | echo "$as_me:$LINENO: result: no" >&5 | |
1981 | echo "${ECHO_T}no" >&6 | |
1982 | fi | |
1983 | ||
1984 | test -n "$CC" && break | |
1985 | done | |
1986 | fi | |
1987 | if test -z "$CC"; then | |
1988 | ac_ct_CC=$CC | |
1989 | for ac_prog in cl | |
1990 | do | |
1991 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1992 | set dummy $ac_prog; ac_word=$2 | |
1993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1995 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1997 | else | |
1998 | if test -n "$ac_ct_CC"; then | |
1999 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2000 | else | |
2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2002 | for as_dir in $PATH | |
2003 | do | |
2004 | IFS=$as_save_IFS | |
2005 | test -z "$as_dir" && as_dir=. | |
2006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2008 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2010 | break 2 | |
2011 | fi | |
2012 | done | |
2013 | done | |
2014 | ||
2015 | fi | |
2016 | fi | |
2017 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2018 | if test -n "$ac_ct_CC"; then | |
2019 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2020 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2021 | else | |
2022 | echo "$as_me:$LINENO: result: no" >&5 | |
2023 | echo "${ECHO_T}no" >&6 | |
2024 | fi | |
2025 | ||
2026 | test -n "$ac_ct_CC" && break | |
2027 | done | |
2028 | ||
2029 | CC=$ac_ct_CC | |
2030 | fi | |
2031 | ||
2032 | fi | |
2033 | ||
2034 | ||
2035 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2036 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
2037 | { (exit 1); exit 1; }; } | |
2038 | ||
2039 | # Provide some information about the compiler. | |
2040 | echo "$as_me:$LINENO:" \ | |
2041 | "checking for C compiler version" >&5 | |
2042 | ac_compiler=`set X $ac_compile; echo $2` | |
2043 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2044 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2045 | ac_status=$? | |
2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2047 | (exit $ac_status); } | |
2048 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2049 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2050 | ac_status=$? | |
2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2052 | (exit $ac_status); } | |
2053 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2054 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2055 | ac_status=$? | |
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2057 | (exit $ac_status); } | |
2058 | ||
2059 | cat >conftest.$ac_ext <<_ACEOF | |
2060 | #line $LINENO "configure" | |
2061 | #include "confdefs.h" | |
2062 | ||
2063 | #ifdef F77_DUMMY_MAIN | |
2064 | # ifdef __cplusplus | |
2065 | extern "C" | |
2066 | # endif | |
2067 | int F77_DUMMY_MAIN() { return 1; } | |
2068 | #endif | |
2069 | int | |
2070 | main () | |
2071 | { | |
2072 | ||
2073 | ; | |
2074 | return 0; | |
2075 | } | |
2076 | _ACEOF | |
2077 | ac_clean_files_save=$ac_clean_files | |
2078 | ac_clean_files="$ac_clean_files a.out a.exe" | |
2079 | # Try to create an executable without -o first, disregard a.out. | |
2080 | # It will help us diagnose broken compilers, and finding out an intuition | |
2081 | # of exeext. | |
2082 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
2083 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
2084 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2085 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2086 | (eval $ac_link_default) 2>&5 | |
2087 | ac_status=$? | |
2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2089 | (exit $ac_status); }; then | |
2090 | # Find the output, starting from the most likely. This scheme is | |
2091 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2092 | # resort. | |
2093 | ||
2094 | # Be careful to initialize this variable, since it used to be cached. | |
2095 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2096 | ac_cv_exeext= | |
2097 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
2098 | ls a.out conftest 2>/dev/null; | |
2099 | ls a.* conftest.* 2>/dev/null`; do | |
2100 | case $ac_file in | |
2101 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
2102 | a.out ) # We found the default executable, but exeext='' is most | |
2103 | # certainly right. | |
2104 | break;; | |
2105 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2106 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2107 | export ac_cv_exeext | |
2108 | break;; | |
2109 | * ) break;; | |
2110 | esac | |
2111 | done | |
2112 | else | |
2113 | echo "$as_me: failed program was:" >&5 | |
2114 | cat conftest.$ac_ext >&5 | |
2115 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | |
2116 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
2117 | { (exit 77); exit 77; }; } | |
2118 | fi | |
2119 | ||
2120 | ac_exeext=$ac_cv_exeext | |
2121 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2122 | echo "${ECHO_T}$ac_file" >&6 | |
2123 | ||
2124 | # Check the compiler produces executables we can run. If not, either | |
2125 | # the compiler is broken, or we cross compile. | |
2126 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2127 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2128 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2129 | # If not cross compiling, check that we can run a simple program. | |
2130 | if test "$cross_compiling" != yes; then | |
2131 | if { ac_try='./$ac_file' | |
2132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2133 | (eval $ac_try) 2>&5 | |
2134 | ac_status=$? | |
2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2136 | (exit $ac_status); }; }; then | |
2137 | cross_compiling=no | |
2138 | else | |
2139 | if test "$cross_compiling" = maybe; then | |
2140 | cross_compiling=yes | |
2141 | else | |
2142 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2143 | If you meant to cross compile, use \`--host'." >&5 | |
2144 | echo "$as_me: error: cannot run C compiled programs. | |
2145 | If you meant to cross compile, use \`--host'." >&2;} | |
2146 | { (exit 1); exit 1; }; } | |
2147 | fi | |
2148 | fi | |
2149 | fi | |
2150 | echo "$as_me:$LINENO: result: yes" >&5 | |
2151 | echo "${ECHO_T}yes" >&6 | |
2152 | ||
2153 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2154 | ac_clean_files=$ac_clean_files_save | |
2155 | # Check the compiler produces executables we can run. If not, either | |
2156 | # the compiler is broken, or we cross compile. | |
2157 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2158 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2159 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2160 | echo "${ECHO_T}$cross_compiling" >&6 | |
2161 | ||
2162 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2163 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2165 | (eval $ac_link) 2>&5 | |
2166 | ac_status=$? | |
2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2168 | (exit $ac_status); }; then | |
2169 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2170 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2171 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2172 | # `rm'. | |
2173 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2174 | case $ac_file in | |
2175 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2176 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2177 | export ac_cv_exeext | |
2178 | break;; | |
2179 | * ) break;; | |
2180 | esac | |
2181 | done | |
2182 | else | |
2183 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | |
2184 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
2185 | { (exit 1); exit 1; }; } | |
2186 | fi | |
2187 | ||
2188 | rm -f conftest$ac_cv_exeext | |
2189 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2190 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2191 | ||
2192 | rm -f conftest.$ac_ext | |
2193 | EXEEXT=$ac_cv_exeext | |
2194 | ac_exeext=$EXEEXT | |
2195 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2196 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2197 | if test "${ac_cv_objext+set}" = set; then | |
2198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2199 | else | |
2200 | cat >conftest.$ac_ext <<_ACEOF | |
2201 | #line $LINENO "configure" | |
2202 | #include "confdefs.h" | |
2203 | ||
2204 | #ifdef F77_DUMMY_MAIN | |
2205 | # ifdef __cplusplus | |
2206 | extern "C" | |
2207 | # endif | |
2208 | int F77_DUMMY_MAIN() { return 1; } | |
2209 | #endif | |
2210 | int | |
2211 | main () | |
2212 | { | |
2213 | ||
2214 | ; | |
2215 | return 0; | |
2216 | } | |
2217 | _ACEOF | |
2218 | rm -f conftest.o conftest.obj | |
2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2220 | (eval $ac_compile) 2>&5 | |
2221 | ac_status=$? | |
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2223 | (exit $ac_status); }; then | |
2224 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2225 | case $ac_file in | |
2226 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2227 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2228 | break;; | |
2229 | esac | |
2230 | done | |
2231 | else | |
2232 | echo "$as_me: failed program was:" >&5 | |
2233 | cat conftest.$ac_ext >&5 | |
2234 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
2235 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
2236 | { (exit 1); exit 1; }; } | |
2237 | fi | |
2238 | ||
2239 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2240 | fi | |
2241 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2242 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2243 | OBJEXT=$ac_cv_objext | |
2244 | ac_objext=$OBJEXT | |
2245 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2246 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2247 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2249 | else | |
2250 | cat >conftest.$ac_ext <<_ACEOF | |
2251 | #line $LINENO "configure" | |
2252 | #include "confdefs.h" | |
2253 | ||
2254 | #ifdef F77_DUMMY_MAIN | |
2255 | # ifdef __cplusplus | |
2256 | extern "C" | |
2257 | # endif | |
2258 | int F77_DUMMY_MAIN() { return 1; } | |
2259 | #endif | |
2260 | int | |
2261 | main () | |
2262 | { | |
2263 | #ifndef __GNUC__ | |
2264 | choke me | |
2265 | #endif | |
2266 | ||
2267 | ; | |
2268 | return 0; | |
2269 | } | |
2270 | _ACEOF | |
2271 | rm -f conftest.$ac_objext | |
2272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2273 | (eval $ac_compile) 2>&5 | |
2274 | ac_status=$? | |
2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2276 | (exit $ac_status); } && | |
2277 | { ac_try='test -s conftest.$ac_objext' | |
2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2279 | (eval $ac_try) 2>&5 | |
2280 | ac_status=$? | |
2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2282 | (exit $ac_status); }; }; then | |
2283 | ac_compiler_gnu=yes | |
2284 | else | |
2285 | echo "$as_me: failed program was:" >&5 | |
2286 | cat conftest.$ac_ext >&5 | |
2287 | ac_compiler_gnu=no | |
2288 | fi | |
2289 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2290 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2291 | ||
2292 | fi | |
2293 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2294 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2295 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2296 | ac_test_CFLAGS=${CFLAGS+set} | |
2297 | ac_save_CFLAGS=$CFLAGS | |
2298 | CFLAGS="-g" | |
2299 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2300 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2301 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2303 | else | |
2304 | cat >conftest.$ac_ext <<_ACEOF | |
2305 | #line $LINENO "configure" | |
2306 | #include "confdefs.h" | |
2307 | ||
2308 | #ifdef F77_DUMMY_MAIN | |
2309 | # ifdef __cplusplus | |
2310 | extern "C" | |
2311 | # endif | |
2312 | int F77_DUMMY_MAIN() { return 1; } | |
2313 | #endif | |
2314 | int | |
2315 | main () | |
2316 | { | |
2317 | ||
2318 | ; | |
2319 | return 0; | |
2320 | } | |
2321 | _ACEOF | |
2322 | rm -f conftest.$ac_objext | |
2323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2324 | (eval $ac_compile) 2>&5 | |
2325 | ac_status=$? | |
2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2327 | (exit $ac_status); } && | |
2328 | { ac_try='test -s conftest.$ac_objext' | |
2329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2330 | (eval $ac_try) 2>&5 | |
2331 | ac_status=$? | |
2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2333 | (exit $ac_status); }; }; then | |
2334 | ac_cv_prog_cc_g=yes | |
2335 | else | |
2336 | echo "$as_me: failed program was:" >&5 | |
2337 | cat conftest.$ac_ext >&5 | |
2338 | ac_cv_prog_cc_g=no | |
2339 | fi | |
2340 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2341 | fi | |
2342 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2343 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2344 | if test "$ac_test_CFLAGS" = set; then | |
2345 | CFLAGS=$ac_save_CFLAGS | |
2346 | elif test $ac_cv_prog_cc_g = yes; then | |
2347 | if test "$GCC" = yes; then | |
2348 | CFLAGS="-g -O2" | |
2349 | else | |
2350 | CFLAGS="-g" | |
2351 | fi | |
2352 | else | |
2353 | if test "$GCC" = yes; then | |
2354 | CFLAGS="-O2" | |
2355 | else | |
2356 | CFLAGS= | |
2357 | fi | |
2358 | fi | |
2359 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2360 | # in C++ we need to declare it. In case someone uses the same compiler | |
2361 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2362 | # the declaration of exit, since it's the most demanding environment. | |
2363 | cat >conftest.$ac_ext <<_ACEOF | |
2364 | #ifndef __cplusplus | |
2365 | choke me | |
2366 | #endif | |
2367 | _ACEOF | |
2368 | rm -f conftest.$ac_objext | |
2369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2370 | (eval $ac_compile) 2>&5 | |
2371 | ac_status=$? | |
2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2373 | (exit $ac_status); } && | |
2374 | { ac_try='test -s conftest.$ac_objext' | |
2375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2376 | (eval $ac_try) 2>&5 | |
2377 | ac_status=$? | |
2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2379 | (exit $ac_status); }; }; then | |
2380 | for ac_declaration in \ | |
2381 | ''\ | |
2382 | '#include <stdlib.h>' \ | |
2383 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2384 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2385 | 'extern "C" void exit (int) throw ();' \ | |
2386 | 'extern "C" void exit (int);' \ | |
2387 | 'void exit (int);' | |
2388 | do | |
2389 | cat >conftest.$ac_ext <<_ACEOF | |
2390 | #line $LINENO "configure" | |
2391 | #include "confdefs.h" | |
2392 | #include <stdlib.h> | |
2393 | $ac_declaration | |
2394 | #ifdef F77_DUMMY_MAIN | |
2395 | # ifdef __cplusplus | |
2396 | extern "C" | |
2397 | # endif | |
2398 | int F77_DUMMY_MAIN() { return 1; } | |
2399 | #endif | |
2400 | int | |
2401 | main () | |
2402 | { | |
2403 | exit (42); | |
2404 | ; | |
2405 | return 0; | |
2406 | } | |
2407 | _ACEOF | |
2408 | rm -f conftest.$ac_objext | |
2409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2410 | (eval $ac_compile) 2>&5 | |
2411 | ac_status=$? | |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2413 | (exit $ac_status); } && | |
2414 | { ac_try='test -s conftest.$ac_objext' | |
2415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2416 | (eval $ac_try) 2>&5 | |
2417 | ac_status=$? | |
2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2419 | (exit $ac_status); }; }; then | |
2420 | : | |
2421 | else | |
2422 | echo "$as_me: failed program was:" >&5 | |
2423 | cat conftest.$ac_ext >&5 | |
2424 | continue | |
2425 | fi | |
2426 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2427 | cat >conftest.$ac_ext <<_ACEOF | |
2428 | #line $LINENO "configure" | |
2429 | #include "confdefs.h" | |
2430 | $ac_declaration | |
2431 | #ifdef F77_DUMMY_MAIN | |
2432 | # ifdef __cplusplus | |
2433 | extern "C" | |
2434 | # endif | |
2435 | int F77_DUMMY_MAIN() { return 1; } | |
2436 | #endif | |
2437 | int | |
2438 | main () | |
2439 | { | |
2440 | exit (42); | |
2441 | ; | |
2442 | return 0; | |
2443 | } | |
2444 | _ACEOF | |
2445 | rm -f conftest.$ac_objext | |
2446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2447 | (eval $ac_compile) 2>&5 | |
2448 | ac_status=$? | |
2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2450 | (exit $ac_status); } && | |
2451 | { ac_try='test -s conftest.$ac_objext' | |
2452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2453 | (eval $ac_try) 2>&5 | |
2454 | ac_status=$? | |
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2456 | (exit $ac_status); }; }; then | |
2457 | break | |
2458 | else | |
2459 | echo "$as_me: failed program was:" >&5 | |
2460 | cat conftest.$ac_ext >&5 | |
2461 | fi | |
2462 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2463 | done | |
2464 | rm -f conftest* | |
2465 | if test -n "$ac_declaration"; then | |
2466 | echo '#ifdef __cplusplus' >>confdefs.h | |
2467 | echo $ac_declaration >>confdefs.h | |
2468 | echo '#endif' >>confdefs.h | |
2469 | fi | |
2470 | ||
2471 | else | |
2472 | echo "$as_me: failed program was:" >&5 | |
2473 | cat conftest.$ac_ext >&5 | |
2474 | fi | |
2475 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2476 | ac_ext=c | |
2477 | ac_cpp='$CPP $CPPFLAGS' | |
2478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2481 | ||
2482 | ac_config_commands="$ac_config_commands default-1" | |
2483 | ||
2484 | am_make=${MAKE-make} | |
2485 | cat > confinc << 'END' | |
2486 | doit: | |
2487 | @echo done | |
2488 | END | |
2489 | # If we don't find an include directive, just comment out the code. | |
2490 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2491 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2492 | am__include='#' | |
2493 | am__quote= | |
2494 | _am_result=none | |
2495 | # First try GNU make style include. | |
2496 | echo "include confinc" > confmf | |
2497 | # We grep out `Entering directory' and `Leaving directory' | |
2498 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2499 | # In particular we don't look at `^make:' because GNU make might | |
2500 | # be invoked under some other name (usually "gmake"), in which | |
2501 | # case it prints its new name instead of `make'. | |
2502 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2503 | am__include=include | |
2504 | am__quote= | |
2505 | _am_result=GNU | |
2506 | fi | |
2507 | # Now try BSD make style include. | |
2508 | if test "$am__include" = "#"; then | |
2509 | echo '.include "confinc"' > confmf | |
2510 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2511 | am__include=.include | |
2512 | am__quote='"' | |
2513 | _am_result=BSD | |
2514 | fi | |
2515 | fi | |
2516 | ||
2517 | ||
2518 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2519 | echo "${ECHO_T}$_am_result" >&6 | |
2520 | rm -f confinc confmf | |
2521 | ||
2522 | ||
2523 | depcc="$CC" am_compiler_list= | |
2524 | ||
2525 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2526 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2527 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2529 | else | |
2530 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2531 | # We make a subdir and do the tests there. Otherwise we can end up | |
2532 | # making bogus files that we don't know about and never remove. For | |
2533 | # instance it was reported that on HP-UX the gcc test will end up | |
2534 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2535 | # in D'. | |
2536 | mkdir conftest.dir | |
2537 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2538 | # using a relative directory. | |
2539 | cp "$am_depcomp" conftest.dir | |
2540 | cd conftest.dir | |
2541 | ||
2542 | am_cv_CC_dependencies_compiler_type=none | |
2543 | if test "$am_compiler_list" = ""; then | |
2544 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2545 | fi | |
2546 | for depmode in $am_compiler_list; do | |
2547 | # We need to recreate these files for each test, as the compiler may | |
2548 | # overwrite some of them when testing with obscure command lines. | |
2549 | # This happens at least with the AIX C compiler. | |
2550 | echo '#include "conftest.h"' > conftest.c | |
2551 | echo 'int i;' > conftest.h | |
2552 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2553 | ||
2554 | case $depmode in | |
2555 | nosideeffect) | |
2556 | # after this tag, mechanisms are not by side-effect, so they'll | |
2557 | # only be used when explicitly requested | |
2558 | if test "x$enable_dependency_tracking" = xyes; then | |
2559 | continue | |
2560 | else | |
2561 | break | |
2562 | fi | |
2563 | ;; | |
2564 | none) break ;; | |
2565 | esac | |
2566 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2567 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2568 | # handle `-M -o', and we need to detect this. | |
2569 | if depmode=$depmode \ | |
2570 | source=conftest.c object=conftest.o \ | |
2571 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2572 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2573 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2574 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2575 | am_cv_CC_dependencies_compiler_type=$depmode | |
2576 | break | |
2577 | fi | |
2578 | done | |
2579 | ||
2580 | cd .. | |
2581 | rm -rf conftest.dir | |
2582 | else | |
2583 | am_cv_CC_dependencies_compiler_type=none | |
2584 | fi | |
2585 | ||
2586 | fi | |
2587 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2588 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2589 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" | |
2590 | ||
2591 | ||
2592 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
2593 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
2594 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
2595 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2597 | else | |
2598 | cat >conftest.make <<\_ACEOF | |
2599 | all: | |
2600 | @echo 'ac_maketemp="${MAKE}"' | |
2601 | _ACEOF | |
2602 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2603 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2604 | if test -n "$ac_maketemp"; then | |
2605 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2606 | else | |
2607 | eval ac_cv_prog_make_${ac_make}_set=no | |
2608 | fi | |
2609 | rm -f conftest.make | |
2610 | fi | |
2611 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2612 | echo "$as_me:$LINENO: result: yes" >&5 | |
2613 | echo "${ECHO_T}yes" >&6 | |
2614 | SET_MAKE= | |
2615 | else | |
2616 | echo "$as_me:$LINENO: result: no" >&5 | |
2617 | echo "${ECHO_T}no" >&6 | |
2618 | SET_MAKE="MAKE=${MAKE-make}" | |
2619 | fi | |
2620 | ||
2621 | ||
2622 | for ac_prog in 'bison -y' byacc | |
2623 | do | |
2624 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2625 | set dummy $ac_prog; ac_word=$2 | |
2626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2628 | if test "${ac_cv_prog_YACC+set}" = set; then | |
2629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2630 | else | |
2631 | if test -n "$YACC"; then | |
2632 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2633 | else | |
2634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2635 | for as_dir in $PATH | |
2636 | do | |
2637 | IFS=$as_save_IFS | |
2638 | test -z "$as_dir" && as_dir=. | |
2639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2641 | ac_cv_prog_YACC="$ac_prog" | |
2642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2643 | break 2 | |
2644 | fi | |
2645 | done | |
2646 | done | |
2647 | ||
2648 | fi | |
2649 | fi | |
2650 | YACC=$ac_cv_prog_YACC | |
2651 | if test -n "$YACC"; then | |
2652 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
2653 | echo "${ECHO_T}$YACC" >&6 | |
2654 | else | |
2655 | echo "$as_me:$LINENO: result: no" >&5 | |
2656 | echo "${ECHO_T}no" >&6 | |
2657 | fi | |
2658 | ||
2659 | test -n "$YACC" && break | |
2660 | done | |
2661 | test -n "$YACC" || YACC="yacc" | |
2662 | ||
2663 | ||
2664 | ||
2665 | for ac_prog in flex lex | |
2666 | do | |
2667 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2668 | set dummy $ac_prog; ac_word=$2 | |
2669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2671 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2673 | else | |
2674 | if test -n "$LEX"; then | |
2675 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2676 | else | |
2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2678 | for as_dir in $PATH | |
2679 | do | |
2680 | IFS=$as_save_IFS | |
2681 | test -z "$as_dir" && as_dir=. | |
2682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2684 | ac_cv_prog_LEX="$ac_prog" | |
2685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2686 | break 2 | |
2687 | fi | |
2688 | done | |
2689 | done | |
2690 | ||
2691 | fi | |
2692 | fi | |
2693 | LEX=$ac_cv_prog_LEX | |
2694 | if test -n "$LEX"; then | |
2695 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
2696 | echo "${ECHO_T}$LEX" >&6 | |
2697 | else | |
2698 | echo "$as_me:$LINENO: result: no" >&5 | |
2699 | echo "${ECHO_T}no" >&6 | |
2700 | fi | |
2701 | ||
2702 | test -n "$LEX" && break | |
2703 | done | |
2704 | test -n "$LEX" || LEX="${am_missing_run}flex" | |
2705 | ||
2706 | for ac_prog in flex lex | |
2707 | do | |
2708 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2709 | set dummy $ac_prog; ac_word=$2 | |
2710 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2712 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2714 | else | |
2715 | if test -n "$LEX"; then | |
2716 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2717 | else | |
2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2719 | for as_dir in $PATH | |
2720 | do | |
2721 | IFS=$as_save_IFS | |
2722 | test -z "$as_dir" && as_dir=. | |
2723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2725 | ac_cv_prog_LEX="$ac_prog" | |
2726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2727 | break 2 | |
2728 | fi | |
2729 | done | |
2730 | done | |
2731 | ||
2732 | fi | |
2733 | fi | |
2734 | LEX=$ac_cv_prog_LEX | |
2735 | if test -n "$LEX"; then | |
2736 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
2737 | echo "${ECHO_T}$LEX" >&6 | |
2738 | else | |
2739 | echo "$as_me:$LINENO: result: no" >&5 | |
2740 | echo "${ECHO_T}no" >&6 | |
2741 | fi | |
2742 | ||
2743 | test -n "$LEX" && break | |
2744 | done | |
2745 | test -n "$LEX" || LEX=":" | |
2746 | ||
2747 | if test -z "$LEXLIB" | |
2748 | then | |
2749 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
2750 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
2751 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
2752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2753 | else | |
2754 | ac_check_lib_save_LIBS=$LIBS | |
2755 | LIBS="-lfl $LIBS" | |
2756 | cat >conftest.$ac_ext <<_ACEOF | |
2757 | #line $LINENO "configure" | |
2758 | #include "confdefs.h" | |
2759 | ||
2760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2761 | #ifdef __cplusplus | |
2762 | extern "C" | |
2763 | #endif | |
2764 | /* We use char because int might match the return type of a gcc2 | |
2765 | builtin and then its argument prototype would still apply. */ | |
2766 | char yywrap (); | |
2767 | #ifdef F77_DUMMY_MAIN | |
2768 | # ifdef __cplusplus | |
2769 | extern "C" | |
2770 | # endif | |
2771 | int F77_DUMMY_MAIN() { return 1; } | |
2772 | #endif | |
2773 | int | |
2774 | main () | |
2775 | { | |
2776 | yywrap (); | |
2777 | ; | |
2778 | return 0; | |
2779 | } | |
2780 | _ACEOF | |
2781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2783 | (eval $ac_link) 2>&5 | |
2784 | ac_status=$? | |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2786 | (exit $ac_status); } && | |
2787 | { ac_try='test -s conftest$ac_exeext' | |
2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2789 | (eval $ac_try) 2>&5 | |
2790 | ac_status=$? | |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2792 | (exit $ac_status); }; }; then | |
2793 | ac_cv_lib_fl_yywrap=yes | |
2794 | else | |
2795 | echo "$as_me: failed program was:" >&5 | |
2796 | cat conftest.$ac_ext >&5 | |
2797 | ac_cv_lib_fl_yywrap=no | |
2798 | fi | |
2799 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2800 | LIBS=$ac_check_lib_save_LIBS | |
2801 | fi | |
2802 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
2803 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
2804 | if test $ac_cv_lib_fl_yywrap = yes; then | |
2805 | LEXLIB="-lfl" | |
2806 | else | |
2807 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
2808 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
2809 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
2810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2811 | else | |
2812 | ac_check_lib_save_LIBS=$LIBS | |
2813 | LIBS="-ll $LIBS" | |
2814 | cat >conftest.$ac_ext <<_ACEOF | |
2815 | #line $LINENO "configure" | |
2816 | #include "confdefs.h" | |
2817 | ||
2818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2819 | #ifdef __cplusplus | |
2820 | extern "C" | |
2821 | #endif | |
2822 | /* We use char because int might match the return type of a gcc2 | |
2823 | builtin and then its argument prototype would still apply. */ | |
2824 | char yywrap (); | |
2825 | #ifdef F77_DUMMY_MAIN | |
2826 | # ifdef __cplusplus | |
2827 | extern "C" | |
2828 | # endif | |
2829 | int F77_DUMMY_MAIN() { return 1; } | |
2830 | #endif | |
2831 | int | |
2832 | main () | |
2833 | { | |
2834 | yywrap (); | |
2835 | ; | |
2836 | return 0; | |
2837 | } | |
2838 | _ACEOF | |
2839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2841 | (eval $ac_link) 2>&5 | |
2842 | ac_status=$? | |
2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2844 | (exit $ac_status); } && | |
2845 | { ac_try='test -s conftest$ac_exeext' | |
2846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2847 | (eval $ac_try) 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); }; }; then | |
2851 | ac_cv_lib_l_yywrap=yes | |
2852 | else | |
2853 | echo "$as_me: failed program was:" >&5 | |
2854 | cat conftest.$ac_ext >&5 | |
2855 | ac_cv_lib_l_yywrap=no | |
2856 | fi | |
2857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2858 | LIBS=$ac_check_lib_save_LIBS | |
2859 | fi | |
2860 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
2861 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
2862 | if test $ac_cv_lib_l_yywrap = yes; then | |
2863 | LEXLIB="-ll" | |
2864 | fi | |
2865 | ||
2866 | fi | |
2867 | ||
2868 | fi | |
2869 | ||
2870 | if test "x$LEX" != "x:"; then | |
2871 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
2872 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
2873 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
2874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2875 | else | |
2876 | # The minimal lex program is just a single line: %%. But some broken lexes | |
2877 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
2878 | cat >conftest.l <<_ACEOF | |
2879 | %% | |
2880 | %% | |
2881 | _ACEOF | |
2882 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
2883 | (eval $LEX conftest.l) 2>&5 | |
2884 | ac_status=$? | |
2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2886 | (exit $ac_status); } | |
2887 | if test -f lex.yy.c; then | |
2888 | ac_cv_prog_lex_root=lex.yy | |
2889 | elif test -f lexyy.c; then | |
2890 | ac_cv_prog_lex_root=lexyy | |
2891 | else | |
2892 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
2893 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
2894 | { (exit 1); exit 1; }; } | |
2895 | fi | |
2896 | fi | |
2897 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
2898 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
2899 | rm -f conftest.l | |
2900 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
2901 | ||
2902 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
2903 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
2904 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
2905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2906 | else | |
2907 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
2908 | # default is implementation-dependent. Figure out which it is, since | |
2909 | # not all implementations provide the %pointer and %array declarations. | |
2910 | ac_cv_prog_lex_yytext_pointer=no | |
2911 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
2912 | ac_save_LIBS=$LIBS | |
2913 | LIBS="$LIBS $LEXLIB" | |
2914 | cat >conftest.$ac_ext <<_ACEOF | |
2915 | `cat $LEX_OUTPUT_ROOT.c` | |
2916 | _ACEOF | |
2917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2919 | (eval $ac_link) 2>&5 | |
2920 | ac_status=$? | |
2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2922 | (exit $ac_status); } && | |
2923 | { ac_try='test -s conftest$ac_exeext' | |
2924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2925 | (eval $ac_try) 2>&5 | |
2926 | ac_status=$? | |
2927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2928 | (exit $ac_status); }; }; then | |
2929 | ac_cv_prog_lex_yytext_pointer=yes | |
2930 | else | |
2931 | echo "$as_me: failed program was:" >&5 | |
2932 | cat conftest.$ac_ext >&5 | |
2933 | fi | |
2934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2935 | LIBS=$ac_save_LIBS | |
2936 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
2937 | ||
2938 | fi | |
2939 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
2940 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
2941 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
2942 | ||
2943 | cat >>confdefs.h <<\_ACEOF | |
2944 | #define YYTEXT_POINTER 1 | |
2945 | _ACEOF | |
2946 | ||
2947 | fi | |
2948 | ||
2949 | fi | |
2950 | ||
2951 | ||
2952 | # libtool config | |
2953 | # Check whether --enable-static or --disable-static was given. | |
2954 | if test "${enable_static+set}" = set; then | |
2955 | enableval="$enable_static" | |
2956 | p=${PACKAGE-default} | |
2957 | case $enableval in | |
2958 | yes) enable_static=yes ;; | |
2959 | no) enable_static=no ;; | |
2960 | *) | |
2961 | enable_static=no | |
2962 | # Look at the argument we got. We use all the common list separators. | |
2963 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2964 | for pkg in $enableval; do | |
2965 | if test "X$pkg" = "X$p"; then | |
2966 | enable_static=yes | |
2967 | fi | |
2968 | done | |
2969 | IFS="$ac_save_ifs" | |
2970 | ;; | |
2971 | esac | |
2972 | else | |
2973 | enable_static=no | |
2974 | fi; | |
2975 | ||
2976 | # Check whether --enable-shared or --disable-shared was given. | |
2977 | if test "${enable_shared+set}" = set; then | |
2978 | enableval="$enable_shared" | |
2979 | p=${PACKAGE-default} | |
2980 | case $enableval in | |
2981 | yes) enable_shared=yes ;; | |
2982 | no) enable_shared=no ;; | |
2983 | *) | |
2984 | enable_shared=no | |
2985 | # Look at the argument we got. We use all the common list separators. | |
2986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2987 | for pkg in $enableval; do | |
2988 | if test "X$pkg" = "X$p"; then | |
2989 | enable_shared=yes | |
2990 | fi | |
2991 | done | |
2992 | IFS="$ac_save_ifs" | |
2993 | ;; | |
2994 | esac | |
2995 | else | |
2996 | enable_shared=yes | |
2997 | fi; | |
2998 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
2999 | if test "${enable_fast_install+set}" = set; then | |
3000 | enableval="$enable_fast_install" | |
3001 | p=${PACKAGE-default} | |
3002 | case $enableval in | |
3003 | yes) enable_fast_install=yes ;; | |
3004 | no) enable_fast_install=no ;; | |
3005 | *) | |
3006 | enable_fast_install=no | |
3007 | # Look at the argument we got. We use all the common list separators. | |
3008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3009 | for pkg in $enableval; do | |
3010 | if test "X$pkg" = "X$p"; then | |
3011 | enable_fast_install=yes | |
3012 | fi | |
3013 | done | |
3014 | IFS="$ac_save_ifs" | |
3015 | ;; | |
3016 | esac | |
3017 | else | |
3018 | enable_fast_install=yes | |
3019 | fi; | |
3020 | # Make sure we can run config.sub. | |
3021 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3022 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3023 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3024 | { (exit 1); exit 1; }; } | |
3025 | ||
3026 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3027 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3028 | if test "${ac_cv_build+set}" = set; then | |
3029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3030 | else | |
3031 | ac_cv_build_alias=$build_alias | |
3032 | test -z "$ac_cv_build_alias" && | |
3033 | ac_cv_build_alias=`$ac_config_guess` | |
3034 | test -z "$ac_cv_build_alias" && | |
3035 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3036 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3037 | { (exit 1); exit 1; }; } | |
3038 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3039 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3040 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3041 | { (exit 1); exit 1; }; } | |
3042 | ||
3043 | fi | |
3044 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3045 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3046 | build=$ac_cv_build | |
3047 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3048 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3049 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3050 | ||
3051 | ||
3052 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3053 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3054 | if test "${ac_cv_host+set}" = set; then | |
3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3056 | else | |
3057 | ac_cv_host_alias=$host_alias | |
3058 | test -z "$ac_cv_host_alias" && | |
3059 | ac_cv_host_alias=$ac_cv_build_alias | |
3060 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3061 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3062 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3063 | { (exit 1); exit 1; }; } | |
3064 | ||
3065 | fi | |
3066 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3067 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3068 | host=$ac_cv_host | |
3069 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3070 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3071 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3072 | ||
3073 | ||
3074 | # Find the correct PATH separator. Usually this is `:', but | |
3075 | # DJGPP uses `;' like DOS. | |
3076 | if test "X${PATH_SEPARATOR+set}" != Xset; then | |
3077 | UNAME=${UNAME-`uname 2>/dev/null`} | |
3078 | case X$UNAME in | |
3079 | *-DOS) lt_cv_sys_path_separator=';' ;; | |
3080 | *) lt_cv_sys_path_separator=':' ;; | |
3081 | esac | |
3082 | PATH_SEPARATOR=$lt_cv_sys_path_separator | |
3083 | fi | |
3084 | ||
3085 | ||
3086 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3087 | if test "${with_gnu_ld+set}" = set; then | |
3088 | withval="$with_gnu_ld" | |
3089 | test "$withval" = no || with_gnu_ld=yes | |
3090 | else | |
3091 | with_gnu_ld=no | |
3092 | fi; | |
3093 | ac_prog=ld | |
3094 | if test "$GCC" = yes; then | |
3095 | # Check if gcc -print-prog-name=ld gives a path. | |
3096 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3097 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3098 | case $host in | |
3099 | *-*-mingw*) | |
3100 | # gcc leaves a trailing carriage return which upsets mingw | |
3101 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3102 | *) | |
3103 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3104 | esac | |
3105 | case $ac_prog in | |
3106 | # Accept absolute paths. | |
3107 | [\\/]* | [A-Za-z]:[\\/]*) | |
3108 | re_direlt='/[^/][^/]*/\.\./' | |
3109 | # Canonicalize the path of ld | |
3110 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3111 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3112 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3113 | done | |
3114 | test -z "$LD" && LD="$ac_prog" | |
3115 | ;; | |
3116 | "") | |
3117 | # If it fails, then pretend we aren't using GCC. | |
3118 | ac_prog=ld | |
3119 | ;; | |
3120 | *) | |
3121 | # If it is relative, then search for the first ld in PATH. | |
3122 | with_gnu_ld=unknown | |
3123 | ;; | |
3124 | esac | |
3125 | elif test "$with_gnu_ld" = yes; then | |
3126 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3127 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3128 | else | |
3129 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3130 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3131 | fi | |
3132 | if test "${lt_cv_path_LD+set}" = set; then | |
3133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3134 | else | |
3135 | if test -z "$LD"; then | |
3136 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3137 | for ac_dir in $PATH; do | |
3138 | test -z "$ac_dir" && ac_dir=. | |
3139 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3140 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3141 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3142 | # but apparently some GNU ld's only accept -v. | |
3143 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3144 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3145 | test "$with_gnu_ld" != no && break | |
3146 | else | |
3147 | test "$with_gnu_ld" != yes && break | |
3148 | fi | |
3149 | fi | |
3150 | done | |
3151 | IFS="$ac_save_ifs" | |
3152 | else | |
3153 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3154 | fi | |
3155 | fi | |
3156 | ||
3157 | LD="$lt_cv_path_LD" | |
3158 | if test -n "$LD"; then | |
3159 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3160 | echo "${ECHO_T}$LD" >&6 | |
3161 | else | |
3162 | echo "$as_me:$LINENO: result: no" >&5 | |
3163 | echo "${ECHO_T}no" >&6 | |
3164 | fi | |
3165 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3166 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3167 | { (exit 1); exit 1; }; } | |
3168 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3169 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3170 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3172 | else | |
3173 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3174 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3175 | lt_cv_prog_gnu_ld=yes | |
3176 | else | |
3177 | lt_cv_prog_gnu_ld=no | |
3178 | fi | |
3179 | fi | |
3180 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3181 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3182 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3183 | ||
3184 | ||
3185 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3186 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3187 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3189 | else | |
3190 | lt_cv_ld_reload_flag='-r' | |
3191 | fi | |
3192 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3193 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3194 | reload_flag=$lt_cv_ld_reload_flag | |
3195 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3196 | ||
3197 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3198 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3199 | if test "${lt_cv_path_NM+set}" = set; then | |
3200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3201 | else | |
3202 | if test -n "$NM"; then | |
3203 | # Let the user override the test. | |
3204 | lt_cv_path_NM="$NM" | |
3205 | else | |
3206 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3207 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3208 | test -z "$ac_dir" && ac_dir=. | |
3209 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3210 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3211 | # Check to see if the nm accepts a BSD-compat flag. | |
3212 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3213 | # nm: unknown option "B" ignored | |
3214 | # Tru64's nm complains that /dev/null is an invalid object file | |
3215 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3216 | lt_cv_path_NM="$tmp_nm -B" | |
3217 | break | |
3218 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3219 | lt_cv_path_NM="$tmp_nm -p" | |
3220 | break | |
3221 | else | |
3222 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3223 | continue # so that we can try to find one that supports BSD flags | |
3224 | fi | |
3225 | fi | |
3226 | done | |
3227 | IFS="$ac_save_ifs" | |
3228 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3229 | fi | |
3230 | fi | |
3231 | ||
3232 | NM="$lt_cv_path_NM" | |
3233 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3234 | echo "${ECHO_T}$NM" >&6 | |
3235 | ||
3236 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3237 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3238 | LN_S=$as_ln_s | |
3239 | if test "$LN_S" = "ln -s"; then | |
3240 | echo "$as_me:$LINENO: result: yes" >&5 | |
3241 | echo "${ECHO_T}yes" >&6 | |
3242 | else | |
3243 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3244 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3245 | fi | |
3246 | ||
3247 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3248 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3249 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3251 | else | |
3252 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3253 | lt_cv_file_magic_test_file= | |
3254 | lt_cv_deplibs_check_method='unknown' | |
3255 | # Need to set the preceding variable on all platforms that support | |
3256 | # interlibrary dependencies. | |
3257 | # 'none' -- dependencies not supported. | |
3258 | # `unknown' -- same as none, but documents that we really don't know. | |
3259 | # 'pass_all' -- all dependencies passed with no checks. | |
3260 | # 'test_compile' -- check by making test program. | |
3261 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3262 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3263 | # If you have `file' or equivalent on your system and you're not sure | |
3264 | # whether `pass_all' will *always* work, you probably want this one. | |
3265 | ||
3266 | case $host_os in | |
3267 | aix4* | aix5*) | |
3268 | lt_cv_deplibs_check_method=pass_all | |
3269 | ;; | |
3270 | ||
3271 | beos*) | |
3272 | lt_cv_deplibs_check_method=pass_all | |
3273 | ;; | |
3274 | ||
3275 | bsdi4*) | |
3276 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3277 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3278 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3279 | ;; | |
3280 | ||
3281 | cygwin* | mingw* | pw32*) | |
3282 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3283 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3284 | ;; | |
3285 | ||
3286 | darwin* | rhapsody*) | |
3287 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3288 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3289 | case "$host_os" in | |
3290 | rhapsody* | darwin1.[012]) | |
3291 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` | |
3292 | ;; | |
3293 | *) # Darwin 1.3 on | |
3294 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3295 | ;; | |
3296 | esac | |
3297 | ;; | |
3298 | ||
3299 | freebsd*) | |
3300 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3301 | case $host_cpu in | |
3302 | i*86 ) | |
3303 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3304 | # Let's accept both of them until this is cleared up. | |
3305 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3306 | lt_cv_file_magic_cmd=/usr/bin/file | |
3307 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3308 | ;; | |
3309 | esac | |
3310 | else | |
3311 | lt_cv_deplibs_check_method=pass_all | |
3312 | fi | |
3313 | ;; | |
3314 | ||
3315 | gnu*) | |
3316 | lt_cv_deplibs_check_method=pass_all | |
3317 | ;; | |
3318 | ||
3319 | hpux10.20*|hpux11*) | |
3320 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3321 | lt_cv_file_magic_cmd=/usr/bin/file | |
3322 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3323 | ;; | |
3324 | ||
3325 | irix5* | irix6* | nonstopux*) | |
3326 | case $host_os in | |
3327 | irix5* | nonstopux*) | |
3328 | # this will be overridden with pass_all, but let us keep it just in case | |
3329 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3330 | ;; | |
3331 | *) | |
3332 | case $LD in | |
3333 | *-32|*"-32 ") libmagic=32-bit;; | |
3334 | *-n32|*"-n32 ") libmagic=N32;; | |
3335 | *-64|*"-64 ") libmagic=64-bit;; | |
3336 | *) libmagic=never-match;; | |
3337 | esac | |
3338 | # this will be overridden with pass_all, but let us keep it just in case | |
3339 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3340 | ;; | |
3341 | esac | |
3342 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3343 | lt_cv_deplibs_check_method=pass_all | |
3344 | ;; | |
3345 | ||
3346 | # This must be Linux ELF. | |
3347 | linux-gnu*) | |
3348 | lt_cv_deplibs_check_method=pass_all | |
3349 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
3350 | ;; | |
3351 | ||
3352 | netbsd*) | |
3353 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3354 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3355 | else | |
3356 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3357 | fi | |
3358 | ;; | |
3359 | ||
3360 | newos6*) | |
3361 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3362 | lt_cv_file_magic_cmd=/usr/bin/file | |
3363 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3364 | ;; | |
3365 | ||
3366 | openbsd*) | |
3367 | lt_cv_file_magic_cmd=/usr/bin/file | |
3368 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3369 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3370 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
3371 | else | |
3372 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
3373 | fi | |
3374 | ;; | |
3375 | ||
3376 | osf3* | osf4* | osf5*) | |
3377 | # this will be overridden with pass_all, but let us keep it just in case | |
3378 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3379 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3380 | lt_cv_deplibs_check_method=pass_all | |
3381 | ;; | |
3382 | ||
3383 | sco3.2v5*) | |
3384 | lt_cv_deplibs_check_method=pass_all | |
3385 | ;; | |
3386 | ||
3387 | solaris*) | |
3388 | lt_cv_deplibs_check_method=pass_all | |
3389 | lt_cv_file_magic_test_file=/lib/libc.so | |
3390 | ;; | |
3391 | ||
3392 | sysv5uw[78]* | sysv4*uw2*) | |
3393 | lt_cv_deplibs_check_method=pass_all | |
3394 | ;; | |
3395 | ||
3396 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3397 | case $host_vendor in | |
3398 | motorola) | |
3399 | 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]' | |
3400 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3401 | ;; | |
3402 | ncr) | |
3403 | lt_cv_deplibs_check_method=pass_all | |
3404 | ;; | |
3405 | sequent) | |
3406 | lt_cv_file_magic_cmd='/bin/file' | |
3407 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
3408 | ;; | |
3409 | sni) | |
3410 | lt_cv_file_magic_cmd='/bin/file' | |
3411 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
3412 | lt_cv_file_magic_test_file=/lib/libc.so | |
3413 | ;; | |
3414 | esac | |
3415 | ;; | |
3416 | esac | |
3417 | ||
3418 | fi | |
3419 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3420 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3421 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3422 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3423 | ||
3424 | ||
3425 | ||
3426 | ||
3427 | ||
3428 | ||
3429 | ||
3430 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
3431 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 | |
3432 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 | |
3433 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
3434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3435 | else | |
3436 | ||
3437 | # These are sane defaults that work on at least a few old systems. | |
3438 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
3439 | ||
3440 | # Character class describing NM global symbol codes. | |
3441 | symcode='[BCDEGRST]' | |
3442 | ||
3443 | # Regexp to match symbols that can be accessed directly from C. | |
3444 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
3445 | ||
3446 | # Transform the above into a raw symbol and a C symbol. | |
3447 | symxfrm='\1 \2\3 \3' | |
3448 | ||
3449 | # Transform an extracted symbol line into a proper C declaration | |
3450 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
3451 | ||
3452 | # Transform an extracted symbol line into symbol name and symbol address | |
3453 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
3454 | ||
3455 | # Define system-specific variables. | |
3456 | case $host_os in | |
3457 | aix*) | |
3458 | symcode='[BCDT]' | |
3459 | ;; | |
3460 | cygwin* | mingw* | pw32*) | |
3461 | symcode='[ABCDGISTW]' | |
3462 | ;; | |
3463 | hpux*) # Its linker distinguishes data from code symbols | |
3464 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
3465 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
3466 | ;; | |
3467 | irix* | nonstopux*) | |
3468 | symcode='[BCDEGRST]' | |
3469 | ;; | |
3470 | solaris* | sysv5*) | |
3471 | symcode='[BDT]' | |
3472 | ;; | |
3473 | sysv4) | |
3474 | symcode='[DFNSTU]' | |
3475 | ;; | |
3476 | esac | |
3477 | ||
3478 | # Handle CRLF in mingw tool chain | |
3479 | opt_cr= | |
3480 | case $host_os in | |
3481 | mingw*) | |
3482 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
3483 | ;; | |
3484 | esac | |
3485 | ||
3486 | # If we're using GNU nm, then use its standard symbol codes. | |
3487 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
3488 | symcode='[ABCDGISTW]' | |
3489 | fi | |
3490 | ||
3491 | # Try without a prefix undercore, then with it. | |
3492 | for ac_symprfx in "" "_"; do | |
3493 | ||
3494 | # Write the raw and C identifiers. | |
3495 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
3496 | ||
3497 | # Check to see that the pipe works correctly. | |
3498 | pipe_works=no | |
3499 | rm -f conftest* | |
3500 | cat > conftest.$ac_ext <<EOF | |
3501 | #ifdef __cplusplus | |
3502 | extern "C" { | |
3503 | #endif | |
3504 | char nm_test_var; | |
3505 | void nm_test_func(){} | |
3506 | #ifdef __cplusplus | |
3507 | } | |
3508 | #endif | |
3509 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
3510 | EOF | |
3511 | ||
3512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3513 | (eval $ac_compile) 2>&5 | |
3514 | ac_status=$? | |
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3516 | (exit $ac_status); }; then | |
3517 | # Now try to grab the symbols. | |
3518 | nlist=conftest.nm | |
3519 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
3520 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
3521 | ac_status=$? | |
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3523 | (exit $ac_status); } && test -s "$nlist"; then | |
3524 | # Try sorting and uniquifying the output. | |
3525 | if sort "$nlist" | uniq > "$nlist"T; then | |
3526 | mv -f "$nlist"T "$nlist" | |
3527 | else | |
3528 | rm -f "$nlist"T | |
3529 | fi | |
3530 | ||
3531 | # Make sure that we snagged all the symbols we need. | |
3532 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
3533 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
3534 | cat <<EOF > conftest.$ac_ext | |
3535 | #ifdef __cplusplus | |
3536 | extern "C" { | |
3537 | #endif | |
3538 | ||
3539 | EOF | |
3540 | # Now generate the symbol file. | |
3541 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' | |
3542 | ||
3543 | cat <<EOF >> conftest.$ac_ext | |
3544 | #if defined (__STDC__) && __STDC__ | |
3545 | # define lt_ptr void * | |
3546 | #else | |
3547 | # define lt_ptr char * | |
3548 | # define const | |
3549 | #endif | |
3550 | ||
3551 | /* The mapping between symbol names and symbols. */ | |
3552 | const struct { | |
3553 | const char *name; | |
3554 | lt_ptr address; | |
3555 | } | |
3556 | lt_preloaded_symbols[] = | |
3557 | { | |
3558 | EOF | |
3559 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext | |
3560 | cat <<\EOF >> conftest.$ac_ext | |
3561 | {0, (lt_ptr) 0} | |
3562 | }; | |
3563 | ||
3564 | #ifdef __cplusplus | |
3565 | } | |
3566 | #endif | |
3567 | EOF | |
3568 | # Now try linking the two files. | |
3569 | mv conftest.$ac_objext conftstm.$ac_objext | |
3570 | save_LIBS="$LIBS" | |
3571 | save_CFLAGS="$CFLAGS" | |
3572 | LIBS="conftstm.$ac_objext" | |
3573 | CFLAGS="$CFLAGS$no_builtin_flag" | |
3574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3575 | (eval $ac_link) 2>&5 | |
3576 | ac_status=$? | |
3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3578 | (exit $ac_status); } && test -s conftest; then | |
3579 | pipe_works=yes | |
3580 | fi | |
3581 | LIBS="$save_LIBS" | |
3582 | CFLAGS="$save_CFLAGS" | |
3583 | else | |
3584 | echo "cannot find nm_test_func in $nlist" >&5 | |
3585 | fi | |
3586 | else | |
3587 | echo "cannot find nm_test_var in $nlist" >&5 | |
3588 | fi | |
3589 | else | |
3590 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
3591 | fi | |
3592 | else | |
3593 | echo "$progname: failed program was:" >&5 | |
3594 | cat conftest.$ac_ext >&5 | |
3595 | fi | |
3596 | rm -f conftest* conftst* | |
3597 | ||
3598 | # Do not use the global_symbol_pipe unless it works. | |
3599 | if test "$pipe_works" = yes; then | |
3600 | break | |
3601 | else | |
3602 | lt_cv_sys_global_symbol_pipe= | |
3603 | fi | |
3604 | done | |
3605 | ||
3606 | fi | |
3607 | ||
3608 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" | |
3609 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
3610 | global_symbol_to_cdecl= | |
3611 | global_symbol_to_c_name_address= | |
3612 | else | |
3613 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" | |
3614 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" | |
3615 | fi | |
3616 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; | |
3617 | then | |
3618 | echo "$as_me:$LINENO: result: failed" >&5 | |
3619 | echo "${ECHO_T}failed" >&6 | |
3620 | else | |
3621 | echo "$as_me:$LINENO: result: ok" >&5 | |
3622 | echo "${ECHO_T}ok" >&6 | |
3623 | fi | |
3624 | ||
3625 | ac_ext=c | |
3626 | ac_cpp='$CPP $CPPFLAGS' | |
3627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3630 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3631 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3632 | # On Suns, sometimes $CPP names a directory. | |
3633 | if test -n "$CPP" && test -d "$CPP"; then | |
3634 | CPP= | |
3635 | fi | |
3636 | if test -z "$CPP"; then | |
3637 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3639 | else | |
3640 | # Double quotes because CPP needs to be expanded | |
3641 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3642 | do | |
3643 | ac_preproc_ok=false | |
3644 | for ac_c_preproc_warn_flag in '' yes | |
3645 | do | |
3646 | # Use a header file that comes with gcc, so configuring glibc | |
3647 | # with a fresh cross-compiler works. | |
3648 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3649 | # not just through cpp. "Syntax error" is here to catch this case. | |
3650 | cat >conftest.$ac_ext <<_ACEOF | |
3651 | #line $LINENO "configure" | |
3652 | #include "confdefs.h" | |
3653 | #include <assert.h> | |
3654 | Syntax error | |
3655 | _ACEOF | |
3656 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3657 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3658 | ac_status=$? | |
3659 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3660 | rm -f conftest.er1 | |
3661 | cat conftest.err >&5 | |
3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3663 | (exit $ac_status); } >/dev/null; then | |
3664 | if test -s conftest.err; then | |
3665 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3666 | else | |
3667 | ac_cpp_err= | |
3668 | fi | |
3669 | else | |
3670 | ac_cpp_err=yes | |
3671 | fi | |
3672 | if test -z "$ac_cpp_err"; then | |
3673 | : | |
3674 | else | |
3675 | echo "$as_me: failed program was:" >&5 | |
3676 | cat conftest.$ac_ext >&5 | |
3677 | # Broken: fails on valid input. | |
3678 | continue | |
3679 | fi | |
3680 | rm -f conftest.err conftest.$ac_ext | |
3681 | ||
3682 | # OK, works on sane cases. Now check whether non-existent headers | |
3683 | # can be detected and how. | |
3684 | cat >conftest.$ac_ext <<_ACEOF | |
3685 | #line $LINENO "configure" | |
3686 | #include "confdefs.h" | |
3687 | #include <ac_nonexistent.h> | |
3688 | _ACEOF | |
3689 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3690 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3691 | ac_status=$? | |
3692 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3693 | rm -f conftest.er1 | |
3694 | cat conftest.err >&5 | |
3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3696 | (exit $ac_status); } >/dev/null; then | |
3697 | if test -s conftest.err; then | |
3698 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3699 | else | |
3700 | ac_cpp_err= | |
3701 | fi | |
3702 | else | |
3703 | ac_cpp_err=yes | |
3704 | fi | |
3705 | if test -z "$ac_cpp_err"; then | |
3706 | # Broken: success on invalid input. | |
3707 | continue | |
3708 | else | |
3709 | echo "$as_me: failed program was:" >&5 | |
3710 | cat conftest.$ac_ext >&5 | |
3711 | # Passes both tests. | |
3712 | ac_preproc_ok=: | |
3713 | break | |
3714 | fi | |
3715 | rm -f conftest.err conftest.$ac_ext | |
3716 | ||
3717 | done | |
3718 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3719 | rm -f conftest.err conftest.$ac_ext | |
3720 | if $ac_preproc_ok; then | |
3721 | break | |
3722 | fi | |
3723 | ||
3724 | done | |
3725 | ac_cv_prog_CPP=$CPP | |
3726 | ||
3727 | fi | |
3728 | CPP=$ac_cv_prog_CPP | |
3729 | else | |
3730 | ac_cv_prog_CPP=$CPP | |
3731 | fi | |
3732 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3733 | echo "${ECHO_T}$CPP" >&6 | |
3734 | ac_preproc_ok=false | |
3735 | for ac_c_preproc_warn_flag in '' yes | |
3736 | do | |
3737 | # Use a header file that comes with gcc, so configuring glibc | |
3738 | # with a fresh cross-compiler works. | |
3739 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3740 | # not just through cpp. "Syntax error" is here to catch this case. | |
3741 | cat >conftest.$ac_ext <<_ACEOF | |
3742 | #line $LINENO "configure" | |
3743 | #include "confdefs.h" | |
3744 | #include <assert.h> | |
3745 | Syntax error | |
3746 | _ACEOF | |
3747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3749 | ac_status=$? | |
3750 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3751 | rm -f conftest.er1 | |
3752 | cat conftest.err >&5 | |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3754 | (exit $ac_status); } >/dev/null; then | |
3755 | if test -s conftest.err; then | |
3756 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3757 | else | |
3758 | ac_cpp_err= | |
3759 | fi | |
3760 | else | |
3761 | ac_cpp_err=yes | |
3762 | fi | |
3763 | if test -z "$ac_cpp_err"; then | |
3764 | : | |
3765 | else | |
3766 | echo "$as_me: failed program was:" >&5 | |
3767 | cat conftest.$ac_ext >&5 | |
3768 | # Broken: fails on valid input. | |
3769 | continue | |
3770 | fi | |
3771 | rm -f conftest.err conftest.$ac_ext | |
3772 | ||
3773 | # OK, works on sane cases. Now check whether non-existent headers | |
3774 | # can be detected and how. | |
3775 | cat >conftest.$ac_ext <<_ACEOF | |
3776 | #line $LINENO "configure" | |
3777 | #include "confdefs.h" | |
3778 | #include <ac_nonexistent.h> | |
3779 | _ACEOF | |
3780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3782 | ac_status=$? | |
3783 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3784 | rm -f conftest.er1 | |
3785 | cat conftest.err >&5 | |
3786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3787 | (exit $ac_status); } >/dev/null; then | |
3788 | if test -s conftest.err; then | |
3789 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3790 | else | |
3791 | ac_cpp_err= | |
3792 | fi | |
3793 | else | |
3794 | ac_cpp_err=yes | |
3795 | fi | |
3796 | if test -z "$ac_cpp_err"; then | |
3797 | # Broken: success on invalid input. | |
3798 | continue | |
3799 | else | |
3800 | echo "$as_me: failed program was:" >&5 | |
3801 | cat conftest.$ac_ext >&5 | |
3802 | # Passes both tests. | |
3803 | ac_preproc_ok=: | |
3804 | break | |
3805 | fi | |
3806 | rm -f conftest.err conftest.$ac_ext | |
3807 | ||
3808 | done | |
3809 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3810 | rm -f conftest.err conftest.$ac_ext | |
3811 | if $ac_preproc_ok; then | |
3812 | : | |
3813 | else | |
3814 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
3815 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
3816 | { (exit 1); exit 1; }; } | |
3817 | fi | |
3818 | ||
3819 | ac_ext=c | |
3820 | ac_cpp='$CPP $CPPFLAGS' | |
3821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3824 | ||
3825 | ||
3826 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3827 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3828 | if test "${ac_cv_header_stdc+set}" = set; then | |
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3830 | else | |
3831 | cat >conftest.$ac_ext <<_ACEOF | |
3832 | #line $LINENO "configure" | |
3833 | #include "confdefs.h" | |
3834 | #include <stdlib.h> | |
3835 | #include <stdarg.h> | |
3836 | #include <string.h> | |
3837 | #include <float.h> | |
3838 | ||
3839 | _ACEOF | |
3840 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3841 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3842 | ac_status=$? | |
3843 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3844 | rm -f conftest.er1 | |
3845 | cat conftest.err >&5 | |
3846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3847 | (exit $ac_status); } >/dev/null; then | |
3848 | if test -s conftest.err; then | |
3849 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3850 | else | |
3851 | ac_cpp_err= | |
3852 | fi | |
3853 | else | |
3854 | ac_cpp_err=yes | |
3855 | fi | |
3856 | if test -z "$ac_cpp_err"; then | |
3857 | ac_cv_header_stdc=yes | |
3858 | else | |
3859 | echo "$as_me: failed program was:" >&5 | |
3860 | cat conftest.$ac_ext >&5 | |
3861 | ac_cv_header_stdc=no | |
3862 | fi | |
3863 | rm -f conftest.err conftest.$ac_ext | |
3864 | ||
3865 | if test $ac_cv_header_stdc = yes; then | |
3866 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3867 | cat >conftest.$ac_ext <<_ACEOF | |
3868 | #line $LINENO "configure" | |
3869 | #include "confdefs.h" | |
3870 | #include <string.h> | |
3871 | ||
3872 | _ACEOF | |
3873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3874 | egrep "memchr" >/dev/null 2>&1; then | |
3875 | : | |
3876 | else | |
3877 | ac_cv_header_stdc=no | |
3878 | fi | |
3879 | rm -f conftest* | |
3880 | ||
3881 | fi | |
3882 | ||
3883 | if test $ac_cv_header_stdc = yes; then | |
3884 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3885 | cat >conftest.$ac_ext <<_ACEOF | |
3886 | #line $LINENO "configure" | |
3887 | #include "confdefs.h" | |
3888 | #include <stdlib.h> | |
3889 | ||
3890 | _ACEOF | |
3891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3892 | egrep "free" >/dev/null 2>&1; then | |
3893 | : | |
3894 | else | |
3895 | ac_cv_header_stdc=no | |
3896 | fi | |
3897 | rm -f conftest* | |
3898 | ||
3899 | fi | |
3900 | ||
3901 | if test $ac_cv_header_stdc = yes; then | |
3902 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3903 | if test "$cross_compiling" = yes; then | |
3904 | : | |
3905 | else | |
3906 | cat >conftest.$ac_ext <<_ACEOF | |
3907 | #line $LINENO "configure" | |
3908 | #include "confdefs.h" | |
3909 | #include <ctype.h> | |
3910 | #if ((' ' & 0x0FF) == 0x020) | |
3911 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3912 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3913 | #else | |
3914 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3915 | || ('j' <= (c) && (c) <= 'r') \ | |
3916 | || ('s' <= (c) && (c) <= 'z')) | |
3917 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3918 | #endif | |
3919 | ||
3920 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3921 | int | |
3922 | main () | |
3923 | { | |
3924 | int i; | |
3925 | for (i = 0; i < 256; i++) | |
3926 | if (XOR (islower (i), ISLOWER (i)) | |
3927 | || toupper (i) != TOUPPER (i)) | |
3928 | exit(2); | |
3929 | exit (0); | |
3930 | } | |
3931 | _ACEOF | |
3932 | rm -f conftest$ac_exeext | |
3933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3934 | (eval $ac_link) 2>&5 | |
3935 | ac_status=$? | |
3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3939 | (eval $ac_try) 2>&5 | |
3940 | ac_status=$? | |
3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3942 | (exit $ac_status); }; }; then | |
3943 | : | |
3944 | else | |
3945 | echo "$as_me: program exited with status $ac_status" >&5 | |
3946 | echo "$as_me: failed program was:" >&5 | |
3947 | cat conftest.$ac_ext >&5 | |
3948 | ( exit $ac_status ) | |
3949 | ac_cv_header_stdc=no | |
3950 | fi | |
3951 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3952 | fi | |
3953 | fi | |
3954 | fi | |
3955 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3956 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3957 | if test $ac_cv_header_stdc = yes; then | |
3958 | ||
3959 | cat >>confdefs.h <<\_ACEOF | |
3960 | #define STDC_HEADERS 1 | |
3961 | _ACEOF | |
3962 | ||
3963 | fi | |
3964 | ||
3965 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3966 | ||
3967 | ||
3968 | ||
3969 | ||
3970 | ||
3971 | ||
3972 | ||
3973 | ||
3974 | ||
3975 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3976 | inttypes.h stdint.h unistd.h | |
3977 | do | |
3978 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3979 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3981 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3983 | else | |
3984 | cat >conftest.$ac_ext <<_ACEOF | |
3985 | #line $LINENO "configure" | |
3986 | #include "confdefs.h" | |
3987 | $ac_includes_default | |
3988 | ||
3989 | #include <$ac_header> | |
3990 | _ACEOF | |
3991 | rm -f conftest.$ac_objext | |
3992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3993 | (eval $ac_compile) 2>&5 | |
3994 | ac_status=$? | |
3995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3996 | (exit $ac_status); } && | |
3997 | { ac_try='test -s conftest.$ac_objext' | |
3998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3999 | (eval $ac_try) 2>&5 | |
4000 | ac_status=$? | |
4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4002 | (exit $ac_status); }; }; then | |
4003 | eval "$as_ac_Header=yes" | |
4004 | else | |
4005 | echo "$as_me: failed program was:" >&5 | |
4006 | cat conftest.$ac_ext >&5 | |
4007 | eval "$as_ac_Header=no" | |
4008 | fi | |
4009 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4010 | fi | |
4011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4013 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4014 | cat >>confdefs.h <<_ACEOF | |
4015 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4016 | _ACEOF | |
4017 | ||
4018 | fi | |
4019 | ||
4020 | done | |
4021 | ||
4022 | ||
4023 | ||
4024 | for ac_header in dlfcn.h | |
4025 | do | |
4026 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4032 | fi | |
4033 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4034 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4035 | else | |
4036 | # Is the header compilable? | |
4037 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4038 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4039 | cat >conftest.$ac_ext <<_ACEOF | |
4040 | #line $LINENO "configure" | |
4041 | #include "confdefs.h" | |
4042 | $ac_includes_default | |
4043 | #include <$ac_header> | |
4044 | _ACEOF | |
4045 | rm -f conftest.$ac_objext | |
4046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4047 | (eval $ac_compile) 2>&5 | |
4048 | ac_status=$? | |
4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4050 | (exit $ac_status); } && | |
4051 | { ac_try='test -s conftest.$ac_objext' | |
4052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4053 | (eval $ac_try) 2>&5 | |
4054 | ac_status=$? | |
4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4056 | (exit $ac_status); }; }; then | |
4057 | ac_header_compiler=yes | |
4058 | else | |
4059 | echo "$as_me: failed program was:" >&5 | |
4060 | cat conftest.$ac_ext >&5 | |
4061 | ac_header_compiler=no | |
4062 | fi | |
4063 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4064 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4065 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4066 | ||
4067 | # Is the header present? | |
4068 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4069 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4070 | cat >conftest.$ac_ext <<_ACEOF | |
4071 | #line $LINENO "configure" | |
4072 | #include "confdefs.h" | |
4073 | #include <$ac_header> | |
4074 | _ACEOF | |
4075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4077 | ac_status=$? | |
4078 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4079 | rm -f conftest.er1 | |
4080 | cat conftest.err >&5 | |
4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4082 | (exit $ac_status); } >/dev/null; then | |
4083 | if test -s conftest.err; then | |
4084 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4085 | else | |
4086 | ac_cpp_err= | |
4087 | fi | |
4088 | else | |
4089 | ac_cpp_err=yes | |
4090 | fi | |
4091 | if test -z "$ac_cpp_err"; then | |
4092 | ac_header_preproc=yes | |
4093 | else | |
4094 | echo "$as_me: failed program was:" >&5 | |
4095 | cat conftest.$ac_ext >&5 | |
4096 | ac_header_preproc=no | |
4097 | fi | |
4098 | rm -f conftest.err conftest.$ac_ext | |
4099 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4100 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4101 | ||
4102 | # So? What about this header? | |
4103 | case $ac_header_compiler:$ac_header_preproc in | |
4104 | yes:no ) | |
4105 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4106 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4108 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4109 | no:yes ) | |
4110 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4111 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4112 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4113 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4115 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4116 | esac | |
4117 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4119 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4121 | else | |
4122 | eval "$as_ac_Header=$ac_header_preproc" | |
4123 | fi | |
4124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4125 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4126 | ||
4127 | fi | |
4128 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4129 | cat >>confdefs.h <<_ACEOF | |
4130 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4131 | _ACEOF | |
4132 | ||
4133 | fi | |
4134 | ||
4135 | done | |
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | # Only perform the check for file, if the check method requires it | |
4142 | case $deplibs_check_method in | |
4143 | file_magic*) | |
4144 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
4145 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
4146 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
4147 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | case $MAGIC_CMD in | |
4151 | /*) | |
4152 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4153 | ;; | |
4154 | ?:/*) | |
4155 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4156 | ;; | |
4157 | *) | |
4158 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4159 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4160 | ac_dummy="/usr/bin:$PATH" | |
4161 | for ac_dir in $ac_dummy; do | |
4162 | test -z "$ac_dir" && ac_dir=. | |
4163 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
4164 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
4165 | if test -n "$file_magic_test_file"; then | |
4166 | case $deplibs_check_method in | |
4167 | "file_magic "*) | |
4168 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4169 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4170 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4171 | egrep "$file_magic_regex" > /dev/null; then | |
4172 | : | |
4173 | else | |
4174 | cat <<EOF 1>&2 | |
4175 | ||
4176 | *** Warning: the command libtool uses to detect shared libraries, | |
4177 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4178 | *** The result is that libtool may fail to recognize shared libraries | |
4179 | *** as such. This will affect the creation of libtool libraries that | |
4180 | *** depend on shared libraries, but programs linked with such libtool | |
4181 | *** libraries will work regardless of this problem. Nevertheless, you | |
4182 | *** may want to report the problem to your system manager and/or to | |
4183 | *** bug-libtool@gnu.org | |
4184 | ||
4185 | EOF | |
4186 | fi ;; | |
4187 | esac | |
4188 | fi | |
4189 | break | |
4190 | fi | |
4191 | done | |
4192 | IFS="$ac_save_ifs" | |
4193 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4194 | ;; | |
4195 | esac | |
4196 | fi | |
4197 | ||
4198 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4199 | if test -n "$MAGIC_CMD"; then | |
4200 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4201 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4202 | else | |
4203 | echo "$as_me:$LINENO: result: no" >&5 | |
4204 | echo "${ECHO_T}no" >&6 | |
4205 | fi | |
4206 | ||
4207 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
4208 | if test -n "$ac_tool_prefix"; then | |
4209 | echo "$as_me:$LINENO: checking for file" >&5 | |
4210 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4211 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4213 | else | |
4214 | case $MAGIC_CMD in | |
4215 | /*) | |
4216 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4217 | ;; | |
4218 | ?:/*) | |
4219 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4220 | ;; | |
4221 | *) | |
4222 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4223 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4224 | ac_dummy="/usr/bin:$PATH" | |
4225 | for ac_dir in $ac_dummy; do | |
4226 | test -z "$ac_dir" && ac_dir=. | |
4227 | if test -f $ac_dir/file; then | |
4228 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
4229 | if test -n "$file_magic_test_file"; then | |
4230 | case $deplibs_check_method in | |
4231 | "file_magic "*) | |
4232 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4233 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4234 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4235 | egrep "$file_magic_regex" > /dev/null; then | |
4236 | : | |
4237 | else | |
4238 | cat <<EOF 1>&2 | |
4239 | ||
4240 | *** Warning: the command libtool uses to detect shared libraries, | |
4241 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4242 | *** The result is that libtool may fail to recognize shared libraries | |
4243 | *** as such. This will affect the creation of libtool libraries that | |
4244 | *** depend on shared libraries, but programs linked with such libtool | |
4245 | *** libraries will work regardless of this problem. Nevertheless, you | |
4246 | *** may want to report the problem to your system manager and/or to | |
4247 | *** bug-libtool@gnu.org | |
4248 | ||
4249 | EOF | |
4250 | fi ;; | |
4251 | esac | |
4252 | fi | |
4253 | break | |
4254 | fi | |
4255 | done | |
4256 | IFS="$ac_save_ifs" | |
4257 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4258 | ;; | |
4259 | esac | |
4260 | fi | |
4261 | ||
4262 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4263 | if test -n "$MAGIC_CMD"; then | |
4264 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4265 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4266 | else | |
4267 | echo "$as_me:$LINENO: result: no" >&5 | |
4268 | echo "${ECHO_T}no" >&6 | |
4269 | fi | |
4270 | ||
4271 | else | |
4272 | MAGIC_CMD=: | |
4273 | fi | |
4274 | fi | |
4275 | ||
4276 | fi | |
4277 | ;; | |
4278 | esac | |
4279 | ||
4280 | if test -n "$ac_tool_prefix"; then | |
4281 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4282 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4285 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4287 | else | |
4288 | if test -n "$RANLIB"; then | |
4289 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4290 | else | |
4291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4292 | for as_dir in $PATH | |
4293 | do | |
4294 | IFS=$as_save_IFS | |
4295 | test -z "$as_dir" && as_dir=. | |
4296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4298 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4300 | break 2 | |
4301 | fi | |
4302 | done | |
4303 | done | |
4304 | ||
4305 | fi | |
4306 | fi | |
4307 | RANLIB=$ac_cv_prog_RANLIB | |
4308 | if test -n "$RANLIB"; then | |
4309 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4310 | echo "${ECHO_T}$RANLIB" >&6 | |
4311 | else | |
4312 | echo "$as_me:$LINENO: result: no" >&5 | |
4313 | echo "${ECHO_T}no" >&6 | |
4314 | fi | |
4315 | ||
4316 | fi | |
4317 | if test -z "$ac_cv_prog_RANLIB"; then | |
4318 | ac_ct_RANLIB=$RANLIB | |
4319 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4320 | set dummy ranlib; ac_word=$2 | |
4321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4323 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4325 | else | |
4326 | if test -n "$ac_ct_RANLIB"; then | |
4327 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4328 | else | |
4329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4330 | for as_dir in $PATH | |
4331 | do | |
4332 | IFS=$as_save_IFS | |
4333 | test -z "$as_dir" && as_dir=. | |
4334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4336 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4338 | break 2 | |
4339 | fi | |
4340 | done | |
4341 | done | |
4342 | ||
4343 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4344 | fi | |
4345 | fi | |
4346 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4347 | if test -n "$ac_ct_RANLIB"; then | |
4348 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4349 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4350 | else | |
4351 | echo "$as_me:$LINENO: result: no" >&5 | |
4352 | echo "${ECHO_T}no" >&6 | |
4353 | fi | |
4354 | ||
4355 | RANLIB=$ac_ct_RANLIB | |
4356 | else | |
4357 | RANLIB="$ac_cv_prog_RANLIB" | |
4358 | fi | |
4359 | ||
4360 | if test -n "$ac_tool_prefix"; then | |
4361 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4362 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4365 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4367 | else | |
4368 | if test -n "$STRIP"; then | |
4369 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4370 | else | |
4371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4372 | for as_dir in $PATH | |
4373 | do | |
4374 | IFS=$as_save_IFS | |
4375 | test -z "$as_dir" && as_dir=. | |
4376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4378 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4380 | break 2 | |
4381 | fi | |
4382 | done | |
4383 | done | |
4384 | ||
4385 | fi | |
4386 | fi | |
4387 | STRIP=$ac_cv_prog_STRIP | |
4388 | if test -n "$STRIP"; then | |
4389 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4390 | echo "${ECHO_T}$STRIP" >&6 | |
4391 | else | |
4392 | echo "$as_me:$LINENO: result: no" >&5 | |
4393 | echo "${ECHO_T}no" >&6 | |
4394 | fi | |
4395 | ||
4396 | fi | |
4397 | if test -z "$ac_cv_prog_STRIP"; then | |
4398 | ac_ct_STRIP=$STRIP | |
4399 | # Extract the first word of "strip", so it can be a program name with args. | |
4400 | set dummy strip; ac_word=$2 | |
4401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4403 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4405 | else | |
4406 | if test -n "$ac_ct_STRIP"; then | |
4407 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4408 | else | |
4409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4410 | for as_dir in $PATH | |
4411 | do | |
4412 | IFS=$as_save_IFS | |
4413 | test -z "$as_dir" && as_dir=. | |
4414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4416 | ac_cv_prog_ac_ct_STRIP="strip" | |
4417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4418 | break 2 | |
4419 | fi | |
4420 | done | |
4421 | done | |
4422 | ||
4423 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4424 | fi | |
4425 | fi | |
4426 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4427 | if test -n "$ac_ct_STRIP"; then | |
4428 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4429 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4430 | else | |
4431 | echo "$as_me:$LINENO: result: no" >&5 | |
4432 | echo "${ECHO_T}no" >&6 | |
4433 | fi | |
4434 | ||
4435 | STRIP=$ac_ct_STRIP | |
4436 | else | |
4437 | STRIP="$ac_cv_prog_STRIP" | |
4438 | fi | |
4439 | ||
4440 | ||
4441 | enable_dlopen=no | |
4442 | enable_win32_dll=no | |
4443 | ||
4444 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4445 | if test "${enable_libtool_lock+set}" = set; then | |
4446 | enableval="$enable_libtool_lock" | |
4447 | ||
4448 | fi; | |
4449 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4450 | ||
4451 | # Some flags need to be propagated to the compiler or linker for good | |
4452 | # libtool support. | |
4453 | case $host in | |
4454 | *-*-irix6*) | |
4455 | # Find out which ABI we are using. | |
4456 | echo '#line 4456 "configure"' > conftest.$ac_ext | |
4457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4458 | (eval $ac_compile) 2>&5 | |
4459 | ac_status=$? | |
4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4461 | (exit $ac_status); }; then | |
4462 | case `/usr/bin/file conftest.$ac_objext` in | |
4463 | *32-bit*) | |
4464 | LD="${LD-ld} -32" | |
4465 | ;; | |
4466 | *N32*) | |
4467 | LD="${LD-ld} -n32" | |
4468 | ;; | |
4469 | *64-bit*) | |
4470 | LD="${LD-ld} -64" | |
4471 | ;; | |
4472 | esac | |
4473 | fi | |
4474 | rm -rf conftest* | |
4475 | ;; | |
4476 | ||
4477 | *-*-sco3.2v5*) | |
4478 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4479 | SAVE_CFLAGS="$CFLAGS" | |
4480 | CFLAGS="$CFLAGS -belf" | |
4481 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4482 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4483 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4485 | else | |
4486 | ||
4487 | ||
4488 | ac_ext=c | |
4489 | ac_cpp='$CPP $CPPFLAGS' | |
4490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4493 | ||
4494 | cat >conftest.$ac_ext <<_ACEOF | |
4495 | #line $LINENO "configure" | |
4496 | #include "confdefs.h" | |
4497 | ||
4498 | #ifdef F77_DUMMY_MAIN | |
4499 | # ifdef __cplusplus | |
4500 | extern "C" | |
4501 | # endif | |
4502 | int F77_DUMMY_MAIN() { return 1; } | |
4503 | #endif | |
4504 | int | |
4505 | main () | |
4506 | { | |
4507 | ||
4508 | ; | |
4509 | return 0; | |
4510 | } | |
4511 | _ACEOF | |
4512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4514 | (eval $ac_link) 2>&5 | |
4515 | ac_status=$? | |
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4517 | (exit $ac_status); } && | |
4518 | { ac_try='test -s conftest$ac_exeext' | |
4519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4520 | (eval $ac_try) 2>&5 | |
4521 | ac_status=$? | |
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4523 | (exit $ac_status); }; }; then | |
4524 | lt_cv_cc_needs_belf=yes | |
4525 | else | |
4526 | echo "$as_me: failed program was:" >&5 | |
4527 | cat conftest.$ac_ext >&5 | |
4528 | lt_cv_cc_needs_belf=no | |
4529 | fi | |
4530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4531 | ac_ext=c | |
4532 | ac_cpp='$CPP $CPPFLAGS' | |
4533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4536 | ||
4537 | fi | |
4538 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4539 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4540 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4541 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4542 | CFLAGS="$SAVE_CFLAGS" | |
4543 | fi | |
4544 | ;; | |
4545 | ||
4546 | ||
4547 | esac | |
4548 | ||
4549 | # Sed substitution that helps us do robust quoting. It backslashifies | |
4550 | # metacharacters that are still active within double-quoted strings. | |
4551 | Xsed='sed -e s/^X//' | |
4552 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
4553 | ||
4554 | # Same as above, but do not quote variable references. | |
4555 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
4556 | ||
4557 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4558 | # double_quote_subst'ed string. | |
4559 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4560 | ||
4561 | # Constants: | |
4562 | rm="rm -f" | |
4563 | ||
4564 | # Global variables: | |
4565 | default_ofile=libtool | |
4566 | can_build_shared=yes | |
4567 | ||
4568 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
4569 | # which needs '.lib'). | |
4570 | libext=a | |
4571 | ltmain="$ac_aux_dir/ltmain.sh" | |
4572 | ofile="$default_ofile" | |
4573 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
4574 | need_locks="$enable_libtool_lock" | |
4575 | ||
4576 | old_CC="$CC" | |
4577 | old_CFLAGS="$CFLAGS" | |
4578 | ||
4579 | # Set sane defaults for various variables | |
4580 | test -z "$AR" && AR=ar | |
4581 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4582 | test -z "$AS" && AS=as | |
4583 | test -z "$CC" && CC=cc | |
4584 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
4585 | test -z "$LD" && LD=ld | |
4586 | test -z "$LN_S" && LN_S="ln -s" | |
4587 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
4588 | test -z "$NM" && NM=nm | |
4589 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4590 | test -z "$RANLIB" && RANLIB=: | |
4591 | test -z "$STRIP" && STRIP=: | |
4592 | test -z "$ac_objext" && ac_objext=o | |
4593 | ||
4594 | if test x"$host" != x"$build"; then | |
4595 | ac_tool_prefix=${host_alias}- | |
4596 | else | |
4597 | ac_tool_prefix= | |
4598 | fi | |
4599 | ||
4600 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. | |
4601 | case $host_os in | |
4602 | linux-gnu*) ;; | |
4603 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` | |
4604 | esac | |
4605 | ||
4606 | case $host_os in | |
4607 | aix3*) | |
4608 | # AIX sometimes has problems with the GCC collect2 program. For some | |
4609 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
4610 | # vanish in a puff of smoke. | |
4611 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
4612 | COLLECT_NAMES= | |
4613 | export COLLECT_NAMES | |
4614 | fi | |
4615 | ;; | |
4616 | esac | |
4617 | ||
4618 | # Determine commands to create old-style static archives. | |
4619 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
4620 | old_postinstall_cmds='chmod 644 $oldlib' | |
4621 | old_postuninstall_cmds= | |
4622 | ||
4623 | if test -n "$RANLIB"; then | |
4624 | case $host_os in | |
4625 | openbsd*) | |
4626 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
4627 | ;; | |
4628 | *) | |
4629 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
4630 | ;; | |
4631 | esac | |
4632 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4633 | fi | |
4634 | ||
4635 | # Allow CC to be a program name with arguments. | |
4636 | set dummy $CC | |
4637 | compiler="$2" | |
4638 | ||
4639 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
4640 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
4641 | rm -f .libs 2>/dev/null | |
4642 | mkdir .libs 2>/dev/null | |
4643 | if test -d .libs; then | |
4644 | objdir=.libs | |
4645 | else | |
4646 | # MS-DOS does not allow filenames that begin with a dot. | |
4647 | objdir=_libs | |
4648 | fi | |
4649 | rmdir .libs 2>/dev/null | |
4650 | echo "$as_me:$LINENO: result: $objdir" >&5 | |
4651 | echo "${ECHO_T}$objdir" >&6 | |
4652 | ||
4653 | ||
4654 | ||
4655 | # Check whether --with-pic or --without-pic was given. | |
4656 | if test "${with_pic+set}" = set; then | |
4657 | withval="$with_pic" | |
4658 | pic_mode="$withval" | |
4659 | else | |
4660 | pic_mode=default | |
4661 | fi; | |
4662 | test -z "$pic_mode" && pic_mode=default | |
4663 | ||
4664 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached | |
4665 | # in isolation, and that seeing it set (from the cache) indicates that | |
4666 | # the associated values are set (in the cache) correctly too. | |
4667 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
4668 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
4669 | if test "${lt_cv_prog_cc_pic+set}" = set; then | |
4670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4671 | else | |
4672 | lt_cv_prog_cc_pic= | |
4673 | lt_cv_prog_cc_shlib= | |
4674 | lt_cv_prog_cc_wl= | |
4675 | lt_cv_prog_cc_static= | |
4676 | lt_cv_prog_cc_no_builtin= | |
4677 | lt_cv_prog_cc_can_build_shared=$can_build_shared | |
4678 | ||
4679 | if test "$GCC" = yes; then | |
4680 | lt_cv_prog_cc_wl='-Wl,' | |
4681 | lt_cv_prog_cc_static='-static' | |
4682 | ||
4683 | case $host_os in | |
4684 | aix*) | |
4685 | # Below there is a dirty hack to force normal static linking with -ldl | |
4686 | # The problem is because libdl dynamically linked with both libc and | |
4687 | # libC (AIX C++ library), which obviously doesn't included in libraries | |
4688 | # list by gcc. This cause undefined symbols with -static flags. | |
4689 | # This hack allows C programs to be linked with "-static -ldl", but | |
4690 | # not sure about C++ programs. | |
4691 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" | |
4692 | ;; | |
4693 | amigaos*) | |
4694 | # FIXME: we need at least 68020 code to build shared libraries, but | |
4695 | # adding the `-m68020' flag to GCC prevents building anything better, | |
4696 | # like `-m68040'. | |
4697 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' | |
4698 | ;; | |
4699 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
4700 | # PIC is the default for these OSes. | |
4701 | ;; | |
4702 | darwin* | rhapsody*) | |
4703 | # PIC is the default on this platform | |
4704 | # Common symbols not allowed in MH_DYLIB files | |
4705 | lt_cv_prog_cc_pic='-fno-common' | |
4706 | ;; | |
4707 | cygwin* | mingw* | pw32* | os2*) | |
4708 | # This hack is so that the source file can tell whether it is being | |
4709 | # built for inclusion in a dll (and should export symbols for example). | |
4710 | lt_cv_prog_cc_pic='-DDLL_EXPORT' | |
4711 | ;; | |
4712 | sysv4*MP*) | |
4713 | if test -d /usr/nec; then | |
4714 | lt_cv_prog_cc_pic=-Kconform_pic | |
4715 | fi | |
4716 | ;; | |
4717 | *) | |
4718 | lt_cv_prog_cc_pic='-fPIC' | |
4719 | ;; | |
4720 | esac | |
4721 | else | |
4722 | # PORTME Check for PIC flags for the system compiler. | |
4723 | case $host_os in | |
4724 | aix3* | aix4* | aix5*) | |
4725 | lt_cv_prog_cc_wl='-Wl,' | |
4726 | # All AIX code is PIC. | |
4727 | if test "$host_cpu" = ia64; then | |
4728 | # AIX 5 now supports IA64 processor | |
4729 | lt_cv_prog_cc_static='-Bstatic' | |
4730 | else | |
4731 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' | |
4732 | fi | |
4733 | ;; | |
4734 | ||
4735 | hpux9* | hpux10* | hpux11*) | |
4736 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? | |
4737 | lt_cv_prog_cc_wl='-Wl,' | |
4738 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" | |
4739 | lt_cv_prog_cc_pic='+Z' | |
4740 | ;; | |
4741 | ||
4742 | irix5* | irix6* | nonstopux*) | |
4743 | lt_cv_prog_cc_wl='-Wl,' | |
4744 | lt_cv_prog_cc_static='-non_shared' | |
4745 | # PIC (with -KPIC) is the default. | |
4746 | ;; | |
4747 | ||
4748 | cygwin* | mingw* | pw32* | os2*) | |
4749 | # This hack is so that the source file can tell whether it is being | |
4750 | # built for inclusion in a dll (and should export symbols for example). | |
4751 | lt_cv_prog_cc_pic='-DDLL_EXPORT' | |
4752 | ;; | |
4753 | ||
4754 | newsos6) | |
4755 | lt_cv_prog_cc_pic='-KPIC' | |
4756 | lt_cv_prog_cc_static='-Bstatic' | |
4757 | ;; | |
4758 | ||
4759 | osf3* | osf4* | osf5*) | |
4760 | # All OSF/1 code is PIC. | |
4761 | lt_cv_prog_cc_wl='-Wl,' | |
4762 | lt_cv_prog_cc_static='-non_shared' | |
4763 | ;; | |
4764 | ||
4765 | sco3.2v5*) | |
4766 | lt_cv_prog_cc_pic='-Kpic' | |
4767 | lt_cv_prog_cc_static='-dn' | |
4768 | lt_cv_prog_cc_shlib='-belf' | |
4769 | ;; | |
4770 | ||
4771 | solaris*) | |
4772 | lt_cv_prog_cc_pic='-KPIC' | |
4773 | lt_cv_prog_cc_static='-Bstatic' | |
4774 | lt_cv_prog_cc_wl='-Wl,' | |
4775 | ;; | |
4776 | ||
4777 | sunos4*) | |
4778 | lt_cv_prog_cc_pic='-PIC' | |
4779 | lt_cv_prog_cc_static='-Bstatic' | |
4780 | lt_cv_prog_cc_wl='-Qoption ld ' | |
4781 | ;; | |
4782 | ||
4783 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
4784 | lt_cv_prog_cc_pic='-KPIC' | |
4785 | lt_cv_prog_cc_static='-Bstatic' | |
4786 | if test "x$host_vendor" = xsni; then | |
4787 | lt_cv_prog_cc_wl='-LD' | |
4788 | else | |
4789 | lt_cv_prog_cc_wl='-Wl,' | |
4790 | fi | |
4791 | ;; | |
4792 | ||
4793 | uts4*) | |
4794 | lt_cv_prog_cc_pic='-pic' | |
4795 | lt_cv_prog_cc_static='-Bstatic' | |
4796 | ;; | |
4797 | ||
4798 | sysv4*MP*) | |
4799 | if test -d /usr/nec ;then | |
4800 | lt_cv_prog_cc_pic='-Kconform_pic' | |
4801 | lt_cv_prog_cc_static='-Bstatic' | |
4802 | fi | |
4803 | ;; | |
4804 | ||
4805 | *) | |
4806 | lt_cv_prog_cc_can_build_shared=no | |
4807 | ;; | |
4808 | esac | |
4809 | fi | |
4810 | ||
4811 | fi | |
4812 | ||
4813 | if test -z "$lt_cv_prog_cc_pic"; then | |
4814 | echo "$as_me:$LINENO: result: none" >&5 | |
4815 | echo "${ECHO_T}none" >&6 | |
4816 | else | |
4817 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 | |
4818 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 | |
4819 | ||
4820 | # Check to make sure the pic_flag actually works. | |
4821 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 | |
4822 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 | |
4823 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then | |
4824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4825 | else | |
4826 | save_CFLAGS="$CFLAGS" | |
4827 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" | |
4828 | cat >conftest.$ac_ext <<_ACEOF | |
4829 | #line $LINENO "configure" | |
4830 | #include "confdefs.h" | |
4831 | ||
4832 | #ifdef F77_DUMMY_MAIN | |
4833 | # ifdef __cplusplus | |
4834 | extern "C" | |
4835 | # endif | |
4836 | int F77_DUMMY_MAIN() { return 1; } | |
4837 | #endif | |
4838 | int | |
4839 | main () | |
4840 | { | |
4841 | ||
4842 | ; | |
4843 | return 0; | |
4844 | } | |
4845 | _ACEOF | |
4846 | rm -f conftest.$ac_objext | |
4847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4848 | (eval $ac_compile) 2>&5 | |
4849 | ac_status=$? | |
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4851 | (exit $ac_status); } && | |
4852 | { ac_try='test -s conftest.$ac_objext' | |
4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4854 | (eval $ac_try) 2>&5 | |
4855 | ac_status=$? | |
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4857 | (exit $ac_status); }; }; then | |
4858 | case $host_os in | |
4859 | hpux9* | hpux10* | hpux11*) | |
4860 | # On HP-UX, both CC and GCC only warn that PIC is supported... then | |
4861 | # they create non-PIC objects. So, if there were any warnings, we | |
4862 | # assume that PIC is not supported. | |
4863 | if test -s conftest.err; then | |
4864 | lt_cv_prog_cc_pic_works=no | |
4865 | else | |
4866 | lt_cv_prog_cc_pic_works=yes | |
4867 | fi | |
4868 | ;; | |
4869 | *) | |
4870 | lt_cv_prog_cc_pic_works=yes | |
4871 | ;; | |
4872 | esac | |
4873 | ||
4874 | else | |
4875 | echo "$as_me: failed program was:" >&5 | |
4876 | cat conftest.$ac_ext >&5 | |
4877 | lt_cv_prog_cc_pic_works=no | |
4878 | ||
4879 | fi | |
4880 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4881 | CFLAGS="$save_CFLAGS" | |
4882 | ||
4883 | fi | |
4884 | ||
4885 | ||
4886 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then | |
4887 | lt_cv_prog_cc_pic= | |
4888 | lt_cv_prog_cc_can_build_shared=no | |
4889 | else | |
4890 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" | |
4891 | fi | |
4892 | ||
4893 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 | |
4894 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 | |
4895 | fi | |
4896 | ||
4897 | # Check for any special shared library compilation flags. | |
4898 | if test -n "$lt_cv_prog_cc_shlib"; then | |
4899 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 | |
4900 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} | |
4901 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : | |
4902 | else | |
4903 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
4904 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
4905 | lt_cv_prog_cc_can_build_shared=no | |
4906 | fi | |
4907 | fi | |
4908 | ||
4909 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 | |
4910 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 | |
4911 | if test "${lt_cv_prog_cc_static_works+set}" = set; then | |
4912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4913 | else | |
4914 | lt_cv_prog_cc_static_works=no | |
4915 | save_LDFLAGS="$LDFLAGS" | |
4916 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" | |
4917 | cat >conftest.$ac_ext <<_ACEOF | |
4918 | #line $LINENO "configure" | |
4919 | #include "confdefs.h" | |
4920 | ||
4921 | #ifdef F77_DUMMY_MAIN | |
4922 | # ifdef __cplusplus | |
4923 | extern "C" | |
4924 | # endif | |
4925 | int F77_DUMMY_MAIN() { return 1; } | |
4926 | #endif | |
4927 | int | |
4928 | main () | |
4929 | { | |
4930 | ||
4931 | ; | |
4932 | return 0; | |
4933 | } | |
4934 | _ACEOF | |
4935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4937 | (eval $ac_link) 2>&5 | |
4938 | ac_status=$? | |
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4940 | (exit $ac_status); } && | |
4941 | { ac_try='test -s conftest$ac_exeext' | |
4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4943 | (eval $ac_try) 2>&5 | |
4944 | ac_status=$? | |
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4946 | (exit $ac_status); }; }; then | |
4947 | lt_cv_prog_cc_static_works=yes | |
4948 | else | |
4949 | echo "$as_me: failed program was:" >&5 | |
4950 | cat conftest.$ac_ext >&5 | |
4951 | fi | |
4952 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4953 | LDFLAGS="$save_LDFLAGS" | |
4954 | ||
4955 | fi | |
4956 | ||
4957 | ||
4958 | # Belt *and* braces to stop my trousers falling down: | |
4959 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= | |
4960 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 | |
4961 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 | |
4962 | ||
4963 | pic_flag="$lt_cv_prog_cc_pic" | |
4964 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" | |
4965 | wl="$lt_cv_prog_cc_wl" | |
4966 | link_static_flag="$lt_cv_prog_cc_static" | |
4967 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" | |
4968 | can_build_shared="$lt_cv_prog_cc_can_build_shared" | |
4969 | ||
4970 | ||
4971 | # Check to see if options -o and -c are simultaneously supported by compiler | |
4972 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
4973 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
4974 | if test "${lt_cv_compiler_c_o+set}" = set; then | |
4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4976 | else | |
4977 | ||
4978 | $rm -r conftest 2>/dev/null | |
4979 | mkdir conftest | |
4980 | cd conftest | |
4981 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4982 | mkdir out | |
4983 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
4984 | # that will create temporary files in the current directory regardless of | |
4985 | # the output directory. Thus, making CWD read-only will cause this test | |
4986 | # to fail, enabling locking or at least warning the user not to do parallel | |
4987 | # builds. | |
4988 | chmod -w . | |
4989 | save_CFLAGS="$CFLAGS" | |
4990 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
4991 | compiler_c_o=no | |
4992 | if { (eval echo configure:4992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then | |
4993 | # The compiler can only warn and ignore the option if not recognized | |
4994 | # So say no if there are warnings | |
4995 | if test -s out/conftest.err; then | |
4996 | lt_cv_compiler_c_o=no | |
4997 | else | |
4998 | lt_cv_compiler_c_o=yes | |
4999 | fi | |
5000 | else | |
5001 | # Append any errors to the config.log. | |
5002 | cat out/conftest.err 1>&5 | |
5003 | lt_cv_compiler_c_o=no | |
5004 | fi | |
5005 | CFLAGS="$save_CFLAGS" | |
5006 | chmod u+w . | |
5007 | $rm conftest* out/* | |
5008 | rmdir out | |
5009 | cd .. | |
5010 | rmdir conftest | |
5011 | $rm -r conftest 2>/dev/null | |
5012 | ||
5013 | fi | |
5014 | ||
5015 | compiler_c_o=$lt_cv_compiler_c_o | |
5016 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 | |
5017 | echo "${ECHO_T}$compiler_c_o" >&6 | |
5018 | ||
5019 | if test x"$compiler_c_o" = x"yes"; then | |
5020 | # Check to see if we can write to a .lo | |
5021 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 | |
5022 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 | |
5023 | if test "${lt_cv_compiler_o_lo+set}" = set; then | |
5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5025 | else | |
5026 | ||
5027 | lt_cv_compiler_o_lo=no | |
5028 | save_CFLAGS="$CFLAGS" | |
5029 | CFLAGS="$CFLAGS -c -o conftest.lo" | |
5030 | save_objext="$ac_objext" | |
5031 | ac_objext=lo | |
5032 | cat >conftest.$ac_ext <<_ACEOF | |
5033 | #line $LINENO "configure" | |
5034 | #include "confdefs.h" | |
5035 | ||
5036 | #ifdef F77_DUMMY_MAIN | |
5037 | # ifdef __cplusplus | |
5038 | extern "C" | |
5039 | # endif | |
5040 | int F77_DUMMY_MAIN() { return 1; } | |
5041 | #endif | |
5042 | int | |
5043 | main () | |
5044 | { | |
5045 | int some_variable = 0; | |
5046 | ; | |
5047 | return 0; | |
5048 | } | |
5049 | _ACEOF | |
5050 | rm -f conftest.$ac_objext | |
5051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5052 | (eval $ac_compile) 2>&5 | |
5053 | ac_status=$? | |
5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5055 | (exit $ac_status); } && | |
5056 | { ac_try='test -s conftest.$ac_objext' | |
5057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5058 | (eval $ac_try) 2>&5 | |
5059 | ac_status=$? | |
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5061 | (exit $ac_status); }; }; then | |
5062 | # The compiler can only warn and ignore the option if not recognized | |
5063 | # So say no if there are warnings | |
5064 | if test -s conftest.err; then | |
5065 | lt_cv_compiler_o_lo=no | |
5066 | else | |
5067 | lt_cv_compiler_o_lo=yes | |
5068 | fi | |
5069 | ||
5070 | else | |
5071 | echo "$as_me: failed program was:" >&5 | |
5072 | cat conftest.$ac_ext >&5 | |
5073 | fi | |
5074 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5075 | ac_objext="$save_objext" | |
5076 | CFLAGS="$save_CFLAGS" | |
5077 | ||
5078 | fi | |
5079 | ||
5080 | compiler_o_lo=$lt_cv_compiler_o_lo | |
5081 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 | |
5082 | echo "${ECHO_T}$compiler_o_lo" >&6 | |
5083 | else | |
5084 | compiler_o_lo=no | |
5085 | fi | |
5086 | ||
5087 | # Check to see if we can do hard links to lock some files if needed | |
5088 | hard_links="nottested" | |
5089 | if test "$compiler_c_o" = no && test "$need_locks" != no; then | |
5090 | # do not overwrite the value of need_locks provided by the user | |
5091 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
5092 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
5093 | hard_links=yes | |
5094 | $rm conftest* | |
5095 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5096 | touch conftest.a | |
5097 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
5098 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5099 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
5100 | echo "${ECHO_T}$hard_links" >&6 | |
5101 | if test "$hard_links" = no; then | |
5102 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
5103 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
5104 | need_locks=warn | |
5105 | fi | |
5106 | else | |
5107 | need_locks=no | |
5108 | fi | |
5109 | ||
5110 | if test "$GCC" = yes; then | |
5111 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler | |
5112 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
5113 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
5114 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5115 | save_CFLAGS="$CFLAGS" | |
5116 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
5117 | compiler_rtti_exceptions=no | |
5118 | cat >conftest.$ac_ext <<_ACEOF | |
5119 | #line $LINENO "configure" | |
5120 | #include "confdefs.h" | |
5121 | ||
5122 | #ifdef F77_DUMMY_MAIN | |
5123 | # ifdef __cplusplus | |
5124 | extern "C" | |
5125 | # endif | |
5126 | int F77_DUMMY_MAIN() { return 1; } | |
5127 | #endif | |
5128 | int | |
5129 | main () | |
5130 | { | |
5131 | int some_variable = 0; | |
5132 | ; | |
5133 | return 0; | |
5134 | } | |
5135 | _ACEOF | |
5136 | rm -f conftest.$ac_objext | |
5137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5138 | (eval $ac_compile) 2>&5 | |
5139 | ac_status=$? | |
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5141 | (exit $ac_status); } && | |
5142 | { ac_try='test -s conftest.$ac_objext' | |
5143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5144 | (eval $ac_try) 2>&5 | |
5145 | ac_status=$? | |
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5147 | (exit $ac_status); }; }; then | |
5148 | # The compiler can only warn and ignore the option if not recognized | |
5149 | # So say no if there are warnings | |
5150 | if test -s conftest.err; then | |
5151 | compiler_rtti_exceptions=no | |
5152 | else | |
5153 | compiler_rtti_exceptions=yes | |
5154 | fi | |
5155 | ||
5156 | else | |
5157 | echo "$as_me: failed program was:" >&5 | |
5158 | cat conftest.$ac_ext >&5 | |
5159 | fi | |
5160 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5161 | CFLAGS="$save_CFLAGS" | |
5162 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 | |
5163 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 | |
5164 | ||
5165 | if test "$compiler_rtti_exceptions" = "yes"; then | |
5166 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' | |
5167 | else | |
5168 | no_builtin_flag=' -fno-builtin' | |
5169 | fi | |
5170 | fi | |
5171 | ||
5172 | # See if the linker supports building shared libraries. | |
5173 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 | |
5174 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
5175 | ||
5176 | allow_undefined_flag= | |
5177 | no_undefined_flag= | |
5178 | need_lib_prefix=unknown | |
5179 | need_version=unknown | |
5180 | # when you set need_version to no, make sure it does not cause -set_version | |
5181 | # flags to be left without arguments | |
5182 | archive_cmds= | |
5183 | archive_expsym_cmds= | |
5184 | old_archive_from_new_cmds= | |
5185 | old_archive_from_expsyms_cmds= | |
5186 | export_dynamic_flag_spec= | |
5187 | whole_archive_flag_spec= | |
5188 | thread_safe_flag_spec= | |
5189 | hardcode_into_libs=no | |
5190 | hardcode_libdir_flag_spec= | |
5191 | hardcode_libdir_separator= | |
5192 | hardcode_direct=no | |
5193 | hardcode_minus_L=no | |
5194 | hardcode_shlibpath_var=unsupported | |
5195 | runpath_var= | |
5196 | link_all_deplibs=unknown | |
5197 | always_export_symbols=no | |
5198 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5199 | # include_expsyms should be a list of space-separated symbols to be *always* | |
5200 | # included in the symbol list | |
5201 | include_expsyms= | |
5202 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
5203 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
5204 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
5205 | # as well as any symbol that contains `d'. | |
5206 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
5207 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
5208 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
5209 | # the symbol is explicitly referenced. Since portable code cannot | |
5210 | # rely on this symbol name, it's probably fine to never include it in | |
5211 | # preloaded symbol tables. | |
5212 | extract_expsyms_cmds= | |
5213 | ||
5214 | case $host_os in | |
5215 | cygwin* | mingw* | pw32*) | |
5216 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
5217 | # When not using gcc, we currently assume that we are using | |
5218 | # Microsoft Visual C++. | |
5219 | if test "$GCC" != yes; then | |
5220 | with_gnu_ld=no | |
5221 | fi | |
5222 | ;; | |
5223 | openbsd*) | |
5224 | with_gnu_ld=no | |
5225 | ;; | |
5226 | esac | |
5227 | ||
5228 | ld_shlibs=yes | |
5229 | if test "$with_gnu_ld" = yes; then | |
5230 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
5231 | wlarc='${wl}' | |
5232 | ||
5233 | # See if GNU ld supports shared libraries. | |
5234 | case $host_os in | |
5235 | aix3* | aix4* | aix5*) | |
5236 | # On AIX, the GNU linker is very broken | |
5237 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. | |
5238 | ld_shlibs=no | |
5239 | cat <<EOF 1>&2 | |
5240 | ||
5241 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
5242 | *** to be unable to reliably create shared libraries on AIX. | |
5243 | *** Therefore, libtool is disabling shared libraries support. If you | |
5244 | *** really care for shared libraries, you may want to modify your PATH | |
5245 | *** so that a non-GNU linker is found, and then restart. | |
5246 | ||
5247 | EOF | |
5248 | ;; | |
5249 | ||
5250 | amigaos*) | |
5251 | 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)' | |
5252 | hardcode_libdir_flag_spec='-L$libdir' | |
5253 | hardcode_minus_L=yes | |
5254 | ||
5255 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
5256 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
5257 | # to version 4, is to share data among multiple programs linked | |
5258 | # with the same dynamic library. Since this doesn't match the | |
5259 | # behavior of shared libraries on other platforms, we can use | |
5260 | # them. | |
5261 | ld_shlibs=no | |
5262 | ;; | |
5263 | ||
5264 | beos*) | |
5265 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
5266 | allow_undefined_flag=unsupported | |
5267 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
5268 | # support --undefined. This deserves some investigation. FIXME | |
5269 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5270 | else | |
5271 | ld_shlibs=no | |
5272 | fi | |
5273 | ;; | |
5274 | ||
5275 | cygwin* | mingw* | pw32*) | |
5276 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
5277 | # no search path for DLLs. | |
5278 | hardcode_libdir_flag_spec='-L$libdir' | |
5279 | allow_undefined_flag=unsupported | |
5280 | always_export_symbols=yes | |
5281 | ||
5282 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
5283 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
5284 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
5285 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
5286 | else $CC -o impgen impgen.c ; fi)~ | |
5287 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
5288 | ||
5289 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
5290 | ||
5291 | # cygwin and mingw dlls have different entry points and sets of symbols | |
5292 | # to exclude. | |
5293 | # FIXME: what about values for MSVC? | |
5294 | dll_entry=__cygwin_dll_entry@12 | |
5295 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
5296 | case $host_os in | |
5297 | mingw*) | |
5298 | # mingw values | |
5299 | dll_entry=_DllMainCRTStartup@12 | |
5300 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
5301 | ;; | |
5302 | esac | |
5303 | ||
5304 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
5305 | # of the two symbol sets. | |
5306 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
5307 | ||
5308 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
5309 | # can override, but on older systems we have to supply one (in ltdll.c) | |
5310 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
5311 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
5312 | 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~ | |
5313 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
5314 | else | |
5315 | ltdll_obj= | |
5316 | ltdll_cmds= | |
5317 | fi | |
5318 | ||
5319 | # Extract the symbol export list from an `--export-all' def file, | |
5320 | # then regenerate the def file from the symbol export list, so that | |
5321 | # the compiled dll only exports the symbol export list. | |
5322 | # Be careful not to strip the DATA tag left be newer dlltools. | |
5323 | export_symbols_cmds="$ltdll_cmds"' | |
5324 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
5325 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
5326 | ||
5327 | # If the export-symbols file already is a .def file (1st line | |
5328 | # is EXPORTS), use it as is. | |
5329 | # If DATA tags from a recent dlltool are present, honour them! | |
5330 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
5331 | cp $export_symbols $output_objdir/$soname-def; | |
5332 | else | |
5333 | echo EXPORTS > $output_objdir/$soname-def; | |
5334 | _lt_hint=1; | |
5335 | cat $export_symbols | while read symbol; do | |
5336 | set dummy \$symbol; | |
5337 | case \$# in | |
5338 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
5339 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
5340 | esac; | |
5341 | _lt_hint=`expr 1 + \$_lt_hint`; | |
5342 | done; | |
5343 | fi~ | |
5344 | '"$ltdll_cmds"' | |
5345 | $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~ | |
5346 | $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~ | |
5347 | $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~ | |
5348 | $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~ | |
5349 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
5350 | ;; | |
5351 | ||
5352 | netbsd*) | |
5353 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
5354 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
5355 | wlarc= | |
5356 | else | |
5357 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5358 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
5359 | fi | |
5360 | ;; | |
5361 | ||
5362 | solaris* | sysv5*) | |
5363 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
5364 | ld_shlibs=no | |
5365 | cat <<EOF 1>&2 | |
5366 | ||
5367 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
5368 | *** create shared libraries on Solaris systems. Therefore, libtool | |
5369 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
5370 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
5371 | *** your PATH or compiler configuration so that the native linker is | |
5372 | *** used, and then restart. | |
5373 | ||
5374 | EOF | |
5375 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
5376 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5377 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
5378 | else | |
5379 | ld_shlibs=no | |
5380 | fi | |
5381 | ;; | |
5382 | ||
5383 | sunos4*) | |
5384 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5385 | wlarc= | |
5386 | hardcode_direct=yes | |
5387 | hardcode_shlibpath_var=no | |
5388 | ;; | |
5389 | ||
5390 | *) | |
5391 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
5392 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5393 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
5394 | else | |
5395 | ld_shlibs=no | |
5396 | fi | |
5397 | ;; | |
5398 | esac | |
5399 | ||
5400 | if test "$ld_shlibs" = yes; then | |
5401 | runpath_var=LD_RUN_PATH | |
5402 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
5403 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
5404 | case $host_os in | |
5405 | cygwin* | mingw* | pw32*) | |
5406 | # dlltool doesn't understand --whole-archive et. al. | |
5407 | whole_archive_flag_spec= | |
5408 | ;; | |
5409 | *) | |
5410 | # ancient GNU ld didn't support --whole-archive et. al. | |
5411 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
5412 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5413 | else | |
5414 | whole_archive_flag_spec= | |
5415 | fi | |
5416 | ;; | |
5417 | esac | |
5418 | fi | |
5419 | else | |
5420 | # PORTME fill in a description of your system's linker (not GNU ld) | |
5421 | case $host_os in | |
5422 | aix3*) | |
5423 | allow_undefined_flag=unsupported | |
5424 | always_export_symbols=yes | |
5425 | 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' | |
5426 | # Note: this linker hardcodes the directories in LIBPATH if there | |
5427 | # are no directories specified by -L. | |
5428 | hardcode_minus_L=yes | |
5429 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
5430 | # Neither direct hardcoding nor static linking is supported with a | |
5431 | # broken collect2. | |
5432 | hardcode_direct=unsupported | |
5433 | fi | |
5434 | ;; | |
5435 | ||
5436 | aix4* | aix5*) | |
5437 | if test "$host_cpu" = ia64; then | |
5438 | # On IA64, the linker does run time linking by default, so we don't | |
5439 | # have to do anything special. | |
5440 | aix_use_runtimelinking=no | |
5441 | exp_sym_flag='-Bexport' | |
5442 | no_entry_flag="" | |
5443 | else | |
5444 | aix_use_runtimelinking=no | |
5445 | ||
5446 | # Test if we are trying to use run time linking or normal | |
5447 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
5448 | # need to do runtime linking. | |
5449 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
5450 | for ld_flag in $LDFLAGS; do | |
5451 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
5452 | aix_use_runtimelinking=yes | |
5453 | break | |
5454 | fi | |
5455 | done | |
5456 | esac | |
5457 | ||
5458 | exp_sym_flag='-bexport' | |
5459 | no_entry_flag='-bnoentry' | |
5460 | fi | |
5461 | ||
5462 | # When large executables or shared objects are built, AIX ld can | |
5463 | # have problems creating the table of contents. If linking a library | |
5464 | # or program results in "error TOC overflow" add -mminimal-toc to | |
5465 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
5466 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
5467 | ||
5468 | hardcode_direct=yes | |
5469 | archive_cmds='' | |
5470 | hardcode_libdir_separator=':' | |
5471 | if test "$GCC" = yes; then | |
5472 | case $host_os in aix4.[012]|aix4.[012].*) | |
5473 | collect2name=`${CC} -print-prog-name=collect2` | |
5474 | if test -f "$collect2name" && \ | |
5475 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
5476 | then | |
5477 | # We have reworked collect2 | |
5478 | hardcode_direct=yes | |
5479 | else | |
5480 | # We have old collect2 | |
5481 | hardcode_direct=unsupported | |
5482 | # It fails to find uninstalled libraries when the uninstalled | |
5483 | # path is not listed in the libpath. Setting hardcode_minus_L | |
5484 | # to unsupported forces relinking | |
5485 | hardcode_minus_L=yes | |
5486 | hardcode_libdir_flag_spec='-L$libdir' | |
5487 | hardcode_libdir_separator= | |
5488 | fi | |
5489 | esac | |
5490 | ||
5491 | shared_flag='-shared' | |
5492 | else | |
5493 | # not using gcc | |
5494 | if test "$host_cpu" = ia64; then | |
5495 | shared_flag='${wl}-G' | |
5496 | else | |
5497 | if test "$aix_use_runtimelinking" = yes; then | |
5498 | shared_flag='${wl}-G' | |
5499 | else | |
5500 | shared_flag='${wl}-bM:SRE' | |
5501 | fi | |
5502 | fi | |
5503 | fi | |
5504 | ||
5505 | # It seems that -bexpall can do strange things, so it is better to | |
5506 | # generate a list of symbols to export. | |
5507 | always_export_symbols=yes | |
5508 | if test "$aix_use_runtimelinking" = yes; then | |
5509 | # Warning - without using the other runtime loading flags (-brtl), | |
5510 | # -berok will link without error, but may produce a broken library. | |
5511 | allow_undefined_flag='-berok' | |
5512 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' | |
5513 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
5514 | else | |
5515 | if test "$host_cpu" = ia64; then | |
5516 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
5517 | allow_undefined_flag="-z nodefs" | |
5518 | 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" | |
5519 | else | |
5520 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' | |
5521 | # Warning - without using the other run time loading flags, | |
5522 | # -berok will link without error, but may produce a broken library. | |
5523 | allow_undefined_flag='${wl}-berok' | |
5524 | # This is a bit strange, but is similar to how AIX traditionally builds | |
5525 | # it's shared libraries. | |
5526 | 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' | |
5527 | fi | |
5528 | fi | |
5529 | ;; | |
5530 | ||
5531 | amigaos*) | |
5532 | 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)' | |
5533 | hardcode_libdir_flag_spec='-L$libdir' | |
5534 | hardcode_minus_L=yes | |
5535 | # see comment about different semantics on the GNU ld section | |
5536 | ld_shlibs=no | |
5537 | ;; | |
5538 | ||
5539 | cygwin* | mingw* | pw32*) | |
5540 | # When not using gcc, we currently assume that we are using | |
5541 | # Microsoft Visual C++. | |
5542 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
5543 | # no search path for DLLs. | |
5544 | hardcode_libdir_flag_spec=' ' | |
5545 | allow_undefined_flag=unsupported | |
5546 | # Tell ltmain to make .lib files, not .a files. | |
5547 | libext=lib | |
5548 | # FIXME: Setting linknames here is a bad hack. | |
5549 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
5550 | # The linker will automatically build a .lib file if we build a DLL. | |
5551 | old_archive_from_new_cmds='true' | |
5552 | # FIXME: Should let the user specify the lib program. | |
5553 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
5554 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
5555 | ;; | |
5556 | ||
5557 | darwin* | rhapsody*) | |
5558 | case "$host_os" in | |
5559 | rhapsody* | darwin1.[012]) | |
5560 | allow_undefined_flag='-undefined suppress' | |
5561 | ;; | |
5562 | *) # Darwin 1.3 on | |
5563 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
5564 | ;; | |
5565 | esac | |
5566 | # FIXME: Relying on posixy $() will cause problems for | |
5567 | # cross-compilation, but unfortunately the echo tests do not | |
5568 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
5569 | # `"' quotes if we put them in here... so don't! | |
5570 | archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
5571 | # We need to add '_' to the symbols in $export_symbols first | |
5572 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' | |
5573 | hardcode_direct=yes | |
5574 | hardcode_shlibpath_var=no | |
5575 | whole_archive_flag_spec='-all_load $convenience' | |
5576 | ;; | |
5577 | ||
5578 | freebsd1*) | |
5579 | ld_shlibs=no | |
5580 | ;; | |
5581 | ||
5582 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
5583 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
5584 | # does not break anything, and helps significantly (at the cost of a little | |
5585 | # extra space). | |
5586 | freebsd2.2*) | |
5587 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
5588 | hardcode_libdir_flag_spec='-R$libdir' | |
5589 | hardcode_direct=yes | |
5590 | hardcode_shlibpath_var=no | |
5591 | ;; | |
5592 | ||
5593 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
5594 | freebsd2*) | |
5595 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5596 | hardcode_direct=yes | |
5597 | hardcode_minus_L=yes | |
5598 | hardcode_shlibpath_var=no | |
5599 | ;; | |
5600 | ||
5601 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
5602 | freebsd*) | |
5603 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
5604 | hardcode_libdir_flag_spec='-R$libdir' | |
5605 | hardcode_direct=yes | |
5606 | hardcode_shlibpath_var=no | |
5607 | ;; | |
5608 | ||
5609 | hpux9* | hpux10* | hpux11*) | |
5610 | case $host_os in | |
5611 | 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' ;; | |
5612 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; | |
5613 | esac | |
5614 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
5615 | hardcode_libdir_separator=: | |
5616 | hardcode_direct=yes | |
5617 | hardcode_minus_L=yes # Not in the search PATH, but as the default | |
5618 | # location of the library. | |
5619 | export_dynamic_flag_spec='${wl}-E' | |
5620 | ;; | |
5621 | ||
5622 | irix5* | irix6* | nonstopux*) | |
5623 | if test "$GCC" = yes; then | |
5624 | 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' | |
5625 | else | |
5626 | 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' | |
5627 | fi | |
5628 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
5629 | hardcode_libdir_separator=: | |
5630 | link_all_deplibs=yes | |
5631 | ;; | |
5632 | ||
5633 | netbsd*) | |
5634 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
5635 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
5636 | else | |
5637 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
5638 | fi | |
5639 | hardcode_libdir_flag_spec='-R$libdir' | |
5640 | hardcode_direct=yes | |
5641 | hardcode_shlibpath_var=no | |
5642 | ;; | |
5643 | ||
5644 | newsos6) | |
5645 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5646 | hardcode_direct=yes | |
5647 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
5648 | hardcode_libdir_separator=: | |
5649 | hardcode_shlibpath_var=no | |
5650 | ;; | |
5651 | ||
5652 | openbsd*) | |
5653 | hardcode_direct=yes | |
5654 | hardcode_shlibpath_var=no | |
5655 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5656 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
5657 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5658 | export_dynamic_flag_spec='${wl}-E' | |
5659 | else | |
5660 | case "$host_os" in | |
5661 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
5662 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5663 | hardcode_libdir_flag_spec='-R$libdir' | |
5664 | ;; | |
5665 | *) | |
5666 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
5667 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5668 | ;; | |
5669 | esac | |
5670 | fi | |
5671 | ;; | |
5672 | ||
5673 | os2*) | |
5674 | hardcode_libdir_flag_spec='-L$libdir' | |
5675 | hardcode_minus_L=yes | |
5676 | allow_undefined_flag=unsupported | |
5677 | 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' | |
5678 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
5679 | ;; | |
5680 | ||
5681 | osf3*) | |
5682 | if test "$GCC" = yes; then | |
5683 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
5684 | 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' | |
5685 | else | |
5686 | allow_undefined_flag=' -expect_unresolved \*' | |
5687 | 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' | |
5688 | fi | |
5689 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
5690 | hardcode_libdir_separator=: | |
5691 | ;; | |
5692 | ||
5693 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
5694 | if test "$GCC" = yes; then | |
5695 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
5696 | 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' | |
5697 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
5698 | else | |
5699 | allow_undefined_flag=' -expect_unresolved \*' | |
5700 | 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' | |
5701 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
5702 | $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' | |
5703 | ||
5704 | #Both c and cxx compiler support -rpath directly | |
5705 | hardcode_libdir_flag_spec='-rpath $libdir' | |
5706 | fi | |
5707 | hardcode_libdir_separator=: | |
5708 | ;; | |
5709 | ||
5710 | sco3.2v5*) | |
5711 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5712 | hardcode_shlibpath_var=no | |
5713 | runpath_var=LD_RUN_PATH | |
5714 | hardcode_runpath_var=yes | |
5715 | export_dynamic_flag_spec='${wl}-Bexport' | |
5716 | ;; | |
5717 | ||
5718 | solaris*) | |
5719 | # gcc --version < 3.0 without binutils cannot create self contained | |
5720 | # shared libraries reliably, requiring libgcc.a to resolve some of | |
5721 | # the object symbols generated in some cases. Libraries that use | |
5722 | # assert need libgcc.a to resolve __eprintf, for example. Linking | |
5723 | # a copy of libgcc.a into every shared library to guarantee resolving | |
5724 | # such symbols causes other problems: According to Tim Van Holder | |
5725 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate | |
5726 | # (to the application) exception stack for one thing. | |
5727 | no_undefined_flag=' -z defs' | |
5728 | if test "$GCC" = yes; then | |
5729 | case `$CC --version 2>/dev/null` in | |
5730 | [12].*) | |
5731 | cat <<EOF 1>&2 | |
5732 | ||
5733 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably | |
5734 | *** create self contained shared libraries on Solaris systems, without | |
5735 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling | |
5736 | *** -no-undefined support, which will at least allow you to build shared | |
5737 | *** libraries. However, you may find that when you link such libraries | |
5738 | *** into an application without using GCC, you have to manually add | |
5739 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to | |
5740 | *** upgrade to a newer version of GCC. Another option is to rebuild your | |
5741 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. | |
5742 | ||
5743 | EOF | |
5744 | no_undefined_flag= | |
5745 | ;; | |
5746 | esac | |
5747 | fi | |
5748 | # $CC -shared without GNU ld will not create a library from C++ | |
5749 | # object files and a static libstdc++, better avoid it by now | |
5750 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5751 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
5752 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
5753 | hardcode_libdir_flag_spec='-R$libdir' | |
5754 | hardcode_shlibpath_var=no | |
5755 | case $host_os in | |
5756 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
5757 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
5758 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
5759 | esac | |
5760 | link_all_deplibs=yes | |
5761 | ;; | |
5762 | ||
5763 | sunos4*) | |
5764 | if test "x$host_vendor" = xsequent; then | |
5765 | # Use $CC to link under sequent, because it throws in some extra .o | |
5766 | # files that make .init and .fini sections work. | |
5767 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
5768 | else | |
5769 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
5770 | fi | |
5771 | hardcode_libdir_flag_spec='-L$libdir' | |
5772 | hardcode_direct=yes | |
5773 | hardcode_minus_L=yes | |
5774 | hardcode_shlibpath_var=no | |
5775 | ;; | |
5776 | ||
5777 | sysv4) | |
5778 | if test "x$host_vendor" = xsno; then | |
5779 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5780 | hardcode_direct=yes # is this really true??? | |
5781 | else | |
5782 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5783 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
5784 | fi | |
5785 | runpath_var='LD_RUN_PATH' | |
5786 | hardcode_shlibpath_var=no | |
5787 | ;; | |
5788 | ||
5789 | sysv4.3*) | |
5790 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5791 | hardcode_shlibpath_var=no | |
5792 | export_dynamic_flag_spec='-Bexport' | |
5793 | ;; | |
5794 | ||
5795 | sysv5*) | |
5796 | no_undefined_flag=' -z text' | |
5797 | # $CC -shared without GNU ld will not create a library from C++ | |
5798 | # object files and a static libstdc++, better avoid it by now | |
5799 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5800 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
5801 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
5802 | hardcode_libdir_flag_spec= | |
5803 | hardcode_shlibpath_var=no | |
5804 | runpath_var='LD_RUN_PATH' | |
5805 | ;; | |
5806 | ||
5807 | uts4*) | |
5808 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5809 | hardcode_libdir_flag_spec='-L$libdir' | |
5810 | hardcode_shlibpath_var=no | |
5811 | ;; | |
5812 | ||
5813 | dgux*) | |
5814 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5815 | hardcode_libdir_flag_spec='-L$libdir' | |
5816 | hardcode_shlibpath_var=no | |
5817 | ;; | |
5818 | ||
5819 | sysv4*MP*) | |
5820 | if test -d /usr/nec; then | |
5821 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5822 | hardcode_shlibpath_var=no | |
5823 | runpath_var=LD_RUN_PATH | |
5824 | hardcode_runpath_var=yes | |
5825 | ld_shlibs=yes | |
5826 | fi | |
5827 | ;; | |
5828 | ||
5829 | sysv4.2uw2*) | |
5830 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
5831 | hardcode_direct=yes | |
5832 | hardcode_minus_L=no | |
5833 | hardcode_shlibpath_var=no | |
5834 | hardcode_runpath_var=yes | |
5835 | runpath_var=LD_RUN_PATH | |
5836 | ;; | |
5837 | ||
5838 | sysv5uw7* | unixware7*) | |
5839 | no_undefined_flag='${wl}-z ${wl}text' | |
5840 | if test "$GCC" = yes; then | |
5841 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5842 | else | |
5843 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5844 | fi | |
5845 | runpath_var='LD_RUN_PATH' | |
5846 | hardcode_shlibpath_var=no | |
5847 | ;; | |
5848 | ||
5849 | *) | |
5850 | ld_shlibs=no | |
5851 | ;; | |
5852 | esac | |
5853 | fi | |
5854 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
5855 | echo "${ECHO_T}$ld_shlibs" >&6 | |
5856 | test "$ld_shlibs" = no && can_build_shared=no | |
5857 | ||
5858 | # Check hardcoding attributes. | |
5859 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
5860 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
5861 | hardcode_action= | |
5862 | if test -n "$hardcode_libdir_flag_spec" || \ | |
5863 | test -n "$runpath_var"; then | |
5864 | ||
5865 | # We can hardcode non-existant directories. | |
5866 | if test "$hardcode_direct" != no && | |
5867 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
5868 | # have to relink, otherwise we might link with an installed library | |
5869 | # when we should be linking with a yet-to-be-installed one | |
5870 | ## test "$hardcode_shlibpath_var" != no && | |
5871 | test "$hardcode_minus_L" != no; then | |
5872 | # Linking always hardcodes the temporary library directory. | |
5873 | hardcode_action=relink | |
5874 | else | |
5875 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
5876 | hardcode_action=immediate | |
5877 | fi | |
5878 | else | |
5879 | # We cannot hardcode anything, or else we can only hardcode existing | |
5880 | # directories. | |
5881 | hardcode_action=unsupported | |
5882 | fi | |
5883 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
5884 | echo "${ECHO_T}$hardcode_action" >&6 | |
5885 | ||
5886 | striplib= | |
5887 | old_striplib= | |
5888 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
5889 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
5890 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
5891 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
5892 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5893 | echo "$as_me:$LINENO: result: yes" >&5 | |
5894 | echo "${ECHO_T}yes" >&6 | |
5895 | else | |
5896 | echo "$as_me:$LINENO: result: no" >&5 | |
5897 | echo "${ECHO_T}no" >&6 | |
5898 | fi | |
5899 | ||
5900 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5901 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5902 | ||
5903 | # PORTME Fill in your ld.so characteristics | |
5904 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
5905 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
5906 | library_names_spec= | |
5907 | libname_spec='lib$name' | |
5908 | soname_spec= | |
5909 | postinstall_cmds= | |
5910 | postuninstall_cmds= | |
5911 | finish_cmds= | |
5912 | finish_eval= | |
5913 | shlibpath_var= | |
5914 | shlibpath_overrides_runpath=unknown | |
5915 | version_type=none | |
5916 | dynamic_linker="$host_os ld.so" | |
5917 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
5918 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
5919 | ||
5920 | case $host_os in | |
5921 | aix3*) | |
5922 | version_type=linux | |
5923 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
5924 | shlibpath_var=LIBPATH | |
5925 | ||
5926 | # AIX has no versioning support, so we append a major version to the name. | |
5927 | soname_spec='${libname}${release}.so$major' | |
5928 | ;; | |
5929 | ||
5930 | aix4* | aix5*) | |
5931 | version_type=linux | |
5932 | if test "$host_cpu" = ia64; then | |
5933 | # AIX 5 supports IA64 | |
5934 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
5935 | shlibpath_var=LD_LIBRARY_PATH | |
5936 | else | |
5937 | # With GCC up to 2.95.x, collect2 would create an import file | |
5938 | # for dependence libraries. The import file would start with | |
5939 | # the line `#! .'. This would cause the generated library to | |
5940 | # depend on `.', always an invalid library. This was fixed in | |
5941 | # development snapshots of GCC prior to 3.0. | |
5942 | case $host_os in | |
5943 | aix4 | aix4.[01] | aix4.[01].*) | |
5944 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
5945 | echo ' yes ' | |
5946 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
5947 | : | |
5948 | else | |
5949 | can_build_shared=no | |
5950 | fi | |
5951 | ;; | |
5952 | esac | |
5953 | # AIX (on Power*) has no versioning support, so currently we can | |
5954 | # not hardcode correct soname into executable. Probably we can | |
5955 | # add versioning support to collect2, so additional links can | |
5956 | # be useful in future. | |
5957 | if test "$aix_use_runtimelinking" = yes; then | |
5958 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
5959 | # instead of lib<name>.a to let people know that these are not | |
5960 | # typical AIX shared libraries. | |
5961 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
5962 | else | |
5963 | # We preserve .a as extension for shared libraries through AIX4.2 | |
5964 | # and later when we are not doing run time linking. | |
5965 | library_names_spec='${libname}${release}.a $libname.a' | |
5966 | soname_spec='${libname}${release}.so$major' | |
5967 | fi | |
5968 | shlibpath_var=LIBPATH | |
5969 | fi | |
5970 | ;; | |
5971 | ||
5972 | amigaos*) | |
5973 | library_names_spec='$libname.ixlibrary $libname.a' | |
5974 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
5975 | 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' | |
5976 | ;; | |
5977 | ||
5978 | beos*) | |
5979 | library_names_spec='${libname}.so' | |
5980 | dynamic_linker="$host_os ld.so" | |
5981 | shlibpath_var=LIBRARY_PATH | |
5982 | ;; | |
5983 | ||
5984 | bsdi4*) | |
5985 | version_type=linux | |
5986 | need_version=no | |
5987 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
5988 | soname_spec='${libname}${release}.so$major' | |
5989 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
5990 | shlibpath_var=LD_LIBRARY_PATH | |
5991 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
5992 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
5993 | export_dynamic_flag_spec=-rdynamic | |
5994 | # the default ld.so.conf also contains /usr/contrib/lib and | |
5995 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
5996 | # libtool to hard-code these into programs | |
5997 | ;; | |
5998 | ||
5999 | cygwin* | mingw* | pw32*) | |
6000 | version_type=windows | |
6001 | need_version=no | |
6002 | need_lib_prefix=no | |
6003 | case $GCC,$host_os in | |
6004 | yes,cygwin*) | |
6005 | library_names_spec='$libname.dll.a' | |
6006 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
6007 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
6008 | dldir=$destdir/`dirname \$dlpath`~ | |
6009 | test -d \$dldir || mkdir -p \$dldir~ | |
6010 | $install_prog .libs/$dlname \$dldir/$dlname' | |
6011 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
6012 | dlpath=$dir/\$dldll~ | |
6013 | $rm \$dlpath' | |
6014 | ;; | |
6015 | yes,mingw*) | |
6016 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
6017 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` | |
6018 | ;; | |
6019 | yes,pw32*) | |
6020 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
6021 | ;; | |
6022 | *) | |
6023 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
6024 | ;; | |
6025 | esac | |
6026 | dynamic_linker='Win32 ld.exe' | |
6027 | # FIXME: first we should search . and the directory the executable is in | |
6028 | shlibpath_var=PATH | |
6029 | ;; | |
6030 | ||
6031 | darwin* | rhapsody*) | |
6032 | dynamic_linker="$host_os dyld" | |
6033 | version_type=darwin | |
6034 | need_lib_prefix=no | |
6035 | need_version=no | |
6036 | # FIXME: Relying on posixy $() will cause problems for | |
6037 | # cross-compilation, but unfortunately the echo tests do not | |
6038 | # yet detect zsh echo's removal of \ escapes. | |
6039 | 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)' | |
6040 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
6041 | shlibpath_overrides_runpath=yes | |
6042 | shlibpath_var=DYLD_LIBRARY_PATH | |
6043 | ;; | |
6044 | ||
6045 | freebsd1*) | |
6046 | dynamic_linker=no | |
6047 | ;; | |
6048 | ||
6049 | freebsd*) | |
6050 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
6051 | version_type=freebsd-$objformat | |
6052 | case $version_type in | |
6053 | freebsd-elf*) | |
6054 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
6055 | need_version=no | |
6056 | need_lib_prefix=no | |
6057 | ;; | |
6058 | freebsd-*) | |
6059 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
6060 | need_version=yes | |
6061 | ;; | |
6062 | esac | |
6063 | shlibpath_var=LD_LIBRARY_PATH | |
6064 | case $host_os in | |
6065 | freebsd2*) | |
6066 | shlibpath_overrides_runpath=yes | |
6067 | ;; | |
6068 | *) | |
6069 | shlibpath_overrides_runpath=no | |
6070 | hardcode_into_libs=yes | |
6071 | ;; | |
6072 | esac | |
6073 | ;; | |
6074 | ||
6075 | gnu*) | |
6076 | version_type=linux | |
6077 | need_lib_prefix=no | |
6078 | need_version=no | |
6079 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
6080 | soname_spec='${libname}${release}.so$major' | |
6081 | shlibpath_var=LD_LIBRARY_PATH | |
6082 | hardcode_into_libs=yes | |
6083 | ;; | |
6084 | ||
6085 | hpux9* | hpux10* | hpux11*) | |
6086 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
6087 | # link against other versions. | |
6088 | dynamic_linker="$host_os dld.sl" | |
6089 | version_type=sunos | |
6090 | need_lib_prefix=no | |
6091 | need_version=no | |
6092 | shlibpath_var=SHLIB_PATH | |
6093 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
6094 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
6095 | soname_spec='${libname}${release}.sl$major' | |
6096 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
6097 | postinstall_cmds='chmod 555 $lib' | |
6098 | ;; | |
6099 | ||
6100 | irix5* | irix6* | nonstopux*) | |
6101 | case $host_os in | |
6102 | nonstopux*) version_type=nonstopux ;; | |
6103 | *) version_type=irix ;; | |
6104 | esac | |
6105 | need_lib_prefix=no | |
6106 | need_version=no | |
6107 | soname_spec='${libname}${release}.so$major' | |
6108 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
6109 | case $host_os in | |
6110 | irix5* | nonstopux*) | |
6111 | libsuff= shlibsuff= | |
6112 | ;; | |
6113 | *) | |
6114 | case $LD in # libtool.m4 will add one of these switches to LD | |
6115 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
6116 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
6117 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
6118 | *) libsuff= shlibsuff= libmagic=never-match;; | |
6119 | esac | |
6120 | ;; | |
6121 | esac | |
6122 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
6123 | shlibpath_overrides_runpath=no | |
6124 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
6125 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
6126 | ;; | |
6127 | ||
6128 | # No shared lib support for Linux oldld, aout, or coff. | |
6129 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) | |
6130 | dynamic_linker=no | |
6131 | ;; | |
6132 | ||
6133 | # This must be Linux ELF. | |
6134 | linux-gnu*) | |
6135 | version_type=linux | |
6136 | need_lib_prefix=no | |
6137 | need_version=no | |
6138 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6139 | soname_spec='${libname}${release}.so$major' | |
6140 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
6141 | shlibpath_var=LD_LIBRARY_PATH | |
6142 | shlibpath_overrides_runpath=no | |
6143 | # This implies no fast_install, which is unacceptable. | |
6144 | # Some rework will be needed to allow for fast_install | |
6145 | # before this can be enabled. | |
6146 | hardcode_into_libs=yes | |
6147 | ||
6148 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
6149 | # powerpc, because MkLinux only supported shared libraries with the | |
6150 | # GNU dynamic linker. Since this was broken with cross compilers, | |
6151 | # most powerpc-linux boxes support dynamic linking these days and | |
6152 | # people can always --disable-shared, the test was removed, and we | |
6153 | # assume the GNU/Linux dynamic linker is in use. | |
6154 | dynamic_linker='GNU/Linux ld.so' | |
6155 | ;; | |
6156 | ||
6157 | netbsd*) | |
6158 | version_type=sunos | |
6159 | need_lib_prefix=no | |
6160 | need_version=no | |
6161 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6162 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
6163 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
6164 | dynamic_linker='NetBSD (a.out) ld.so' | |
6165 | else | |
6166 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
6167 | soname_spec='${libname}${release}.so$major' | |
6168 | dynamic_linker='NetBSD ld.elf_so' | |
6169 | fi | |
6170 | shlibpath_var=LD_LIBRARY_PATH | |
6171 | shlibpath_overrides_runpath=yes | |
6172 | hardcode_into_libs=yes | |
6173 | ;; | |
6174 | ||
6175 | newsos6) | |
6176 | version_type=linux | |
6177 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6178 | shlibpath_var=LD_LIBRARY_PATH | |
6179 | shlibpath_overrides_runpath=yes | |
6180 | ;; | |
6181 | ||
6182 | openbsd*) | |
6183 | version_type=sunos | |
6184 | need_lib_prefix=no | |
6185 | need_version=no | |
6186 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6187 | case "$host_os" in | |
6188 | openbsd2.[89] | openbsd2.[89].*) | |
6189 | shlibpath_overrides_runpath=no | |
6190 | ;; | |
6191 | *) | |
6192 | shlibpath_overrides_runpath=yes | |
6193 | ;; | |
6194 | esac | |
6195 | else | |
6196 | shlibpath_overrides_runpath=yes | |
6197 | fi | |
6198 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
6199 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
6200 | shlibpath_var=LD_LIBRARY_PATH | |
6201 | ;; | |
6202 | ||
6203 | os2*) | |
6204 | libname_spec='$name' | |
6205 | need_lib_prefix=no | |
6206 | library_names_spec='$libname.dll $libname.a' | |
6207 | dynamic_linker='OS/2 ld.exe' | |
6208 | shlibpath_var=LIBPATH | |
6209 | ;; | |
6210 | ||
6211 | osf3* | osf4* | osf5*) | |
6212 | version_type=osf | |
6213 | need_version=no | |
6214 | need_lib_prefix=no | |
6215 | soname_spec='${libname}${release}.so' | |
6216 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
6217 | shlibpath_var=LD_LIBRARY_PATH | |
6218 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
6219 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
6220 | ;; | |
6221 | ||
6222 | sco3.2v5*) | |
6223 | version_type=osf | |
6224 | soname_spec='${libname}${release}.so$major' | |
6225 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6226 | shlibpath_var=LD_LIBRARY_PATH | |
6227 | ;; | |
6228 | ||
6229 | solaris*) | |
6230 | version_type=linux | |
6231 | need_lib_prefix=no | |
6232 | need_version=no | |
6233 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6234 | soname_spec='${libname}${release}.so$major' | |
6235 | shlibpath_var=LD_LIBRARY_PATH | |
6236 | shlibpath_overrides_runpath=yes | |
6237 | hardcode_into_libs=yes | |
6238 | # ldd complains unless libraries are executable | |
6239 | postinstall_cmds='chmod +x $lib' | |
6240 | ;; | |
6241 | ||
6242 | sunos4*) | |
6243 | version_type=sunos | |
6244 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
6245 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
6246 | shlibpath_var=LD_LIBRARY_PATH | |
6247 | shlibpath_overrides_runpath=yes | |
6248 | if test "$with_gnu_ld" = yes; then | |
6249 | need_lib_prefix=no | |
6250 | fi | |
6251 | need_version=yes | |
6252 | ;; | |
6253 | ||
6254 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6255 | version_type=linux | |
6256 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6257 | soname_spec='${libname}${release}.so$major' | |
6258 | shlibpath_var=LD_LIBRARY_PATH | |
6259 | case $host_vendor in | |
6260 | sni) | |
6261 | shlibpath_overrides_runpath=no | |
6262 | ;; | |
6263 | motorola) | |
6264 | need_lib_prefix=no | |
6265 | need_version=no | |
6266 | shlibpath_overrides_runpath=no | |
6267 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
6268 | ;; | |
6269 | esac | |
6270 | ;; | |
6271 | ||
6272 | uts4*) | |
6273 | version_type=linux | |
6274 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6275 | soname_spec='${libname}${release}.so$major' | |
6276 | shlibpath_var=LD_LIBRARY_PATH | |
6277 | ;; | |
6278 | ||
6279 | dgux*) | |
6280 | version_type=linux | |
6281 | need_lib_prefix=no | |
6282 | need_version=no | |
6283 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6284 | soname_spec='${libname}${release}.so$major' | |
6285 | shlibpath_var=LD_LIBRARY_PATH | |
6286 | ;; | |
6287 | ||
6288 | sysv4*MP*) | |
6289 | if test -d /usr/nec ;then | |
6290 | version_type=linux | |
6291 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
6292 | soname_spec='$libname.so.$major' | |
6293 | shlibpath_var=LD_LIBRARY_PATH | |
6294 | fi | |
6295 | ;; | |
6296 | ||
6297 | *) | |
6298 | dynamic_linker=no | |
6299 | ;; | |
6300 | esac | |
6301 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
6302 | echo "${ECHO_T}$dynamic_linker" >&6 | |
6303 | test "$dynamic_linker" = no && can_build_shared=no | |
6304 | ||
6305 | # Report the final consequences. | |
6306 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
6307 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
6308 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
6309 | echo "${ECHO_T}$can_build_shared" >&6 | |
6310 | ||
6311 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
6312 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
6313 | test "$can_build_shared" = "no" && enable_shared=no | |
6314 | ||
6315 | # On AIX, shared libraries and static libraries use the same namespace, and | |
6316 | # are all built from PIC. | |
6317 | case "$host_os" in | |
6318 | aix3*) | |
6319 | test "$enable_shared" = yes && enable_static=no | |
6320 | if test -n "$RANLIB"; then | |
6321 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
6322 | postinstall_cmds='$RANLIB $lib' | |
6323 | fi | |
6324 | ;; | |
6325 | ||
6326 | aix4*) | |
6327 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
6328 | test "$enable_shared" = yes && enable_static=no | |
6329 | fi | |
6330 | ;; | |
6331 | esac | |
6332 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
6333 | echo "${ECHO_T}$enable_shared" >&6 | |
6334 | ||
6335 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
6336 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
6337 | # Make sure either enable_shared or enable_static is yes. | |
6338 | test "$enable_shared" = yes || enable_static=yes | |
6339 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
6340 | echo "${ECHO_T}$enable_static" >&6 | |
6341 | ||
6342 | if test "$hardcode_action" = relink; then | |
6343 | # Fast installation is not supported | |
6344 | enable_fast_install=no | |
6345 | elif test "$shlibpath_overrides_runpath" = yes || | |
6346 | test "$enable_shared" = no; then | |
6347 | # Fast installation is not necessary | |
6348 | enable_fast_install=needless | |
6349 | fi | |
6350 | ||
6351 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
6352 | if test "$GCC" = yes; then | |
6353 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
6354 | fi | |
6355 | ||
6356 | if test "x$enable_dlopen" != xyes; then | |
6357 | enable_dlopen=unknown | |
6358 | enable_dlopen_self=unknown | |
6359 | enable_dlopen_self_static=unknown | |
6360 | else | |
6361 | lt_cv_dlopen=no | |
6362 | lt_cv_dlopen_libs= | |
6363 | ||
6364 | case $host_os in | |
6365 | beos*) | |
6366 | lt_cv_dlopen="load_add_on" | |
6367 | lt_cv_dlopen_libs= | |
6368 | lt_cv_dlopen_self=yes | |
6369 | ;; | |
6370 | ||
6371 | cygwin* | mingw* | pw32*) | |
6372 | lt_cv_dlopen="LoadLibrary" | |
6373 | lt_cv_dlopen_libs= | |
6374 | ;; | |
6375 | ||
6376 | *) | |
6377 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
6378 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
6379 | if test "${ac_cv_func_shl_load+set}" = set; then | |
6380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6381 | else | |
6382 | cat >conftest.$ac_ext <<_ACEOF | |
6383 | #line $LINENO "configure" | |
6384 | #include "confdefs.h" | |
6385 | /* System header to define __stub macros and hopefully few prototypes, | |
6386 | which can conflict with char shl_load (); below. */ | |
6387 | #include <assert.h> | |
6388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6389 | #ifdef __cplusplus | |
6390 | extern "C" | |
6391 | #endif | |
6392 | /* We use char because int might match the return type of a gcc2 | |
6393 | builtin and then its argument prototype would still apply. */ | |
6394 | char shl_load (); | |
6395 | char (*f) (); | |
6396 | ||
6397 | #ifdef F77_DUMMY_MAIN | |
6398 | # ifdef __cplusplus | |
6399 | extern "C" | |
6400 | # endif | |
6401 | int F77_DUMMY_MAIN() { return 1; } | |
6402 | #endif | |
6403 | int | |
6404 | main () | |
6405 | { | |
6406 | /* The GNU C library defines this for functions which it implements | |
6407 | to always fail with ENOSYS. Some functions are actually named | |
6408 | something starting with __ and the normal name is an alias. */ | |
6409 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
6410 | choke me | |
6411 | #else | |
6412 | f = shl_load; | |
6413 | #endif | |
6414 | ||
6415 | ; | |
6416 | return 0; | |
6417 | } | |
6418 | _ACEOF | |
6419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6421 | (eval $ac_link) 2>&5 | |
6422 | ac_status=$? | |
6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6424 | (exit $ac_status); } && | |
6425 | { ac_try='test -s conftest$ac_exeext' | |
6426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6427 | (eval $ac_try) 2>&5 | |
6428 | ac_status=$? | |
6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6430 | (exit $ac_status); }; }; then | |
6431 | ac_cv_func_shl_load=yes | |
6432 | else | |
6433 | echo "$as_me: failed program was:" >&5 | |
6434 | cat conftest.$ac_ext >&5 | |
6435 | ac_cv_func_shl_load=no | |
6436 | fi | |
6437 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6438 | fi | |
6439 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
6440 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
6441 | if test $ac_cv_func_shl_load = yes; then | |
6442 | lt_cv_dlopen="shl_load" | |
6443 | else | |
6444 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
6445 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
6446 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6448 | else | |
6449 | ac_check_lib_save_LIBS=$LIBS | |
6450 | LIBS="-ldld $LIBS" | |
6451 | cat >conftest.$ac_ext <<_ACEOF | |
6452 | #line $LINENO "configure" | |
6453 | #include "confdefs.h" | |
6454 | ||
6455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6456 | #ifdef __cplusplus | |
6457 | extern "C" | |
6458 | #endif | |
6459 | /* We use char because int might match the return type of a gcc2 | |
6460 | builtin and then its argument prototype would still apply. */ | |
6461 | char shl_load (); | |
6462 | #ifdef F77_DUMMY_MAIN | |
6463 | # ifdef __cplusplus | |
6464 | extern "C" | |
6465 | # endif | |
6466 | int F77_DUMMY_MAIN() { return 1; } | |
6467 | #endif | |
6468 | int | |
6469 | main () | |
6470 | { | |
6471 | shl_load (); | |
6472 | ; | |
6473 | return 0; | |
6474 | } | |
6475 | _ACEOF | |
6476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6478 | (eval $ac_link) 2>&5 | |
6479 | ac_status=$? | |
6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6481 | (exit $ac_status); } && | |
6482 | { ac_try='test -s conftest$ac_exeext' | |
6483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6484 | (eval $ac_try) 2>&5 | |
6485 | ac_status=$? | |
6486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6487 | (exit $ac_status); }; }; then | |
6488 | ac_cv_lib_dld_shl_load=yes | |
6489 | else | |
6490 | echo "$as_me: failed program was:" >&5 | |
6491 | cat conftest.$ac_ext >&5 | |
6492 | ac_cv_lib_dld_shl_load=no | |
6493 | fi | |
6494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6495 | LIBS=$ac_check_lib_save_LIBS | |
6496 | fi | |
6497 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
6498 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
6499 | if test $ac_cv_lib_dld_shl_load = yes; then | |
6500 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
6501 | else | |
6502 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
6503 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
6504 | if test "${ac_cv_func_dlopen+set}" = set; then | |
6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6506 | else | |
6507 | cat >conftest.$ac_ext <<_ACEOF | |
6508 | #line $LINENO "configure" | |
6509 | #include "confdefs.h" | |
6510 | /* System header to define __stub macros and hopefully few prototypes, | |
6511 | which can conflict with char dlopen (); below. */ | |
6512 | #include <assert.h> | |
6513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6514 | #ifdef __cplusplus | |
6515 | extern "C" | |
6516 | #endif | |
6517 | /* We use char because int might match the return type of a gcc2 | |
6518 | builtin and then its argument prototype would still apply. */ | |
6519 | char dlopen (); | |
6520 | char (*f) (); | |
6521 | ||
6522 | #ifdef F77_DUMMY_MAIN | |
6523 | # ifdef __cplusplus | |
6524 | extern "C" | |
6525 | # endif | |
6526 | int F77_DUMMY_MAIN() { return 1; } | |
6527 | #endif | |
6528 | int | |
6529 | main () | |
6530 | { | |
6531 | /* The GNU C library defines this for functions which it implements | |
6532 | to always fail with ENOSYS. Some functions are actually named | |
6533 | something starting with __ and the normal name is an alias. */ | |
6534 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
6535 | choke me | |
6536 | #else | |
6537 | f = dlopen; | |
6538 | #endif | |
6539 | ||
6540 | ; | |
6541 | return 0; | |
6542 | } | |
6543 | _ACEOF | |
6544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6546 | (eval $ac_link) 2>&5 | |
6547 | ac_status=$? | |
6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6549 | (exit $ac_status); } && | |
6550 | { ac_try='test -s conftest$ac_exeext' | |
6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6552 | (eval $ac_try) 2>&5 | |
6553 | ac_status=$? | |
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6555 | (exit $ac_status); }; }; then | |
6556 | ac_cv_func_dlopen=yes | |
6557 | else | |
6558 | echo "$as_me: failed program was:" >&5 | |
6559 | cat conftest.$ac_ext >&5 | |
6560 | ac_cv_func_dlopen=no | |
6561 | fi | |
6562 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6563 | fi | |
6564 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
6565 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
6566 | if test $ac_cv_func_dlopen = yes; then | |
6567 | lt_cv_dlopen="dlopen" | |
6568 | else | |
6569 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
6570 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
6571 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
6572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6573 | else | |
6574 | ac_check_lib_save_LIBS=$LIBS | |
6575 | LIBS="-ldl $LIBS" | |
6576 | cat >conftest.$ac_ext <<_ACEOF | |
6577 | #line $LINENO "configure" | |
6578 | #include "confdefs.h" | |
6579 | ||
6580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6581 | #ifdef __cplusplus | |
6582 | extern "C" | |
6583 | #endif | |
6584 | /* We use char because int might match the return type of a gcc2 | |
6585 | builtin and then its argument prototype would still apply. */ | |
6586 | char dlopen (); | |
6587 | #ifdef F77_DUMMY_MAIN | |
6588 | # ifdef __cplusplus | |
6589 | extern "C" | |
6590 | # endif | |
6591 | int F77_DUMMY_MAIN() { return 1; } | |
6592 | #endif | |
6593 | int | |
6594 | main () | |
6595 | { | |
6596 | dlopen (); | |
6597 | ; | |
6598 | return 0; | |
6599 | } | |
6600 | _ACEOF | |
6601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6603 | (eval $ac_link) 2>&5 | |
6604 | ac_status=$? | |
6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6606 | (exit $ac_status); } && | |
6607 | { ac_try='test -s conftest$ac_exeext' | |
6608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6609 | (eval $ac_try) 2>&5 | |
6610 | ac_status=$? | |
6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6612 | (exit $ac_status); }; }; then | |
6613 | ac_cv_lib_dl_dlopen=yes | |
6614 | else | |
6615 | echo "$as_me: failed program was:" >&5 | |
6616 | cat conftest.$ac_ext >&5 | |
6617 | ac_cv_lib_dl_dlopen=no | |
6618 | fi | |
6619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6620 | LIBS=$ac_check_lib_save_LIBS | |
6621 | fi | |
6622 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
6623 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
6624 | if test $ac_cv_lib_dl_dlopen = yes; then | |
6625 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
6626 | else | |
6627 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
6628 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
6629 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6631 | else | |
6632 | ac_check_lib_save_LIBS=$LIBS | |
6633 | LIBS="-lsvld $LIBS" | |
6634 | cat >conftest.$ac_ext <<_ACEOF | |
6635 | #line $LINENO "configure" | |
6636 | #include "confdefs.h" | |
6637 | ||
6638 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6639 | #ifdef __cplusplus | |
6640 | extern "C" | |
6641 | #endif | |
6642 | /* We use char because int might match the return type of a gcc2 | |
6643 | builtin and then its argument prototype would still apply. */ | |
6644 | char dlopen (); | |
6645 | #ifdef F77_DUMMY_MAIN | |
6646 | # ifdef __cplusplus | |
6647 | extern "C" | |
6648 | # endif | |
6649 | int F77_DUMMY_MAIN() { return 1; } | |
6650 | #endif | |
6651 | int | |
6652 | main () | |
6653 | { | |
6654 | dlopen (); | |
6655 | ; | |
6656 | return 0; | |
6657 | } | |
6658 | _ACEOF | |
6659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6661 | (eval $ac_link) 2>&5 | |
6662 | ac_status=$? | |
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6664 | (exit $ac_status); } && | |
6665 | { ac_try='test -s conftest$ac_exeext' | |
6666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6667 | (eval $ac_try) 2>&5 | |
6668 | ac_status=$? | |
6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6670 | (exit $ac_status); }; }; then | |
6671 | ac_cv_lib_svld_dlopen=yes | |
6672 | else | |
6673 | echo "$as_me: failed program was:" >&5 | |
6674 | cat conftest.$ac_ext >&5 | |
6675 | ac_cv_lib_svld_dlopen=no | |
6676 | fi | |
6677 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6678 | LIBS=$ac_check_lib_save_LIBS | |
6679 | fi | |
6680 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
6681 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
6682 | if test $ac_cv_lib_svld_dlopen = yes; then | |
6683 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
6684 | else | |
6685 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
6686 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
6687 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
6688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6689 | else | |
6690 | ac_check_lib_save_LIBS=$LIBS | |
6691 | LIBS="-ldld $LIBS" | |
6692 | cat >conftest.$ac_ext <<_ACEOF | |
6693 | #line $LINENO "configure" | |
6694 | #include "confdefs.h" | |
6695 | ||
6696 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6697 | #ifdef __cplusplus | |
6698 | extern "C" | |
6699 | #endif | |
6700 | /* We use char because int might match the return type of a gcc2 | |
6701 | builtin and then its argument prototype would still apply. */ | |
6702 | char dld_link (); | |
6703 | #ifdef F77_DUMMY_MAIN | |
6704 | # ifdef __cplusplus | |
6705 | extern "C" | |
6706 | # endif | |
6707 | int F77_DUMMY_MAIN() { return 1; } | |
6708 | #endif | |
6709 | int | |
6710 | main () | |
6711 | { | |
6712 | dld_link (); | |
6713 | ; | |
6714 | return 0; | |
6715 | } | |
6716 | _ACEOF | |
6717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6719 | (eval $ac_link) 2>&5 | |
6720 | ac_status=$? | |
6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6722 | (exit $ac_status); } && | |
6723 | { ac_try='test -s conftest$ac_exeext' | |
6724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6725 | (eval $ac_try) 2>&5 | |
6726 | ac_status=$? | |
6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6728 | (exit $ac_status); }; }; then | |
6729 | ac_cv_lib_dld_dld_link=yes | |
6730 | else | |
6731 | echo "$as_me: failed program was:" >&5 | |
6732 | cat conftest.$ac_ext >&5 | |
6733 | ac_cv_lib_dld_dld_link=no | |
6734 | fi | |
6735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6736 | LIBS=$ac_check_lib_save_LIBS | |
6737 | fi | |
6738 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
6739 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
6740 | if test $ac_cv_lib_dld_dld_link = yes; then | |
6741 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
6742 | fi | |
6743 | ||
6744 | ||
6745 | fi | |
6746 | ||
6747 | ||
6748 | fi | |
6749 | ||
6750 | ||
6751 | fi | |
6752 | ||
6753 | ||
6754 | fi | |
6755 | ||
6756 | ||
6757 | fi | |
6758 | ||
6759 | ;; | |
6760 | esac | |
6761 | ||
6762 | if test "x$lt_cv_dlopen" != xno; then | |
6763 | enable_dlopen=yes | |
6764 | else | |
6765 | enable_dlopen=no | |
6766 | fi | |
6767 | ||
6768 | case $lt_cv_dlopen in | |
6769 | dlopen) | |
6770 | save_CPPFLAGS="$CPPFLAGS" | |
6771 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
6772 | ||
6773 | save_LDFLAGS="$LDFLAGS" | |
6774 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
6775 | ||
6776 | save_LIBS="$LIBS" | |
6777 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
6778 | ||
6779 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
6780 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
6781 | if test "${lt_cv_dlopen_self+set}" = set; then | |
6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6783 | else | |
6784 | if test "$cross_compiling" = yes; then : | |
6785 | lt_cv_dlopen_self=cross | |
6786 | else | |
6787 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
6788 | lt_status=$lt_dlunknown | |
6789 | cat > conftest.$ac_ext <<EOF | |
6790 | #line 6790 "configure" | |
6791 | #include "confdefs.h" | |
6792 | ||
6793 | #if HAVE_DLFCN_H | |
6794 | #include <dlfcn.h> | |
6795 | #endif | |
6796 | ||
6797 | #include <stdio.h> | |
6798 | ||
6799 | #ifdef RTLD_GLOBAL | |
6800 | # define LT_DLGLOBAL RTLD_GLOBAL | |
6801 | #else | |
6802 | # ifdef DL_GLOBAL | |
6803 | # define LT_DLGLOBAL DL_GLOBAL | |
6804 | # else | |
6805 | # define LT_DLGLOBAL 0 | |
6806 | # endif | |
6807 | #endif | |
6808 | ||
6809 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
6810 | find out it does not work in some platform. */ | |
6811 | #ifndef LT_DLLAZY_OR_NOW | |
6812 | # ifdef RTLD_LAZY | |
6813 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
6814 | # else | |
6815 | # ifdef DL_LAZY | |
6816 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
6817 | # else | |
6818 | # ifdef RTLD_NOW | |
6819 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
6820 | # else | |
6821 | # ifdef DL_NOW | |
6822 | # define LT_DLLAZY_OR_NOW DL_NOW | |
6823 | # else | |
6824 | # define LT_DLLAZY_OR_NOW 0 | |
6825 | # endif | |
6826 | # endif | |
6827 | # endif | |
6828 | # endif | |
6829 | #endif | |
6830 | ||
6831 | #ifdef __cplusplus | |
6832 | extern "C" void exit (int); | |
6833 | #endif | |
6834 | ||
6835 | void fnord() { int i=42;} | |
6836 | int main () | |
6837 | { | |
6838 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
6839 | int status = $lt_dlunknown; | |
6840 | ||
6841 | if (self) | |
6842 | { | |
6843 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
6844 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
6845 | /* dlclose (self); */ | |
6846 | } | |
6847 | ||
6848 | exit (status); | |
6849 | } | |
6850 | EOF | |
6851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6852 | (eval $ac_link) 2>&5 | |
6853 | ac_status=$? | |
6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6855 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
6856 | (./conftest; exit; ) 2>/dev/null | |
6857 | lt_status=$? | |
6858 | case x$lt_status in | |
6859 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
6860 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
6861 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
6862 | esac | |
6863 | else : | |
6864 | # compilation failed | |
6865 | lt_cv_dlopen_self=no | |
6866 | fi | |
6867 | fi | |
6868 | rm -fr conftest* | |
6869 | ||
6870 | ||
6871 | fi | |
6872 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
6873 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
6874 | ||
6875 | if test "x$lt_cv_dlopen_self" = xyes; then | |
6876 | LDFLAGS="$LDFLAGS $link_static_flag" | |
6877 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
6878 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
6879 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
6880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6881 | else | |
6882 | if test "$cross_compiling" = yes; then : | |
6883 | lt_cv_dlopen_self_static=cross | |
6884 | else | |
6885 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
6886 | lt_status=$lt_dlunknown | |
6887 | cat > conftest.$ac_ext <<EOF | |
6888 | #line 6888 "configure" | |
6889 | #include "confdefs.h" | |
6890 | ||
6891 | #if HAVE_DLFCN_H | |
6892 | #include <dlfcn.h> | |
6893 | #endif | |
6894 | ||
6895 | #include <stdio.h> | |
6896 | ||
6897 | #ifdef RTLD_GLOBAL | |
6898 | # define LT_DLGLOBAL RTLD_GLOBAL | |
6899 | #else | |
6900 | # ifdef DL_GLOBAL | |
6901 | # define LT_DLGLOBAL DL_GLOBAL | |
6902 | # else | |
6903 | # define LT_DLGLOBAL 0 | |
6904 | # endif | |
6905 | #endif | |
6906 | ||
6907 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
6908 | find out it does not work in some platform. */ | |
6909 | #ifndef LT_DLLAZY_OR_NOW | |
6910 | # ifdef RTLD_LAZY | |
6911 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
6912 | # else | |
6913 | # ifdef DL_LAZY | |
6914 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
6915 | # else | |
6916 | # ifdef RTLD_NOW | |
6917 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
6918 | # else | |
6919 | # ifdef DL_NOW | |
6920 | # define LT_DLLAZY_OR_NOW DL_NOW | |
6921 | # else | |
6922 | # define LT_DLLAZY_OR_NOW 0 | |
6923 | # endif | |
6924 | # endif | |
6925 | # endif | |
6926 | # endif | |
6927 | #endif | |
6928 | ||
6929 | #ifdef __cplusplus | |
6930 | extern "C" void exit (int); | |
6931 | #endif | |
6932 | ||
6933 | void fnord() { int i=42;} | |
6934 | int main () | |
6935 | { | |
6936 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
6937 | int status = $lt_dlunknown; | |
6938 | ||
6939 | if (self) | |
6940 | { | |
6941 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
6942 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
6943 | /* dlclose (self); */ | |
6944 | } | |
6945 | ||
6946 | exit (status); | |
6947 | } | |
6948 | EOF | |
6949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6950 | (eval $ac_link) 2>&5 | |
6951 | ac_status=$? | |
6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6953 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
6954 | (./conftest; exit; ) 2>/dev/null | |
6955 | lt_status=$? | |
6956 | case x$lt_status in | |
6957 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
6958 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
6959 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
6960 | esac | |
6961 | else : | |
6962 | # compilation failed | |
6963 | lt_cv_dlopen_self_static=no | |
6964 | fi | |
6965 | fi | |
6966 | rm -fr conftest* | |
6967 | ||
6968 | ||
6969 | fi | |
6970 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
6971 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
6972 | fi | |
6973 | ||
6974 | CPPFLAGS="$save_CPPFLAGS" | |
6975 | LDFLAGS="$save_LDFLAGS" | |
6976 | LIBS="$save_LIBS" | |
6977 | ;; | |
6978 | esac | |
6979 | ||
6980 | case $lt_cv_dlopen_self in | |
6981 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
6982 | *) enable_dlopen_self=unknown ;; | |
6983 | esac | |
6984 | ||
6985 | case $lt_cv_dlopen_self_static in | |
6986 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
6987 | *) enable_dlopen_self_static=unknown ;; | |
6988 | esac | |
6989 | fi | |
6990 | ||
6991 | ||
6992 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
6993 | case $archive_cmds in | |
6994 | *'~'*) | |
6995 | # FIXME: we may have to deal with multi-command sequences. | |
6996 | ;; | |
6997 | '$CC '*) | |
6998 | # Test whether the compiler implicitly links with -lc since on some | |
6999 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7000 | # to ld, don't add -lc before -lgcc. | |
7001 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
7002 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
7003 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then | |
7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7005 | else | |
7006 | $rm conftest* | |
7007 | echo 'static int dummy;' > conftest.$ac_ext | |
7008 | ||
7009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7010 | (eval $ac_compile) 2>&5 | |
7011 | ac_status=$? | |
7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7013 | (exit $ac_status); }; then | |
7014 | soname=conftest | |
7015 | lib=conftest | |
7016 | libobjs=conftest.$ac_objext | |
7017 | deplibs= | |
7018 | wl=$lt_cv_prog_cc_wl | |
7019 | compiler_flags=-v | |
7020 | linker_flags=-v | |
7021 | verstring= | |
7022 | output_objdir=. | |
7023 | libname=conftest | |
7024 | save_allow_undefined_flag=$allow_undefined_flag | |
7025 | allow_undefined_flag= | |
7026 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
7027 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
7028 | ac_status=$? | |
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7030 | (exit $ac_status); } | |
7031 | then | |
7032 | lt_cv_archive_cmds_need_lc=no | |
7033 | else | |
7034 | lt_cv_archive_cmds_need_lc=yes | |
7035 | fi | |
7036 | allow_undefined_flag=$save_allow_undefined_flag | |
7037 | else | |
7038 | cat conftest.err 1>&5 | |
7039 | fi | |
7040 | fi | |
7041 | ||
7042 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
7043 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | |
7044 | ;; | |
7045 | esac | |
7046 | fi | |
7047 | need_lc=${lt_cv_archive_cmds_need_lc-yes} | |
7048 | ||
7049 | # The second clause should only fire when bootstrapping the | |
7050 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
7051 | # with your package, and you will get complaints that there are | |
7052 | # no rules to generate ltmain.sh. | |
7053 | if test -f "$ltmain"; then | |
7054 | : | |
7055 | else | |
7056 | # If there is no Makefile yet, we rely on a make rule to execute | |
7057 | # `config.status --recheck' to rerun these tests and create the | |
7058 | # libtool script then. | |
7059 | test -f Makefile && make "$ltmain" | |
7060 | fi | |
7061 | ||
7062 | if test -f "$ltmain"; then | |
7063 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 | |
7064 | $rm -f "${ofile}T" | |
7065 | ||
7066 | echo creating $ofile | |
7067 | ||
7068 | # Now quote all the things that may contain metacharacters while being | |
7069 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
7070 | # variables and quote the copies for generation of the libtool script. | |
7071 | for var in echo old_CC old_CFLAGS \ | |
7072 | AR AR_FLAGS CC LD LN_S NM SHELL \ | |
7073 | reload_flag reload_cmds wl \ | |
7074 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ | |
7075 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ | |
7076 | library_names_spec soname_spec \ | |
7077 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ | |
7078 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ | |
7079 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ | |
7080 | old_striplib striplib file_magic_cmd export_symbols_cmds \ | |
7081 | deplibs_check_method allow_undefined_flag no_undefined_flag \ | |
7082 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ | |
7083 | global_symbol_to_c_name_address \ | |
7084 | hardcode_libdir_flag_spec hardcode_libdir_separator \ | |
7085 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
7086 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do | |
7087 | ||
7088 | case $var in | |
7089 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ | |
7090 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
7091 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ | |
7092 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ | |
7093 | postinstall_cmds | postuninstall_cmds | \ | |
7094 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
7095 | # Double-quote double-evaled strings. | |
7096 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
7097 | ;; | |
7098 | *) | |
7099 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
7100 | ;; | |
7101 | esac | |
7102 | done | |
7103 | ||
7104 | cat <<__EOF__ > "${ofile}T" | |
7105 | #! $SHELL | |
7106 | ||
7107 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
7108 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
7109 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
7110 | # | |
7111 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. | |
7112 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
7113 | # | |
7114 | # This program is free software; you can redistribute it and/or modify | |
7115 | # it under the terms of the GNU General Public License as published by | |
7116 | # the Free Software Foundation; either version 2 of the License, or | |
7117 | # (at your option) any later version. | |
7118 | # | |
7119 | # This program is distributed in the hope that it will be useful, but | |
7120 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
7121 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
7122 | # General Public License for more details. | |
7123 | # | |
7124 | # You should have received a copy of the GNU General Public License | |
7125 | # along with this program; if not, write to the Free Software | |
7126 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
7127 | # | |
7128 | # As a special exception to the GNU General Public License, if you | |
7129 | # distribute this file as part of a program that contains a | |
7130 | # configuration script generated by Autoconf, you may include it under | |
7131 | # the same distribution terms that you use for the rest of that program. | |
7132 | ||
7133 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
7134 | Xsed="sed -e s/^X//" | |
7135 | ||
7136 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
7137 | # if CDPATH is set. | |
7138 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
7139 | ||
7140 | # ### BEGIN LIBTOOL CONFIG | |
7141 | ||
7142 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
7143 | ||
7144 | # Shell to use when invoking shell scripts. | |
7145 | SHELL=$lt_SHELL | |
7146 | ||
7147 | # Whether or not to build shared libraries. | |
7148 | build_libtool_libs=$enable_shared | |
7149 | ||
7150 | # Whether or not to build static libraries. | |
7151 | build_old_libs=$enable_static | |
7152 | ||
7153 | # Whether or not to add -lc for building shared libraries. | |
7154 | build_libtool_need_lc=$need_lc | |
7155 | ||
7156 | # Whether or not to optimize for fast installation. | |
7157 | fast_install=$enable_fast_install | |
7158 | ||
7159 | # The host system. | |
7160 | host_alias=$host_alias | |
7161 | host=$host | |
7162 | ||
7163 | # An echo program that does not interpret backslashes. | |
7164 | echo=$lt_echo | |
7165 | ||
7166 | # The archiver. | |
7167 | AR=$lt_AR | |
7168 | AR_FLAGS=$lt_AR_FLAGS | |
7169 | ||
7170 | # The default C compiler. | |
7171 | CC=$lt_CC | |
7172 | ||
7173 | # Is the compiler the GNU C compiler? | |
7174 | with_gcc=$GCC | |
7175 | ||
7176 | # The linker used to build libraries. | |
7177 | LD=$lt_LD | |
7178 | ||
7179 | # Whether we need hard or soft links. | |
7180 | LN_S=$lt_LN_S | |
7181 | ||
7182 | # A BSD-compatible nm program. | |
7183 | NM=$lt_NM | |
7184 | ||
7185 | # A symbol stripping program | |
7186 | STRIP=$STRIP | |
7187 | ||
7188 | # Used to examine libraries when file_magic_cmd begins "file" | |
7189 | MAGIC_CMD=$MAGIC_CMD | |
7190 | ||
7191 | # Used on cygwin: DLL creation program. | |
7192 | DLLTOOL="$DLLTOOL" | |
7193 | ||
7194 | # Used on cygwin: object dumper. | |
7195 | OBJDUMP="$OBJDUMP" | |
7196 | ||
7197 | # Used on cygwin: assembler. | |
7198 | AS="$AS" | |
7199 | ||
7200 | # The name of the directory that contains temporary libtool files. | |
7201 | objdir=$objdir | |
7202 | ||
7203 | # How to create reloadable object files. | |
7204 | reload_flag=$lt_reload_flag | |
7205 | reload_cmds=$lt_reload_cmds | |
7206 | ||
7207 | # How to pass a linker flag through the compiler. | |
7208 | wl=$lt_wl | |
7209 | ||
7210 | # Object file suffix (normally "o"). | |
7211 | objext="$ac_objext" | |
7212 | ||
7213 | # Old archive suffix (normally "a"). | |
7214 | libext="$libext" | |
7215 | ||
7216 | # Executable file suffix (normally ""). | |
7217 | exeext="$exeext" | |
7218 | ||
7219 | # Additional compiler flags for building library objects. | |
7220 | pic_flag=$lt_pic_flag | |
7221 | pic_mode=$pic_mode | |
7222 | ||
7223 | # Does compiler simultaneously support -c and -o options? | |
7224 | compiler_c_o=$lt_compiler_c_o | |
7225 | ||
7226 | # Can we write directly to a .lo ? | |
7227 | compiler_o_lo=$lt_compiler_o_lo | |
7228 | ||
7229 | # Must we lock files when doing compilation ? | |
7230 | need_locks=$lt_need_locks | |
7231 | ||
7232 | # Do we need the lib prefix for modules? | |
7233 | need_lib_prefix=$need_lib_prefix | |
7234 | ||
7235 | # Do we need a version for libraries? | |
7236 | need_version=$need_version | |
7237 | ||
7238 | # Whether dlopen is supported. | |
7239 | dlopen_support=$enable_dlopen | |
7240 | ||
7241 | # Whether dlopen of programs is supported. | |
7242 | dlopen_self=$enable_dlopen_self | |
7243 | ||
7244 | # Whether dlopen of statically linked programs is supported. | |
7245 | dlopen_self_static=$enable_dlopen_self_static | |
7246 | ||
7247 | # Compiler flag to prevent dynamic linking. | |
7248 | link_static_flag=$lt_link_static_flag | |
7249 | ||
7250 | # Compiler flag to turn off builtin functions. | |
7251 | no_builtin_flag=$lt_no_builtin_flag | |
7252 | ||
7253 | # Compiler flag to allow reflexive dlopens. | |
7254 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
7255 | ||
7256 | # Compiler flag to generate shared objects directly from archives. | |
7257 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
7258 | ||
7259 | # Compiler flag to generate thread-safe objects. | |
7260 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
7261 | ||
7262 | # Library versioning type. | |
7263 | version_type=$version_type | |
7264 | ||
7265 | # Format of library name prefix. | |
7266 | libname_spec=$lt_libname_spec | |
7267 | ||
7268 | # List of archive names. First name is the real one, the rest are links. | |
7269 | # The last name is the one that the linker finds with -lNAME. | |
7270 | library_names_spec=$lt_library_names_spec | |
7271 | ||
7272 | # The coded name of the library, if different from the real name. | |
7273 | soname_spec=$lt_soname_spec | |
7274 | ||
7275 | # Commands used to build and install an old-style archive. | |
7276 | RANLIB=$lt_RANLIB | |
7277 | old_archive_cmds=$lt_old_archive_cmds | |
7278 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
7279 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
7280 | ||
7281 | # Create an old-style archive from a shared archive. | |
7282 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
7283 | ||
7284 | # Create a temporary old-style archive to link instead of a shared archive. | |
7285 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
7286 | ||
7287 | # Commands used to build and install a shared archive. | |
7288 | archive_cmds=$lt_archive_cmds | |
7289 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
7290 | postinstall_cmds=$lt_postinstall_cmds | |
7291 | postuninstall_cmds=$lt_postuninstall_cmds | |
7292 | ||
7293 | # Commands to strip libraries. | |
7294 | old_striplib=$lt_old_striplib | |
7295 | striplib=$lt_striplib | |
7296 | ||
7297 | # Method to check whether dependent libraries are shared objects. | |
7298 | deplibs_check_method=$lt_deplibs_check_method | |
7299 | ||
7300 | # Command to use when deplibs_check_method == file_magic. | |
7301 | file_magic_cmd=$lt_file_magic_cmd | |
7302 | ||
7303 | # Flag that allows shared libraries with undefined symbols to be built. | |
7304 | allow_undefined_flag=$lt_allow_undefined_flag | |
7305 | ||
7306 | # Flag that forces no undefined symbols. | |
7307 | no_undefined_flag=$lt_no_undefined_flag | |
7308 | ||
7309 | # Commands used to finish a libtool library installation in a directory. | |
7310 | finish_cmds=$lt_finish_cmds | |
7311 | ||
7312 | # Same as above, but a single script fragment to be evaled but not shown. | |
7313 | finish_eval=$lt_finish_eval | |
7314 | ||
7315 | # Take the output of nm and produce a listing of raw symbols and C names. | |
7316 | global_symbol_pipe=$lt_global_symbol_pipe | |
7317 | ||
7318 | # Transform the output of nm in a proper C declaration | |
7319 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl | |
7320 | ||
7321 | # Transform the output of nm in a C name address pair | |
7322 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address | |
7323 | ||
7324 | # This is the shared library runtime path variable. | |
7325 | runpath_var=$runpath_var | |
7326 | ||
7327 | # This is the shared library path variable. | |
7328 | shlibpath_var=$shlibpath_var | |
7329 | ||
7330 | # Is shlibpath searched before the hard-coded library search path? | |
7331 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
7332 | ||
7333 | # How to hardcode a shared library path into an executable. | |
7334 | hardcode_action=$hardcode_action | |
7335 | ||
7336 | # Whether we should hardcode library paths into libraries. | |
7337 | hardcode_into_libs=$hardcode_into_libs | |
7338 | ||
7339 | # Flag to hardcode \$libdir into a binary during linking. | |
7340 | # This must work even if \$libdir does not exist. | |
7341 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
7342 | ||
7343 | # Whether we need a single -rpath flag with a separated argument. | |
7344 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
7345 | ||
7346 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
7347 | # resulting binary. | |
7348 | hardcode_direct=$hardcode_direct | |
7349 | ||
7350 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
7351 | # resulting binary. | |
7352 | hardcode_minus_L=$hardcode_minus_L | |
7353 | ||
7354 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
7355 | # the resulting binary. | |
7356 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
7357 | ||
7358 | # Variables whose values should be saved in libtool wrapper scripts and | |
7359 | # restored at relink time. | |
7360 | variables_saved_for_relink="$variables_saved_for_relink" | |
7361 | ||
7362 | # Whether libtool must link a program against all its dependency libraries. | |
7363 | link_all_deplibs=$link_all_deplibs | |
7364 | ||
7365 | # Compile-time system search path for libraries | |
7366 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
7367 | ||
7368 | # Run-time system search path for libraries | |
7369 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
7370 | ||
7371 | # Fix the shell variable \$srcfile for the compiler. | |
7372 | fix_srcfile_path="$fix_srcfile_path" | |
7373 | ||
7374 | # Set to yes if exported symbols are required. | |
7375 | always_export_symbols=$always_export_symbols | |
7376 | ||
7377 | # The commands to list exported symbols. | |
7378 | export_symbols_cmds=$lt_export_symbols_cmds | |
7379 | ||
7380 | # The commands to extract the exported symbol list from a shared archive. | |
7381 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
7382 | ||
7383 | # Symbols that should not be listed in the preloaded symbols. | |
7384 | exclude_expsyms=$lt_exclude_expsyms | |
7385 | ||
7386 | # Symbols that must always be exported. | |
7387 | include_expsyms=$lt_include_expsyms | |
7388 | ||
7389 | # ### END LIBTOOL CONFIG | |
7390 | ||
7391 | __EOF__ | |
7392 | ||
7393 | case $host_os in | |
7394 | aix3*) | |
7395 | cat <<\EOF >> "${ofile}T" | |
7396 | ||
7397 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7398 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7399 | # vanish in a puff of smoke. | |
7400 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7401 | COLLECT_NAMES= | |
7402 | export COLLECT_NAMES | |
7403 | fi | |
7404 | EOF | |
7405 | ;; | |
7406 | esac | |
7407 | ||
7408 | case $host_os in | |
7409 | cygwin* | mingw* | pw32* | os2*) | |
7410 | cat <<'EOF' >> "${ofile}T" | |
7411 | # This is a source program that is used to create dlls on Windows | |
7412 | # Don't remove nor modify the starting and closing comments | |
7413 | # /* ltdll.c starts here */ | |
7414 | # #define WIN32_LEAN_AND_MEAN | |
7415 | # #include <windows.h> | |
7416 | # #undef WIN32_LEAN_AND_MEAN | |
7417 | # #include <stdio.h> | |
7418 | # | |
7419 | # #ifndef __CYGWIN__ | |
7420 | # # ifdef __CYGWIN32__ | |
7421 | # # define __CYGWIN__ __CYGWIN32__ | |
7422 | # # endif | |
7423 | # #endif | |
7424 | # | |
7425 | # #ifdef __cplusplus | |
7426 | # extern "C" { | |
7427 | # #endif | |
7428 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
7429 | # #ifdef __cplusplus | |
7430 | # } | |
7431 | # #endif | |
7432 | # | |
7433 | # #ifdef __CYGWIN__ | |
7434 | # #include <cygwin/cygwin_dll.h> | |
7435 | # DECLARE_CYGWIN_DLL( DllMain ); | |
7436 | # #endif | |
7437 | # HINSTANCE __hDllInstance_base; | |
7438 | # | |
7439 | # BOOL APIENTRY | |
7440 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
7441 | # { | |
7442 | # __hDllInstance_base = hInst; | |
7443 | # return TRUE; | |
7444 | # } | |
7445 | # /* ltdll.c ends here */ | |
7446 | # This is a source program that is used to create import libraries | |
7447 | # on Windows for dlls which lack them. Don't remove nor modify the | |
7448 | # starting and closing comments | |
7449 | # /* impgen.c starts here */ | |
7450 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. | |
7451 | # | |
7452 | # This file is part of GNU libtool. | |
7453 | # | |
7454 | # This program is free software; you can redistribute it and/or modify | |
7455 | # it under the terms of the GNU General Public License as published by | |
7456 | # the Free Software Foundation; either version 2 of the License, or | |
7457 | # (at your option) any later version. | |
7458 | # | |
7459 | # This program is distributed in the hope that it will be useful, | |
7460 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
7461 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
7462 | # GNU General Public License for more details. | |
7463 | # | |
7464 | # You should have received a copy of the GNU General Public License | |
7465 | # along with this program; if not, write to the Free Software | |
7466 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
7467 | # */ | |
7468 | # | |
7469 | # #include <stdio.h> /* for printf() */ | |
7470 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
7471 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
7472 | # #include <string.h> /* for strdup() */ | |
7473 | # | |
7474 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
7475 | # #ifndef O_BINARY | |
7476 | # #define O_BINARY 0 | |
7477 | # #endif | |
7478 | # | |
7479 | # static unsigned int | |
7480 | # pe_get16 (fd, offset) | |
7481 | # int fd; | |
7482 | # int offset; | |
7483 | # { | |
7484 | # unsigned char b[2]; | |
7485 | # lseek (fd, offset, SEEK_SET); | |
7486 | # read (fd, b, 2); | |
7487 | # return b[0] + (b[1]<<8); | |
7488 | # } | |
7489 | # | |
7490 | # static unsigned int | |
7491 | # pe_get32 (fd, offset) | |
7492 | # int fd; | |
7493 | # int offset; | |
7494 | # { | |
7495 | # unsigned char b[4]; | |
7496 | # lseek (fd, offset, SEEK_SET); | |
7497 | # read (fd, b, 4); | |
7498 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
7499 | # } | |
7500 | # | |
7501 | # static unsigned int | |
7502 | # pe_as32 (ptr) | |
7503 | # void *ptr; | |
7504 | # { | |
7505 | # unsigned char *b = ptr; | |
7506 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
7507 | # } | |
7508 | # | |
7509 | # int | |
7510 | # main (argc, argv) | |
7511 | # int argc; | |
7512 | # char *argv[]; | |
7513 | # { | |
7514 | # int dll; | |
7515 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
7516 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
7517 | # unsigned long name_rvas, nexp; | |
7518 | # unsigned char *expdata, *erva; | |
7519 | # char *filename, *dll_name; | |
7520 | # | |
7521 | # filename = argv[1]; | |
7522 | # | |
7523 | # dll = open(filename, O_RDONLY|O_BINARY); | |
7524 | # if (dll < 1) | |
7525 | # return 1; | |
7526 | # | |
7527 | # dll_name = filename; | |
7528 | # | |
7529 | # for (i=0; filename[i]; i++) | |
7530 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
7531 | # dll_name = filename + i +1; | |
7532 | # | |
7533 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
7534 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
7535 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
7536 | # | |
7537 | # if (num_entries < 1) /* no exports */ | |
7538 | # return 1; | |
7539 | # | |
7540 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
7541 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
7542 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
7543 | # secptr = (pe_header_offset + 4 + 20 + | |
7544 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
7545 | # | |
7546 | # expptr = 0; | |
7547 | # for (i = 0; i < nsections; i++) | |
7548 | # { | |
7549 | # char sname[8]; | |
7550 | # unsigned long secptr1 = secptr + 40 * i; | |
7551 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
7552 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
7553 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
7554 | # lseek(dll, secptr1, SEEK_SET); | |
7555 | # read(dll, sname, 8); | |
7556 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
7557 | # { | |
7558 | # expptr = fptr + (export_rva - vaddr); | |
7559 | # if (export_rva + export_size > vaddr + vsize) | |
7560 | # export_size = vsize - (export_rva - vaddr); | |
7561 | # break; | |
7562 | # } | |
7563 | # } | |
7564 | # | |
7565 | # expdata = (unsigned char*)malloc(export_size); | |
7566 | # lseek (dll, expptr, SEEK_SET); | |
7567 | # read (dll, expdata, export_size); | |
7568 | # erva = expdata - export_rva; | |
7569 | # | |
7570 | # nexp = pe_as32 (expdata+24); | |
7571 | # name_rvas = pe_as32 (expdata+32); | |
7572 | # | |
7573 | # printf ("EXPORTS\n"); | |
7574 | # for (i = 0; i<nexp; i++) | |
7575 | # { | |
7576 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
7577 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
7578 | # } | |
7579 | # | |
7580 | # return 0; | |
7581 | # } | |
7582 | # /* impgen.c ends here */ | |
7583 | ||
7584 | EOF | |
7585 | ;; | |
7586 | esac | |
7587 | ||
7588 | # We use sed instead of cat because bash on DJGPP gets confused if | |
7589 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
7590 | # text mode, it properly converts lines to CR/LF. This bash problem | |
7591 | # is reportedly fixed, but why not run on old versions too? | |
7592 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) | |
7593 | ||
7594 | mv -f "${ofile}T" "$ofile" || \ | |
7595 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") | |
7596 | chmod +x "$ofile" | |
7597 | fi | |
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | # This can be used to rebuild libtool when needed | |
7604 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
7605 | ||
7606 | # Always use our own libtool. | |
7607 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7608 | ||
7609 | # Prevent multiple expansion | |
7610 | ||
7611 | ||
7612 | ||
7613 | missing_libraries="" | |
7614 | missing_headers="" | |
7615 | missing_functions="" | |
7616 | ||
7617 | # Turn of libgc so that you can use valgrind. (Hopefuly someone will add libgc | |
7618 | # support to valgrind at some point.) Since nothing ever calls free() this is | |
7619 | # rather wasteful of memory - it's not intended to allow people to use the code | |
7620 | # in production without a garbage collector. | |
7621 | ||
7622 | # Check whether --with-gc or --without-gc was given. | |
7623 | if test "${with_gc+set}" = set; then | |
7624 | withval="$with_gc" | |
7625 | ||
7626 | WANT_GC="$withval" | |
7627 | ||
7628 | else | |
7629 | WANT_GC=yes | |
7630 | fi; | |
7631 | ||
7632 | # Checks for libraries. | |
7633 | # We save up a list of missing libraries that we can't do without | |
7634 | # and report them all at once. | |
7635 | if test $WANT_GC = yes; then | |
7636 | echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5 | |
7637 | echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6 | |
7638 | if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then | |
7639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7640 | else | |
7641 | ac_check_lib_save_LIBS=$LIBS | |
7642 | LIBS="-lgc $LIBS" | |
7643 | cat >conftest.$ac_ext <<_ACEOF | |
7644 | #line $LINENO "configure" | |
7645 | #include "confdefs.h" | |
7646 | ||
7647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7648 | #ifdef __cplusplus | |
7649 | extern "C" | |
7650 | #endif | |
7651 | /* We use char because int might match the return type of a gcc2 | |
7652 | builtin and then its argument prototype would still apply. */ | |
7653 | char GC_malloc (); | |
7654 | #ifdef F77_DUMMY_MAIN | |
7655 | # ifdef __cplusplus | |
7656 | extern "C" | |
7657 | # endif | |
7658 | int F77_DUMMY_MAIN() { return 1; } | |
7659 | #endif | |
7660 | int | |
7661 | main () | |
7662 | { | |
7663 | GC_malloc (); | |
7664 | ; | |
7665 | return 0; | |
7666 | } | |
7667 | _ACEOF | |
7668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7670 | (eval $ac_link) 2>&5 | |
7671 | ac_status=$? | |
7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7673 | (exit $ac_status); } && | |
7674 | { ac_try='test -s conftest$ac_exeext' | |
7675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7676 | (eval $ac_try) 2>&5 | |
7677 | ac_status=$? | |
7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7679 | (exit $ac_status); }; }; then | |
7680 | ac_cv_lib_gc_GC_malloc=yes | |
7681 | else | |
7682 | echo "$as_me: failed program was:" >&5 | |
7683 | cat conftest.$ac_ext >&5 | |
7684 | ac_cv_lib_gc_GC_malloc=no | |
7685 | fi | |
7686 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7687 | LIBS=$ac_check_lib_save_LIBS | |
7688 | fi | |
7689 | echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5 | |
7690 | echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6 | |
7691 | if test $ac_cv_lib_gc_GC_malloc = yes; then | |
7692 | LIBGC=-lgc | |
7693 | ||
7694 | else | |
7695 | missing_libraries="$missing_libraries libgc" | |
7696 | fi | |
7697 | ||
7698 | ||
7699 | cat >>confdefs.h <<\_ACEOF | |
7700 | #define USE_GC 1 | |
7701 | _ACEOF | |
7702 | ||
7703 | fi | |
7704 | ||
7705 | if test ! -z "$missing_libraries"; then | |
7706 | { { echo "$as_me:$LINENO: error: missing libraries:$missing_libraries" >&5 | |
7707 | echo "$as_me: error: missing libraries:$missing_libraries" >&2;} | |
7708 | { (exit 1); exit 1; }; } | |
7709 | fi | |
7710 | ||
7711 | # Checks for header files. | |
7712 | ||
7713 | echo "$as_me:$LINENO: checking looking for <gc.h>" >&5 | |
7714 | echo $ECHO_N "checking looking for <gc.h>... $ECHO_C" >&6 | |
7715 | if test "${rjk_cv_gc_h+set}" = set; then | |
7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7717 | else | |
7718 | ||
7719 | cat >conftest.$ac_ext <<_ACEOF | |
7720 | ||
7721 | #include <gc.h> | |
7722 | ||
7723 | _ACEOF | |
7724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7726 | ac_status=$? | |
7727 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7728 | rm -f conftest.er1 | |
7729 | cat conftest.err >&5 | |
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7731 | (exit $ac_status); } >/dev/null; then | |
7732 | if test -s conftest.err; then | |
7733 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7734 | else | |
7735 | ac_cpp_err= | |
7736 | fi | |
7737 | else | |
7738 | ac_cpp_err=yes | |
7739 | fi | |
7740 | if test -z "$ac_cpp_err"; then | |
7741 | rjk_cv_gc_h="on default include path" | |
7742 | else | |
7743 | echo "$as_me: failed program was:" >&5 | |
7744 | cat conftest.$ac_ext >&5 | |
7745 | ||
7746 | oldCPPFLAGS="${CPPFLAGS}" | |
7747 | for dir in /usr/include/gc /usr/local/include/gc; do | |
7748 | if test "x$GCC" = xyes; then | |
7749 | CPPFLAGS="${oldCPPFLAGS} -isystem $dir" | |
7750 | else | |
7751 | CPPFLAGS="${oldCPPFLAGS} -I$dir" | |
7752 | fi | |
7753 | cat >conftest.$ac_ext <<_ACEOF | |
7754 | ||
7755 | #include <gc.h> | |
7756 | ||
7757 | _ACEOF | |
7758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7760 | ac_status=$? | |
7761 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7762 | rm -f conftest.er1 | |
7763 | cat conftest.err >&5 | |
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7765 | (exit $ac_status); } >/dev/null; then | |
7766 | if test -s conftest.err; then | |
7767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7768 | else | |
7769 | ac_cpp_err= | |
7770 | fi | |
7771 | else | |
7772 | ac_cpp_err=yes | |
7773 | fi | |
7774 | if test -z "$ac_cpp_err"; then | |
7775 | rjk_cv_gc_h=$dir;break | |
7776 | else | |
7777 | echo "$as_me: failed program was:" >&5 | |
7778 | cat conftest.$ac_ext >&5 | |
7779 | rjk_cv_gc_h="not found" | |
7780 | fi | |
7781 | rm -f conftest.err conftest.$ac_ext | |
7782 | done | |
7783 | CPPFLAGS="${oldCPPFLAGS}" | |
7784 | ||
7785 | fi | |
7786 | rm -f conftest.err conftest.$ac_ext | |
7787 | ||
7788 | fi | |
7789 | echo "$as_me:$LINENO: result: $rjk_cv_gc_h" >&5 | |
7790 | echo "${ECHO_T}$rjk_cv_gc_h" >&6 | |
7791 | case "$rjk_cv_gc_h" in | |
7792 | "not found" ) | |
7793 | missing_headers="$missing_headers gc.h" | |
7794 | ;; | |
7795 | /* ) | |
7796 | if test "x$GCC" = xyes; then | |
7797 | CPPFLAGS="${CPPFLAGS} -isystem $rjk_cv_gc_h" | |
7798 | else | |
7799 | CPPFLAGS="${CPPFLAGS} -I$rjk_cv_gc_h" | |
7800 | fi | |
7801 | ;; | |
7802 | esac | |
7803 | ||
7804 | ||
7805 | for ac_header in inttypes.h | |
7806 | do | |
7807 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7809 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7813 | fi | |
7814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7815 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7816 | else | |
7817 | # Is the header compilable? | |
7818 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7819 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7820 | cat >conftest.$ac_ext <<_ACEOF | |
7821 | #line $LINENO "configure" | |
7822 | #include "confdefs.h" | |
7823 | $ac_includes_default | |
7824 | #include <$ac_header> | |
7825 | _ACEOF | |
7826 | rm -f conftest.$ac_objext | |
7827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7828 | (eval $ac_compile) 2>&5 | |
7829 | ac_status=$? | |
7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7831 | (exit $ac_status); } && | |
7832 | { ac_try='test -s conftest.$ac_objext' | |
7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7834 | (eval $ac_try) 2>&5 | |
7835 | ac_status=$? | |
7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7837 | (exit $ac_status); }; }; then | |
7838 | ac_header_compiler=yes | |
7839 | else | |
7840 | echo "$as_me: failed program was:" >&5 | |
7841 | cat conftest.$ac_ext >&5 | |
7842 | ac_header_compiler=no | |
7843 | fi | |
7844 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7846 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7847 | ||
7848 | # Is the header present? | |
7849 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7850 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7851 | cat >conftest.$ac_ext <<_ACEOF | |
7852 | #line $LINENO "configure" | |
7853 | #include "confdefs.h" | |
7854 | #include <$ac_header> | |
7855 | _ACEOF | |
7856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7858 | ac_status=$? | |
7859 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7860 | rm -f conftest.er1 | |
7861 | cat conftest.err >&5 | |
7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7863 | (exit $ac_status); } >/dev/null; then | |
7864 | if test -s conftest.err; then | |
7865 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7866 | else | |
7867 | ac_cpp_err= | |
7868 | fi | |
7869 | else | |
7870 | ac_cpp_err=yes | |
7871 | fi | |
7872 | if test -z "$ac_cpp_err"; then | |
7873 | ac_header_preproc=yes | |
7874 | else | |
7875 | echo "$as_me: failed program was:" >&5 | |
7876 | cat conftest.$ac_ext >&5 | |
7877 | ac_header_preproc=no | |
7878 | fi | |
7879 | rm -f conftest.err conftest.$ac_ext | |
7880 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7881 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7882 | ||
7883 | # So? What about this header? | |
7884 | case $ac_header_compiler:$ac_header_preproc in | |
7885 | yes:no ) | |
7886 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7887 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7890 | no:yes ) | |
7891 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7892 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7893 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7894 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7896 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7897 | esac | |
7898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7902 | else | |
7903 | eval "$as_ac_Header=$ac_header_preproc" | |
7904 | fi | |
7905 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7906 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7907 | ||
7908 | fi | |
7909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7910 | cat >>confdefs.h <<_ACEOF | |
7911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7912 | _ACEOF | |
7913 | ||
7914 | fi | |
7915 | ||
7916 | done | |
7917 | ||
7918 | # Compilation will fail if any of these headers are missing, so we | |
7919 | # check for them here and fail early. | |
7920 | # We don't bother checking very standard stuff | |
7921 | ||
7922 | ||
7923 | for ac_header in getopt.h unistd.h | |
7924 | do | |
7925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7931 | fi | |
7932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7934 | else | |
7935 | # Is the header compilable? | |
7936 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7937 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7938 | cat >conftest.$ac_ext <<_ACEOF | |
7939 | #line $LINENO "configure" | |
7940 | #include "confdefs.h" | |
7941 | $ac_includes_default | |
7942 | #include <$ac_header> | |
7943 | _ACEOF | |
7944 | rm -f conftest.$ac_objext | |
7945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7946 | (eval $ac_compile) 2>&5 | |
7947 | ac_status=$? | |
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7949 | (exit $ac_status); } && | |
7950 | { ac_try='test -s conftest.$ac_objext' | |
7951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7952 | (eval $ac_try) 2>&5 | |
7953 | ac_status=$? | |
7954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7955 | (exit $ac_status); }; }; then | |
7956 | ac_header_compiler=yes | |
7957 | else | |
7958 | echo "$as_me: failed program was:" >&5 | |
7959 | cat conftest.$ac_ext >&5 | |
7960 | ac_header_compiler=no | |
7961 | fi | |
7962 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7963 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7964 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7965 | ||
7966 | # Is the header present? | |
7967 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7968 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7969 | cat >conftest.$ac_ext <<_ACEOF | |
7970 | #line $LINENO "configure" | |
7971 | #include "confdefs.h" | |
7972 | #include <$ac_header> | |
7973 | _ACEOF | |
7974 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7975 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7976 | ac_status=$? | |
7977 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7978 | rm -f conftest.er1 | |
7979 | cat conftest.err >&5 | |
7980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7981 | (exit $ac_status); } >/dev/null; then | |
7982 | if test -s conftest.err; then | |
7983 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7984 | else | |
7985 | ac_cpp_err= | |
7986 | fi | |
7987 | else | |
7988 | ac_cpp_err=yes | |
7989 | fi | |
7990 | if test -z "$ac_cpp_err"; then | |
7991 | ac_header_preproc=yes | |
7992 | else | |
7993 | echo "$as_me: failed program was:" >&5 | |
7994 | cat conftest.$ac_ext >&5 | |
7995 | ac_header_preproc=no | |
7996 | fi | |
7997 | rm -f conftest.err conftest.$ac_ext | |
7998 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7999 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8000 | ||
8001 | # So? What about this header? | |
8002 | case $ac_header_compiler:$ac_header_preproc in | |
8003 | yes:no ) | |
8004 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8005 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8007 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
8008 | no:yes ) | |
8009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
8015 | esac | |
8016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8020 | else | |
8021 | eval "$as_ac_Header=$ac_header_preproc" | |
8022 | fi | |
8023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8024 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8025 | ||
8026 | fi | |
8027 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8028 | cat >>confdefs.h <<_ACEOF | |
8029 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8030 | _ACEOF | |
8031 | : | |
8032 | else | |
8033 | ||
8034 | missing_headers="$missing_headers $ac_header" | |
8035 | ||
8036 | fi | |
8037 | ||
8038 | done | |
8039 | ||
8040 | ||
8041 | if test ! -z "$missing_headers"; then | |
8042 | { { echo "$as_me:$LINENO: error: missing headers:$missing_headers" >&5 | |
8043 | echo "$as_me: error: missing headers:$missing_headers" >&2;} | |
8044 | { (exit 1); exit 1; }; } | |
8045 | fi | |
8046 | ||
8047 | # Checks for typedefs, structures, and compiler characteristics. | |
8048 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
8049 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
8050 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
8051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8052 | else | |
8053 | ac_cv_prog_cc_stdc=no | |
8054 | ac_save_CC=$CC | |
8055 | cat >conftest.$ac_ext <<_ACEOF | |
8056 | #line $LINENO "configure" | |
8057 | #include "confdefs.h" | |
8058 | #include <stdarg.h> | |
8059 | #include <stdio.h> | |
8060 | #include <sys/types.h> | |
8061 | #include <sys/stat.h> | |
8062 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
8063 | struct buf { int x; }; | |
8064 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
8065 | static char *e (p, i) | |
8066 | char **p; | |
8067 | int i; | |
8068 | { | |
8069 | return p[i]; | |
8070 | } | |
8071 | static char *f (char * (*g) (char **, int), char **p, ...) | |
8072 | { | |
8073 | char *s; | |
8074 | va_list v; | |
8075 | va_start (v,p); | |
8076 | s = g (p, va_arg (v,int)); | |
8077 | va_end (v); | |
8078 | return s; | |
8079 | } | |
8080 | int test (int i, double x); | |
8081 | struct s1 {int (*f) (int a);}; | |
8082 | struct s2 {int (*f) (double a);}; | |
8083 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
8084 | int argc; | |
8085 | char **argv; | |
8086 | #ifdef F77_DUMMY_MAIN | |
8087 | # ifdef __cplusplus | |
8088 | extern "C" | |
8089 | # endif | |
8090 | int F77_DUMMY_MAIN() { return 1; } | |
8091 | #endif | |
8092 | int | |
8093 | main () | |
8094 | { | |
8095 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
8096 | ; | |
8097 | return 0; | |
8098 | } | |
8099 | _ACEOF | |
8100 | # Don't try gcc -ansi; that turns off useful extensions and | |
8101 | # breaks some systems' header files. | |
8102 | # AIX -qlanglvl=ansi | |
8103 | # Ultrix and OSF/1 -std1 | |
8104 | # HP-UX 10.20 and later -Ae | |
8105 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
8106 | # SVR4 -Xc -D__EXTENSIONS__ | |
8107 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
8108 | do | |
8109 | CC="$ac_save_CC $ac_arg" | |
8110 | rm -f conftest.$ac_objext | |
8111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8112 | (eval $ac_compile) 2>&5 | |
8113 | ac_status=$? | |
8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8115 | (exit $ac_status); } && | |
8116 | { ac_try='test -s conftest.$ac_objext' | |
8117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8118 | (eval $ac_try) 2>&5 | |
8119 | ac_status=$? | |
8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8121 | (exit $ac_status); }; }; then | |
8122 | ac_cv_prog_cc_stdc=$ac_arg | |
8123 | break | |
8124 | else | |
8125 | echo "$as_me: failed program was:" >&5 | |
8126 | cat conftest.$ac_ext >&5 | |
8127 | fi | |
8128 | rm -f conftest.$ac_objext | |
8129 | done | |
8130 | rm -f conftest.$ac_ext conftest.$ac_objext | |
8131 | CC=$ac_save_CC | |
8132 | ||
8133 | fi | |
8134 | ||
8135 | case "x$ac_cv_prog_cc_stdc" in | |
8136 | x|xno) | |
8137 | echo "$as_me:$LINENO: result: none needed" >&5 | |
8138 | echo "${ECHO_T}none needed" >&6 ;; | |
8139 | *) | |
8140 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
8141 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
8142 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
8143 | esac | |
8144 | ||
8145 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
8146 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
8147 | if test "${ac_cv_c_const+set}" = set; then | |
8148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8149 | else | |
8150 | cat >conftest.$ac_ext <<_ACEOF | |
8151 | #line $LINENO "configure" | |
8152 | #include "confdefs.h" | |
8153 | ||
8154 | #ifdef F77_DUMMY_MAIN | |
8155 | # ifdef __cplusplus | |
8156 | extern "C" | |
8157 | # endif | |
8158 | int F77_DUMMY_MAIN() { return 1; } | |
8159 | #endif | |
8160 | int | |
8161 | main () | |
8162 | { | |
8163 | /* FIXME: Include the comments suggested by Paul. */ | |
8164 | #ifndef __cplusplus | |
8165 | /* Ultrix mips cc rejects this. */ | |
8166 | typedef int charset[2]; | |
8167 | const charset x; | |
8168 | /* SunOS 4.1.1 cc rejects this. */ | |
8169 | char const *const *ccp; | |
8170 | char **p; | |
8171 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8172 | struct point {int x, y;}; | |
8173 | static struct point const zero = {0,0}; | |
8174 | /* AIX XL C 1.02.0.0 rejects this. | |
8175 | It does not let you subtract one const X* pointer from another in | |
8176 | an arm of an if-expression whose if-part is not a constant | |
8177 | expression */ | |
8178 | const char *g = "string"; | |
8179 | ccp = &g + (g ? g-g : 0); | |
8180 | /* HPUX 7.0 cc rejects these. */ | |
8181 | ++ccp; | |
8182 | p = (char**) ccp; | |
8183 | ccp = (char const *const *) p; | |
8184 | { /* SCO 3.2v4 cc rejects this. */ | |
8185 | char *t; | |
8186 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8187 | ||
8188 | *t++ = 0; | |
8189 | } | |
8190 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8191 | int x[] = {25, 17}; | |
8192 | const int *foo = &x[0]; | |
8193 | ++foo; | |
8194 | } | |
8195 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8196 | typedef const int *iptr; | |
8197 | iptr p = 0; | |
8198 | ++p; | |
8199 | } | |
8200 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8201 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8202 | struct s { int j; const int *ap[3]; }; | |
8203 | struct s *b; b->j = 5; | |
8204 | } | |
8205 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8206 | const int foo = 10; | |
8207 | } | |
8208 | #endif | |
8209 | ||
8210 | ; | |
8211 | return 0; | |
8212 | } | |
8213 | _ACEOF | |
8214 | rm -f conftest.$ac_objext | |
8215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8216 | (eval $ac_compile) 2>&5 | |
8217 | ac_status=$? | |
8218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8219 | (exit $ac_status); } && | |
8220 | { ac_try='test -s conftest.$ac_objext' | |
8221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8222 | (eval $ac_try) 2>&5 | |
8223 | ac_status=$? | |
8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8225 | (exit $ac_status); }; }; then | |
8226 | ac_cv_c_const=yes | |
8227 | else | |
8228 | echo "$as_me: failed program was:" >&5 | |
8229 | cat conftest.$ac_ext >&5 | |
8230 | ac_cv_c_const=no | |
8231 | fi | |
8232 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8233 | fi | |
8234 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
8235 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
8236 | if test $ac_cv_c_const = no; then | |
8237 | ||
8238 | cat >>confdefs.h <<\_ACEOF | |
8239 | #define const | |
8240 | _ACEOF | |
8241 | ||
8242 | fi | |
8243 | ||
8244 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
8245 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
8246 | if test "${ac_cv_type_size_t+set}" = set; then | |
8247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8248 | else | |
8249 | cat >conftest.$ac_ext <<_ACEOF | |
8250 | #line $LINENO "configure" | |
8251 | #include "confdefs.h" | |
8252 | $ac_includes_default | |
8253 | #ifdef F77_DUMMY_MAIN | |
8254 | # ifdef __cplusplus | |
8255 | extern "C" | |
8256 | # endif | |
8257 | int F77_DUMMY_MAIN() { return 1; } | |
8258 | #endif | |
8259 | int | |
8260 | main () | |
8261 | { | |
8262 | if ((size_t *) 0) | |
8263 | return 0; | |
8264 | if (sizeof (size_t)) | |
8265 | return 0; | |
8266 | ; | |
8267 | return 0; | |
8268 | } | |
8269 | _ACEOF | |
8270 | rm -f conftest.$ac_objext | |
8271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8272 | (eval $ac_compile) 2>&5 | |
8273 | ac_status=$? | |
8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8275 | (exit $ac_status); } && | |
8276 | { ac_try='test -s conftest.$ac_objext' | |
8277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8278 | (eval $ac_try) 2>&5 | |
8279 | ac_status=$? | |
8280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8281 | (exit $ac_status); }; }; then | |
8282 | ac_cv_type_size_t=yes | |
8283 | else | |
8284 | echo "$as_me: failed program was:" >&5 | |
8285 | cat conftest.$ac_ext >&5 | |
8286 | ac_cv_type_size_t=no | |
8287 | fi | |
8288 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8289 | fi | |
8290 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
8291 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
8292 | if test $ac_cv_type_size_t = yes; then | |
8293 | : | |
8294 | else | |
8295 | ||
8296 | cat >>confdefs.h <<_ACEOF | |
8297 | #define size_t unsigned | |
8298 | _ACEOF | |
8299 | ||
8300 | fi | |
8301 | ||
8302 | echo "$as_me:$LINENO: checking for inline" >&5 | |
8303 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
8304 | if test "${ac_cv_c_inline+set}" = set; then | |
8305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8306 | else | |
8307 | ac_cv_c_inline=no | |
8308 | for ac_kw in inline __inline__ __inline; do | |
8309 | cat >conftest.$ac_ext <<_ACEOF | |
8310 | #line $LINENO "configure" | |
8311 | #include "confdefs.h" | |
8312 | #ifndef __cplusplus | |
8313 | static $ac_kw int static_foo () {return 0; } | |
8314 | $ac_kw int foo () {return 0; } | |
8315 | #endif | |
8316 | ||
8317 | _ACEOF | |
8318 | rm -f conftest.$ac_objext | |
8319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8320 | (eval $ac_compile) 2>&5 | |
8321 | ac_status=$? | |
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8323 | (exit $ac_status); } && | |
8324 | { ac_try='test -s conftest.$ac_objext' | |
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8326 | (eval $ac_try) 2>&5 | |
8327 | ac_status=$? | |
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8329 | (exit $ac_status); }; }; then | |
8330 | ac_cv_c_inline=$ac_kw; break | |
8331 | else | |
8332 | echo "$as_me: failed program was:" >&5 | |
8333 | cat conftest.$ac_ext >&5 | |
8334 | fi | |
8335 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8336 | done | |
8337 | ||
8338 | fi | |
8339 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
8340 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
8341 | case $ac_cv_c_inline in | |
8342 | inline | yes) ;; | |
8343 | no) | |
8344 | cat >>confdefs.h <<\_ACEOF | |
8345 | #define inline | |
8346 | _ACEOF | |
8347 | ;; | |
8348 | *) cat >>confdefs.h <<_ACEOF | |
8349 | #define inline $ac_cv_c_inline | |
8350 | _ACEOF | |
8351 | ;; | |
8352 | esac | |
8353 | ||
8354 | echo "$as_me:$LINENO: checking for _Bool" >&5 | |
8355 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 | |
8356 | if test "${ac_cv_type__Bool+set}" = set; then | |
8357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8358 | else | |
8359 | cat >conftest.$ac_ext <<_ACEOF | |
8360 | #line $LINENO "configure" | |
8361 | #include "confdefs.h" | |
8362 | $ac_includes_default | |
8363 | #ifdef F77_DUMMY_MAIN | |
8364 | # ifdef __cplusplus | |
8365 | extern "C" | |
8366 | # endif | |
8367 | int F77_DUMMY_MAIN() { return 1; } | |
8368 | #endif | |
8369 | int | |
8370 | main () | |
8371 | { | |
8372 | if ((_Bool *) 0) | |
8373 | return 0; | |
8374 | if (sizeof (_Bool)) | |
8375 | return 0; | |
8376 | ; | |
8377 | return 0; | |
8378 | } | |
8379 | _ACEOF | |
8380 | rm -f conftest.$ac_objext | |
8381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8382 | (eval $ac_compile) 2>&5 | |
8383 | ac_status=$? | |
8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8385 | (exit $ac_status); } && | |
8386 | { ac_try='test -s conftest.$ac_objext' | |
8387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8388 | (eval $ac_try) 2>&5 | |
8389 | ac_status=$? | |
8390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8391 | (exit $ac_status); }; }; then | |
8392 | ac_cv_type__Bool=yes | |
8393 | else | |
8394 | echo "$as_me: failed program was:" >&5 | |
8395 | cat conftest.$ac_ext >&5 | |
8396 | ac_cv_type__Bool=no | |
8397 | fi | |
8398 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8399 | fi | |
8400 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 | |
8401 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 | |
8402 | if test $ac_cv_type__Bool = yes; then | |
8403 | ||
8404 | cat >>confdefs.h <<_ACEOF | |
8405 | #define HAVE__BOOL 1 | |
8406 | _ACEOF | |
8407 | ||
8408 | ||
8409 | fi | |
8410 | ||
8411 | ||
8412 | if test "x$GCC" = xyes; then | |
8413 | # a reasonable default set of warnings | |
8414 | CC="${CC} -Wall -W -Wpointer-arith -Wbad-function-cast \ | |
8415 | -Wwrite-strings -Wmissing-prototypes \ | |
8416 | -Wshadow \ | |
8417 | -Wmissing-declarations -Wnested-externs -Werror" | |
8418 | ||
8419 | ||
8420 | cat >>confdefs.h <<\_ACEOF | |
8421 | #define __NO_STRING_INLINES 1 | |
8422 | _ACEOF | |
8423 | ||
8424 | ||
8425 | fi | |
8426 | ||
8427 | # Flex includes <stdio.h> and other headers before we get a chance to | |
8428 | # include <config.h>, so we have to hack definitions that affect the | |
8429 | # meanings of those header files onto the command line. | |
8430 | CC="${CC} -D_GNU_SOURCE" | |
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ac_config_files="$ac_config_files Makefile tests/Makefile" | |
8436 | ||
8437 | cat >confcache <<\_ACEOF | |
8438 | # This file is a shell script that caches the results of configure | |
8439 | # tests run on this system so they can be shared between configure | |
8440 | # scripts and configure runs, see configure's option --config-cache. | |
8441 | # It is not useful on other systems. If it contains results you don't | |
8442 | # want to keep, you may remove or edit it. | |
8443 | # | |
8444 | # config.status only pays attention to the cache file if you give it | |
8445 | # the --recheck option to rerun configure. | |
8446 | # | |
8447 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
8448 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8449 | # following values. | |
8450 | ||
8451 | _ACEOF | |
8452 | ||
8453 | # The following way of writing the cache mishandles newlines in values, | |
8454 | # but we know of no workaround that is simple, portable, and efficient. | |
8455 | # So, don't put newlines in cache variables' values. | |
8456 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8457 | # and sets the high bit in the cache file unless we assign to the vars. | |
8458 | { | |
8459 | (set) 2>&1 | | |
8460 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8461 | *ac_space=\ *) | |
8462 | # `set' does not quote correctly, so add quotes (double-quote | |
8463 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8464 | sed -n \ | |
8465 | "s/'/'\\\\''/g; | |
8466 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8467 | ;; | |
8468 | *) | |
8469 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8470 | sed -n \ | |
8471 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8472 | ;; | |
8473 | esac; | |
8474 | } | | |
8475 | sed ' | |
8476 | t clear | |
8477 | : clear | |
8478 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8479 | t end | |
8480 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8481 | : end' >>confcache | |
8482 | if cmp -s $cache_file confcache; then :; else | |
8483 | if test -w $cache_file; then | |
8484 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
8485 | cat confcache >$cache_file | |
8486 | else | |
8487 | echo "not updating unwritable cache $cache_file" | |
8488 | fi | |
8489 | fi | |
8490 | rm -f confcache | |
8491 | ||
8492 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8493 | # Let make expand exec_prefix. | |
8494 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8495 | ||
8496 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8497 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8498 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8499 | # (actually we leave an empty line to preserve line numbers). | |
8500 | if test "x$srcdir" = x.; then | |
8501 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8502 | s/:*\$(srcdir):*/:/; | |
8503 | s/:*\${srcdir}:*/:/; | |
8504 | s/:*@srcdir@:*/:/; | |
8505 | s/^\([^=]*=[ ]*\):*/\1/; | |
8506 | s/:*$//; | |
8507 | s/^[^=]*=[ ]*$//; | |
8508 | }' | |
8509 | fi | |
8510 | ||
8511 | DEFS=-DHAVE_CONFIG_H | |
8512 | ||
8513 | ||
8514 | : ${CONFIG_STATUS=./config.status} | |
8515 | ac_clean_files_save=$ac_clean_files | |
8516 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8517 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8518 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8519 | cat >$CONFIG_STATUS <<_ACEOF | |
8520 | #! $SHELL | |
8521 | # Generated by $as_me. | |
8522 | # Run this file to recreate the current configuration. | |
8523 | # Compiler output produced by configure, useful for debugging | |
8524 | # configure, is in config.log if it exists. | |
8525 | ||
8526 | debug=false | |
8527 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8528 | _ACEOF | |
8529 | ||
8530 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8531 | ||
8532 | ## --------------------- ## | |
8533 | ## M4sh Initialization. ## | |
8534 | ## --------------------- ## | |
8535 | ||
8536 | # Be Bourne compatible | |
8537 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8538 | emulate sh | |
8539 | NULLCMD=: | |
8540 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8541 | set -o posix | |
8542 | fi | |
8543 | ||
8544 | # NLS nuisances. | |
8545 | # Support unset when possible. | |
8546 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
8547 | as_unset=unset | |
8548 | else | |
8549 | as_unset=false | |
8550 | fi | |
8551 | ||
8552 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
8553 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
8554 | { LANG=C; export LANG; } | |
8555 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
8556 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
8557 | { LC_ALL=C; export LC_ALL; } | |
8558 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
8559 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
8560 | { LC_TIME=C; export LC_TIME; } | |
8561 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
8562 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
8563 | { LC_CTYPE=C; export LC_CTYPE; } | |
8564 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
8565 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
8566 | { LANGUAGE=C; export LANGUAGE; } | |
8567 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
8568 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
8569 | { LC_COLLATE=C; export LC_COLLATE; } | |
8570 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
8571 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
8572 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
8573 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
8574 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
8575 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
8576 | ||
8577 | ||
8578 | # Name of the executable. | |
8579 | as_me=`(basename "$0") 2>/dev/null || | |
8580 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8581 | X"$0" : 'X\(//\)$' \| \ | |
8582 | X"$0" : 'X\(/\)$' \| \ | |
8583 | . : '\(.\)' 2>/dev/null || | |
8584 | echo X/"$0" | | |
8585 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8586 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8587 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8588 | s/.*/./; q'` | |
8589 | ||
8590 | # PATH needs CR, and LINENO needs CR and PATH. | |
8591 | # Avoid depending upon Character Ranges. | |
8592 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8593 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8594 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8595 | as_cr_digits='0123456789' | |
8596 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8597 | ||
8598 | # The user is always right. | |
8599 | if test "${PATH_SEPARATOR+set}" != set; then | |
8600 | echo "#! /bin/sh" >conftest.sh | |
8601 | echo "exit 0" >>conftest.sh | |
8602 | chmod +x conftest.sh | |
8603 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
8604 | PATH_SEPARATOR=';' | |
8605 | else | |
8606 | PATH_SEPARATOR=: | |
8607 | fi | |
8608 | rm -f conftest.sh | |
8609 | fi | |
8610 | ||
8611 | ||
8612 | as_lineno_1=$LINENO | |
8613 | as_lineno_2=$LINENO | |
8614 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8615 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8616 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8617 | # Find who we are. Look in the path if we contain no path at all | |
8618 | # relative or not. | |
8619 | case $0 in | |
8620 | *[\\/]* ) as_myself=$0 ;; | |
8621 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8622 | for as_dir in $PATH | |
8623 | do | |
8624 | IFS=$as_save_IFS | |
8625 | test -z "$as_dir" && as_dir=. | |
8626 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8627 | done | |
8628 | ||
8629 | ;; | |
8630 | esac | |
8631 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8632 | # in which case we are not to be found in the path. | |
8633 | if test "x$as_myself" = x; then | |
8634 | as_myself=$0 | |
8635 | fi | |
8636 | if test ! -f "$as_myself"; then | |
8637 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8638 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8639 | { (exit 1); exit 1; }; } | |
8640 | fi | |
8641 | case $CONFIG_SHELL in | |
8642 | '') | |
8643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8644 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
8645 | do | |
8646 | IFS=$as_save_IFS | |
8647 | test -z "$as_dir" && as_dir=. | |
8648 | for as_base in sh bash ksh sh5; do | |
8649 | case $as_dir in | |
8650 | /*) | |
8651 | if ("$as_dir/$as_base" -c ' | |
8652 | as_lineno_1=$LINENO | |
8653 | as_lineno_2=$LINENO | |
8654 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8655 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8656 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
8657 | CONFIG_SHELL=$as_dir/$as_base | |
8658 | export CONFIG_SHELL | |
8659 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
8660 | fi;; | |
8661 | esac | |
8662 | done | |
8663 | done | |
8664 | ;; | |
8665 | esac | |
8666 | ||
8667 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8668 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8669 | # line-number line before each line; the second 'sed' does the real | |
8670 | # work. The second script uses 'N' to pair each line-number line | |
8671 | # with the numbered line, and appends trailing '-' during | |
8672 | # substitution so that $LINENO is not a special case at line end. | |
8673 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
8674 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
8675 | sed '=' <$as_myself | | |
8676 | sed ' | |
8677 | N | |
8678 | s,$,-, | |
8679 | : loop | |
8680 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
8681 | t loop | |
8682 | s,-$,, | |
8683 | s,^['$as_cr_digits']*\n,, | |
8684 | ' >$as_me.lineno && | |
8685 | chmod +x $as_me.lineno || | |
8686 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
8687 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
8688 | { (exit 1); exit 1; }; } | |
8689 | ||
8690 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8691 | # (the dirname of $[0] is not the place where we might find the | |
8692 | # original and so on. Autoconf is especially sensible to this). | |
8693 | . ./$as_me.lineno | |
8694 | # Exit status is that of the last command. | |
8695 | exit | |
8696 | } | |
8697 | ||
8698 | ||
8699 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
8700 | *c*,-n*) ECHO_N= ECHO_C=' | |
8701 | ' ECHO_T=' ' ;; | |
8702 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
8703 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
8704 | esac | |
8705 | ||
8706 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8707 | as_expr=expr | |
8708 | else | |
8709 | as_expr=false | |
8710 | fi | |
8711 | ||
8712 | rm -f conf$$ conf$$.exe conf$$.file | |
8713 | echo >conf$$.file | |
8714 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8715 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8716 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8717 | if test -f conf$$.exe; then | |
8718 | # Don't use ln at all; we don't have any links | |
8719 | as_ln_s='cp -p' | |
8720 | else | |
8721 | as_ln_s='ln -s' | |
8722 | fi | |
8723 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8724 | as_ln_s=ln | |
8725 | else | |
8726 | as_ln_s='cp -p' | |
8727 | fi | |
8728 | rm -f conf$$ conf$$.exe conf$$.file | |
8729 | ||
8730 | as_executable_p="test -f" | |
8731 | ||
8732 | # Sed expression to map a string onto a valid CPP name. | |
8733 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
8734 | ||
8735 | # Sed expression to map a string onto a valid variable name. | |
8736 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
8737 | ||
8738 | ||
8739 | # IFS | |
8740 | # We need space, tab and new line, in precisely that order. | |
8741 | as_nl=' | |
8742 | ' | |
8743 | IFS=" $as_nl" | |
8744 | ||
8745 | # CDPATH. | |
8746 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
8747 | ||
8748 | exec 6>&1 | |
8749 | ||
8750 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
8751 | # report actual input values of CONFIG_FILES etc. instead of their | |
8752 | # values after options handling. Logging --version etc. is OK. | |
8753 | exec 5>>config.log | |
8754 | { | |
8755 | echo | |
8756 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8757 | ## Running $as_me. ## | |
8758 | _ASBOX | |
8759 | } >&5 | |
8760 | cat >&5 <<_CSEOF | |
8761 | ||
8762 | This file was extended by cparse $as_me 0.0.20040813, which was | |
8763 | generated by GNU Autoconf 2.53. Invocation command line was | |
8764 | ||
8765 | CONFIG_FILES = $CONFIG_FILES | |
8766 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8767 | CONFIG_LINKS = $CONFIG_LINKS | |
8768 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8769 | $ $0 $@ | |
8770 | ||
8771 | _CSEOF | |
8772 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8773 | echo >&5 | |
8774 | _ACEOF | |
8775 | ||
8776 | # Files that config.status was made for. | |
8777 | if test -n "$ac_config_files"; then | |
8778 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
8779 | fi | |
8780 | ||
8781 | if test -n "$ac_config_headers"; then | |
8782 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8783 | fi | |
8784 | ||
8785 | if test -n "$ac_config_links"; then | |
8786 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8787 | fi | |
8788 | ||
8789 | if test -n "$ac_config_commands"; then | |
8790 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8791 | fi | |
8792 | ||
8793 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8794 | ||
8795 | ac_cs_usage="\ | |
8796 | \`$as_me' instantiates files from templates according to the | |
8797 | current configuration. | |
8798 | ||
8799 | Usage: $0 [OPTIONS] [FILE]... | |
8800 | ||
8801 | -h, --help print this help, then exit | |
8802 | -V, --version print version number, then exit | |
8803 | -d, --debug don't remove temporary files | |
8804 | --recheck update $as_me by reconfiguring in the same conditions | |
8805 | --file=FILE[:TEMPLATE] | |
8806 | instantiate the configuration file FILE | |
8807 | --header=FILE[:TEMPLATE] | |
8808 | instantiate the configuration header FILE | |
8809 | ||
8810 | Configuration files: | |
8811 | $config_files | |
8812 | ||
8813 | Configuration headers: | |
8814 | $config_headers | |
8815 | ||
8816 | Configuration commands: | |
8817 | $config_commands | |
8818 | ||
8819 | Report bugs to <bug-autoconf@gnu.org>." | |
8820 | _ACEOF | |
8821 | ||
8822 | cat >>$CONFIG_STATUS <<_ACEOF | |
8823 | ac_cs_version="\\ | |
8824 | cparse config.status 0.0.20040813 | |
8825 | configured by $0, generated by GNU Autoconf 2.53, | |
8826 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8827 | ||
8828 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
8829 | Free Software Foundation, Inc. | |
8830 | This config.status script is free software; the Free Software Foundation | |
8831 | gives unlimited permission to copy, distribute and modify it." | |
8832 | srcdir=$srcdir | |
8833 | INSTALL="$INSTALL" | |
8834 | _ACEOF | |
8835 | ||
8836 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8837 | # If no file are specified by the user, then we need to provide default | |
8838 | # value. By we need to know if files were specified by the user. | |
8839 | ac_need_defaults=: | |
8840 | while test $# != 0 | |
8841 | do | |
8842 | case $1 in | |
8843 | --*=*) | |
8844 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8845 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8846 | shift | |
8847 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
8848 | shift | |
8849 | ;; | |
8850 | -*);; | |
8851 | *) # This is not an option, so the user has probably given explicit | |
8852 | # arguments. | |
8853 | ac_need_defaults=false;; | |
8854 | esac | |
8855 | ||
8856 | case $1 in | |
8857 | # Handling of the options. | |
8858 | _ACEOF | |
8859 | cat >>$CONFIG_STATUS <<_ACEOF | |
8860 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8861 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
8862 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
8863 | _ACEOF | |
8864 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8865 | --version | --vers* | -V ) | |
8866 | echo "$ac_cs_version"; exit 0 ;; | |
8867 | --he | --h) | |
8868 | # Conflict between --help and --header | |
8869 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8870 | Try \`$0 --help' for more information." >&5 | |
8871 | echo "$as_me: error: ambiguous option: $1 | |
8872 | Try \`$0 --help' for more information." >&2;} | |
8873 | { (exit 1); exit 1; }; };; | |
8874 | --help | --hel | -h ) | |
8875 | echo "$ac_cs_usage"; exit 0 ;; | |
8876 | --debug | --d* | -d ) | |
8877 | debug=: ;; | |
8878 | --file | --fil | --fi | --f ) | |
8879 | shift | |
8880 | CONFIG_FILES="$CONFIG_FILES $1" | |
8881 | ac_need_defaults=false;; | |
8882 | --header | --heade | --head | --hea ) | |
8883 | shift | |
8884 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
8885 | ac_need_defaults=false;; | |
8886 | ||
8887 | # This is an error. | |
8888 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8889 | Try \`$0 --help' for more information." >&5 | |
8890 | echo "$as_me: error: unrecognized option: $1 | |
8891 | Try \`$0 --help' for more information." >&2;} | |
8892 | { (exit 1); exit 1; }; } ;; | |
8893 | ||
8894 | *) ac_config_targets="$ac_config_targets $1" ;; | |
8895 | ||
8896 | esac | |
8897 | shift | |
8898 | done | |
8899 | ||
8900 | _ACEOF | |
8901 | ||
8902 | cat >>$CONFIG_STATUS <<_ACEOF | |
8903 | # | |
8904 | # INIT-COMMANDS section. | |
8905 | # | |
8906 | ||
8907 | AMDEP_TRUE="$AMDEP_TRUE" | |
8908 | ac_aux_dir="$ac_aux_dir" | |
8909 | ||
8910 | _ACEOF | |
8911 | ||
8912 | ||
8913 | ||
8914 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8915 | for ac_config_target in $ac_config_targets | |
8916 | do | |
8917 | case "$ac_config_target" in | |
8918 | # Handling of arguments. | |
8919 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8920 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
8921 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8922 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
8923 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8924 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8925 | { (exit 1); exit 1; }; };; | |
8926 | esac | |
8927 | done | |
8928 | ||
8929 | # If the user did not use the arguments to specify the items to instantiate, | |
8930 | # then the envvar interface is used. Set only those that are not. | |
8931 | # We use the long form for the default assignment because of an extremely | |
8932 | # bizarre bug on SunOS 4.1.3. | |
8933 | if $ac_need_defaults; then | |
8934 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8935 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8936 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8937 | fi | |
8938 | ||
8939 | # Create a temporary directory, and hook for its removal unless debugging. | |
8940 | $debug || | |
8941 | { | |
8942 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8943 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8944 | } | |
8945 | ||
8946 | # Create a (secure) tmp directory for tmp files. | |
8947 | : ${TMPDIR=/tmp} | |
8948 | { | |
8949 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
8950 | test -n "$tmp" && test -d "$tmp" | |
8951 | } || | |
8952 | { | |
8953 | tmp=$TMPDIR/cs$$-$RANDOM | |
8954 | (umask 077 && mkdir $tmp) | |
8955 | } || | |
8956 | { | |
8957 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
8958 | { (exit 1); exit 1; } | |
8959 | } | |
8960 | ||
8961 | _ACEOF | |
8962 | ||
8963 | cat >>$CONFIG_STATUS <<_ACEOF | |
8964 | ||
8965 | # | |
8966 | # CONFIG_FILES section. | |
8967 | # | |
8968 | ||
8969 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8970 | # This happens for instance when ./config.status config.h | |
8971 | if test -n "\$CONFIG_FILES"; then | |
8972 | # Protect against being on the right side of a sed subst in config.status. | |
8973 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8974 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8975 | s,@SHELL@,$SHELL,;t t | |
8976 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8977 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8978 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8979 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8980 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8981 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8982 | s,@exec_prefix@,$exec_prefix,;t t | |
8983 | s,@prefix@,$prefix,;t t | |
8984 | s,@program_transform_name@,$program_transform_name,;t t | |
8985 | s,@bindir@,$bindir,;t t | |
8986 | s,@sbindir@,$sbindir,;t t | |
8987 | s,@libexecdir@,$libexecdir,;t t | |
8988 | s,@datadir@,$datadir,;t t | |
8989 | s,@sysconfdir@,$sysconfdir,;t t | |
8990 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8991 | s,@localstatedir@,$localstatedir,;t t | |
8992 | s,@libdir@,$libdir,;t t | |
8993 | s,@includedir@,$includedir,;t t | |
8994 | s,@oldincludedir@,$oldincludedir,;t t | |
8995 | s,@infodir@,$infodir,;t t | |
8996 | s,@mandir@,$mandir,;t t | |
8997 | s,@build_alias@,$build_alias,;t t | |
8998 | s,@host_alias@,$host_alias,;t t | |
8999 | s,@target_alias@,$target_alias,;t t | |
9000 | s,@DEFS@,$DEFS,;t t | |
9001 | s,@ECHO_C@,$ECHO_C,;t t | |
9002 | s,@ECHO_N@,$ECHO_N,;t t | |
9003 | s,@ECHO_T@,$ECHO_T,;t t | |
9004 | s,@LIBS@,$LIBS,;t t | |
9005 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
9006 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
9007 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9008 | s,@PACKAGE@,$PACKAGE,;t t | |
9009 | s,@VERSION@,$VERSION,;t t | |
9010 | s,@EXEEXT@,$EXEEXT,;t t | |
9011 | s,@OBJEXT@,$OBJEXT,;t t | |
9012 | s,@ACLOCAL@,$ACLOCAL,;t t | |
9013 | s,@AUTOCONF@,$AUTOCONF,;t t | |
9014 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
9015 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
9016 | s,@MAKEINFO@,$MAKEINFO,;t t | |
9017 | s,@AMTAR@,$AMTAR,;t t | |
9018 | s,@install_sh@,$install_sh,;t t | |
9019 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
9020 | s,@AWK@,$AWK,;t t | |
9021 | s,@SET_MAKE@,$SET_MAKE,;t t | |
9022 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
9023 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
9024 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
9025 | s,@DEPDIR@,$DEPDIR,;t t | |
9026 | s,@CC@,$CC,;t t | |
9027 | s,@CFLAGS@,$CFLAGS,;t t | |
9028 | s,@LDFLAGS@,$LDFLAGS,;t t | |
9029 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
9030 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
9031 | s,@am__include@,$am__include,;t t | |
9032 | s,@am__quote@,$am__quote,;t t | |
9033 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
9034 | s,@YACC@,$YACC,;t t | |
9035 | s,@LEX@,$LEX,;t t | |
9036 | s,@LEXLIB@,$LEXLIB,;t t | |
9037 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
9038 | s,@build@,$build,;t t | |
9039 | s,@build_cpu@,$build_cpu,;t t | |
9040 | s,@build_vendor@,$build_vendor,;t t | |
9041 | s,@build_os@,$build_os,;t t | |
9042 | s,@host@,$host,;t t | |
9043 | s,@host_cpu@,$host_cpu,;t t | |
9044 | s,@host_vendor@,$host_vendor,;t t | |
9045 | s,@host_os@,$host_os,;t t | |
9046 | s,@LN_S@,$LN_S,;t t | |
9047 | s,@ECHO@,$ECHO,;t t | |
9048 | s,@RANLIB@,$RANLIB,;t t | |
9049 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9050 | s,@STRIP@,$STRIP,;t t | |
9051 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
9052 | s,@CPP@,$CPP,;t t | |
9053 | s,@LIBTOOL@,$LIBTOOL,;t t | |
9054 | s,@LIBGC@,$LIBGC,;t t | |
9055 | CEOF | |
9056 | ||
9057 | _ACEOF | |
9058 | ||
9059 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9060 | # Split the substitutions into bite-sized pieces for seds with | |
9061 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9062 | ac_max_sed_lines=48 | |
9063 | ac_sed_frag=1 # Number of current file. | |
9064 | ac_beg=1 # First line for current file. | |
9065 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
9066 | ac_more_lines=: | |
9067 | ac_sed_cmds= | |
9068 | while $ac_more_lines; do | |
9069 | if test $ac_beg -gt 1; then | |
9070 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9071 | else | |
9072 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9073 | fi | |
9074 | if test ! -s $tmp/subs.frag; then | |
9075 | ac_more_lines=false | |
9076 | else | |
9077 | # The purpose of the label and of the branching condition is to | |
9078 | # speed up the sed processing (if there are no `@' at all, there | |
9079 | # is no need to browse any of the substitutions). | |
9080 | # These are the two extra sed commands mentioned above. | |
9081 | (echo ':t | |
9082 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9083 | if test -z "$ac_sed_cmds"; then | |
9084 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9085 | else | |
9086 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9087 | fi | |
9088 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9089 | ac_beg=$ac_end | |
9090 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9091 | fi | |
9092 | done | |
9093 | if test -z "$ac_sed_cmds"; then | |
9094 | ac_sed_cmds=cat | |
9095 | fi | |
9096 | fi # test -n "$CONFIG_FILES" | |
9097 | ||
9098 | _ACEOF | |
9099 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9100 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
9101 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9102 | case $ac_file in | |
9103 | - | *:- | *:-:* ) # input from stdin | |
9104 | cat >$tmp/stdin | |
9105 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9106 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9107 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9108 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9109 | * ) ac_file_in=$ac_file.in ;; | |
9110 | esac | |
9111 | ||
9112 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
9113 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9114 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9115 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9116 | X"$ac_file" : 'X\(//\)$' \| \ | |
9117 | X"$ac_file" : 'X\(/\)' \| \ | |
9118 | . : '\(.\)' 2>/dev/null || | |
9119 | echo X"$ac_file" | | |
9120 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9121 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9122 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9123 | /^X\(\/\).*/{ s//\1/; q; } | |
9124 | s/.*/./; q'` | |
9125 | { case "$ac_dir" in | |
9126 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
9127 | *) as_incr_dir=.;; | |
9128 | esac | |
9129 | as_dummy="$ac_dir" | |
9130 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
9131 | case $as_mkdir_dir in | |
9132 | # Skip DOS drivespec | |
9133 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
9134 | *) | |
9135 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
9136 | test -d "$as_incr_dir" || | |
9137 | mkdir "$as_incr_dir" || | |
9138 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
9139 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
9140 | { (exit 1); exit 1; }; } | |
9141 | ;; | |
9142 | esac | |
9143 | done; } | |
9144 | ||
9145 | ac_builddir=. | |
9146 | ||
9147 | if test "$ac_dir" != .; then | |
9148 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9149 | # A "../" for each directory in $ac_dir_suffix. | |
9150 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9151 | else | |
9152 | ac_dir_suffix= ac_top_builddir= | |
9153 | fi | |
9154 | ||
9155 | case $srcdir in | |
9156 | .) # No --srcdir option. We are building in place. | |
9157 | ac_srcdir=. | |
9158 | if test -z "$ac_top_builddir"; then | |
9159 | ac_top_srcdir=. | |
9160 | else | |
9161 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9162 | fi ;; | |
9163 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9164 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9165 | ac_top_srcdir=$srcdir ;; | |
9166 | *) # Relative path. | |
9167 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9168 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9169 | esac | |
9170 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
9171 | # absolute. | |
9172 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
9173 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
9174 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
9175 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
9176 | ||
9177 | ||
9178 | case $INSTALL in | |
9179 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9180 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
9181 | esac | |
9182 | ||
9183 | if test x"$ac_file" != x-; then | |
9184 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9185 | echo "$as_me: creating $ac_file" >&6;} | |
9186 | rm -f "$ac_file" | |
9187 | fi | |
9188 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9189 | # use $as_me), people would be surprised to read: | |
9190 | # /* config.h. Generated by config.status. */ | |
9191 | if test x"$ac_file" = x-; then | |
9192 | configure_input= | |
9193 | else | |
9194 | configure_input="$ac_file. " | |
9195 | fi | |
9196 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
9197 | sed 's,.*/,,'` by configure." | |
9198 | ||
9199 | # First look for the input files in the build tree, otherwise in the | |
9200 | # src tree. | |
9201 | ac_file_inputs=`IFS=: | |
9202 | for f in $ac_file_in; do | |
9203 | case $f in | |
9204 | -) echo $tmp/stdin ;; | |
9205 | [\\/$]*) | |
9206 | # Absolute (can't be DOS-style, as IFS=:) | |
9207 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9208 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9209 | { (exit 1); exit 1; }; } | |
9210 | echo $f;; | |
9211 | *) # Relative | |
9212 | if test -f "$f"; then | |
9213 | # Build tree | |
9214 | echo $f | |
9215 | elif test -f "$srcdir/$f"; then | |
9216 | # Source tree | |
9217 | echo $srcdir/$f | |
9218 | else | |
9219 | # /dev/null tree | |
9220 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9221 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9222 | { (exit 1); exit 1; }; } | |
9223 | fi;; | |
9224 | esac | |
9225 | done` || { (exit 1); exit 1; } | |
9226 | _ACEOF | |
9227 | cat >>$CONFIG_STATUS <<_ACEOF | |
9228 | sed "$ac_vpsub | |
9229 | $extrasub | |
9230 | _ACEOF | |
9231 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9232 | :t | |
9233 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9234 | s,@configure_input@,$configure_input,;t t | |
9235 | s,@srcdir@,$ac_srcdir,;t t | |
9236 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
9237 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9238 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
9239 | s,@builddir@,$ac_builddir,;t t | |
9240 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
9241 | s,@top_builddir@,$ac_top_builddir,;t t | |
9242 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9243 | s,@INSTALL@,$ac_INSTALL,;t t | |
9244 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9245 | rm -f $tmp/stdin | |
9246 | if test x"$ac_file" != x-; then | |
9247 | mv $tmp/out $ac_file | |
9248 | else | |
9249 | cat $tmp/out | |
9250 | rm -f $tmp/out | |
9251 | fi | |
9252 | ||
9253 | done | |
9254 | _ACEOF | |
9255 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9256 | ||
9257 | # | |
9258 | # CONFIG_HEADER section. | |
9259 | # | |
9260 | ||
9261 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9262 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9263 | # | |
9264 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9265 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9266 | ac_dB='[ ].*$,\1#\2' | |
9267 | ac_dC=' ' | |
9268 | ac_dD=',;t' | |
9269 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9270 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9271 | ac_uB='$,\1#\2define\3' | |
9272 | ac_uC=' ' | |
9273 | ac_uD=',;t' | |
9274 | ||
9275 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
9276 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9277 | case $ac_file in | |
9278 | - | *:- | *:-:* ) # input from stdin | |
9279 | cat >$tmp/stdin | |
9280 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9281 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9282 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9283 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9284 | * ) ac_file_in=$ac_file.in ;; | |
9285 | esac | |
9286 | ||
9287 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9288 | echo "$as_me: creating $ac_file" >&6;} | |
9289 | ||
9290 | # First look for the input files in the build tree, otherwise in the | |
9291 | # src tree. | |
9292 | ac_file_inputs=`IFS=: | |
9293 | for f in $ac_file_in; do | |
9294 | case $f in | |
9295 | -) echo $tmp/stdin ;; | |
9296 | [\\/$]*) | |
9297 | # Absolute (can't be DOS-style, as IFS=:) | |
9298 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9299 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9300 | { (exit 1); exit 1; }; } | |
9301 | echo $f;; | |
9302 | *) # Relative | |
9303 | if test -f "$f"; then | |
9304 | # Build tree | |
9305 | echo $f | |
9306 | elif test -f "$srcdir/$f"; then | |
9307 | # Source tree | |
9308 | echo $srcdir/$f | |
9309 | else | |
9310 | # /dev/null tree | |
9311 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9312 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9313 | { (exit 1); exit 1; }; } | |
9314 | fi;; | |
9315 | esac | |
9316 | done` || { (exit 1); exit 1; } | |
9317 | # Remove the trailing spaces. | |
9318 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9319 | ||
9320 | _ACEOF | |
9321 | ||
9322 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9323 | # `conftest.undefs', that substitutes the proper values into | |
9324 | # config.h.in to produce config.h. The first handles `#define' | |
9325 | # templates, and the second `#undef' templates. | |
9326 | # And first: Protect against being on the right side of a sed subst in | |
9327 | # config.status. Protect against being in an unquoted here document | |
9328 | # in config.status. | |
9329 | rm -f conftest.defines conftest.undefs | |
9330 | # Using a here document instead of a string reduces the quoting nightmare. | |
9331 | # Putting comments in sed scripts is not portable. | |
9332 | # | |
9333 | # `end' is used to avoid that the second main sed command (meant for | |
9334 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9335 | # See the Autoconf documentation for `clear'. | |
9336 | cat >confdef2sed.sed <<\_ACEOF | |
9337 | s/[\\&,]/\\&/g | |
9338 | s,[\\$`],\\&,g | |
9339 | t clear | |
9340 | : clear | |
9341 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9342 | t end | |
9343 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9344 | : end | |
9345 | _ACEOF | |
9346 | # If some macros were called several times there might be several times | |
9347 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9348 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9349 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9350 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9351 | rm -f confdef2sed.sed | |
9352 | ||
9353 | # This sed command replaces #undef with comments. This is necessary, for | |
9354 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9355 | # on some systems where configure will not decide to define it. | |
9356 | cat >>conftest.undefs <<\_ACEOF | |
9357 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9358 | _ACEOF | |
9359 | ||
9360 | # Break up conftest.defines because some shells have a limit on the size | |
9361 | # of here documents, and old seds have small limits too (100 cmds). | |
9362 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9363 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9364 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9365 | echo ' :' >>$CONFIG_STATUS | |
9366 | rm -f conftest.tail | |
9367 | while grep . conftest.defines >/dev/null | |
9368 | do | |
9369 | # Write a limited-size here document to $tmp/defines.sed. | |
9370 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9371 | # Speed up: don't consider the non `#define' lines. | |
9372 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9373 | # Work around the forget-to-reset-the-flag bug. | |
9374 | echo 't clr' >>$CONFIG_STATUS | |
9375 | echo ': clr' >>$CONFIG_STATUS | |
9376 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9377 | echo 'CEOF | |
9378 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9379 | rm -f $tmp/in | |
9380 | mv $tmp/out $tmp/in | |
9381 | ' >>$CONFIG_STATUS | |
9382 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9383 | rm -f conftest.defines | |
9384 | mv conftest.tail conftest.defines | |
9385 | done | |
9386 | rm -f conftest.defines | |
9387 | echo ' fi # egrep' >>$CONFIG_STATUS | |
9388 | echo >>$CONFIG_STATUS | |
9389 | ||
9390 | # Break up conftest.undefs because some shells have a limit on the size | |
9391 | # of here documents, and old seds have small limits too (100 cmds). | |
9392 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
9393 | rm -f conftest.tail | |
9394 | while grep . conftest.undefs >/dev/null | |
9395 | do | |
9396 | # Write a limited-size here document to $tmp/undefs.sed. | |
9397 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9398 | # Speed up: don't consider the non `#undef' | |
9399 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9400 | # Work around the forget-to-reset-the-flag bug. | |
9401 | echo 't clr' >>$CONFIG_STATUS | |
9402 | echo ': clr' >>$CONFIG_STATUS | |
9403 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
9404 | echo 'CEOF | |
9405 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
9406 | rm -f $tmp/in | |
9407 | mv $tmp/out $tmp/in | |
9408 | ' >>$CONFIG_STATUS | |
9409 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9410 | rm -f conftest.undefs | |
9411 | mv conftest.tail conftest.undefs | |
9412 | done | |
9413 | rm -f conftest.undefs | |
9414 | ||
9415 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9416 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9417 | # use $as_me), people would be surprised to read: | |
9418 | # /* config.h. Generated by config.status. */ | |
9419 | if test x"$ac_file" = x-; then | |
9420 | echo "/* Generated by configure. */" >$tmp/config.h | |
9421 | else | |
9422 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
9423 | fi | |
9424 | cat $tmp/in >>$tmp/config.h | |
9425 | rm -f $tmp/in | |
9426 | if test x"$ac_file" != x-; then | |
9427 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
9428 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9429 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9430 | else | |
9431 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9432 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9433 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9434 | X"$ac_file" : 'X\(//\)$' \| \ | |
9435 | X"$ac_file" : 'X\(/\)' \| \ | |
9436 | . : '\(.\)' 2>/dev/null || | |
9437 | echo X"$ac_file" | | |
9438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9439 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9440 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9441 | /^X\(\/\).*/{ s//\1/; q; } | |
9442 | s/.*/./; q'` | |
9443 | { case "$ac_dir" in | |
9444 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
9445 | *) as_incr_dir=.;; | |
9446 | esac | |
9447 | as_dummy="$ac_dir" | |
9448 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
9449 | case $as_mkdir_dir in | |
9450 | # Skip DOS drivespec | |
9451 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
9452 | *) | |
9453 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
9454 | test -d "$as_incr_dir" || | |
9455 | mkdir "$as_incr_dir" || | |
9456 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
9457 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
9458 | { (exit 1); exit 1; }; } | |
9459 | ;; | |
9460 | esac | |
9461 | done; } | |
9462 | ||
9463 | rm -f $ac_file | |
9464 | mv $tmp/config.h $ac_file | |
9465 | fi | |
9466 | else | |
9467 | cat $tmp/config.h | |
9468 | rm -f $tmp/config.h | |
9469 | fi | |
9470 | # Run the commands associated with the file. | |
9471 | case $ac_file in | |
9472 | config.h ) # update the timestamp | |
9473 | echo timestamp >"./stamp-h1" | |
9474 | ;; | |
9475 | esac | |
9476 | done | |
9477 | _ACEOF | |
9478 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9479 | ||
9480 | # | |
9481 | # CONFIG_COMMANDS section. | |
9482 | # | |
9483 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9484 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9485 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9486 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
9487 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9488 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9489 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9490 | X"$ac_dest" : 'X\(/\)' \| \ | |
9491 | . : '\(.\)' 2>/dev/null || | |
9492 | echo X"$ac_dest" | | |
9493 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9494 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9495 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9496 | /^X\(\/\).*/{ s//\1/; q; } | |
9497 | s/.*/./; q'` | |
9498 | ac_builddir=. | |
9499 | ||
9500 | if test "$ac_dir" != .; then | |
9501 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9502 | # A "../" for each directory in $ac_dir_suffix. | |
9503 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9504 | else | |
9505 | ac_dir_suffix= ac_top_builddir= | |
9506 | fi | |
9507 | ||
9508 | case $srcdir in | |
9509 | .) # No --srcdir option. We are building in place. | |
9510 | ac_srcdir=. | |
9511 | if test -z "$ac_top_builddir"; then | |
9512 | ac_top_srcdir=. | |
9513 | else | |
9514 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9515 | fi ;; | |
9516 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9517 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9518 | ac_top_srcdir=$srcdir ;; | |
9519 | *) # Relative path. | |
9520 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9521 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9522 | esac | |
9523 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
9524 | # absolute. | |
9525 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
9526 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
9527 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
9528 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
9529 | ||
9530 | ||
9531 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
9532 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9533 | case $ac_dest in | |
9534 | default-1 ) | |
9535 | test x"$AMDEP_TRUE" != x"" || | |
9536 | for mf in $CONFIG_FILES; do | |
9537 | case "$mf" in | |
9538 | Makefile) dirpart=.;; | |
9539 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; | |
9540 | *) continue;; | |
9541 | esac | |
9542 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
9543 | # Extract the definition of DEP_FILES from the Makefile without | |
9544 | # running `make'. | |
9545 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
9546 | test -z "$DEPDIR" && continue | |
9547 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9548 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
9549 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
9550 | # We invoke sed twice because it is the simplest approach to | |
9551 | # changing $(DEPDIR) to its actual value in the expansion. | |
9552 | for file in `sed -n -e ' | |
9553 | /^DEP_FILES = .*\\\\$/ { | |
9554 | s/^DEP_FILES = // | |
9555 | :loop | |
9556 | s/\\\\$// | |
9557 | p | |
9558 | n | |
9559 | /\\\\$/ b loop | |
9560 | p | |
9561 | } | |
9562 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
9563 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9564 | # Make sure the directory exists. | |
9565 | test -f "$dirpart/$file" && continue | |
9566 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` | |
9567 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 | |
9568 | # echo "creating $dirpart/$file" | |
9569 | echo '# dummy' > "$dirpart/$file" | |
9570 | done | |
9571 | done | |
9572 | ;; | |
9573 | esac | |
9574 | done | |
9575 | _ACEOF | |
9576 | ||
9577 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9578 | ||
9579 | { (exit 0); exit 0; } | |
9580 | _ACEOF | |
9581 | chmod +x $CONFIG_STATUS | |
9582 | ac_clean_files=$ac_clean_files_save | |
9583 | ||
9584 | ||
9585 | # configure is writing to config.log, and then calls config.status. | |
9586 | # config.status does its own redirection, appending to config.log. | |
9587 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9588 | # by configure, so config.status won't be able to write to it; its | |
9589 | # output is simply discarded. So we exec the FD to /dev/null, | |
9590 | # effectively closing config.log, so it can be properly (re)opened and | |
9591 | # appended to by config.status. When coming back to configure, we | |
9592 | # need to make the FD available again. | |
9593 | if test "$no_create" != yes; then | |
9594 | ac_cs_success=: | |
9595 | exec 5>/dev/null | |
9596 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
9597 | exec 5>>config.log | |
9598 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9599 | # would make configure fail if this is the last instruction. | |
9600 | $ac_cs_success || { (exit 1); exit 1; } | |
9601 | fi | |
9602 |