diff options
author | Jay Threeth | 2011-04-04 11:48:26 -0700 |
---|---|---|
committer | Jay Threeth | 2011-04-04 11:48:26 -0700 |
commit | 3c9cc506f741b980565ff5b3b001cd8b6ee36b12 (patch) | |
tree | cb862c57b3d5f74177cde3bd962a53fc377166f6 /linden/indra/libgpg-error/libgpg-error-1.0/configure | |
parent | build fixes, might build on linux now (diff) | |
download | meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.zip meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.gz meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.bz2 meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.xz |
add source to libraries, and cruft for building under windows
Diffstat (limited to 'linden/indra/libgpg-error/libgpg-error-1.0/configure')
-rwxr-xr-x | linden/indra/libgpg-error/libgpg-error-1.0/configure | 12225 |
1 files changed, 12225 insertions, 0 deletions
diff --git a/linden/indra/libgpg-error/libgpg-error-1.0/configure b/linden/indra/libgpg-error/libgpg-error-1.0/configure new file mode 100755 index 0000000..35f51a3 --- /dev/null +++ b/linden/indra/libgpg-error/libgpg-error-1.0/configure | |||
@@ -0,0 +1,12225 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.59 for libgpg-error 1.0. | ||
4 | # | ||
5 | # Report bugs to <bug-gnupg@gnupg.org>. | ||
6 | # | ||
7 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
8 | # This configure script is free software; the Free Software Foundation | ||
9 | # gives unlimited permission to copy, distribute and modify it. | ||
10 | ## --------------------- ## | ||
11 | ## M4sh Initialization. ## | ||
12 | ## --------------------- ## | ||
13 | |||
14 | # Be Bourne compatible | ||
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16 | emulate sh | ||
17 | NULLCMD=: | ||
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
19 | # is contrary to our usage. Disable this feature. | ||
20 | alias -g '${1+"$@"}'='"$@"' | ||
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
22 | set -o posix | ||
23 | fi | ||
24 | DUALCASE=1; export DUALCASE # for MKS sh | ||
25 | |||
26 | # Support unset when possible. | ||
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
28 | as_unset=unset | ||
29 | else | ||
30 | as_unset=false | ||
31 | fi | ||
32 | |||
33 | |||
34 | # Work around bugs in pre-3.0 UWIN ksh. | ||
35 | $as_unset ENV MAIL MAILPATH | ||
36 | PS1='$ ' | ||
37 | PS2='> ' | ||
38 | PS4='+ ' | ||
39 | |||
40 | # NLS nuisances. | ||
41 | for as_var in \ | ||
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
44 | LC_TELEPHONE LC_TIME | ||
45 | do | ||
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
47 | eval $as_var=C; export $as_var | ||
48 | else | ||
49 | $as_unset $as_var | ||
50 | fi | ||
51 | done | ||
52 | |||
53 | # Required to use basename. | ||
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
55 | as_expr=expr | ||
56 | else | ||
57 | as_expr=false | ||
58 | fi | ||
59 | |||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
61 | as_basename=basename | ||
62 | else | ||
63 | as_basename=false | ||
64 | fi | ||
65 | |||
66 | |||
67 | # Name of the executable. | ||
68 | as_me=`$as_basename "$0" || | ||
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
70 | X"$0" : 'X\(//\)$' \| \ | ||
71 | X"$0" : 'X\(/\)$' \| \ | ||
72 | . : '\(.\)' 2>/dev/null || | ||
73 | echo X/"$0" | | ||
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
76 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
77 | s/.*/./; q'` | ||
78 | |||
79 | |||
80 | # PATH needs CR, and LINENO needs CR and PATH. | ||
81 | # Avoid depending upon Character Ranges. | ||
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
85 | as_cr_digits='0123456789' | ||
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
87 | |||
88 | # The user is always right. | ||
89 | if test "${PATH_SEPARATOR+set}" != set; then | ||
90 | echo "#! /bin/sh" >conf$$.sh | ||
91 | echo "exit 0" >>conf$$.sh | ||
92 | chmod +x conf$$.sh | ||
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
94 | PATH_SEPARATOR=';' | ||
95 | else | ||
96 | PATH_SEPARATOR=: | ||
97 | fi | ||
98 | rm -f conf$$.sh | ||
99 | fi | ||
100 | |||
101 | |||
102 | as_lineno_1=$LINENO | ||
103 | as_lineno_2=$LINENO | ||
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
105 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
107 | # Find who we are. Look in the path if we contain no path at all | ||
108 | # relative or not. | ||
109 | case $0 in | ||
110 | *[\\/]* ) as_myself=$0 ;; | ||
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
112 | for as_dir in $PATH | ||
113 | do | ||
114 | IFS=$as_save_IFS | ||
115 | test -z "$as_dir" && as_dir=. | ||
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
117 | done | ||
118 | |||
119 | ;; | ||
120 | esac | ||
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
122 | # in which case we are not to be found in the path. | ||
123 | if test "x$as_myself" = x; then | ||
124 | as_myself=$0 | ||
125 | fi | ||
126 | if test ! -f "$as_myself"; then | ||
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
128 | { (exit 1); exit 1; }; } | ||
129 | fi | ||
130 | case $CONFIG_SHELL in | ||
131 | '') | ||
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
134 | do | ||
135 | IFS=$as_save_IFS | ||
136 | test -z "$as_dir" && as_dir=. | ||
137 | for as_base in sh bash ksh sh5; do | ||
138 | case $as_dir in | ||
139 | /*) | ||
140 | if ("$as_dir/$as_base" -c ' | ||
141 | as_lineno_1=$LINENO | ||
142 | as_lineno_2=$LINENO | ||
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
144 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
148 | CONFIG_SHELL=$as_dir/$as_base | ||
149 | export CONFIG_SHELL | ||
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
151 | fi;; | ||
152 | esac | ||
153 | done | ||
154 | done | ||
155 | ;; | ||
156 | esac | ||
157 | |||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
159 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
160 | # line-number line before each line; the second 'sed' does the real | ||
161 | # work. The second script uses 'N' to pair each line-number line | ||
162 | # with the numbered line, and appends trailing '-' during | ||
163 | # substitution so that $LINENO is not a special case at line end. | ||
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
166 | sed '=' <$as_myself | | ||
167 | sed ' | ||
168 | N | ||
169 | s,$,-, | ||
170 | : loop | ||
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
172 | t loop | ||
173 | s,-$,, | ||
174 | s,^['$as_cr_digits']*\n,, | ||
175 | ' >$as_me.lineno && | ||
176 | chmod +x $as_me.lineno || | ||
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
178 | { (exit 1); exit 1; }; } | ||
179 | |||
180 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
181 | # (the dirname of $[0] is not the place where we might find the | ||
182 | # original and so on. Autoconf is especially sensible to this). | ||
183 | . ./$as_me.lineno | ||
184 | # Exit status is that of the last command. | ||
185 | exit | ||
186 | } | ||
187 | |||
188 | |||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
190 | *c*,-n*) ECHO_N= ECHO_C=' | ||
191 | ' ECHO_T=' ' ;; | ||
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
194 | esac | ||
195 | |||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
197 | as_expr=expr | ||
198 | else | ||
199 | as_expr=false | ||
200 | fi | ||
201 | |||
202 | rm -f conf$$ conf$$.exe conf$$.file | ||
203 | echo >conf$$.file | ||
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
205 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
207 | if test -f conf$$.exe; then | ||
208 | # Don't use ln at all; we don't have any links | ||
209 | as_ln_s='cp -p' | ||
210 | else | ||
211 | as_ln_s='ln -s' | ||
212 | fi | ||
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
214 | as_ln_s=ln | ||
215 | else | ||
216 | as_ln_s='cp -p' | ||
217 | fi | ||
218 | rm -f conf$$ conf$$.exe conf$$.file | ||
219 | |||
220 | if mkdir -p . 2>/dev/null; then | ||
221 | as_mkdir_p=: | ||
222 | else | ||
223 | test -d ./-p && rmdir ./-p | ||
224 | as_mkdir_p=false | ||
225 | fi | ||
226 | |||
227 | as_executable_p="test -f" | ||
228 | |||
229 | # Sed expression to map a string onto a valid CPP name. | ||
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
231 | |||
232 | # Sed expression to map a string onto a valid variable name. | ||
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
234 | |||
235 | |||
236 | # IFS | ||
237 | # We need space, tab and new line, in precisely that order. | ||
238 | as_nl=' | ||
239 | ' | ||
240 | IFS=" $as_nl" | ||
241 | |||
242 | # CDPATH. | ||
243 | $as_unset CDPATH | ||
244 | |||
245 | |||
246 | # Find the correct PATH separator. Usually this is `:', but | ||
247 | # DJGPP uses `;' like DOS. | ||
248 | if test "X${PATH_SEPARATOR+set}" != Xset; then | ||
249 | UNAME=${UNAME-`uname 2>/dev/null`} | ||
250 | case X$UNAME in | ||
251 | *-DOS) lt_cv_sys_path_separator=';' ;; | ||
252 | *) lt_cv_sys_path_separator=':' ;; | ||
253 | esac | ||
254 | PATH_SEPARATOR=$lt_cv_sys_path_separator | ||
255 | fi | ||
256 | |||
257 | |||
258 | # Check that we are running under the correct shell. | ||
259 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
260 | |||
261 | case X$ECHO in | ||
262 | X*--fallback-echo) | ||
263 | # Remove one level of quotation (which was required for Make). | ||
264 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
265 | ;; | ||
266 | esac | ||
267 | |||
268 | echo=${ECHO-echo} | ||
269 | if test "X$1" = X--no-reexec; then | ||
270 | # Discard the --no-reexec flag, and continue. | ||
271 | shift | ||
272 | elif test "X$1" = X--fallback-echo; then | ||
273 | # Avoid inline document here, it may be left over | ||
274 | : | ||
275 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | ||
276 | # Yippee, $echo works! | ||
277 | : | ||
278 | else | ||
279 | # Restart under the correct shell. | ||
280 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
281 | fi | ||
282 | |||
283 | if test "X$1" = X--fallback-echo; then | ||
284 | # used as fallback echo | ||
285 | shift | ||
286 | cat <<EOF | ||
287 | |||
288 | EOF | ||
289 | exit 0 | ||
290 | fi | ||
291 | |||
292 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
293 | # if CDPATH is set. | ||
294 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | ||
295 | |||
296 | if test -z "$ECHO"; then | ||
297 | if test "X${echo_test_string+set}" != Xset; then | ||
298 | # find a string as large as possible, as long as the shell can cope with it | ||
299 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
300 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
301 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | ||
302 | echo_test_string="`eval $cmd`" && | ||
303 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
304 | then | ||
305 | break | ||
306 | fi | ||
307 | done | ||
308 | fi | ||
309 | |||
310 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
311 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
312 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
313 | : | ||
314 | else | ||
315 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
316 | # backslashes. This makes it impossible to quote backslashes using | ||
317 | # echo "$something" | sed 's/\\/\\\\/g' | ||
318 | # | ||
319 | # So, first we look for a working echo in the user's PATH. | ||
320 | |||
321 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
322 | for dir in $PATH /usr/ucb; do | ||
323 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
324 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
325 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
326 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
327 | echo="$dir/echo" | ||
328 | break | ||
329 | fi | ||
330 | done | ||
331 | IFS="$save_ifs" | ||
332 | |||
333 | if test "X$echo" = Xecho; then | ||
334 | # We didn't find a better echo, so look for alternatives. | ||
335 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
336 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
337 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
338 | # This shell has a builtin print -r that does the trick. | ||
339 | echo='print -r' | ||
340 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
341 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
342 | # If we have ksh, try running configure again with it. | ||
343 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
344 | export ORIGINAL_CONFIG_SHELL | ||
345 | CONFIG_SHELL=/bin/ksh | ||
346 | export CONFIG_SHELL | ||
347 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
348 | else | ||
349 | # Try using printf. | ||
350 | echo='printf %s\n' | ||
351 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
352 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
353 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
354 | # Cool, printf works | ||
355 | : | ||
356 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
357 | test "X$echo_testing_string" = 'X\t' && | ||
358 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
359 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
360 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
361 | export CONFIG_SHELL | ||
362 | SHELL="$CONFIG_SHELL" | ||
363 | export SHELL | ||
364 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
365 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
366 | test "X$echo_testing_string" = 'X\t' && | ||
367 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
368 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
369 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
370 | else | ||
371 | # maybe with a smaller string... | ||
372 | prev=: | ||
373 | |||
374 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
375 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
376 | then | ||
377 | break | ||
378 | fi | ||
379 | prev="$cmd" | ||
380 | done | ||
381 | |||
382 | if test "$prev" != 'sed 50q "$0"'; then | ||
383 | echo_test_string=`eval $prev` | ||
384 | export echo_test_string | ||
385 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
386 | else | ||
387 | # Oops. We lost completely, so just stick with echo. | ||
388 | echo=echo | ||
389 | fi | ||
390 | fi | ||
391 | fi | ||
392 | fi | ||
393 | fi | ||
394 | fi | ||
395 | |||
396 | # Copy echo and quote the copy suitably for passing to libtool from | ||
397 | # the Makefile, instead of quoting the original, which is used later. | ||
398 | ECHO=$echo | ||
399 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
400 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
401 | fi | ||
402 | |||
403 | |||
404 | |||
405 | # Name of the host. | ||
406 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
407 | # so uname gets run too. | ||
408 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
409 | |||
410 | exec 6>&1 | ||
411 | |||
412 | # | ||
413 | # Initializations. | ||
414 | # | ||
415 | ac_default_prefix=/usr/local | ||
416 | ac_config_libobj_dir=. | ||
417 | cross_compiling=no | ||
418 | subdirs= | ||
419 | MFLAGS= | ||
420 | MAKEFLAGS= | ||
421 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
422 | |||
423 | # Maximum number of lines to put in a shell here document. | ||
424 | # This variable seems obsolete. It should probably be removed, and | ||
425 | # only ac_max_sed_lines should be used. | ||
426 | : ${ac_max_here_lines=38} | ||
427 | |||
428 | # Identity of this package. | ||
429 | PACKAGE_NAME='libgpg-error' | ||
430 | PACKAGE_TARNAME='libgpg-error' | ||
431 | PACKAGE_VERSION='1.0' | ||
432 | PACKAGE_STRING='libgpg-error 1.0' | ||
433 | PACKAGE_BUGREPORT='bug-gnupg@gnupg.org' | ||
434 | |||
435 | ac_unique_file="src/err-sources.h.in" | ||
436 | # Factoring default headers for most tests. | ||
437 | ac_includes_default="\ | ||
438 | #include <stdio.h> | ||
439 | #if HAVE_SYS_TYPES_H | ||
440 | # include <sys/types.h> | ||
441 | #endif | ||
442 | #if HAVE_SYS_STAT_H | ||
443 | # include <sys/stat.h> | ||
444 | #endif | ||
445 | #if STDC_HEADERS | ||
446 | # include <stdlib.h> | ||
447 | # include <stddef.h> | ||
448 | #else | ||
449 | # if HAVE_STDLIB_H | ||
450 | # include <stdlib.h> | ||
451 | # endif | ||
452 | #endif | ||
453 | #if HAVE_STRING_H | ||
454 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
455 | # include <memory.h> | ||
456 | # endif | ||
457 | # include <string.h> | ||
458 | #endif | ||
459 | #if HAVE_STRINGS_H | ||
460 | # include <strings.h> | ||
461 | #endif | ||
462 | #if HAVE_INTTYPES_H | ||
463 | # include <inttypes.h> | ||
464 | #else | ||
465 | # if HAVE_STDINT_H | ||
466 | # include <stdint.h> | ||
467 | # endif | ||
468 | #endif | ||
469 | #if HAVE_UNISTD_H | ||
470 | # include <unistd.h> | ||
471 | #endif" | ||
472 | |||
473 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBGPG_ERROR_LT_CURRENT LIBGPG_ERROR_LT_AGE LIBGPG_ERROR_LT_REVISION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB EGREP LIBTOOL CC_FOR_BUILD MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GPG_ERROR_CONFIG_LIBS GPG_ERROR_CONFIG_CFLAGS LIBOBJS LTLIBOBJS' | ||
474 | ac_subst_files='' | ||
475 | |||
476 | # Initialize some variables set by options. | ||
477 | ac_init_help= | ||
478 | ac_init_version=false | ||
479 | # The variables have the same names as the options, with | ||
480 | # dashes changed to underlines. | ||
481 | cache_file=/dev/null | ||
482 | exec_prefix=NONE | ||
483 | no_create= | ||
484 | no_recursion= | ||
485 | prefix=NONE | ||
486 | program_prefix=NONE | ||
487 | program_suffix=NONE | ||
488 | program_transform_name=s,x,x, | ||
489 | silent= | ||
490 | site= | ||
491 | srcdir= | ||
492 | verbose= | ||
493 | x_includes=NONE | ||
494 | x_libraries=NONE | ||
495 | |||
496 | # Installation directory options. | ||
497 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
498 | # and all the variables that are supposed to be based on exec_prefix | ||
499 | # by default will actually change. | ||
500 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
501 | bindir='${exec_prefix}/bin' | ||
502 | sbindir='${exec_prefix}/sbin' | ||
503 | libexecdir='${exec_prefix}/libexec' | ||
504 | datadir='${prefix}/share' | ||
505 | sysconfdir='${prefix}/etc' | ||
506 | sharedstatedir='${prefix}/com' | ||
507 | localstatedir='${prefix}/var' | ||
508 | libdir='${exec_prefix}/lib' | ||
509 | includedir='${prefix}/include' | ||
510 | oldincludedir='/usr/include' | ||
511 | infodir='${prefix}/info' | ||
512 | mandir='${prefix}/man' | ||
513 | |||
514 | ac_prev= | ||
515 | for ac_option | ||
516 | do | ||
517 | # If the previous option needs an argument, assign it. | ||
518 | if test -n "$ac_prev"; then | ||
519 | eval "$ac_prev=\$ac_option" | ||
520 | ac_prev= | ||
521 | continue | ||
522 | fi | ||
523 | |||
524 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
525 | |||
526 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
527 | |||
528 | case $ac_option in | ||
529 | |||
530 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
531 | ac_prev=bindir ;; | ||
532 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
533 | bindir=$ac_optarg ;; | ||
534 | |||
535 | -build | --build | --buil | --bui | --bu) | ||
536 | ac_prev=build_alias ;; | ||
537 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
538 | build_alias=$ac_optarg ;; | ||
539 | |||
540 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
541 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
542 | ac_prev=cache_file ;; | ||
543 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
544 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
545 | cache_file=$ac_optarg ;; | ||
546 | |||
547 | --config-cache | -C) | ||
548 | cache_file=config.cache ;; | ||
549 | |||
550 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
551 | ac_prev=datadir ;; | ||
552 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
553 | | --da=*) | ||
554 | datadir=$ac_optarg ;; | ||
555 | |||
556 | -disable-* | --disable-*) | ||
557 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
558 | # Reject names that are not valid shell variable names. | ||
559 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
560 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
561 | { (exit 1); exit 1; }; } | ||
562 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
563 | eval "enable_$ac_feature=no" ;; | ||
564 | |||
565 | -enable-* | --enable-*) | ||
566 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
567 | # Reject names that are not valid shell variable names. | ||
568 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
569 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
570 | { (exit 1); exit 1; }; } | ||
571 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
572 | case $ac_option in | ||
573 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
574 | *) ac_optarg=yes ;; | ||
575 | esac | ||
576 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
577 | |||
578 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
579 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
580 | | --exec | --exe | --ex) | ||
581 | ac_prev=exec_prefix ;; | ||
582 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
583 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
584 | | --exec=* | --exe=* | --ex=*) | ||
585 | exec_prefix=$ac_optarg ;; | ||
586 | |||
587 | -gas | --gas | --ga | --g) | ||
588 | # Obsolete; use --with-gas. | ||
589 | with_gas=yes ;; | ||
590 | |||
591 | -help | --help | --hel | --he | -h) | ||
592 | ac_init_help=long ;; | ||
593 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
594 | ac_init_help=recursive ;; | ||
595 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
596 | ac_init_help=short ;; | ||
597 | |||
598 | -host | --host | --hos | --ho) | ||
599 | ac_prev=host_alias ;; | ||
600 | -host=* | --host=* | --hos=* | --ho=*) | ||
601 | host_alias=$ac_optarg ;; | ||
602 | |||
603 | -includedir | --includedir | --includedi | --included | --include \ | ||
604 | | --includ | --inclu | --incl | --inc) | ||
605 | ac_prev=includedir ;; | ||
606 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
607 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
608 | includedir=$ac_optarg ;; | ||
609 | |||
610 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
611 | ac_prev=infodir ;; | ||
612 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
613 | infodir=$ac_optarg ;; | ||
614 | |||
615 | -libdir | --libdir | --libdi | --libd) | ||
616 | ac_prev=libdir ;; | ||
617 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
618 | libdir=$ac_optarg ;; | ||
619 | |||
620 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
621 | | --libexe | --libex | --libe) | ||
622 | ac_prev=libexecdir ;; | ||
623 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
624 | | --libexe=* | --libex=* | --libe=*) | ||
625 | libexecdir=$ac_optarg ;; | ||
626 | |||
627 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
628 | | --localstate | --localstat | --localsta | --localst \ | ||
629 | | --locals | --local | --loca | --loc | --lo) | ||
630 | ac_prev=localstatedir ;; | ||
631 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
632 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
633 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
634 | localstatedir=$ac_optarg ;; | ||
635 | |||
636 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
637 | ac_prev=mandir ;; | ||
638 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
639 | mandir=$ac_optarg ;; | ||
640 | |||
641 | -nfp | --nfp | --nf) | ||
642 | # Obsolete; use --without-fp. | ||
643 | with_fp=no ;; | ||
644 | |||
645 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
646 | | --no-cr | --no-c | -n) | ||
647 | no_create=yes ;; | ||
648 | |||
649 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
650 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
651 | no_recursion=yes ;; | ||
652 | |||
653 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
654 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
655 | | --oldin | --oldi | --old | --ol | --o) | ||
656 | ac_prev=oldincludedir ;; | ||
657 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
658 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
659 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
660 | oldincludedir=$ac_optarg ;; | ||
661 | |||
662 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
663 | ac_prev=prefix ;; | ||
664 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
665 | prefix=$ac_optarg ;; | ||
666 | |||
667 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
668 | | --program-pre | --program-pr | --program-p) | ||
669 | ac_prev=program_prefix ;; | ||
670 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
671 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
672 | program_prefix=$ac_optarg ;; | ||
673 | |||
674 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
675 | | --program-suf | --program-su | --program-s) | ||
676 | ac_prev=program_suffix ;; | ||
677 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
678 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
679 | program_suffix=$ac_optarg ;; | ||
680 | |||
681 | -program-transform-name | --program-transform-name \ | ||
682 | | --program-transform-nam | --program-transform-na \ | ||
683 | | --program-transform-n | --program-transform- \ | ||
684 | | --program-transform | --program-transfor \ | ||
685 | | --program-transfo | --program-transf \ | ||
686 | | --program-trans | --program-tran \ | ||
687 | | --progr-tra | --program-tr | --program-t) | ||
688 | ac_prev=program_transform_name ;; | ||
689 | -program-transform-name=* | --program-transform-name=* \ | ||
690 | | --program-transform-nam=* | --program-transform-na=* \ | ||
691 | | --program-transform-n=* | --program-transform-=* \ | ||
692 | | --program-transform=* | --program-transfor=* \ | ||
693 | | --program-transfo=* | --program-transf=* \ | ||
694 | | --program-trans=* | --program-tran=* \ | ||
695 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
696 | program_transform_name=$ac_optarg ;; | ||
697 | |||
698 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
699 | | -silent | --silent | --silen | --sile | --sil) | ||
700 | silent=yes ;; | ||
701 | |||
702 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
703 | ac_prev=sbindir ;; | ||
704 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
705 | | --sbi=* | --sb=*) | ||
706 | sbindir=$ac_optarg ;; | ||
707 | |||
708 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
709 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
710 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
711 | | --sha | --sh) | ||
712 | ac_prev=sharedstatedir ;; | ||
713 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
714 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
715 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
716 | | --sha=* | --sh=*) | ||
717 | sharedstatedir=$ac_optarg ;; | ||
718 | |||
719 | -site | --site | --sit) | ||
720 | ac_prev=site ;; | ||
721 | -site=* | --site=* | --sit=*) | ||
722 | site=$ac_optarg ;; | ||
723 | |||
724 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
725 | ac_prev=srcdir ;; | ||
726 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
727 | srcdir=$ac_optarg ;; | ||
728 | |||
729 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
730 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
731 | ac_prev=sysconfdir ;; | ||
732 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
733 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
734 | sysconfdir=$ac_optarg ;; | ||
735 | |||
736 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
737 | ac_prev=target_alias ;; | ||
738 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
739 | target_alias=$ac_optarg ;; | ||
740 | |||
741 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
742 | verbose=yes ;; | ||
743 | |||
744 | -version | --version | --versio | --versi | --vers | -V) | ||
745 | ac_init_version=: ;; | ||
746 | |||
747 | -with-* | --with-*) | ||
748 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
749 | # Reject names that are not valid shell variable names. | ||
750 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
751 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
752 | { (exit 1); exit 1; }; } | ||
753 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
754 | case $ac_option in | ||
755 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
756 | *) ac_optarg=yes ;; | ||
757 | esac | ||
758 | eval "with_$ac_package='$ac_optarg'" ;; | ||
759 | |||
760 | -without-* | --without-*) | ||
761 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
762 | # Reject names that are not valid shell variable names. | ||
763 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
764 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
765 | { (exit 1); exit 1; }; } | ||
766 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
767 | eval "with_$ac_package=no" ;; | ||
768 | |||
769 | --x) | ||
770 | # Obsolete; use --with-x. | ||
771 | with_x=yes ;; | ||
772 | |||
773 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
774 | | --x-incl | --x-inc | --x-in | --x-i) | ||
775 | ac_prev=x_includes ;; | ||
776 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
777 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
778 | x_includes=$ac_optarg ;; | ||
779 | |||
780 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
781 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
782 | ac_prev=x_libraries ;; | ||
783 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
784 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
785 | x_libraries=$ac_optarg ;; | ||
786 | |||
787 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
788 | Try \`$0 --help' for more information." >&2 | ||
789 | { (exit 1); exit 1; }; } | ||
790 | ;; | ||
791 | |||
792 | *=*) | ||
793 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
794 | # Reject names that are not valid shell variable names. | ||
795 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
796 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
797 | { (exit 1); exit 1; }; } | ||
798 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
799 | eval "$ac_envvar='$ac_optarg'" | ||
800 | export $ac_envvar ;; | ||
801 | |||
802 | *) | ||
803 | # FIXME: should be removed in autoconf 3.0. | ||
804 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
805 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
806 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
807 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
808 | ;; | ||
809 | |||
810 | esac | ||
811 | done | ||
812 | |||
813 | if test -n "$ac_prev"; then | ||
814 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
815 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
816 | { (exit 1); exit 1; }; } | ||
817 | fi | ||
818 | |||
819 | # Be sure to have absolute paths. | ||
820 | for ac_var in exec_prefix prefix | ||
821 | do | ||
822 | eval ac_val=$`echo $ac_var` | ||
823 | case $ac_val in | ||
824 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
826 | { (exit 1); exit 1; }; };; | ||
827 | esac | ||
828 | done | ||
829 | |||
830 | # Be sure to have absolute paths. | ||
831 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
832 | localstatedir libdir includedir oldincludedir infodir mandir | ||
833 | do | ||
834 | eval ac_val=$`echo $ac_var` | ||
835 | case $ac_val in | ||
836 | [\\/$]* | ?:[\\/]* ) ;; | ||
837 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
838 | { (exit 1); exit 1; }; };; | ||
839 | esac | ||
840 | done | ||
841 | |||
842 | # There might be people who depend on the old broken behavior: `$host' | ||
843 | # used to hold the argument of --host etc. | ||
844 | # FIXME: To remove some day. | ||
845 | build=$build_alias | ||
846 | host=$host_alias | ||
847 | target=$target_alias | ||
848 | |||
849 | # FIXME: To remove some day. | ||
850 | if test "x$host_alias" != x; then | ||
851 | if test "x$build_alias" = x; then | ||
852 | cross_compiling=maybe | ||
853 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
854 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
855 | elif test "x$build_alias" != "x$host_alias"; then | ||
856 | cross_compiling=yes | ||
857 | fi | ||
858 | fi | ||
859 | |||
860 | ac_tool_prefix= | ||
861 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
862 | |||
863 | test "$silent" = yes && exec 6>/dev/null | ||
864 | |||
865 | |||
866 | # Find the source files, if location was not specified. | ||
867 | if test -z "$srcdir"; then | ||
868 | ac_srcdir_defaulted=yes | ||
869 | # Try the directory containing this script, then its parent. | ||
870 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
871 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
872 | X"$0" : 'X\(//\)[^/]' \| \ | ||
873 | X"$0" : 'X\(//\)$' \| \ | ||
874 | X"$0" : 'X\(/\)' \| \ | ||
875 | . : '\(.\)' 2>/dev/null || | ||
876 | echo X"$0" | | ||
877 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
878 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
879 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
880 | /^X\(\/\).*/{ s//\1/; q; } | ||
881 | s/.*/./; q'` | ||
882 | srcdir=$ac_confdir | ||
883 | if test ! -r $srcdir/$ac_unique_file; then | ||
884 | srcdir=.. | ||
885 | fi | ||
886 | else | ||
887 | ac_srcdir_defaulted=no | ||
888 | fi | ||
889 | if test ! -r $srcdir/$ac_unique_file; then | ||
890 | if test "$ac_srcdir_defaulted" = yes; then | ||
891 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
892 | { (exit 1); exit 1; }; } | ||
893 | else | ||
894 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
895 | { (exit 1); exit 1; }; } | ||
896 | fi | ||
897 | fi | ||
898 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
899 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
900 | { (exit 1); exit 1; }; } | ||
901 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
902 | ac_env_build_alias_set=${build_alias+set} | ||
903 | ac_env_build_alias_value=$build_alias | ||
904 | ac_cv_env_build_alias_set=${build_alias+set} | ||
905 | ac_cv_env_build_alias_value=$build_alias | ||
906 | ac_env_host_alias_set=${host_alias+set} | ||
907 | ac_env_host_alias_value=$host_alias | ||
908 | ac_cv_env_host_alias_set=${host_alias+set} | ||
909 | ac_cv_env_host_alias_value=$host_alias | ||
910 | ac_env_target_alias_set=${target_alias+set} | ||
911 | ac_env_target_alias_value=$target_alias | ||
912 | ac_cv_env_target_alias_set=${target_alias+set} | ||
913 | ac_cv_env_target_alias_value=$target_alias | ||
914 | ac_env_CC_set=${CC+set} | ||
915 | ac_env_CC_value=$CC | ||
916 | ac_cv_env_CC_set=${CC+set} | ||
917 | ac_cv_env_CC_value=$CC | ||
918 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
919 | ac_env_CFLAGS_value=$CFLAGS | ||
920 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
921 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
922 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
923 | ac_env_LDFLAGS_value=$LDFLAGS | ||
924 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
925 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
926 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
927 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
928 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
929 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
930 | ac_env_CPP_set=${CPP+set} | ||
931 | ac_env_CPP_value=$CPP | ||
932 | ac_cv_env_CPP_set=${CPP+set} | ||
933 | ac_cv_env_CPP_value=$CPP | ||
934 | ac_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set} | ||
935 | ac_env_CC_FOR_BUILD_value=$CC_FOR_BUILD | ||
936 | ac_cv_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set} | ||
937 | ac_cv_env_CC_FOR_BUILD_value=$CC_FOR_BUILD | ||
938 | |||
939 | # | ||
940 | # Report the --help message. | ||
941 | # | ||
942 | if test "$ac_init_help" = "long"; then | ||
943 | # Omit some internal or obsolete options to make the list less imposing. | ||
944 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
945 | cat <<_ACEOF | ||
946 | \`configure' configures libgpg-error 1.0 to adapt to many kinds of systems. | ||
947 | |||
948 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
949 | |||
950 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
951 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
952 | |||
953 | Defaults for the options are specified in brackets. | ||
954 | |||
955 | Configuration: | ||
956 | -h, --help display this help and exit | ||
957 | --help=short display options specific to this package | ||
958 | --help=recursive display the short help of all the included packages | ||
959 | -V, --version display version information and exit | ||
960 | -q, --quiet, --silent do not print \`checking...' messages | ||
961 | --cache-file=FILE cache test results in FILE [disabled] | ||
962 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
963 | -n, --no-create do not create output files | ||
964 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
965 | |||
966 | _ACEOF | ||
967 | |||
968 | cat <<_ACEOF | ||
969 | Installation directories: | ||
970 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
971 | [$ac_default_prefix] | ||
972 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
973 | [PREFIX] | ||
974 | |||
975 | By default, \`make install' will install all the files in | ||
976 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
977 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
978 | for instance \`--prefix=\$HOME'. | ||
979 | |||
980 | For better control, use the options below. | ||
981 | |||
982 | Fine tuning of the installation directories: | ||
983 | --bindir=DIR user executables [EPREFIX/bin] | ||
984 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
985 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
986 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
987 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
988 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
989 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
990 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
991 | --includedir=DIR C header files [PREFIX/include] | ||
992 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
993 | --infodir=DIR info documentation [PREFIX/info] | ||
994 | --mandir=DIR man documentation [PREFIX/man] | ||
995 | _ACEOF | ||
996 | |||
997 | cat <<\_ACEOF | ||
998 | |||
999 | Program names: | ||
1000 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1001 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1002 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1003 | |||
1004 | System types: | ||
1005 | --build=BUILD configure for building on BUILD [guessed] | ||
1006 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1007 | _ACEOF | ||
1008 | fi | ||
1009 | |||
1010 | if test -n "$ac_init_help"; then | ||
1011 | case $ac_init_help in | ||
1012 | short | recursive ) echo "Configuration of libgpg-error 1.0:";; | ||
1013 | esac | ||
1014 | cat <<\_ACEOF | ||
1015 | |||
1016 | Optional Features: | ||
1017 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1018 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1019 | --enable-maintainer-mode enable make rules and dependencies not useful | ||
1020 | (and sometimes confusing) to the casual installer | ||
1021 | --disable-dependency-tracking Speeds up one-time builds | ||
1022 | --enable-dependency-tracking Do not reject slow dependency extractors | ||
1023 | --enable-shared=PKGS build shared libraries default=yes | ||
1024 | --enable-static=PKGS build static libraries default=yes | ||
1025 | --enable-fast-install=PKGS optimize for fast installation default=yes | ||
1026 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1027 | --disable-nls do not use Native Language Support | ||
1028 | --disable-rpath do not hardcode runtime library paths | ||
1029 | |||
1030 | Optional Packages: | ||
1031 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1032 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1033 | --with-gnu-ld assume the C compiler uses GNU ld default=no | ||
1034 | --with-pic try to use only PIC/non-PIC objects default=use both | ||
1035 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | ||
1036 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | ||
1037 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | ||
1038 | --without-libintl-prefix don't search for libintl in includedir and libdir | ||
1039 | |||
1040 | Some influential environment variables: | ||
1041 | CC C compiler command | ||
1042 | CFLAGS C compiler flags | ||
1043 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1044 | nonstandard directory <lib dir> | ||
1045 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
1046 | headers in a nonstandard directory <include dir> | ||
1047 | CPP C preprocessor | ||
1048 | CC_FOR_BUILD | ||
1049 | build system C compiler | ||
1050 | |||
1051 | Use these variables to override the choices made by `configure' or to help | ||
1052 | it to find libraries and programs with nonstandard names/locations. | ||
1053 | |||
1054 | Report bugs to <bug-gnupg@gnupg.org>. | ||
1055 | _ACEOF | ||
1056 | fi | ||
1057 | |||
1058 | if test "$ac_init_help" = "recursive"; then | ||
1059 | # If there are subdirs, report their specific --help. | ||
1060 | ac_popdir=`pwd` | ||
1061 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1062 | test -d $ac_dir || continue | ||
1063 | ac_builddir=. | ||
1064 | |||
1065 | if test "$ac_dir" != .; then | ||
1066 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1067 | # A "../" for each directory in $ac_dir_suffix. | ||
1068 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
1069 | else | ||
1070 | ac_dir_suffix= ac_top_builddir= | ||
1071 | fi | ||
1072 | |||
1073 | case $srcdir in | ||
1074 | .) # No --srcdir option. We are building in place. | ||
1075 | ac_srcdir=. | ||
1076 | if test -z "$ac_top_builddir"; then | ||
1077 | ac_top_srcdir=. | ||
1078 | else | ||
1079 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
1080 | fi ;; | ||
1081 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
1082 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1083 | ac_top_srcdir=$srcdir ;; | ||
1084 | *) # Relative path. | ||
1085 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
1086 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
1087 | esac | ||
1088 | |||
1089 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
1090 | # the directories may not exist. | ||
1091 | case `pwd` in | ||
1092 | .) ac_abs_builddir="$ac_dir";; | ||
1093 | *) | ||
1094 | case "$ac_dir" in | ||
1095 | .) ac_abs_builddir=`pwd`;; | ||
1096 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
1097 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
1098 | esac;; | ||
1099 | esac | ||
1100 | case $ac_abs_builddir in | ||
1101 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
1102 | *) | ||
1103 | case ${ac_top_builddir}. in | ||
1104 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
1105 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
1106 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
1107 | esac;; | ||
1108 | esac | ||
1109 | case $ac_abs_builddir in | ||
1110 | .) ac_abs_srcdir=$ac_srcdir;; | ||
1111 | *) | ||
1112 | case $ac_srcdir in | ||
1113 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
1114 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
1115 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
1116 | esac;; | ||
1117 | esac | ||
1118 | case $ac_abs_builddir in | ||
1119 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
1120 | *) | ||
1121 | case $ac_top_srcdir in | ||
1122 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
1123 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
1124 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
1125 | esac;; | ||
1126 | esac | ||
1127 | |||
1128 | cd $ac_dir | ||
1129 | # Check for guested configure; otherwise get Cygnus style configure. | ||
1130 | if test -f $ac_srcdir/configure.gnu; then | ||
1131 | echo | ||
1132 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
1133 | elif test -f $ac_srcdir/configure; then | ||
1134 | echo | ||
1135 | $SHELL $ac_srcdir/configure --help=recursive | ||
1136 | elif test -f $ac_srcdir/configure.ac || | ||
1137 | test -f $ac_srcdir/configure.in; then | ||
1138 | echo | ||
1139 | $ac_configure --help | ||
1140 | else | ||
1141 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1142 | fi | ||
1143 | cd "$ac_popdir" | ||
1144 | done | ||
1145 | fi | ||
1146 | |||
1147 | test -n "$ac_init_help" && exit 0 | ||
1148 | if $ac_init_version; then | ||
1149 | cat <<\_ACEOF | ||
1150 | libgpg-error configure 1.0 | ||
1151 | generated by GNU Autoconf 2.59 | ||
1152 | |||
1153 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1154 | This configure script is free software; the Free Software Foundation | ||
1155 | gives unlimited permission to copy, distribute and modify it. | ||
1156 | _ACEOF | ||
1157 | exit 0 | ||
1158 | fi | ||
1159 | exec 5>config.log | ||
1160 | cat >&5 <<_ACEOF | ||
1161 | This file contains any messages produced by compilers while | ||
1162 | running configure, to aid debugging if configure makes a mistake. | ||
1163 | |||
1164 | It was created by libgpg-error $as_me 1.0, which was | ||
1165 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1166 | |||
1167 | $ $0 $@ | ||
1168 | |||
1169 | _ACEOF | ||
1170 | { | ||
1171 | cat <<_ASUNAME | ||
1172 | ## --------- ## | ||
1173 | ## Platform. ## | ||
1174 | ## --------- ## | ||
1175 | |||
1176 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1177 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1178 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1179 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1180 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1181 | |||
1182 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1183 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1184 | |||
1185 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1186 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1187 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1188 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1189 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1190 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1191 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1192 | |||
1193 | _ASUNAME | ||
1194 | |||
1195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1196 | for as_dir in $PATH | ||
1197 | do | ||
1198 | IFS=$as_save_IFS | ||
1199 | test -z "$as_dir" && as_dir=. | ||
1200 | echo "PATH: $as_dir" | ||
1201 | done | ||
1202 | |||
1203 | } >&5 | ||
1204 | |||
1205 | cat >&5 <<_ACEOF | ||
1206 | |||
1207 | |||
1208 | ## ----------- ## | ||
1209 | ## Core tests. ## | ||
1210 | ## ----------- ## | ||
1211 | |||
1212 | _ACEOF | ||
1213 | |||
1214 | |||
1215 | # Keep a trace of the command line. | ||
1216 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1217 | # Strip out --silent because we don't want to record it for future runs. | ||
1218 | # Also quote any args containing shell meta-characters. | ||
1219 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1220 | ac_configure_args= | ||
1221 | ac_configure_args0= | ||
1222 | ac_configure_args1= | ||
1223 | ac_sep= | ||
1224 | ac_must_keep_next=false | ||
1225 | for ac_pass in 1 2 | ||
1226 | do | ||
1227 | for ac_arg | ||
1228 | do | ||
1229 | case $ac_arg in | ||
1230 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1231 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1232 | | -silent | --silent | --silen | --sile | --sil) | ||
1233 | continue ;; | ||
1234 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1235 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1236 | esac | ||
1237 | case $ac_pass in | ||
1238 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1239 | 2) | ||
1240 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1241 | if test $ac_must_keep_next = true; then | ||
1242 | ac_must_keep_next=false # Got value, back to normal. | ||
1243 | else | ||
1244 | case $ac_arg in | ||
1245 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1246 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1247 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1248 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1249 | case "$ac_configure_args0 " in | ||
1250 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1251 | esac | ||
1252 | ;; | ||
1253 | -* ) ac_must_keep_next=true ;; | ||
1254 | esac | ||
1255 | fi | ||
1256 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1257 | # Get rid of the leading space. | ||
1258 | ac_sep=" " | ||
1259 | ;; | ||
1260 | esac | ||
1261 | done | ||
1262 | done | ||
1263 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1264 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1265 | |||
1266 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1267 | # config.log. We remove comments because anyway the quotes in there | ||
1268 | # would cause problems or look ugly. | ||
1269 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1270 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1271 | trap 'exit_status=$? | ||
1272 | # Save into config.log some information that might help in debugging. | ||
1273 | { | ||
1274 | echo | ||
1275 | |||
1276 | cat <<\_ASBOX | ||
1277 | ## ---------------- ## | ||
1278 | ## Cache variables. ## | ||
1279 | ## ---------------- ## | ||
1280 | _ASBOX | ||
1281 | echo | ||
1282 | # The following way of writing the cache mishandles newlines in values, | ||
1283 | { | ||
1284 | (set) 2>&1 | | ||
1285 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1286 | *ac_space=\ *) | ||
1287 | sed -n \ | ||
1288 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1289 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1290 | ;; | ||
1291 | *) | ||
1292 | sed -n \ | ||
1293 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1294 | ;; | ||
1295 | esac; | ||
1296 | } | ||
1297 | echo | ||
1298 | |||
1299 | cat <<\_ASBOX | ||
1300 | ## ----------------- ## | ||
1301 | ## Output variables. ## | ||
1302 | ## ----------------- ## | ||
1303 | _ASBOX | ||
1304 | echo | ||
1305 | for ac_var in $ac_subst_vars | ||
1306 | do | ||
1307 | eval ac_val=$`echo $ac_var` | ||
1308 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1309 | done | sort | ||
1310 | echo | ||
1311 | |||
1312 | if test -n "$ac_subst_files"; then | ||
1313 | cat <<\_ASBOX | ||
1314 | ## ------------- ## | ||
1315 | ## Output files. ## | ||
1316 | ## ------------- ## | ||
1317 | _ASBOX | ||
1318 | echo | ||
1319 | for ac_var in $ac_subst_files | ||
1320 | do | ||
1321 | eval ac_val=$`echo $ac_var` | ||
1322 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1323 | done | sort | ||
1324 | echo | ||
1325 | fi | ||
1326 | |||
1327 | if test -s confdefs.h; then | ||
1328 | cat <<\_ASBOX | ||
1329 | ## ----------- ## | ||
1330 | ## confdefs.h. ## | ||
1331 | ## ----------- ## | ||
1332 | _ASBOX | ||
1333 | echo | ||
1334 | sed "/^$/d" confdefs.h | sort | ||
1335 | echo | ||
1336 | fi | ||
1337 | test "$ac_signal" != 0 && | ||
1338 | echo "$as_me: caught signal $ac_signal" | ||
1339 | echo "$as_me: exit $exit_status" | ||
1340 | } >&5 | ||
1341 | rm -f core *.core && | ||
1342 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1343 | exit $exit_status | ||
1344 | ' 0 | ||
1345 | for ac_signal in 1 2 13 15; do | ||
1346 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1347 | done | ||
1348 | ac_signal=0 | ||
1349 | |||
1350 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1351 | rm -rf conftest* confdefs.h | ||
1352 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1353 | echo >confdefs.h | ||
1354 | |||
1355 | # Predefined preprocessor variables. | ||
1356 | |||
1357 | cat >>confdefs.h <<_ACEOF | ||
1358 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1359 | _ACEOF | ||
1360 | |||
1361 | |||
1362 | cat >>confdefs.h <<_ACEOF | ||
1363 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1364 | _ACEOF | ||
1365 | |||
1366 | |||
1367 | cat >>confdefs.h <<_ACEOF | ||
1368 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1369 | _ACEOF | ||
1370 | |||
1371 | |||
1372 | cat >>confdefs.h <<_ACEOF | ||
1373 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1374 | _ACEOF | ||
1375 | |||
1376 | |||
1377 | cat >>confdefs.h <<_ACEOF | ||
1378 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1379 | _ACEOF | ||
1380 | |||
1381 | |||
1382 | # Let the site file select an alternate cache file if it wants to. | ||
1383 | # Prefer explicitly selected file to automatically selected ones. | ||
1384 | if test -z "$CONFIG_SITE"; then | ||
1385 | if test "x$prefix" != xNONE; then | ||
1386 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1387 | else | ||
1388 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1389 | fi | ||
1390 | fi | ||
1391 | for ac_site_file in $CONFIG_SITE; do | ||
1392 | if test -r "$ac_site_file"; then | ||
1393 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1394 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1395 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1396 | . "$ac_site_file" | ||
1397 | fi | ||
1398 | done | ||
1399 | |||
1400 | if test -r "$cache_file"; then | ||
1401 | # Some versions of bash will fail to source /dev/null (special | ||
1402 | # files actually), so we avoid doing that. | ||
1403 | if test -f "$cache_file"; then | ||
1404 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1405 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1406 | case $cache_file in | ||
1407 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1408 | *) . ./$cache_file;; | ||
1409 | esac | ||
1410 | fi | ||
1411 | else | ||
1412 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1413 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1414 | >$cache_file | ||
1415 | fi | ||
1416 | |||
1417 | # Check that the precious variables saved in the cache have kept the same | ||
1418 | # value. | ||
1419 | ac_cache_corrupted=false | ||
1420 | for ac_var in `(set) 2>&1 | | ||
1421 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1422 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1423 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1424 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1425 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1426 | case $ac_old_set,$ac_new_set in | ||
1427 | set,) | ||
1428 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1429 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1430 | ac_cache_corrupted=: ;; | ||
1431 | ,set) | ||
1432 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1433 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1434 | ac_cache_corrupted=: ;; | ||
1435 | ,);; | ||
1436 | *) | ||
1437 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1438 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1439 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1440 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1441 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1442 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1443 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1444 | ac_cache_corrupted=: | ||
1445 | fi;; | ||
1446 | esac | ||
1447 | # Pass precious variables to config.status. | ||
1448 | if test "$ac_new_set" = set; then | ||
1449 | case $ac_new_val in | ||
1450 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1451 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1452 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1453 | esac | ||
1454 | case " $ac_configure_args " in | ||
1455 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1456 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1457 | esac | ||
1458 | fi | ||
1459 | done | ||
1460 | if $ac_cache_corrupted; then | ||
1461 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1462 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1463 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1464 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1465 | { (exit 1); exit 1; }; } | ||
1466 | fi | ||
1467 | |||
1468 | ac_ext=c | ||
1469 | ac_cpp='$CPP $CPPFLAGS' | ||
1470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1473 | |||
1474 | |||
1475 | |||
1476 | |||
1477 | |||
1478 | |||
1479 | |||
1480 | |||
1481 | |||
1482 | |||
1483 | |||
1484 | |||
1485 | |||
1486 | |||
1487 | |||
1488 | |||
1489 | |||
1490 | |||
1491 | |||
1492 | |||
1493 | |||
1494 | |||
1495 | |||
1496 | |||
1497 | |||
1498 | |||
1499 | |||
1500 | # LT Version numbers, remember to change them just *before* a release. | ||
1501 | # (Code changed: REVISION++) | ||
1502 | # (Interfaces added/removed/changed: CURRENT++, REVISION=0) | ||
1503 | # (Interfaces added: AGE++) | ||
1504 | # (Interfaces removed: AGE=0) | ||
1505 | # Note, that added error codes don't constitute an interface change. | ||
1506 | LIBGPG_ERROR_LT_CURRENT=1 | ||
1507 | LIBGPG_ERROR_LT_AGE=1 | ||
1508 | LIBGPG_ERROR_LT_REVISION=3 | ||
1509 | |||
1510 | |||
1511 | |||
1512 | |||
1513 | am__api_version="1.7" | ||
1514 | ac_aux_dir= | ||
1515 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
1516 | if test -f $ac_dir/install-sh; then | ||
1517 | ac_aux_dir=$ac_dir | ||
1518 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1519 | break | ||
1520 | elif test -f $ac_dir/install.sh; then | ||
1521 | ac_aux_dir=$ac_dir | ||
1522 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1523 | break | ||
1524 | elif test -f $ac_dir/shtool; then | ||
1525 | ac_aux_dir=$ac_dir | ||
1526 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1527 | break | ||
1528 | fi | ||
1529 | done | ||
1530 | if test -z "$ac_aux_dir"; then | ||
1531 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
1532 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
1533 | { (exit 1); exit 1; }; } | ||
1534 | fi | ||
1535 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
1536 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
1537 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
1538 | |||
1539 | # Find a good install program. We prefer a C program (faster), | ||
1540 | # so one script is as good as another. But avoid the broken or | ||
1541 | # incompatible versions: | ||
1542 | # SysV /etc/install, /usr/sbin/install | ||
1543 | # SunOS /usr/etc/install | ||
1544 | # IRIX /sbin/install | ||
1545 | # AIX /bin/install | ||
1546 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1547 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1548 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1549 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1550 | # OS/2's system install, which has a completely different semantic | ||
1551 | # ./install, which can be erroneously created by make from ./install.sh. | ||
1552 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
1553 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
1554 | if test -z "$INSTALL"; then | ||
1555 | if test "${ac_cv_path_install+set}" = set; then | ||
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1557 | else | ||
1558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1559 | for as_dir in $PATH | ||
1560 | do | ||
1561 | IFS=$as_save_IFS | ||
1562 | test -z "$as_dir" && as_dir=. | ||
1563 | # Account for people who put trailing slashes in PATH elements. | ||
1564 | case $as_dir/ in | ||
1565 | ./ | .// | /cC/* | \ | ||
1566 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
1567 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
1568 | /usr/ucb/* ) ;; | ||
1569 | *) | ||
1570 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
1571 | # Don't use installbsd from OSF since it installs stuff as root | ||
1572 | # by default. | ||
1573 | for ac_prog in ginstall scoinst install; do | ||
1574 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1575 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
1576 | if test $ac_prog = install && | ||
1577 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1578 | # AIX install. It has an incompatible calling convention. | ||
1579 | : | ||
1580 | elif test $ac_prog = install && | ||
1581 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1582 | # program-specific install script used by HP pwplus--don't use. | ||
1583 | : | ||
1584 | else | ||
1585 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
1586 | break 3 | ||
1587 | fi | ||
1588 | fi | ||
1589 | done | ||
1590 | done | ||
1591 | ;; | ||
1592 | esac | ||
1593 | done | ||
1594 | |||
1595 | |||
1596 | fi | ||
1597 | if test "${ac_cv_path_install+set}" = set; then | ||
1598 | INSTALL=$ac_cv_path_install | ||
1599 | else | ||
1600 | # As a last resort, use the slow shell script. We don't cache a | ||
1601 | # path for INSTALL within a source directory, because that will | ||
1602 | # break other packages using the cache if that directory is | ||
1603 | # removed, or if the path is relative. | ||
1604 | INSTALL=$ac_install_sh | ||
1605 | fi | ||
1606 | fi | ||
1607 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
1608 | echo "${ECHO_T}$INSTALL" >&6 | ||
1609 | |||
1610 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
1611 | # It thinks the first close brace ends the variable substitution. | ||
1612 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
1613 | |||
1614 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
1615 | |||
1616 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
1617 | |||
1618 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
1619 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | ||
1620 | # Just in case | ||
1621 | sleep 1 | ||
1622 | echo timestamp > conftest.file | ||
1623 | # Do `set' in a subshell so we don't clobber the current shell's | ||
1624 | # arguments. Must try -L first in case configure is actually a | ||
1625 | # symlink; some systems play weird games with the mod time of symlinks | ||
1626 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
1627 | # directory). | ||
1628 | if ( | ||
1629 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
1630 | if test "$*" = "X"; then | ||
1631 | # -L didn't work. | ||
1632 | set X `ls -t $srcdir/configure conftest.file` | ||
1633 | fi | ||
1634 | rm -f conftest.file | ||
1635 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
1636 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
1637 | |||
1638 | # If neither matched, then we have a broken ls. This can happen | ||
1639 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
1640 | # broken ls alias from the environment. This has actually | ||
1641 | # happened. Such a system could not be considered "sane". | ||
1642 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
1643 | alias in your environment" >&5 | ||
1644 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
1645 | alias in your environment" >&2;} | ||
1646 | { (exit 1); exit 1; }; } | ||
1647 | fi | ||
1648 | |||
1649 | test "$2" = conftest.file | ||
1650 | ) | ||
1651 | then | ||
1652 | # Ok. | ||
1653 | : | ||
1654 | else | ||
1655 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
1656 | Check your system clock" >&5 | ||
1657 | echo "$as_me: error: newly created file is older than distributed files! | ||
1658 | Check your system clock" >&2;} | ||
1659 | { (exit 1); exit 1; }; } | ||
1660 | fi | ||
1661 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1662 | echo "${ECHO_T}yes" >&6 | ||
1663 | test "$program_prefix" != NONE && | ||
1664 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | ||
1665 | # Use a double $ so make ignores it. | ||
1666 | test "$program_suffix" != NONE && | ||
1667 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | ||
1668 | # Double any \ or $. echo might interpret backslashes. | ||
1669 | # By default was `s,x,x', remove it if useless. | ||
1670 | cat <<\_ACEOF >conftest.sed | ||
1671 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
1672 | _ACEOF | ||
1673 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
1674 | rm conftest.sed | ||
1675 | |||
1676 | |||
1677 | # expand $ac_aux_dir to an absolute path | ||
1678 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
1679 | |||
1680 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
1681 | # Use eval to expand $SHELL | ||
1682 | if eval "$MISSING --run true"; then | ||
1683 | am_missing_run="$MISSING --run " | ||
1684 | else | ||
1685 | am_missing_run= | ||
1686 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
1687 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
1688 | fi | ||
1689 | |||
1690 | for ac_prog in gawk mawk nawk awk | ||
1691 | do | ||
1692 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1693 | set dummy $ac_prog; ac_word=$2 | ||
1694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1696 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1698 | else | ||
1699 | if test -n "$AWK"; then | ||
1700 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1701 | else | ||
1702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1703 | for as_dir in $PATH | ||
1704 | do | ||
1705 | IFS=$as_save_IFS | ||
1706 | test -z "$as_dir" && as_dir=. | ||
1707 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1709 | ac_cv_prog_AWK="$ac_prog" | ||
1710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1711 | break 2 | ||
1712 | fi | ||
1713 | done | ||
1714 | done | ||
1715 | |||
1716 | fi | ||
1717 | fi | ||
1718 | AWK=$ac_cv_prog_AWK | ||
1719 | if test -n "$AWK"; then | ||
1720 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
1721 | echo "${ECHO_T}$AWK" >&6 | ||
1722 | else | ||
1723 | echo "$as_me:$LINENO: result: no" >&5 | ||
1724 | echo "${ECHO_T}no" >&6 | ||
1725 | fi | ||
1726 | |||
1727 | test -n "$AWK" && break | ||
1728 | done | ||
1729 | |||
1730 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
1731 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | ||
1732 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | ||
1733 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | ||
1734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1735 | else | ||
1736 | cat >conftest.make <<\_ACEOF | ||
1737 | all: | ||
1738 | @echo 'ac_maketemp="$(MAKE)"' | ||
1739 | _ACEOF | ||
1740 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
1741 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | ||
1742 | if test -n "$ac_maketemp"; then | ||
1743 | eval ac_cv_prog_make_${ac_make}_set=yes | ||
1744 | else | ||
1745 | eval ac_cv_prog_make_${ac_make}_set=no | ||
1746 | fi | ||
1747 | rm -f conftest.make | ||
1748 | fi | ||
1749 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | ||
1750 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1751 | echo "${ECHO_T}yes" >&6 | ||
1752 | SET_MAKE= | ||
1753 | else | ||
1754 | echo "$as_me:$LINENO: result: no" >&5 | ||
1755 | echo "${ECHO_T}no" >&6 | ||
1756 | SET_MAKE="MAKE=${MAKE-make}" | ||
1757 | fi | ||
1758 | |||
1759 | rm -rf .tst 2>/dev/null | ||
1760 | mkdir .tst 2>/dev/null | ||
1761 | if test -d .tst; then | ||
1762 | am__leading_dot=. | ||
1763 | else | ||
1764 | am__leading_dot=_ | ||
1765 | fi | ||
1766 | rmdir .tst 2>/dev/null | ||
1767 | |||
1768 | # test to see if srcdir already configured | ||
1769 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
1770 | test -f $srcdir/config.status; then | ||
1771 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
1772 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
1773 | { (exit 1); exit 1; }; } | ||
1774 | fi | ||
1775 | |||
1776 | # test whether we have cygpath | ||
1777 | if test -z "$CYGPATH_W"; then | ||
1778 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
1779 | CYGPATH_W='cygpath -w' | ||
1780 | else | ||
1781 | CYGPATH_W=echo | ||
1782 | fi | ||
1783 | fi | ||
1784 | |||
1785 | |||
1786 | # Define the identity of the package. | ||
1787 | PACKAGE='libgpg-error' | ||
1788 | VERSION='1.0' | ||
1789 | |||
1790 | |||
1791 | cat >>confdefs.h <<_ACEOF | ||
1792 | #define PACKAGE "$PACKAGE" | ||
1793 | _ACEOF | ||
1794 | |||
1795 | |||
1796 | cat >>confdefs.h <<_ACEOF | ||
1797 | #define VERSION "$VERSION" | ||
1798 | _ACEOF | ||
1799 | |||
1800 | # Some tools Automake needs. | ||
1801 | |||
1802 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
1803 | |||
1804 | |||
1805 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
1806 | |||
1807 | |||
1808 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
1809 | |||
1810 | |||
1811 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
1812 | |||
1813 | |||
1814 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
1815 | |||
1816 | |||
1817 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
1818 | |||
1819 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
1820 | |||
1821 | # Installed binaries are usually stripped using `strip' when the user | ||
1822 | # run `make install-strip'. However `strip' might not be the right | ||
1823 | # tool to use in cross-compilation environments, therefore Automake | ||
1824 | # will honor the `STRIP' environment variable to overrule this program. | ||
1825 | if test "$cross_compiling" != no; then | ||
1826 | if test -n "$ac_tool_prefix"; then | ||
1827 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
1828 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
1829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1831 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
1832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1833 | else | ||
1834 | if test -n "$STRIP"; then | ||
1835 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
1836 | else | ||
1837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1838 | for as_dir in $PATH | ||
1839 | do | ||
1840 | IFS=$as_save_IFS | ||
1841 | test -z "$as_dir" && as_dir=. | ||
1842 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1844 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
1845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1846 | break 2 | ||
1847 | fi | ||
1848 | done | ||
1849 | done | ||
1850 | |||
1851 | fi | ||
1852 | fi | ||
1853 | STRIP=$ac_cv_prog_STRIP | ||
1854 | if test -n "$STRIP"; then | ||
1855 | echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
1856 | echo "${ECHO_T}$STRIP" >&6 | ||
1857 | else | ||
1858 | echo "$as_me:$LINENO: result: no" >&5 | ||
1859 | echo "${ECHO_T}no" >&6 | ||
1860 | fi | ||
1861 | |||
1862 | fi | ||
1863 | if test -z "$ac_cv_prog_STRIP"; then | ||
1864 | ac_ct_STRIP=$STRIP | ||
1865 | # Extract the first word of "strip", so it can be a program name with args. | ||
1866 | set dummy strip; ac_word=$2 | ||
1867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1869 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
1870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1871 | else | ||
1872 | if test -n "$ac_ct_STRIP"; then | ||
1873 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
1874 | else | ||
1875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1876 | for as_dir in $PATH | ||
1877 | do | ||
1878 | IFS=$as_save_IFS | ||
1879 | test -z "$as_dir" && as_dir=. | ||
1880 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1882 | ac_cv_prog_ac_ct_STRIP="strip" | ||
1883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1884 | break 2 | ||
1885 | fi | ||
1886 | done | ||
1887 | done | ||
1888 | |||
1889 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | ||
1890 | fi | ||
1891 | fi | ||
1892 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
1893 | if test -n "$ac_ct_STRIP"; then | ||
1894 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
1895 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | ||
1896 | else | ||
1897 | echo "$as_me:$LINENO: result: no" >&5 | ||
1898 | echo "${ECHO_T}no" >&6 | ||
1899 | fi | ||
1900 | |||
1901 | STRIP=$ac_ct_STRIP | ||
1902 | else | ||
1903 | STRIP="$ac_cv_prog_STRIP" | ||
1904 | fi | ||
1905 | |||
1906 | fi | ||
1907 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
1908 | |||
1909 | # We need awk for the "check" target. The system "awk" is bad on | ||
1910 | # some platforms. | ||
1911 | |||
1912 | |||
1913 | |||
1914 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | ||
1915 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | ||
1916 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | ||
1917 | if test "${enable_maintainer_mode+set}" = set; then | ||
1918 | enableval="$enable_maintainer_mode" | ||
1919 | USE_MAINTAINER_MODE=$enableval | ||
1920 | else | ||
1921 | USE_MAINTAINER_MODE=no | ||
1922 | fi; | ||
1923 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | ||
1924 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | ||
1925 | |||
1926 | |||
1927 | if test $USE_MAINTAINER_MODE = yes; then | ||
1928 | MAINTAINER_MODE_TRUE= | ||
1929 | MAINTAINER_MODE_FALSE='#' | ||
1930 | else | ||
1931 | MAINTAINER_MODE_TRUE='#' | ||
1932 | MAINTAINER_MODE_FALSE= | ||
1933 | fi | ||
1934 | |||
1935 | MAINT=$MAINTAINER_MODE_TRUE | ||
1936 | |||
1937 | |||
1938 | |||
1939 | ac_config_headers="$ac_config_headers config.h" | ||
1940 | |||
1941 | |||
1942 | # Checks for programs. | ||
1943 | ac_ext=c | ||
1944 | ac_cpp='$CPP $CPPFLAGS' | ||
1945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1948 | if test -n "$ac_tool_prefix"; then | ||
1949 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1950 | set dummy ${ac_tool_prefix}gcc; 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}gcc" | ||
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 | fi | ||
1985 | if test -z "$ac_cv_prog_CC"; then | ||
1986 | ac_ct_CC=$CC | ||
1987 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1988 | set dummy gcc; ac_word=$2 | ||
1989 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1991 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1993 | else | ||
1994 | if test -n "$ac_ct_CC"; then | ||
1995 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1996 | else | ||
1997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1998 | for as_dir in $PATH | ||
1999 | do | ||
2000 | IFS=$as_save_IFS | ||
2001 | test -z "$as_dir" && as_dir=. | ||
2002 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2004 | ac_cv_prog_ac_ct_CC="gcc" | ||
2005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2006 | break 2 | ||
2007 | fi | ||
2008 | done | ||
2009 | done | ||
2010 | |||
2011 | fi | ||
2012 | fi | ||
2013 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2014 | if test -n "$ac_ct_CC"; then | ||
2015 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2016 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2017 | else | ||
2018 | echo "$as_me:$LINENO: result: no" >&5 | ||
2019 | echo "${ECHO_T}no" >&6 | ||
2020 | fi | ||
2021 | |||
2022 | CC=$ac_ct_CC | ||
2023 | else | ||
2024 | CC="$ac_cv_prog_CC" | ||
2025 | fi | ||
2026 | |||
2027 | if test -z "$CC"; then | ||
2028 | if test -n "$ac_tool_prefix"; then | ||
2029 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2030 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2033 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2035 | else | ||
2036 | if test -n "$CC"; then | ||
2037 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2038 | else | ||
2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2040 | for as_dir in $PATH | ||
2041 | do | ||
2042 | IFS=$as_save_IFS | ||
2043 | test -z "$as_dir" && as_dir=. | ||
2044 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2046 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2048 | break 2 | ||
2049 | fi | ||
2050 | done | ||
2051 | done | ||
2052 | |||
2053 | fi | ||
2054 | fi | ||
2055 | CC=$ac_cv_prog_CC | ||
2056 | if test -n "$CC"; then | ||
2057 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2058 | echo "${ECHO_T}$CC" >&6 | ||
2059 | else | ||
2060 | echo "$as_me:$LINENO: result: no" >&5 | ||
2061 | echo "${ECHO_T}no" >&6 | ||
2062 | fi | ||
2063 | |||
2064 | fi | ||
2065 | if test -z "$ac_cv_prog_CC"; then | ||
2066 | ac_ct_CC=$CC | ||
2067 | # Extract the first word of "cc", so it can be a program name with args. | ||
2068 | set dummy cc; ac_word=$2 | ||
2069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2071 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2073 | else | ||
2074 | if test -n "$ac_ct_CC"; then | ||
2075 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2076 | else | ||
2077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2078 | for as_dir in $PATH | ||
2079 | do | ||
2080 | IFS=$as_save_IFS | ||
2081 | test -z "$as_dir" && as_dir=. | ||
2082 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2084 | ac_cv_prog_ac_ct_CC="cc" | ||
2085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2086 | break 2 | ||
2087 | fi | ||
2088 | done | ||
2089 | done | ||
2090 | |||
2091 | fi | ||
2092 | fi | ||
2093 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2094 | if test -n "$ac_ct_CC"; then | ||
2095 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2096 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2097 | else | ||
2098 | echo "$as_me:$LINENO: result: no" >&5 | ||
2099 | echo "${ECHO_T}no" >&6 | ||
2100 | fi | ||
2101 | |||
2102 | CC=$ac_ct_CC | ||
2103 | else | ||
2104 | CC="$ac_cv_prog_CC" | ||
2105 | fi | ||
2106 | |||
2107 | fi | ||
2108 | if test -z "$CC"; then | ||
2109 | # Extract the first word of "cc", so it can be a program name with args. | ||
2110 | set dummy cc; ac_word=$2 | ||
2111 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2113 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2115 | else | ||
2116 | if test -n "$CC"; then | ||
2117 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2118 | else | ||
2119 | ac_prog_rejected=no | ||
2120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2121 | for as_dir in $PATH | ||
2122 | do | ||
2123 | IFS=$as_save_IFS | ||
2124 | test -z "$as_dir" && as_dir=. | ||
2125 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2127 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2128 | ac_prog_rejected=yes | ||
2129 | continue | ||
2130 | fi | ||
2131 | ac_cv_prog_CC="cc" | ||
2132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2133 | break 2 | ||
2134 | fi | ||
2135 | done | ||
2136 | done | ||
2137 | |||
2138 | if test $ac_prog_rejected = yes; then | ||
2139 | # We found a bogon in the path, so make sure we never use it. | ||
2140 | set dummy $ac_cv_prog_CC | ||
2141 | shift | ||
2142 | if test $# != 0; then | ||
2143 | # We chose a different compiler from the bogus one. | ||
2144 | # However, it has the same basename, so the bogon will be chosen | ||
2145 | # first if we set CC to just the basename; use the full file name. | ||
2146 | shift | ||
2147 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2148 | fi | ||
2149 | fi | ||
2150 | fi | ||
2151 | fi | ||
2152 | CC=$ac_cv_prog_CC | ||
2153 | if test -n "$CC"; then | ||
2154 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2155 | echo "${ECHO_T}$CC" >&6 | ||
2156 | else | ||
2157 | echo "$as_me:$LINENO: result: no" >&5 | ||
2158 | echo "${ECHO_T}no" >&6 | ||
2159 | fi | ||
2160 | |||
2161 | fi | ||
2162 | if test -z "$CC"; then | ||
2163 | if test -n "$ac_tool_prefix"; then | ||
2164 | for ac_prog in cl | ||
2165 | do | ||
2166 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2167 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2168 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2170 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2172 | else | ||
2173 | if test -n "$CC"; then | ||
2174 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2175 | else | ||
2176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2177 | for as_dir in $PATH | ||
2178 | do | ||
2179 | IFS=$as_save_IFS | ||
2180 | test -z "$as_dir" && as_dir=. | ||
2181 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2182 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2183 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2185 | break 2 | ||
2186 | fi | ||
2187 | done | ||
2188 | done | ||
2189 | |||
2190 | fi | ||
2191 | fi | ||
2192 | CC=$ac_cv_prog_CC | ||
2193 | if test -n "$CC"; then | ||
2194 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2195 | echo "${ECHO_T}$CC" >&6 | ||
2196 | else | ||
2197 | echo "$as_me:$LINENO: result: no" >&5 | ||
2198 | echo "${ECHO_T}no" >&6 | ||
2199 | fi | ||
2200 | |||
2201 | test -n "$CC" && break | ||
2202 | done | ||
2203 | fi | ||
2204 | if test -z "$CC"; then | ||
2205 | ac_ct_CC=$CC | ||
2206 | for ac_prog in cl | ||
2207 | do | ||
2208 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2209 | set dummy $ac_prog; ac_word=$2 | ||
2210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2212 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2214 | else | ||
2215 | if test -n "$ac_ct_CC"; then | ||
2216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2217 | else | ||
2218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2219 | for as_dir in $PATH | ||
2220 | do | ||
2221 | IFS=$as_save_IFS | ||
2222 | test -z "$as_dir" && as_dir=. | ||
2223 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2225 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2227 | break 2 | ||
2228 | fi | ||
2229 | done | ||
2230 | done | ||
2231 | |||
2232 | fi | ||
2233 | fi | ||
2234 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2235 | if test -n "$ac_ct_CC"; then | ||
2236 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2237 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2238 | else | ||
2239 | echo "$as_me:$LINENO: result: no" >&5 | ||
2240 | echo "${ECHO_T}no" >&6 | ||
2241 | fi | ||
2242 | |||
2243 | test -n "$ac_ct_CC" && break | ||
2244 | done | ||
2245 | |||
2246 | CC=$ac_ct_CC | ||
2247 | fi | ||
2248 | |||
2249 | fi | ||
2250 | |||
2251 | |||
2252 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2253 | See \`config.log' for more details." >&5 | ||
2254 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2255 | See \`config.log' for more details." >&2;} | ||
2256 | { (exit 1); exit 1; }; } | ||
2257 | |||
2258 | # Provide some information about the compiler. | ||
2259 | echo "$as_me:$LINENO:" \ | ||
2260 | "checking for C compiler version" >&5 | ||
2261 | ac_compiler=`set X $ac_compile; echo $2` | ||
2262 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
2263 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
2264 | ac_status=$? | ||
2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2266 | (exit $ac_status); } | ||
2267 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
2268 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
2269 | ac_status=$? | ||
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2271 | (exit $ac_status); } | ||
2272 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
2273 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
2274 | ac_status=$? | ||
2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2276 | (exit $ac_status); } | ||
2277 | |||
2278 | cat >conftest.$ac_ext <<_ACEOF | ||
2279 | /* confdefs.h. */ | ||
2280 | _ACEOF | ||
2281 | cat confdefs.h >>conftest.$ac_ext | ||
2282 | cat >>conftest.$ac_ext <<_ACEOF | ||
2283 | /* end confdefs.h. */ | ||
2284 | |||
2285 | int | ||
2286 | main () | ||
2287 | { | ||
2288 | |||
2289 | ; | ||
2290 | return 0; | ||
2291 | } | ||
2292 | _ACEOF | ||
2293 | ac_clean_files_save=$ac_clean_files | ||
2294 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2295 | # Try to create an executable without -o first, disregard a.out. | ||
2296 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2297 | # of exeext. | ||
2298 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2299 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
2300 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2301 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
2302 | (eval $ac_link_default) 2>&5 | ||
2303 | ac_status=$? | ||
2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2305 | (exit $ac_status); }; then | ||
2306 | # Find the output, starting from the most likely. This scheme is | ||
2307 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
2308 | # resort. | ||
2309 | |||
2310 | # Be careful to initialize this variable, since it used to be cached. | ||
2311 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
2312 | ac_cv_exeext= | ||
2313 | # b.out is created by i960 compilers. | ||
2314 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
2315 | do | ||
2316 | test -f "$ac_file" || continue | ||
2317 | case $ac_file in | ||
2318 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
2319 | ;; | ||
2320 | conftest.$ac_ext ) | ||
2321 | # This is the source file. | ||
2322 | ;; | ||
2323 | [ab].out ) | ||
2324 | # We found the default executable, but exeext='' is most | ||
2325 | # certainly right. | ||
2326 | break;; | ||
2327 | *.* ) | ||
2328 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2329 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
2330 | # but it would be cool to find out if it's true. Does anybody | ||
2331 | # maintain Libtool? --akim. | ||
2332 | export ac_cv_exeext | ||
2333 | break;; | ||
2334 | * ) | ||
2335 | break;; | ||
2336 | esac | ||
2337 | done | ||
2338 | else | ||
2339 | echo "$as_me: failed program was:" >&5 | ||
2340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2341 | |||
2342 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2343 | See \`config.log' for more details." >&5 | ||
2344 | echo "$as_me: error: C compiler cannot create executables | ||
2345 | See \`config.log' for more details." >&2;} | ||
2346 | { (exit 77); exit 77; }; } | ||
2347 | fi | ||
2348 | |||
2349 | ac_exeext=$ac_cv_exeext | ||
2350 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2351 | echo "${ECHO_T}$ac_file" >&6 | ||
2352 | |||
2353 | # Check the compiler produces executables we can run. If not, either | ||
2354 | # the compiler is broken, or we cross compile. | ||
2355 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2356 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
2357 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2358 | # If not cross compiling, check that we can run a simple program. | ||
2359 | if test "$cross_compiling" != yes; then | ||
2360 | if { ac_try='./$ac_file' | ||
2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2362 | (eval $ac_try) 2>&5 | ||
2363 | ac_status=$? | ||
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2365 | (exit $ac_status); }; }; then | ||
2366 | cross_compiling=no | ||
2367 | else | ||
2368 | if test "$cross_compiling" = maybe; then | ||
2369 | cross_compiling=yes | ||
2370 | else | ||
2371 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2372 | If you meant to cross compile, use \`--host'. | ||
2373 | See \`config.log' for more details." >&5 | ||
2374 | echo "$as_me: error: cannot run C compiled programs. | ||
2375 | If you meant to cross compile, use \`--host'. | ||
2376 | See \`config.log' for more details." >&2;} | ||
2377 | { (exit 1); exit 1; }; } | ||
2378 | fi | ||
2379 | fi | ||
2380 | fi | ||
2381 | echo "$as_me:$LINENO: result: yes" >&5 | ||
2382 | echo "${ECHO_T}yes" >&6 | ||
2383 | |||
2384 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2385 | ac_clean_files=$ac_clean_files_save | ||
2386 | # Check the compiler produces executables we can run. If not, either | ||
2387 | # the compiler is broken, or we cross compile. | ||
2388 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2389 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
2390 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2391 | echo "${ECHO_T}$cross_compiling" >&6 | ||
2392 | |||
2393 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2394 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
2395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2396 | (eval $ac_link) 2>&5 | ||
2397 | ac_status=$? | ||
2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2399 | (exit $ac_status); }; then | ||
2400 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2401 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2402 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2403 | # `rm'. | ||
2404 | for ac_file in conftest.exe conftest conftest.*; do | ||
2405 | test -f "$ac_file" || continue | ||
2406 | case $ac_file in | ||
2407 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
2408 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2409 | export ac_cv_exeext | ||
2410 | break;; | ||
2411 | * ) break;; | ||
2412 | esac | ||
2413 | done | ||
2414 | else | ||
2415 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2416 | See \`config.log' for more details." >&5 | ||
2417 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2418 | See \`config.log' for more details." >&2;} | ||
2419 | { (exit 1); exit 1; }; } | ||
2420 | fi | ||
2421 | |||
2422 | rm -f conftest$ac_cv_exeext | ||
2423 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2424 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
2425 | |||
2426 | rm -f conftest.$ac_ext | ||
2427 | EXEEXT=$ac_cv_exeext | ||
2428 | ac_exeext=$EXEEXT | ||
2429 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2430 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
2431 | if test "${ac_cv_objext+set}" = set; then | ||
2432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2433 | else | ||
2434 | cat >conftest.$ac_ext <<_ACEOF | ||
2435 | /* confdefs.h. */ | ||
2436 | _ACEOF | ||
2437 | cat confdefs.h >>conftest.$ac_ext | ||
2438 | cat >>conftest.$ac_ext <<_ACEOF | ||
2439 | /* end confdefs.h. */ | ||
2440 | |||
2441 | int | ||
2442 | main () | ||
2443 | { | ||
2444 | |||
2445 | ; | ||
2446 | return 0; | ||
2447 | } | ||
2448 | _ACEOF | ||
2449 | rm -f conftest.o conftest.obj | ||
2450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2451 | (eval $ac_compile) 2>&5 | ||
2452 | ac_status=$? | ||
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2454 | (exit $ac_status); }; then | ||
2455 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
2456 | case $ac_file in | ||
2457 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
2458 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2459 | break;; | ||
2460 | esac | ||
2461 | done | ||
2462 | else | ||
2463 | echo "$as_me: failed program was:" >&5 | ||
2464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2465 | |||
2466 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2467 | See \`config.log' for more details." >&5 | ||
2468 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2469 | See \`config.log' for more details." >&2;} | ||
2470 | { (exit 1); exit 1; }; } | ||
2471 | fi | ||
2472 | |||
2473 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2474 | fi | ||
2475 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2476 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
2477 | OBJEXT=$ac_cv_objext | ||
2478 | ac_objext=$OBJEXT | ||
2479 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2480 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
2481 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2483 | else | ||
2484 | cat >conftest.$ac_ext <<_ACEOF | ||
2485 | /* confdefs.h. */ | ||
2486 | _ACEOF | ||
2487 | cat confdefs.h >>conftest.$ac_ext | ||
2488 | cat >>conftest.$ac_ext <<_ACEOF | ||
2489 | /* end confdefs.h. */ | ||
2490 | |||
2491 | int | ||
2492 | main () | ||
2493 | { | ||
2494 | #ifndef __GNUC__ | ||
2495 | choke me | ||
2496 | #endif | ||
2497 | |||
2498 | ; | ||
2499 | return 0; | ||
2500 | } | ||
2501 | _ACEOF | ||
2502 | rm -f conftest.$ac_objext | ||
2503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2504 | (eval $ac_compile) 2>conftest.er1 | ||
2505 | ac_status=$? | ||
2506 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2507 | rm -f conftest.er1 | ||
2508 | cat conftest.err >&5 | ||
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2510 | (exit $ac_status); } && | ||
2511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2513 | (eval $ac_try) 2>&5 | ||
2514 | ac_status=$? | ||
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2516 | (exit $ac_status); }; } && | ||
2517 | { ac_try='test -s conftest.$ac_objext' | ||
2518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2519 | (eval $ac_try) 2>&5 | ||
2520 | ac_status=$? | ||
2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2522 | (exit $ac_status); }; }; then | ||
2523 | ac_compiler_gnu=yes | ||
2524 | else | ||
2525 | echo "$as_me: failed program was:" >&5 | ||
2526 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2527 | |||
2528 | ac_compiler_gnu=no | ||
2529 | fi | ||
2530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2531 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2532 | |||
2533 | fi | ||
2534 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2535 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
2536 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2537 | ac_test_CFLAGS=${CFLAGS+set} | ||
2538 | ac_save_CFLAGS=$CFLAGS | ||
2539 | CFLAGS="-g" | ||
2540 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2541 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
2542 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2544 | else | ||
2545 | cat >conftest.$ac_ext <<_ACEOF | ||
2546 | /* confdefs.h. */ | ||
2547 | _ACEOF | ||
2548 | cat confdefs.h >>conftest.$ac_ext | ||
2549 | cat >>conftest.$ac_ext <<_ACEOF | ||
2550 | /* end confdefs.h. */ | ||
2551 | |||
2552 | int | ||
2553 | main () | ||
2554 | { | ||
2555 | |||
2556 | ; | ||
2557 | return 0; | ||
2558 | } | ||
2559 | _ACEOF | ||
2560 | rm -f conftest.$ac_objext | ||
2561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2562 | (eval $ac_compile) 2>conftest.er1 | ||
2563 | ac_status=$? | ||
2564 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2565 | rm -f conftest.er1 | ||
2566 | cat conftest.err >&5 | ||
2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2568 | (exit $ac_status); } && | ||
2569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2571 | (eval $ac_try) 2>&5 | ||
2572 | ac_status=$? | ||
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2574 | (exit $ac_status); }; } && | ||
2575 | { ac_try='test -s conftest.$ac_objext' | ||
2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2577 | (eval $ac_try) 2>&5 | ||
2578 | ac_status=$? | ||
2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2580 | (exit $ac_status); }; }; then | ||
2581 | ac_cv_prog_cc_g=yes | ||
2582 | else | ||
2583 | echo "$as_me: failed program was:" >&5 | ||
2584 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2585 | |||
2586 | ac_cv_prog_cc_g=no | ||
2587 | fi | ||
2588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2589 | fi | ||
2590 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2591 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
2592 | if test "$ac_test_CFLAGS" = set; then | ||
2593 | CFLAGS=$ac_save_CFLAGS | ||
2594 | elif test $ac_cv_prog_cc_g = yes; then | ||
2595 | if test "$GCC" = yes; then | ||
2596 | CFLAGS="-g -O2" | ||
2597 | else | ||
2598 | CFLAGS="-g" | ||
2599 | fi | ||
2600 | else | ||
2601 | if test "$GCC" = yes; then | ||
2602 | CFLAGS="-O2" | ||
2603 | else | ||
2604 | CFLAGS= | ||
2605 | fi | ||
2606 | fi | ||
2607 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2608 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2609 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2611 | else | ||
2612 | ac_cv_prog_cc_stdc=no | ||
2613 | ac_save_CC=$CC | ||
2614 | cat >conftest.$ac_ext <<_ACEOF | ||
2615 | /* confdefs.h. */ | ||
2616 | _ACEOF | ||
2617 | cat confdefs.h >>conftest.$ac_ext | ||
2618 | cat >>conftest.$ac_ext <<_ACEOF | ||
2619 | /* end confdefs.h. */ | ||
2620 | #include <stdarg.h> | ||
2621 | #include <stdio.h> | ||
2622 | #include <sys/types.h> | ||
2623 | #include <sys/stat.h> | ||
2624 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2625 | struct buf { int x; }; | ||
2626 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2627 | static char *e (p, i) | ||
2628 | char **p; | ||
2629 | int i; | ||
2630 | { | ||
2631 | return p[i]; | ||
2632 | } | ||
2633 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2634 | { | ||
2635 | char *s; | ||
2636 | va_list v; | ||
2637 | va_start (v,p); | ||
2638 | s = g (p, va_arg (v,int)); | ||
2639 | va_end (v); | ||
2640 | return s; | ||
2641 | } | ||
2642 | |||
2643 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2644 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2645 | These don't provoke an error unfortunately, instead are silently treated | ||
2646 | as 'x'. The following induces an error, until -std1 is added to get | ||
2647 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2648 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2649 | that's true only with -std1. */ | ||
2650 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2651 | |||
2652 | int test (int i, double x); | ||
2653 | struct s1 {int (*f) (int a);}; | ||
2654 | struct s2 {int (*f) (double a);}; | ||
2655 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2656 | int argc; | ||
2657 | char **argv; | ||
2658 | int | ||
2659 | main () | ||
2660 | { | ||
2661 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2662 | ; | ||
2663 | return 0; | ||
2664 | } | ||
2665 | _ACEOF | ||
2666 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2667 | # breaks some systems' header files. | ||
2668 | # AIX -qlanglvl=ansi | ||
2669 | # Ultrix and OSF/1 -std1 | ||
2670 | # HP-UX 10.20 and later -Ae | ||
2671 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2672 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2673 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2674 | do | ||
2675 | CC="$ac_save_CC $ac_arg" | ||
2676 | rm -f conftest.$ac_objext | ||
2677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2678 | (eval $ac_compile) 2>conftest.er1 | ||
2679 | ac_status=$? | ||
2680 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2681 | rm -f conftest.er1 | ||
2682 | cat conftest.err >&5 | ||
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2684 | (exit $ac_status); } && | ||
2685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2687 | (eval $ac_try) 2>&5 | ||
2688 | ac_status=$? | ||
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2690 | (exit $ac_status); }; } && | ||
2691 | { ac_try='test -s conftest.$ac_objext' | ||
2692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2693 | (eval $ac_try) 2>&5 | ||
2694 | ac_status=$? | ||
2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2696 | (exit $ac_status); }; }; then | ||
2697 | ac_cv_prog_cc_stdc=$ac_arg | ||
2698 | break | ||
2699 | else | ||
2700 | echo "$as_me: failed program was:" >&5 | ||
2701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2702 | |||
2703 | fi | ||
2704 | rm -f conftest.err conftest.$ac_objext | ||
2705 | done | ||
2706 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2707 | CC=$ac_save_CC | ||
2708 | |||
2709 | fi | ||
2710 | |||
2711 | case "x$ac_cv_prog_cc_stdc" in | ||
2712 | x|xno) | ||
2713 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2714 | echo "${ECHO_T}none needed" >&6 ;; | ||
2715 | *) | ||
2716 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2717 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2718 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2719 | esac | ||
2720 | |||
2721 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2722 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2723 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2724 | # the declaration of exit, since it's the most demanding environment. | ||
2725 | cat >conftest.$ac_ext <<_ACEOF | ||
2726 | #ifndef __cplusplus | ||
2727 | choke me | ||
2728 | #endif | ||
2729 | _ACEOF | ||
2730 | rm -f conftest.$ac_objext | ||
2731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2732 | (eval $ac_compile) 2>conftest.er1 | ||
2733 | ac_status=$? | ||
2734 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2735 | rm -f conftest.er1 | ||
2736 | cat conftest.err >&5 | ||
2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2738 | (exit $ac_status); } && | ||
2739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2741 | (eval $ac_try) 2>&5 | ||
2742 | ac_status=$? | ||
2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2744 | (exit $ac_status); }; } && | ||
2745 | { ac_try='test -s conftest.$ac_objext' | ||
2746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2747 | (eval $ac_try) 2>&5 | ||
2748 | ac_status=$? | ||
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2750 | (exit $ac_status); }; }; then | ||
2751 | for ac_declaration in \ | ||
2752 | '' \ | ||
2753 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2754 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2755 | 'extern "C" void exit (int) throw ();' \ | ||
2756 | 'extern "C" void exit (int);' \ | ||
2757 | 'void exit (int);' | ||
2758 | do | ||
2759 | cat >conftest.$ac_ext <<_ACEOF | ||
2760 | /* confdefs.h. */ | ||
2761 | _ACEOF | ||
2762 | cat confdefs.h >>conftest.$ac_ext | ||
2763 | cat >>conftest.$ac_ext <<_ACEOF | ||
2764 | /* end confdefs.h. */ | ||
2765 | $ac_declaration | ||
2766 | #include <stdlib.h> | ||
2767 | int | ||
2768 | main () | ||
2769 | { | ||
2770 | exit (42); | ||
2771 | ; | ||
2772 | return 0; | ||
2773 | } | ||
2774 | _ACEOF | ||
2775 | rm -f conftest.$ac_objext | ||
2776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2777 | (eval $ac_compile) 2>conftest.er1 | ||
2778 | ac_status=$? | ||
2779 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2780 | rm -f conftest.er1 | ||
2781 | cat conftest.err >&5 | ||
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2783 | (exit $ac_status); } && | ||
2784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2786 | (eval $ac_try) 2>&5 | ||
2787 | ac_status=$? | ||
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2789 | (exit $ac_status); }; } && | ||
2790 | { ac_try='test -s conftest.$ac_objext' | ||
2791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2792 | (eval $ac_try) 2>&5 | ||
2793 | ac_status=$? | ||
2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2795 | (exit $ac_status); }; }; then | ||
2796 | : | ||
2797 | else | ||
2798 | echo "$as_me: failed program was:" >&5 | ||
2799 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2800 | |||
2801 | continue | ||
2802 | fi | ||
2803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2804 | cat >conftest.$ac_ext <<_ACEOF | ||
2805 | /* confdefs.h. */ | ||
2806 | _ACEOF | ||
2807 | cat confdefs.h >>conftest.$ac_ext | ||
2808 | cat >>conftest.$ac_ext <<_ACEOF | ||
2809 | /* end confdefs.h. */ | ||
2810 | $ac_declaration | ||
2811 | int | ||
2812 | main () | ||
2813 | { | ||
2814 | exit (42); | ||
2815 | ; | ||
2816 | return 0; | ||
2817 | } | ||
2818 | _ACEOF | ||
2819 | rm -f conftest.$ac_objext | ||
2820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2821 | (eval $ac_compile) 2>conftest.er1 | ||
2822 | ac_status=$? | ||
2823 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2824 | rm -f conftest.er1 | ||
2825 | cat conftest.err >&5 | ||
2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2827 | (exit $ac_status); } && | ||
2828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2830 | (eval $ac_try) 2>&5 | ||
2831 | ac_status=$? | ||
2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2833 | (exit $ac_status); }; } && | ||
2834 | { ac_try='test -s conftest.$ac_objext' | ||
2835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2836 | (eval $ac_try) 2>&5 | ||
2837 | ac_status=$? | ||
2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2839 | (exit $ac_status); }; }; then | ||
2840 | break | ||
2841 | else | ||
2842 | echo "$as_me: failed program was:" >&5 | ||
2843 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2844 | |||
2845 | fi | ||
2846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2847 | done | ||
2848 | rm -f conftest* | ||
2849 | if test -n "$ac_declaration"; then | ||
2850 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2851 | echo $ac_declaration >>confdefs.h | ||
2852 | echo '#endif' >>confdefs.h | ||
2853 | fi | ||
2854 | |||
2855 | else | ||
2856 | echo "$as_me: failed program was:" >&5 | ||
2857 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2858 | |||
2859 | fi | ||
2860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2861 | ac_ext=c | ||
2862 | ac_cpp='$CPP $CPPFLAGS' | ||
2863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2866 | DEPDIR="${am__leading_dot}deps" | ||
2867 | |||
2868 | ac_config_commands="$ac_config_commands depfiles" | ||
2869 | |||
2870 | |||
2871 | am_make=${MAKE-make} | ||
2872 | cat > confinc << 'END' | ||
2873 | am__doit: | ||
2874 | @echo done | ||
2875 | .PHONY: am__doit | ||
2876 | END | ||
2877 | # If we don't find an include directive, just comment out the code. | ||
2878 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
2879 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | ||
2880 | am__include="#" | ||
2881 | am__quote= | ||
2882 | _am_result=none | ||
2883 | # First try GNU make style include. | ||
2884 | echo "include confinc" > confmf | ||
2885 | # We grep out `Entering directory' and `Leaving directory' | ||
2886 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
2887 | # In particular we don't look at `^make:' because GNU make might | ||
2888 | # be invoked under some other name (usually "gmake"), in which | ||
2889 | # case it prints its new name instead of `make'. | ||
2890 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
2891 | am__include=include | ||
2892 | am__quote= | ||
2893 | _am_result=GNU | ||
2894 | fi | ||
2895 | # Now try BSD make style include. | ||
2896 | if test "$am__include" = "#"; then | ||
2897 | echo '.include "confinc"' > confmf | ||
2898 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
2899 | am__include=.include | ||
2900 | am__quote="\"" | ||
2901 | _am_result=BSD | ||
2902 | fi | ||
2903 | fi | ||
2904 | |||
2905 | |||
2906 | echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
2907 | echo "${ECHO_T}$_am_result" >&6 | ||
2908 | rm -f confinc confmf | ||
2909 | |||
2910 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | ||
2911 | if test "${enable_dependency_tracking+set}" = set; then | ||
2912 | enableval="$enable_dependency_tracking" | ||
2913 | |||
2914 | fi; | ||
2915 | if test "x$enable_dependency_tracking" != xno; then | ||
2916 | am_depcomp="$ac_aux_dir/depcomp" | ||
2917 | AMDEPBACKSLASH='\' | ||
2918 | fi | ||
2919 | |||
2920 | |||
2921 | if test "x$enable_dependency_tracking" != xno; then | ||
2922 | AMDEP_TRUE= | ||
2923 | AMDEP_FALSE='#' | ||
2924 | else | ||
2925 | AMDEP_TRUE='#' | ||
2926 | AMDEP_FALSE= | ||
2927 | fi | ||
2928 | |||
2929 | |||
2930 | |||
2931 | |||
2932 | depcc="$CC" am_compiler_list= | ||
2933 | |||
2934 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
2935 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | ||
2936 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
2937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2938 | else | ||
2939 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
2940 | # We make a subdir and do the tests there. Otherwise we can end up | ||
2941 | # making bogus files that we don't know about and never remove. For | ||
2942 | # instance it was reported that on HP-UX the gcc test will end up | ||
2943 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
2944 | # in D'. | ||
2945 | mkdir conftest.dir | ||
2946 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
2947 | # using a relative directory. | ||
2948 | cp "$am_depcomp" conftest.dir | ||
2949 | cd conftest.dir | ||
2950 | # We will build objects and dependencies in a subdirectory because | ||
2951 | # it helps to detect inapplicable dependency modes. For instance | ||
2952 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
2953 | # side effect of compilation, but ICC will put the dependencies in | ||
2954 | # the current directory while Tru64 will put them in the object | ||
2955 | # directory. | ||
2956 | mkdir sub | ||
2957 | |||
2958 | am_cv_CC_dependencies_compiler_type=none | ||
2959 | if test "$am_compiler_list" = ""; then | ||
2960 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
2961 | fi | ||
2962 | for depmode in $am_compiler_list; do | ||
2963 | # Setup a source with many dependencies, because some compilers | ||
2964 | # like to wrap large dependency lists on column 80 (with \), and | ||
2965 | # we should not choose a depcomp mode which is confused by this. | ||
2966 | # | ||
2967 | # We need to recreate these files for each test, as the compiler may | ||
2968 | # overwrite some of them when testing with obscure command lines. | ||
2969 | # This happens at least with the AIX C compiler. | ||
2970 | : > sub/conftest.c | ||
2971 | for i in 1 2 3 4 5 6; do | ||
2972 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
2973 | : > sub/conftst$i.h | ||
2974 | done | ||
2975 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
2976 | |||
2977 | case $depmode in | ||
2978 | nosideeffect) | ||
2979 | # after this tag, mechanisms are not by side-effect, so they'll | ||
2980 | # only be used when explicitly requested | ||
2981 | if test "x$enable_dependency_tracking" = xyes; then | ||
2982 | continue | ||
2983 | else | ||
2984 | break | ||
2985 | fi | ||
2986 | ;; | ||
2987 | none) break ;; | ||
2988 | esac | ||
2989 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
2990 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
2991 | # handle `-M -o', and we need to detect this. | ||
2992 | if depmode=$depmode \ | ||
2993 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
2994 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
2995 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
2996 | >/dev/null 2>conftest.err && | ||
2997 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
2998 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
2999 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3000 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3001 | # (even with -Werror). So we grep stderr for any message | ||
3002 | # that says an option was ignored. | ||
3003 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | ||
3004 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3005 | break | ||
3006 | fi | ||
3007 | fi | ||
3008 | done | ||
3009 | |||
3010 | cd .. | ||
3011 | rm -rf conftest.dir | ||
3012 | else | ||
3013 | am_cv_CC_dependencies_compiler_type=none | ||
3014 | fi | ||
3015 | |||
3016 | fi | ||
3017 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3018 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | ||
3019 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3020 | |||
3021 | |||
3022 | |||
3023 | if | ||
3024 | test "x$enable_dependency_tracking" != xno \ | ||
3025 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3026 | am__fastdepCC_TRUE= | ||
3027 | am__fastdepCC_FALSE='#' | ||
3028 | else | ||
3029 | am__fastdepCC_TRUE='#' | ||
3030 | am__fastdepCC_FALSE= | ||
3031 | fi | ||
3032 | |||
3033 | |||
3034 | ac_ext=c | ||
3035 | ac_cpp='$CPP $CPPFLAGS' | ||
3036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3039 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3040 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
3041 | # On Suns, sometimes $CPP names a directory. | ||
3042 | if test -n "$CPP" && test -d "$CPP"; then | ||
3043 | CPP= | ||
3044 | fi | ||
3045 | if test -z "$CPP"; then | ||
3046 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3048 | else | ||
3049 | # Double quotes because CPP needs to be expanded | ||
3050 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3051 | do | ||
3052 | ac_preproc_ok=false | ||
3053 | for ac_c_preproc_warn_flag in '' yes | ||
3054 | do | ||
3055 | # Use a header file that comes with gcc, so configuring glibc | ||
3056 | # with a fresh cross-compiler works. | ||
3057 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3058 | # <limits.h> exists even on freestanding compilers. | ||
3059 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3060 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3061 | cat >conftest.$ac_ext <<_ACEOF | ||
3062 | /* confdefs.h. */ | ||
3063 | _ACEOF | ||
3064 | cat confdefs.h >>conftest.$ac_ext | ||
3065 | cat >>conftest.$ac_ext <<_ACEOF | ||
3066 | /* end confdefs.h. */ | ||
3067 | #ifdef __STDC__ | ||
3068 | # include <limits.h> | ||
3069 | #else | ||
3070 | # include <assert.h> | ||
3071 | #endif | ||
3072 | Syntax error | ||
3073 | _ACEOF | ||
3074 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
3075 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
3076 | ac_status=$? | ||
3077 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3078 | rm -f conftest.er1 | ||
3079 | cat conftest.err >&5 | ||
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3081 | (exit $ac_status); } >/dev/null; then | ||
3082 | if test -s conftest.err; then | ||
3083 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3085 | else | ||
3086 | ac_cpp_err= | ||
3087 | fi | ||
3088 | else | ||
3089 | ac_cpp_err=yes | ||
3090 | fi | ||
3091 | if test -z "$ac_cpp_err"; then | ||
3092 | : | ||
3093 | else | ||
3094 | echo "$as_me: failed program was:" >&5 | ||
3095 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3096 | |||
3097 | # Broken: fails on valid input. | ||
3098 | continue | ||
3099 | fi | ||
3100 | rm -f conftest.err conftest.$ac_ext | ||
3101 | |||
3102 | # OK, works on sane cases. Now check whether non-existent headers | ||
3103 | # can be detected and how. | ||
3104 | cat >conftest.$ac_ext <<_ACEOF | ||
3105 | /* confdefs.h. */ | ||
3106 | _ACEOF | ||
3107 | cat confdefs.h >>conftest.$ac_ext | ||
3108 | cat >>conftest.$ac_ext <<_ACEOF | ||
3109 | /* end confdefs.h. */ | ||
3110 | #include <ac_nonexistent.h> | ||
3111 | _ACEOF | ||
3112 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
3113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
3114 | ac_status=$? | ||
3115 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3116 | rm -f conftest.er1 | ||
3117 | cat conftest.err >&5 | ||
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3119 | (exit $ac_status); } >/dev/null; then | ||
3120 | if test -s conftest.err; then | ||
3121 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3122 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3123 | else | ||
3124 | ac_cpp_err= | ||
3125 | fi | ||
3126 | else | ||
3127 | ac_cpp_err=yes | ||
3128 | fi | ||
3129 | if test -z "$ac_cpp_err"; then | ||
3130 | # Broken: success on invalid input. | ||
3131 | continue | ||
3132 | else | ||
3133 | echo "$as_me: failed program was:" >&5 | ||
3134 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3135 | |||
3136 | # Passes both tests. | ||
3137 | ac_preproc_ok=: | ||
3138 | break | ||
3139 | fi | ||
3140 | rm -f conftest.err conftest.$ac_ext | ||
3141 | |||
3142 | done | ||
3143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3144 | rm -f conftest.err conftest.$ac_ext | ||
3145 | if $ac_preproc_ok; then | ||
3146 | break | ||
3147 | fi | ||
3148 | |||
3149 | done | ||
3150 | ac_cv_prog_CPP=$CPP | ||
3151 | |||
3152 | fi | ||
3153 | CPP=$ac_cv_prog_CPP | ||
3154 | else | ||
3155 | ac_cv_prog_CPP=$CPP | ||
3156 | fi | ||
3157 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3158 | echo "${ECHO_T}$CPP" >&6 | ||
3159 | ac_preproc_ok=false | ||
3160 | for ac_c_preproc_warn_flag in '' yes | ||
3161 | do | ||
3162 | # Use a header file that comes with gcc, so configuring glibc | ||
3163 | # with a fresh cross-compiler works. | ||
3164 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3165 | # <limits.h> exists even on freestanding compilers. | ||
3166 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3167 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3168 | cat >conftest.$ac_ext <<_ACEOF | ||
3169 | /* confdefs.h. */ | ||
3170 | _ACEOF | ||
3171 | cat confdefs.h >>conftest.$ac_ext | ||
3172 | cat >>conftest.$ac_ext <<_ACEOF | ||
3173 | /* end confdefs.h. */ | ||
3174 | #ifdef __STDC__ | ||
3175 | # include <limits.h> | ||
3176 | #else | ||
3177 | # include <assert.h> | ||
3178 | #endif | ||
3179 | Syntax error | ||
3180 | _ACEOF | ||
3181 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
3182 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
3183 | ac_status=$? | ||
3184 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3185 | rm -f conftest.er1 | ||
3186 | cat conftest.err >&5 | ||
3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3188 | (exit $ac_status); } >/dev/null; then | ||
3189 | if test -s conftest.err; then | ||
3190 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3191 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3192 | else | ||
3193 | ac_cpp_err= | ||
3194 | fi | ||
3195 | else | ||
3196 | ac_cpp_err=yes | ||
3197 | fi | ||
3198 | if test -z "$ac_cpp_err"; then | ||
3199 | : | ||
3200 | else | ||
3201 | echo "$as_me: failed program was:" >&5 | ||
3202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3203 | |||
3204 | # Broken: fails on valid input. | ||
3205 | continue | ||
3206 | fi | ||
3207 | rm -f conftest.err conftest.$ac_ext | ||
3208 | |||
3209 | # OK, works on sane cases. Now check whether non-existent headers | ||
3210 | # can be detected and how. | ||
3211 | cat >conftest.$ac_ext <<_ACEOF | ||
3212 | /* confdefs.h. */ | ||
3213 | _ACEOF | ||
3214 | cat confdefs.h >>conftest.$ac_ext | ||
3215 | cat >>conftest.$ac_ext <<_ACEOF | ||
3216 | /* end confdefs.h. */ | ||
3217 | #include <ac_nonexistent.h> | ||
3218 | _ACEOF | ||
3219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
3220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
3221 | ac_status=$? | ||
3222 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3223 | rm -f conftest.er1 | ||
3224 | cat conftest.err >&5 | ||
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3226 | (exit $ac_status); } >/dev/null; then | ||
3227 | if test -s conftest.err; then | ||
3228 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3230 | else | ||
3231 | ac_cpp_err= | ||
3232 | fi | ||
3233 | else | ||
3234 | ac_cpp_err=yes | ||
3235 | fi | ||
3236 | if test -z "$ac_cpp_err"; then | ||
3237 | # Broken: success on invalid input. | ||
3238 | continue | ||
3239 | else | ||
3240 | echo "$as_me: failed program was:" >&5 | ||
3241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3242 | |||
3243 | # Passes both tests. | ||
3244 | ac_preproc_ok=: | ||
3245 | break | ||
3246 | fi | ||
3247 | rm -f conftest.err conftest.$ac_ext | ||
3248 | |||
3249 | done | ||
3250 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3251 | rm -f conftest.err conftest.$ac_ext | ||
3252 | if $ac_preproc_ok; then | ||
3253 | : | ||
3254 | else | ||
3255 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3256 | See \`config.log' for more details." >&5 | ||
3257 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3258 | See \`config.log' for more details." >&2;} | ||
3259 | { (exit 1); exit 1; }; } | ||
3260 | fi | ||
3261 | |||
3262 | ac_ext=c | ||
3263 | ac_cpp='$CPP $CPPFLAGS' | ||
3264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3267 | |||
3268 | # Check whether --enable-shared or --disable-shared was given. | ||
3269 | if test "${enable_shared+set}" = set; then | ||
3270 | enableval="$enable_shared" | ||
3271 | p=${PACKAGE-default} | ||
3272 | case $enableval in | ||
3273 | yes) enable_shared=yes ;; | ||
3274 | no) enable_shared=no ;; | ||
3275 | *) | ||
3276 | enable_shared=no | ||
3277 | # Look at the argument we got. We use all the common list separators. | ||
3278 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | ||
3279 | for pkg in $enableval; do | ||
3280 | if test "X$pkg" = "X$p"; then | ||
3281 | enable_shared=yes | ||
3282 | fi | ||
3283 | done | ||
3284 | IFS="$ac_save_ifs" | ||
3285 | ;; | ||
3286 | esac | ||
3287 | else | ||
3288 | enable_shared=yes | ||
3289 | fi; | ||
3290 | # Check whether --enable-static or --disable-static was given. | ||
3291 | if test "${enable_static+set}" = set; then | ||
3292 | enableval="$enable_static" | ||
3293 | p=${PACKAGE-default} | ||
3294 | case $enableval in | ||
3295 | yes) enable_static=yes ;; | ||
3296 | no) enable_static=no ;; | ||
3297 | *) | ||
3298 | enable_static=no | ||
3299 | # Look at the argument we got. We use all the common list separators. | ||
3300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | ||
3301 | for pkg in $enableval; do | ||
3302 | if test "X$pkg" = "X$p"; then | ||
3303 | enable_static=yes | ||
3304 | fi | ||
3305 | done | ||
3306 | IFS="$ac_save_ifs" | ||
3307 | ;; | ||
3308 | esac | ||
3309 | else | ||
3310 | enable_static=yes | ||
3311 | fi; | ||
3312 | # Check whether --enable-fast-install or --disable-fast-install was given. | ||
3313 | if test "${enable_fast_install+set}" = set; then | ||
3314 | enableval="$enable_fast_install" | ||
3315 | p=${PACKAGE-default} | ||
3316 | case $enableval in | ||
3317 | yes) enable_fast_install=yes ;; | ||
3318 | no) enable_fast_install=no ;; | ||
3319 | *) | ||
3320 | enable_fast_install=no | ||
3321 | # Look at the argument we got. We use all the common list separators. | ||
3322 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | ||
3323 | for pkg in $enableval; do | ||
3324 | if test "X$pkg" = "X$p"; then | ||
3325 | enable_fast_install=yes | ||
3326 | fi | ||
3327 | done | ||
3328 | IFS="$ac_save_ifs" | ||
3329 | ;; | ||
3330 | esac | ||
3331 | else | ||
3332 | enable_fast_install=yes | ||
3333 | fi; | ||
3334 | # Make sure we can run config.sub. | ||
3335 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
3336 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
3337 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
3338 | { (exit 1); exit 1; }; } | ||
3339 | |||
3340 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
3341 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
3342 | if test "${ac_cv_build+set}" = set; then | ||
3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3344 | else | ||
3345 | ac_cv_build_alias=$build_alias | ||
3346 | test -z "$ac_cv_build_alias" && | ||
3347 | ac_cv_build_alias=`$ac_config_guess` | ||
3348 | test -z "$ac_cv_build_alias" && | ||
3349 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
3350 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
3351 | { (exit 1); exit 1; }; } | ||
3352 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
3353 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
3354 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
3355 | { (exit 1); exit 1; }; } | ||
3356 | |||
3357 | fi | ||
3358 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
3359 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
3360 | build=$ac_cv_build | ||
3361 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
3362 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
3363 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
3364 | |||
3365 | |||
3366 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
3367 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
3368 | if test "${ac_cv_host+set}" = set; then | ||
3369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3370 | else | ||
3371 | ac_cv_host_alias=$host_alias | ||
3372 | test -z "$ac_cv_host_alias" && | ||
3373 | ac_cv_host_alias=$ac_cv_build_alias | ||
3374 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
3375 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
3376 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
3377 | { (exit 1); exit 1; }; } | ||
3378 | |||
3379 | fi | ||
3380 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
3381 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
3382 | host=$ac_cv_host | ||
3383 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
3384 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
3385 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
3386 | |||
3387 | |||
3388 | # Find the correct PATH separator. Usually this is `:', but | ||
3389 | # DJGPP uses `;' like DOS. | ||
3390 | if test "X${PATH_SEPARATOR+set}" != Xset; then | ||
3391 | UNAME=${UNAME-`uname 2>/dev/null`} | ||
3392 | case X$UNAME in | ||
3393 | *-DOS) lt_cv_sys_path_separator=';' ;; | ||
3394 | *) lt_cv_sys_path_separator=':' ;; | ||
3395 | esac | ||
3396 | PATH_SEPARATOR=$lt_cv_sys_path_separator | ||
3397 | fi | ||
3398 | |||
3399 | |||
3400 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
3401 | if test "${with_gnu_ld+set}" = set; then | ||
3402 | withval="$with_gnu_ld" | ||
3403 | test "$withval" = no || with_gnu_ld=yes | ||
3404 | else | ||
3405 | with_gnu_ld=no | ||
3406 | fi; | ||
3407 | ac_prog=ld | ||
3408 | if test "$GCC" = yes; then | ||
3409 | # Check if gcc -print-prog-name=ld gives a path. | ||
3410 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | ||
3411 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | ||
3412 | case $host in | ||
3413 | *-*-mingw*) | ||
3414 | # gcc leaves a trailing carriage return which upsets mingw | ||
3415 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
3416 | *) | ||
3417 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
3418 | esac | ||
3419 | case $ac_prog in | ||
3420 | # Accept absolute paths. | ||
3421 | [\\/]* | [A-Za-z]:[\\/]*) | ||
3422 | re_direlt='/[^/][^/]*/\.\./' | ||
3423 | # Canonicalize the path of ld | ||
3424 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
3425 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
3426 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
3427 | done | ||
3428 | test -z "$LD" && LD="$ac_prog" | ||
3429 | ;; | ||
3430 | "") | ||
3431 | # If it fails, then pretend we aren't using GCC. | ||
3432 | ac_prog=ld | ||
3433 | ;; | ||
3434 | *) | ||
3435 | # If it is relative, then search for the first ld in PATH. | ||
3436 | with_gnu_ld=unknown | ||
3437 | ;; | ||
3438 | esac | ||
3439 | elif test "$with_gnu_ld" = yes; then | ||
3440 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
3441 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | ||
3442 | else | ||
3443 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
3444 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | ||
3445 | fi | ||
3446 | if test "${lt_cv_path_LD+set}" = set; then | ||
3447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3448 | else | ||
3449 | if test -z "$LD"; then | ||
3450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3451 | for ac_dir in $PATH; do | ||
3452 | test -z "$ac_dir" && ac_dir=. | ||
3453 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
3454 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
3455 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
3456 | # but apparently some GNU ld's only accept -v. | ||
3457 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
3458 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | ||
3459 | test "$with_gnu_ld" != no && break | ||
3460 | else | ||
3461 | test "$with_gnu_ld" != yes && break | ||
3462 | fi | ||
3463 | fi | ||
3464 | done | ||
3465 | IFS="$ac_save_ifs" | ||
3466 | else | ||
3467 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
3468 | fi | ||
3469 | fi | ||
3470 | |||
3471 | LD="$lt_cv_path_LD" | ||
3472 | if test -n "$LD"; then | ||
3473 | echo "$as_me:$LINENO: result: $LD" >&5 | ||
3474 | echo "${ECHO_T}$LD" >&6 | ||
3475 | else | ||
3476 | echo "$as_me:$LINENO: result: no" >&5 | ||
3477 | echo "${ECHO_T}no" >&6 | ||
3478 | fi | ||
3479 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
3480 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
3481 | { (exit 1); exit 1; }; } | ||
3482 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
3483 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | ||
3484 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
3485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3486 | else | ||
3487 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
3488 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | ||
3489 | lt_cv_prog_gnu_ld=yes | ||
3490 | else | ||
3491 | lt_cv_prog_gnu_ld=no | ||
3492 | fi | ||
3493 | fi | ||
3494 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
3495 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | ||
3496 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
3497 | |||
3498 | |||
3499 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
3500 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | ||
3501 | if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
3502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3503 | else | ||
3504 | lt_cv_ld_reload_flag='-r' | ||
3505 | fi | ||
3506 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | ||
3507 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | ||
3508 | reload_flag=$lt_cv_ld_reload_flag | ||
3509 | test -n "$reload_flag" && reload_flag=" $reload_flag" | ||
3510 | |||
3511 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | ||
3512 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | ||
3513 | if test "${lt_cv_path_NM+set}" = set; then | ||
3514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3515 | else | ||
3516 | if test -n "$NM"; then | ||
3517 | # Let the user override the test. | ||
3518 | lt_cv_path_NM="$NM" | ||
3519 | else | ||
3520 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3521 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | ||
3522 | test -z "$ac_dir" && ac_dir=. | ||
3523 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | ||
3524 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | ||
3525 | # Check to see if the nm accepts a BSD-compat flag. | ||
3526 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
3527 | # nm: unknown option "B" ignored | ||
3528 | # Tru64's nm complains that /dev/null is an invalid object file | ||
3529 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | ||
3530 | lt_cv_path_NM="$tmp_nm -B" | ||
3531 | break | ||
3532 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | ||
3533 | lt_cv_path_NM="$tmp_nm -p" | ||
3534 | break | ||
3535 | else | ||
3536 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3537 | continue # so that we can try to find one that supports BSD flags | ||
3538 | fi | ||
3539 | fi | ||
3540 | done | ||
3541 | IFS="$ac_save_ifs" | ||
3542 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
3543 | fi | ||
3544 | fi | ||
3545 | |||
3546 | NM="$lt_cv_path_NM" | ||
3547 | echo "$as_me:$LINENO: result: $NM" >&5 | ||
3548 | echo "${ECHO_T}$NM" >&6 | ||
3549 | |||
3550 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||
3551 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | ||
3552 | if test "${lt_cv_path_SED+set}" = set; then | ||
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3554 | else | ||
3555 | # Loop through the user's path and test for sed and gsed. | ||
3556 | # Then use that list of sed's as ones to test for truncation. | ||
3557 | as_executable_p="test -f" | ||
3558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3559 | for as_dir in $PATH | ||
3560 | do | ||
3561 | IFS=$as_save_IFS | ||
3562 | test -z "$as_dir" && as_dir=. | ||
3563 | for ac_prog in sed gsed; do | ||
3564 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3565 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
3566 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" | ||
3567 | fi | ||
3568 | done | ||
3569 | done | ||
3570 | done | ||
3571 | |||
3572 | # Create a temporary directory, and hook for its removal unless debugging. | ||
3573 | $debug || | ||
3574 | { | ||
3575 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
3576 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
3577 | } | ||
3578 | |||
3579 | # Create a (secure) tmp directory for tmp files. | ||
3580 | : ${TMPDIR=/tmp} | ||
3581 | { | ||
3582 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && | ||
3583 | test -n "$tmp" && test -d "$tmp" | ||
3584 | } || | ||
3585 | { | ||
3586 | tmp=$TMPDIR/sed$$-$RANDOM | ||
3587 | (umask 077 && mkdir $tmp) | ||
3588 | } || | ||
3589 | { | ||
3590 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
3591 | { (exit 1); exit 1; } | ||
3592 | } | ||
3593 | _max=0 | ||
3594 | _count=0 | ||
3595 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
3596 | # along with /bin/sed that truncates output. | ||
3597 | for _sed in $_sed_list /usr/xpg4/bin/sed; do | ||
3598 | test ! -f ${_sed} && break | ||
3599 | cat /dev/null > "$tmp/sed.in" | ||
3600 | _count=0 | ||
3601 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" | ||
3602 | # Check for GNU sed and select it if it is found. | ||
3603 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then | ||
3604 | lt_cv_path_SED=${_sed} | ||
3605 | break | ||
3606 | fi | ||
3607 | while true; do | ||
3608 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" | ||
3609 | mv "$tmp/sed.tmp" "$tmp/sed.in" | ||
3610 | cp "$tmp/sed.in" "$tmp/sed.nl" | ||
3611 | echo >>"$tmp/sed.nl" | ||
3612 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break | ||
3613 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break | ||
3614 | # 40000 chars as input seems more than enough | ||
3615 | test $_count -gt 10 && break | ||
3616 | _count=`expr $_count + 1` | ||
3617 | if test $_count -gt $_max; then | ||
3618 | _max=$_count | ||
3619 | lt_cv_path_SED=$_sed | ||
3620 | fi | ||
3621 | done | ||
3622 | done | ||
3623 | rm -rf "$tmp" | ||
3624 | |||
3625 | fi | ||
3626 | |||
3627 | if test "X$SED" != "X"; then | ||
3628 | lt_cv_path_SED=$SED | ||
3629 | else | ||
3630 | SED=$lt_cv_path_SED | ||
3631 | fi | ||
3632 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3633 | echo "${ECHO_T}$SED" >&6 | ||
3634 | |||
3635 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | ||
3636 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | ||
3637 | LN_S=$as_ln_s | ||
3638 | if test "$LN_S" = "ln -s"; then | ||
3639 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3640 | echo "${ECHO_T}yes" >&6 | ||
3641 | else | ||
3642 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | ||
3643 | echo "${ECHO_T}no, using $LN_S" >&6 | ||
3644 | fi | ||
3645 | |||
3646 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | ||
3647 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | ||
3648 | if test "${lt_cv_deplibs_check_method+set}" = set; then | ||
3649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3650 | else | ||
3651 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
3652 | lt_cv_file_magic_test_file= | ||
3653 | lt_cv_deplibs_check_method='unknown' | ||
3654 | # Need to set the preceding variable on all platforms that support | ||
3655 | # interlibrary dependencies. | ||
3656 | # 'none' -- dependencies not supported. | ||
3657 | # `unknown' -- same as none, but documents that we really don't know. | ||
3658 | # 'pass_all' -- all dependencies passed with no checks. | ||
3659 | # 'test_compile' -- check by making test program. | ||
3660 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
3661 | # which responds to the $file_magic_cmd with a given egrep regex. | ||
3662 | # If you have `file' or equivalent on your system and you're not sure | ||
3663 | # whether `pass_all' will *always* work, you probably want this one. | ||
3664 | |||
3665 | case $host_os in | ||
3666 | aix4* | aix5*) | ||
3667 | lt_cv_deplibs_check_method=pass_all | ||
3668 | ;; | ||
3669 | |||
3670 | beos*) | ||
3671 | lt_cv_deplibs_check_method=pass_all | ||
3672 | ;; | ||
3673 | |||
3674 | bsdi4*) | ||
3675 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
3676 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3677 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3678 | ;; | ||
3679 | |||
3680 | cygwin* | mingw* | pw32*) | ||
3681 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
3682 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3683 | ;; | ||
3684 | |||
3685 | darwin* | rhapsody*) | ||
3686 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | ||
3687 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3688 | case "$host_os" in | ||
3689 | rhapsody* | darwin1.[012]) | ||
3690 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` | ||
3691 | ;; | ||
3692 | *) # Darwin 1.3 on | ||
3693 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | ||
3694 | ;; | ||
3695 | esac | ||
3696 | ;; | ||
3697 | |||
3698 | freebsd*) | ||
3699 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3700 | case $host_cpu in | ||
3701 | i*86 ) | ||
3702 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
3703 | # Let's accept both of them until this is cleared up. | ||
3704 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | ||
3705 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3706 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3707 | ;; | ||
3708 | esac | ||
3709 | else | ||
3710 | lt_cv_deplibs_check_method=pass_all | ||
3711 | fi | ||
3712 | ;; | ||
3713 | |||
3714 | gnu*) | ||
3715 | lt_cv_deplibs_check_method=pass_all | ||
3716 | ;; | ||
3717 | |||
3718 | hpux10.20*|hpux11*) | ||
3719 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
3720 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3721 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
3722 | ;; | ||
3723 | |||
3724 | irix5* | irix6* | nonstopux*) | ||
3725 | case $host_os in | ||
3726 | irix5* | nonstopux*) | ||
3727 | # this will be overridden with pass_all, but let us keep it just in case | ||
3728 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | ||
3729 | ;; | ||
3730 | *) | ||
3731 | case $LD in | ||
3732 | *-32|*"-32 ") libmagic=32-bit;; | ||
3733 | *-n32|*"-n32 ") libmagic=N32;; | ||
3734 | *-64|*"-64 ") libmagic=64-bit;; | ||
3735 | *) libmagic=never-match;; | ||
3736 | esac | ||
3737 | # this will be overridden with pass_all, but let us keep it just in case | ||
3738 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | ||
3739 | ;; | ||
3740 | esac | ||
3741 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | ||
3742 | lt_cv_deplibs_check_method=pass_all | ||
3743 | ;; | ||
3744 | |||
3745 | # This must be Linux ELF. | ||
3746 | linux-gnu*) | ||
3747 | case $host_cpu in | ||
3748 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k) | ||
3749 | lt_cv_deplibs_check_method=pass_all ;; | ||
3750 | *) | ||
3751 | # glibc up to 2.1.1 does not perform some relocations on ARM | ||
3752 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | ||
3753 | esac | ||
3754 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
3755 | ;; | ||
3756 | |||
3757 | netbsd*) | ||
3758 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3759 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | ||
3760 | else | ||
3761 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | ||
3762 | fi | ||
3763 | ;; | ||
3764 | |||
3765 | newos6*) | ||
3766 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
3767 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3768 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
3769 | ;; | ||
3770 | |||
3771 | openbsd*) | ||
3772 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3773 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3774 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3775 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | ||
3776 | else | ||
3777 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | ||
3778 | fi | ||
3779 | ;; | ||
3780 | |||
3781 | osf3* | osf4* | osf5*) | ||
3782 | # this will be overridden with pass_all, but let us keep it just in case | ||
3783 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | ||
3784 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3785 | lt_cv_deplibs_check_method=pass_all | ||
3786 | ;; | ||
3787 | |||
3788 | sco3.2v5*) | ||
3789 | lt_cv_deplibs_check_method=pass_all | ||
3790 | ;; | ||
3791 | |||
3792 | solaris*) | ||
3793 | lt_cv_deplibs_check_method=pass_all | ||
3794 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3795 | ;; | ||
3796 | |||
3797 | sysv5uw[78]* | sysv4*uw2*) | ||
3798 | lt_cv_deplibs_check_method=pass_all | ||
3799 | ;; | ||
3800 | |||
3801 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
3802 | case $host_vendor in | ||
3803 | motorola) | ||
3804 | 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]' | ||
3805 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
3806 | ;; | ||
3807 | ncr) | ||
3808 | lt_cv_deplibs_check_method=pass_all | ||
3809 | ;; | ||
3810 | sequent) | ||
3811 | lt_cv_file_magic_cmd='/bin/file' | ||
3812 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
3813 | ;; | ||
3814 | sni) | ||
3815 | lt_cv_file_magic_cmd='/bin/file' | ||
3816 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
3817 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3818 | ;; | ||
3819 | siemens) | ||
3820 | lt_cv_deplibs_check_method=pass_all | ||
3821 | ;; | ||
3822 | esac | ||
3823 | ;; | ||
3824 | esac | ||
3825 | |||
3826 | fi | ||
3827 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | ||
3828 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | ||
3829 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
3830 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
3831 | |||
3832 | |||
3833 | |||
3834 | |||
3835 | |||
3836 | |||
3837 | |||
3838 | |||
3839 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
3840 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 | ||
3841 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 | ||
3842 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | ||
3843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3844 | else | ||
3845 | |||
3846 | # These are sane defaults that work on at least a few old systems. | ||
3847 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
3848 | |||
3849 | # Character class describing NM global symbol codes. | ||
3850 | symcode='[BCDEGRST]' | ||
3851 | |||
3852 | # Regexp to match symbols that can be accessed directly from C. | ||
3853 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
3854 | |||
3855 | # Transform the above into a raw symbol and a C symbol. | ||
3856 | symxfrm='\1 \2\3 \3' | ||
3857 | |||
3858 | # Transform an extracted symbol line into a proper C declaration | ||
3859 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | ||
3860 | |||
3861 | # Transform an extracted symbol line into symbol name and symbol address | ||
3862 | 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'" | ||
3863 | |||
3864 | # Define system-specific variables. | ||
3865 | case $host_os in | ||
3866 | aix*) | ||
3867 | symcode='[BCDT]' | ||
3868 | ;; | ||
3869 | cygwin* | mingw* | pw32*) | ||
3870 | symcode='[ABCDGISTW]' | ||
3871 | ;; | ||
3872 | hpux*) # Its linker distinguishes data from code symbols | ||
3873 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
3874 | 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'" | ||
3875 | ;; | ||
3876 | irix* | nonstopux*) | ||
3877 | symcode='[BCDEGRST]' | ||
3878 | ;; | ||
3879 | osf*) | ||
3880 | symcode='[BCDEGQRST]' | ||
3881 | ;; | ||
3882 | solaris* | sysv5*) | ||
3883 | symcode='[BDT]' | ||
3884 | ;; | ||
3885 | sysv4) | ||
3886 | symcode='[DFNSTU]' | ||
3887 | ;; | ||
3888 | esac | ||
3889 | |||
3890 | # Handle CRLF in mingw tool chain | ||
3891 | opt_cr= | ||
3892 | case $host_os in | ||
3893 | mingw*) | ||
3894 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
3895 | ;; | ||
3896 | esac | ||
3897 | |||
3898 | # If we're using GNU nm, then use its standard symbol codes. | ||
3899 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | ||
3900 | symcode='[ABCDGISTW]' | ||
3901 | fi | ||
3902 | |||
3903 | # Try without a prefix undercore, then with it. | ||
3904 | for ac_symprfx in "" "_"; do | ||
3905 | |||
3906 | # Write the raw and C identifiers. | ||
3907 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | ||
3908 | |||
3909 | # Check to see that the pipe works correctly. | ||
3910 | pipe_works=no | ||
3911 | rm -f conftest* | ||
3912 | cat > conftest.$ac_ext <<EOF | ||
3913 | #ifdef __cplusplus | ||
3914 | extern "C" { | ||
3915 | #endif | ||
3916 | char nm_test_var; | ||
3917 | void nm_test_func(){} | ||
3918 | #ifdef __cplusplus | ||
3919 | } | ||
3920 | #endif | ||
3921 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
3922 | EOF | ||
3923 | |||
3924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3925 | (eval $ac_compile) 2>&5 | ||
3926 | ac_status=$? | ||
3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3928 | (exit $ac_status); }; then | ||
3929 | # Now try to grab the symbols. | ||
3930 | nlist=conftest.nm | ||
3931 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | ||
3932 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
3933 | ac_status=$? | ||
3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3935 | (exit $ac_status); } && test -s "$nlist"; then | ||
3936 | # Try sorting and uniquifying the output. | ||
3937 | if sort "$nlist" | uniq > "$nlist"T; then | ||
3938 | mv -f "$nlist"T "$nlist" | ||
3939 | else | ||
3940 | rm -f "$nlist"T | ||
3941 | fi | ||
3942 | |||
3943 | # Make sure that we snagged all the symbols we need. | ||
3944 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | ||
3945 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | ||
3946 | cat <<EOF > conftest.$ac_ext | ||
3947 | #ifdef __cplusplus | ||
3948 | extern "C" { | ||
3949 | #endif | ||
3950 | |||
3951 | EOF | ||
3952 | # Now generate the symbol file. | ||
3953 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' | ||
3954 | |||
3955 | cat <<EOF >> conftest.$ac_ext | ||
3956 | #if defined (__STDC__) && __STDC__ | ||
3957 | # define lt_ptr void * | ||
3958 | #else | ||
3959 | # define lt_ptr char * | ||
3960 | # define const | ||
3961 | #endif | ||
3962 | |||
3963 | /* The mapping between symbol names and symbols. */ | ||
3964 | const struct { | ||
3965 | const char *name; | ||
3966 | lt_ptr address; | ||
3967 | } | ||
3968 | lt_preloaded_symbols[] = | ||
3969 | { | ||
3970 | EOF | ||
3971 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext | ||
3972 | cat <<\EOF >> conftest.$ac_ext | ||
3973 | {0, (lt_ptr) 0} | ||
3974 | }; | ||
3975 | |||
3976 | #ifdef __cplusplus | ||
3977 | } | ||
3978 | #endif | ||
3979 | EOF | ||
3980 | # Now try linking the two files. | ||
3981 | mv conftest.$ac_objext conftstm.$ac_objext | ||
3982 | save_LIBS="$LIBS" | ||
3983 | save_CFLAGS="$CFLAGS" | ||
3984 | LIBS="conftstm.$ac_objext" | ||
3985 | CFLAGS="$CFLAGS$no_builtin_flag" | ||
3986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3987 | (eval $ac_link) 2>&5 | ||
3988 | ac_status=$? | ||
3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3990 | (exit $ac_status); } && test -s conftest$ac_exeext; then | ||
3991 | pipe_works=yes | ||
3992 | fi | ||
3993 | LIBS="$save_LIBS" | ||
3994 | CFLAGS="$save_CFLAGS" | ||
3995 | else | ||
3996 | echo "cannot find nm_test_func in $nlist" >&5 | ||
3997 | fi | ||
3998 | else | ||
3999 | echo "cannot find nm_test_var in $nlist" >&5 | ||
4000 | fi | ||
4001 | else | ||
4002 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
4003 | fi | ||
4004 | else | ||
4005 | echo "$progname: failed program was:" >&5 | ||
4006 | cat conftest.$ac_ext >&5 | ||
4007 | fi | ||
4008 | rm -f conftest* conftst* | ||
4009 | |||
4010 | # Do not use the global_symbol_pipe unless it works. | ||
4011 | if test "$pipe_works" = yes; then | ||
4012 | break | ||
4013 | else | ||
4014 | lt_cv_sys_global_symbol_pipe= | ||
4015 | fi | ||
4016 | done | ||
4017 | |||
4018 | fi | ||
4019 | |||
4020 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" | ||
4021 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
4022 | global_symbol_to_cdecl= | ||
4023 | global_symbol_to_c_name_address= | ||
4024 | else | ||
4025 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" | ||
4026 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" | ||
4027 | fi | ||
4028 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; | ||
4029 | then | ||
4030 | echo "$as_me:$LINENO: result: failed" >&5 | ||
4031 | echo "${ECHO_T}failed" >&6 | ||
4032 | else | ||
4033 | echo "$as_me:$LINENO: result: ok" >&5 | ||
4034 | echo "${ECHO_T}ok" >&6 | ||
4035 | fi | ||
4036 | |||
4037 | |||
4038 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4039 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
4040 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4042 | else | ||
4043 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
4044 | then ac_cv_prog_egrep='grep -E' | ||
4045 | else ac_cv_prog_egrep='egrep' | ||
4046 | fi | ||
4047 | fi | ||
4048 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
4049 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
4050 | EGREP=$ac_cv_prog_egrep | ||
4051 | |||
4052 | |||
4053 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4054 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
4055 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4057 | else | ||
4058 | cat >conftest.$ac_ext <<_ACEOF | ||
4059 | /* confdefs.h. */ | ||
4060 | _ACEOF | ||
4061 | cat confdefs.h >>conftest.$ac_ext | ||
4062 | cat >>conftest.$ac_ext <<_ACEOF | ||
4063 | /* end confdefs.h. */ | ||
4064 | #include <stdlib.h> | ||
4065 | #include <stdarg.h> | ||
4066 | #include <string.h> | ||
4067 | #include <float.h> | ||
4068 | |||
4069 | int | ||
4070 | main () | ||
4071 | { | ||
4072 | |||
4073 | ; | ||
4074 | return 0; | ||
4075 | } | ||
4076 | _ACEOF | ||
4077 | rm -f conftest.$ac_objext | ||
4078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4079 | (eval $ac_compile) 2>conftest.er1 | ||
4080 | ac_status=$? | ||
4081 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4082 | rm -f conftest.er1 | ||
4083 | cat conftest.err >&5 | ||
4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4085 | (exit $ac_status); } && | ||
4086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4088 | (eval $ac_try) 2>&5 | ||
4089 | ac_status=$? | ||
4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4091 | (exit $ac_status); }; } && | ||
4092 | { ac_try='test -s conftest.$ac_objext' | ||
4093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4094 | (eval $ac_try) 2>&5 | ||
4095 | ac_status=$? | ||
4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4097 | (exit $ac_status); }; }; then | ||
4098 | ac_cv_header_stdc=yes | ||
4099 | else | ||
4100 | echo "$as_me: failed program was:" >&5 | ||
4101 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4102 | |||
4103 | ac_cv_header_stdc=no | ||
4104 | fi | ||
4105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4106 | |||
4107 | if test $ac_cv_header_stdc = yes; then | ||
4108 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4109 | cat >conftest.$ac_ext <<_ACEOF | ||
4110 | /* confdefs.h. */ | ||
4111 | _ACEOF | ||
4112 | cat confdefs.h >>conftest.$ac_ext | ||
4113 | cat >>conftest.$ac_ext <<_ACEOF | ||
4114 | /* end confdefs.h. */ | ||
4115 | #include <string.h> | ||
4116 | |||
4117 | _ACEOF | ||
4118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4119 | $EGREP "memchr" >/dev/null 2>&1; then | ||
4120 | : | ||
4121 | else | ||
4122 | ac_cv_header_stdc=no | ||
4123 | fi | ||
4124 | rm -f conftest* | ||
4125 | |||
4126 | fi | ||
4127 | |||
4128 | if test $ac_cv_header_stdc = yes; then | ||
4129 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4130 | cat >conftest.$ac_ext <<_ACEOF | ||
4131 | /* confdefs.h. */ | ||
4132 | _ACEOF | ||
4133 | cat confdefs.h >>conftest.$ac_ext | ||
4134 | cat >>conftest.$ac_ext <<_ACEOF | ||
4135 | /* end confdefs.h. */ | ||
4136 | #include <stdlib.h> | ||
4137 | |||
4138 | _ACEOF | ||
4139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4140 | $EGREP "free" >/dev/null 2>&1; then | ||
4141 | : | ||
4142 | else | ||
4143 | ac_cv_header_stdc=no | ||
4144 | fi | ||
4145 | rm -f conftest* | ||
4146 | |||
4147 | fi | ||
4148 | |||
4149 | if test $ac_cv_header_stdc = yes; then | ||
4150 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4151 | if test "$cross_compiling" = yes; then | ||
4152 | : | ||
4153 | else | ||
4154 | cat >conftest.$ac_ext <<_ACEOF | ||
4155 | /* confdefs.h. */ | ||
4156 | _ACEOF | ||
4157 | cat confdefs.h >>conftest.$ac_ext | ||
4158 | cat >>conftest.$ac_ext <<_ACEOF | ||
4159 | /* end confdefs.h. */ | ||
4160 | #include <ctype.h> | ||
4161 | #if ((' ' & 0x0FF) == 0x020) | ||
4162 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4163 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4164 | #else | ||
4165 | # define ISLOWER(c) \ | ||
4166 | (('a' <= (c) && (c) <= 'i') \ | ||
4167 | || ('j' <= (c) && (c) <= 'r') \ | ||
4168 | || ('s' <= (c) && (c) <= 'z')) | ||
4169 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4170 | #endif | ||
4171 | |||
4172 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4173 | int | ||
4174 | main () | ||
4175 | { | ||
4176 | int i; | ||
4177 | for (i = 0; i < 256; i++) | ||
4178 | if (XOR (islower (i), ISLOWER (i)) | ||
4179 | || toupper (i) != TOUPPER (i)) | ||
4180 | exit(2); | ||
4181 | exit (0); | ||
4182 | } | ||
4183 | _ACEOF | ||
4184 | rm -f conftest$ac_exeext | ||
4185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4186 | (eval $ac_link) 2>&5 | ||
4187 | ac_status=$? | ||
4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4191 | (eval $ac_try) 2>&5 | ||
4192 | ac_status=$? | ||
4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4194 | (exit $ac_status); }; }; then | ||
4195 | : | ||
4196 | else | ||
4197 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4198 | echo "$as_me: failed program was:" >&5 | ||
4199 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4200 | |||
4201 | ( exit $ac_status ) | ||
4202 | ac_cv_header_stdc=no | ||
4203 | fi | ||
4204 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4205 | fi | ||
4206 | fi | ||
4207 | fi | ||
4208 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4209 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
4210 | if test $ac_cv_header_stdc = yes; then | ||
4211 | |||
4212 | cat >>confdefs.h <<\_ACEOF | ||
4213 | #define STDC_HEADERS 1 | ||
4214 | _ACEOF | ||
4215 | |||
4216 | fi | ||
4217 | |||
4218 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4219 | |||
4220 | |||
4221 | |||
4222 | |||
4223 | |||
4224 | |||
4225 | |||
4226 | |||
4227 | |||
4228 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4229 | inttypes.h stdint.h unistd.h | ||
4230 | do | ||
4231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4232 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4236 | else | ||
4237 | cat >conftest.$ac_ext <<_ACEOF | ||
4238 | /* confdefs.h. */ | ||
4239 | _ACEOF | ||
4240 | cat confdefs.h >>conftest.$ac_ext | ||
4241 | cat >>conftest.$ac_ext <<_ACEOF | ||
4242 | /* end confdefs.h. */ | ||
4243 | $ac_includes_default | ||
4244 | |||
4245 | #include <$ac_header> | ||
4246 | _ACEOF | ||
4247 | rm -f conftest.$ac_objext | ||
4248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4249 | (eval $ac_compile) 2>conftest.er1 | ||
4250 | ac_status=$? | ||
4251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4252 | rm -f conftest.er1 | ||
4253 | cat conftest.err >&5 | ||
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4255 | (exit $ac_status); } && | ||
4256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4258 | (eval $ac_try) 2>&5 | ||
4259 | ac_status=$? | ||
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4261 | (exit $ac_status); }; } && | ||
4262 | { ac_try='test -s conftest.$ac_objext' | ||
4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4264 | (eval $ac_try) 2>&5 | ||
4265 | ac_status=$? | ||
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4267 | (exit $ac_status); }; }; then | ||
4268 | eval "$as_ac_Header=yes" | ||
4269 | else | ||
4270 | echo "$as_me: failed program was:" >&5 | ||
4271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4272 | |||
4273 | eval "$as_ac_Header=no" | ||
4274 | fi | ||
4275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4276 | fi | ||
4277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4279 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4280 | cat >>confdefs.h <<_ACEOF | ||
4281 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4282 | _ACEOF | ||
4283 | |||
4284 | fi | ||
4285 | |||
4286 | done | ||
4287 | |||
4288 | |||
4289 | |||
4290 | for ac_header in dlfcn.h | ||
4291 | do | ||
4292 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4298 | fi | ||
4299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4300 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4301 | else | ||
4302 | # Is the header compilable? | ||
4303 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
4304 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
4305 | cat >conftest.$ac_ext <<_ACEOF | ||
4306 | /* confdefs.h. */ | ||
4307 | _ACEOF | ||
4308 | cat confdefs.h >>conftest.$ac_ext | ||
4309 | cat >>conftest.$ac_ext <<_ACEOF | ||
4310 | /* end confdefs.h. */ | ||
4311 | $ac_includes_default | ||
4312 | #include <$ac_header> | ||
4313 | _ACEOF | ||
4314 | rm -f conftest.$ac_objext | ||
4315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4316 | (eval $ac_compile) 2>conftest.er1 | ||
4317 | ac_status=$? | ||
4318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4319 | rm -f conftest.er1 | ||
4320 | cat conftest.err >&5 | ||
4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4322 | (exit $ac_status); } && | ||
4323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4325 | (eval $ac_try) 2>&5 | ||
4326 | ac_status=$? | ||
4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4328 | (exit $ac_status); }; } && | ||
4329 | { ac_try='test -s conftest.$ac_objext' | ||
4330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4331 | (eval $ac_try) 2>&5 | ||
4332 | ac_status=$? | ||
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4334 | (exit $ac_status); }; }; then | ||
4335 | ac_header_compiler=yes | ||
4336 | else | ||
4337 | echo "$as_me: failed program was:" >&5 | ||
4338 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4339 | |||
4340 | ac_header_compiler=no | ||
4341 | fi | ||
4342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4344 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
4345 | |||
4346 | # Is the header present? | ||
4347 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
4348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
4349 | cat >conftest.$ac_ext <<_ACEOF | ||
4350 | /* confdefs.h. */ | ||
4351 | _ACEOF | ||
4352 | cat confdefs.h >>conftest.$ac_ext | ||
4353 | cat >>conftest.$ac_ext <<_ACEOF | ||
4354 | /* end confdefs.h. */ | ||
4355 | #include <$ac_header> | ||
4356 | _ACEOF | ||
4357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4359 | ac_status=$? | ||
4360 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4361 | rm -f conftest.er1 | ||
4362 | cat conftest.err >&5 | ||
4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4364 | (exit $ac_status); } >/dev/null; then | ||
4365 | if test -s conftest.err; then | ||
4366 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4368 | else | ||
4369 | ac_cpp_err= | ||
4370 | fi | ||
4371 | else | ||
4372 | ac_cpp_err=yes | ||
4373 | fi | ||
4374 | if test -z "$ac_cpp_err"; then | ||
4375 | ac_header_preproc=yes | ||
4376 | else | ||
4377 | echo "$as_me: failed program was:" >&5 | ||
4378 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4379 | |||
4380 | ac_header_preproc=no | ||
4381 | fi | ||
4382 | rm -f conftest.err conftest.$ac_ext | ||
4383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4384 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
4385 | |||
4386 | # So? What about this header? | ||
4387 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
4388 | yes:no: ) | ||
4389 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4390 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4391 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
4392 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
4393 | ac_header_preproc=yes | ||
4394 | ;; | ||
4395 | no:yes:* ) | ||
4396 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
4397 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
4398 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
4399 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
4400 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
4401 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
4402 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
4403 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
4404 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
4405 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
4406 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
4407 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
4408 | ( | ||
4409 | cat <<\_ASBOX | ||
4410 | ## ---------------------------------- ## | ||
4411 | ## Report this to bug-gnupg@gnupg.org ## | ||
4412 | ## ---------------------------------- ## | ||
4413 | _ASBOX | ||
4414 | ) | | ||
4415 | sed "s/^/$as_me: WARNING: /" >&2 | ||
4416 | ;; | ||
4417 | esac | ||
4418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4422 | else | ||
4423 | eval "$as_ac_Header=\$ac_header_preproc" | ||
4424 | fi | ||
4425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4426 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4427 | |||
4428 | fi | ||
4429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4430 | cat >>confdefs.h <<_ACEOF | ||
4431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4432 | _ACEOF | ||
4433 | |||
4434 | fi | ||
4435 | |||
4436 | done | ||
4437 | |||
4438 | |||
4439 | |||
4440 | |||
4441 | |||
4442 | |||
4443 | # Only perform the check for file, if the check method requires it | ||
4444 | case $deplibs_check_method in | ||
4445 | file_magic*) | ||
4446 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
4447 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | ||
4448 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | ||
4449 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
4450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4451 | else | ||
4452 | case $MAGIC_CMD in | ||
4453 | /*) | ||
4454 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
4455 | ;; | ||
4456 | ?:/*) | ||
4457 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | ||
4458 | ;; | ||
4459 | *) | ||
4460 | ac_save_MAGIC_CMD="$MAGIC_CMD" | ||
4461 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
4462 | ac_dummy="/usr/bin:$PATH" | ||
4463 | for ac_dir in $ac_dummy; do | ||
4464 | test -z "$ac_dir" && ac_dir=. | ||
4465 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
4466 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
4467 | if test -n "$file_magic_test_file"; then | ||
4468 | case $deplibs_check_method in | ||
4469 | "file_magic "*) | ||
4470 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
4471 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
4472 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
4473 | egrep "$file_magic_regex" > /dev/null; then | ||
4474 | : | ||
4475 | else | ||
4476 | cat <<EOF 1>&2 | ||
4477 | |||
4478 | *** Warning: the command libtool uses to detect shared libraries, | ||
4479 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
4480 | *** The result is that libtool may fail to recognize shared libraries | ||
4481 | *** as such. This will affect the creation of libtool libraries that | ||
4482 | *** depend on shared libraries, but programs linked with such libtool | ||
4483 | *** libraries will work regardless of this problem. Nevertheless, you | ||
4484 | *** may want to report the problem to your system manager and/or to | ||
4485 | *** bug-libtool@gnu.org | ||
4486 | |||
4487 | EOF | ||
4488 | fi ;; | ||
4489 | esac | ||
4490 | fi | ||
4491 | break | ||
4492 | fi | ||
4493 | done | ||
4494 | IFS="$ac_save_ifs" | ||
4495 | MAGIC_CMD="$ac_save_MAGIC_CMD" | ||
4496 | ;; | ||
4497 | esac | ||
4498 | fi | ||
4499 | |||
4500 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
4501 | if test -n "$MAGIC_CMD"; then | ||
4502 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
4503 | echo "${ECHO_T}$MAGIC_CMD" >&6 | ||
4504 | else | ||
4505 | echo "$as_me:$LINENO: result: no" >&5 | ||
4506 | echo "${ECHO_T}no" >&6 | ||
4507 | fi | ||
4508 | |||
4509 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
4510 | if test -n "$ac_tool_prefix"; then | ||
4511 | echo "$as_me:$LINENO: checking for file" >&5 | ||
4512 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | ||
4513 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
4514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4515 | else | ||
4516 | case $MAGIC_CMD in | ||
4517 | /*) | ||
4518 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
4519 | ;; | ||
4520 | ?:/*) | ||
4521 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | ||
4522 | ;; | ||
4523 | *) | ||
4524 | ac_save_MAGIC_CMD="$MAGIC_CMD" | ||
4525 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
4526 | ac_dummy="/usr/bin:$PATH" | ||
4527 | for ac_dir in $ac_dummy; do | ||
4528 | test -z "$ac_dir" && ac_dir=. | ||
4529 | if test -f $ac_dir/file; then | ||
4530 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
4531 | if test -n "$file_magic_test_file"; then | ||
4532 | case $deplibs_check_method in | ||
4533 | "file_magic "*) | ||
4534 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
4535 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
4536 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
4537 | egrep "$file_magic_regex" > /dev/null; then | ||
4538 | : | ||
4539 | else | ||
4540 | cat <<EOF 1>&2 | ||
4541 | |||
4542 | *** Warning: the command libtool uses to detect shared libraries, | ||
4543 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
4544 | *** The result is that libtool may fail to recognize shared libraries | ||
4545 | *** as such. This will affect the creation of libtool libraries that | ||
4546 | *** depend on shared libraries, but programs linked with such libtool | ||
4547 | *** libraries will work regardless of this problem. Nevertheless, you | ||
4548 | *** may want to report the problem to your system manager and/or to | ||
4549 | *** bug-libtool@gnu.org | ||
4550 | |||
4551 | EOF | ||
4552 | fi ;; | ||
4553 | esac | ||
4554 | fi | ||
4555 | break | ||
4556 | fi | ||
4557 | done | ||
4558 | IFS="$ac_save_ifs" | ||
4559 | MAGIC_CMD="$ac_save_MAGIC_CMD" | ||
4560 | ;; | ||
4561 | esac | ||
4562 | fi | ||
4563 | |||
4564 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
4565 | if test -n "$MAGIC_CMD"; then | ||
4566 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
4567 | echo "${ECHO_T}$MAGIC_CMD" >&6 | ||
4568 | else | ||
4569 | echo "$as_me:$LINENO: result: no" >&5 | ||
4570 | echo "${ECHO_T}no" >&6 | ||
4571 | fi | ||
4572 | |||
4573 | else | ||
4574 | MAGIC_CMD=: | ||
4575 | fi | ||
4576 | fi | ||
4577 | |||
4578 | fi | ||
4579 | ;; | ||
4580 | esac | ||
4581 | |||
4582 | if test -n "$ac_tool_prefix"; then | ||
4583 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4584 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4587 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4589 | else | ||
4590 | if test -n "$RANLIB"; then | ||
4591 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4592 | else | ||
4593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4594 | for as_dir in $PATH | ||
4595 | do | ||
4596 | IFS=$as_save_IFS | ||
4597 | test -z "$as_dir" && as_dir=. | ||
4598 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4600 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4602 | break 2 | ||
4603 | fi | ||
4604 | done | ||
4605 | done | ||
4606 | |||
4607 | fi | ||
4608 | fi | ||
4609 | RANLIB=$ac_cv_prog_RANLIB | ||
4610 | if test -n "$RANLIB"; then | ||
4611 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4612 | echo "${ECHO_T}$RANLIB" >&6 | ||
4613 | else | ||
4614 | echo "$as_me:$LINENO: result: no" >&5 | ||
4615 | echo "${ECHO_T}no" >&6 | ||
4616 | fi | ||
4617 | |||
4618 | fi | ||
4619 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4620 | ac_ct_RANLIB=$RANLIB | ||
4621 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4622 | set dummy ranlib; ac_word=$2 | ||
4623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4625 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4627 | else | ||
4628 | if test -n "$ac_ct_RANLIB"; then | ||
4629 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4630 | else | ||
4631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4632 | for as_dir in $PATH | ||
4633 | do | ||
4634 | IFS=$as_save_IFS | ||
4635 | test -z "$as_dir" && as_dir=. | ||
4636 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4638 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4640 | break 2 | ||
4641 | fi | ||
4642 | done | ||
4643 | done | ||
4644 | |||
4645 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
4646 | fi | ||
4647 | fi | ||
4648 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4649 | if test -n "$ac_ct_RANLIB"; then | ||
4650 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4651 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
4652 | else | ||
4653 | echo "$as_me:$LINENO: result: no" >&5 | ||
4654 | echo "${ECHO_T}no" >&6 | ||
4655 | fi | ||
4656 | |||
4657 | RANLIB=$ac_ct_RANLIB | ||
4658 | else | ||
4659 | RANLIB="$ac_cv_prog_RANLIB" | ||
4660 | fi | ||
4661 | |||
4662 | if test -n "$ac_tool_prefix"; then | ||
4663 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
4664 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
4665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4667 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4669 | else | ||
4670 | if test -n "$STRIP"; then | ||
4671 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
4672 | else | ||
4673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4674 | for as_dir in $PATH | ||
4675 | do | ||
4676 | IFS=$as_save_IFS | ||
4677 | test -z "$as_dir" && as_dir=. | ||
4678 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4680 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
4681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4682 | break 2 | ||
4683 | fi | ||
4684 | done | ||
4685 | done | ||
4686 | |||
4687 | fi | ||
4688 | fi | ||
4689 | STRIP=$ac_cv_prog_STRIP | ||
4690 | if test -n "$STRIP"; then | ||
4691 | echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
4692 | echo "${ECHO_T}$STRIP" >&6 | ||
4693 | else | ||
4694 | echo "$as_me:$LINENO: result: no" >&5 | ||
4695 | echo "${ECHO_T}no" >&6 | ||
4696 | fi | ||
4697 | |||
4698 | fi | ||
4699 | if test -z "$ac_cv_prog_STRIP"; then | ||
4700 | ac_ct_STRIP=$STRIP | ||
4701 | # Extract the first word of "strip", so it can be a program name with args. | ||
4702 | set dummy strip; ac_word=$2 | ||
4703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4705 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4707 | else | ||
4708 | if test -n "$ac_ct_STRIP"; then | ||
4709 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
4710 | else | ||
4711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4712 | for as_dir in $PATH | ||
4713 | do | ||
4714 | IFS=$as_save_IFS | ||
4715 | test -z "$as_dir" && as_dir=. | ||
4716 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4718 | ac_cv_prog_ac_ct_STRIP="strip" | ||
4719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4720 | break 2 | ||
4721 | fi | ||
4722 | done | ||
4723 | done | ||
4724 | |||
4725 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | ||
4726 | fi | ||
4727 | fi | ||
4728 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
4729 | if test -n "$ac_ct_STRIP"; then | ||
4730 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
4731 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | ||
4732 | else | ||
4733 | echo "$as_me:$LINENO: result: no" >&5 | ||
4734 | echo "${ECHO_T}no" >&6 | ||
4735 | fi | ||
4736 | |||
4737 | STRIP=$ac_ct_STRIP | ||
4738 | else | ||
4739 | STRIP="$ac_cv_prog_STRIP" | ||
4740 | fi | ||
4741 | |||
4742 | |||
4743 | enable_dlopen=no | ||
4744 | enable_win32_dll=no | ||
4745 | |||
4746 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | ||
4747 | if test "${enable_libtool_lock+set}" = set; then | ||
4748 | enableval="$enable_libtool_lock" | ||
4749 | |||
4750 | fi; | ||
4751 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
4752 | |||
4753 | # Some flags need to be propagated to the compiler or linker for good | ||
4754 | # libtool support. | ||
4755 | case $host in | ||
4756 | *-*-irix6*) | ||
4757 | # Find out which ABI we are using. | ||
4758 | echo '#line 4758 "configure"' > conftest.$ac_ext | ||
4759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4760 | (eval $ac_compile) 2>&5 | ||
4761 | ac_status=$? | ||
4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4763 | (exit $ac_status); }; then | ||
4764 | case `/usr/bin/file conftest.$ac_objext` in | ||
4765 | *32-bit*) | ||
4766 | LD="${LD-ld} -32" | ||
4767 | ;; | ||
4768 | *N32*) | ||
4769 | LD="${LD-ld} -n32" | ||
4770 | ;; | ||
4771 | *64-bit*) | ||
4772 | LD="${LD-ld} -64" | ||
4773 | ;; | ||
4774 | esac | ||
4775 | fi | ||
4776 | rm -rf conftest* | ||
4777 | ;; | ||
4778 | |||
4779 | *-*-sco3.2v5*) | ||
4780 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
4781 | SAVE_CFLAGS="$CFLAGS" | ||
4782 | CFLAGS="$CFLAGS -belf" | ||
4783 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | ||
4784 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | ||
4785 | if test "${lt_cv_cc_needs_belf+set}" = set; then | ||
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4787 | else | ||
4788 | |||
4789 | |||
4790 | ac_ext=c | ||
4791 | ac_cpp='$CPP $CPPFLAGS' | ||
4792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4795 | |||
4796 | cat >conftest.$ac_ext <<_ACEOF | ||
4797 | /* confdefs.h. */ | ||
4798 | _ACEOF | ||
4799 | cat confdefs.h >>conftest.$ac_ext | ||
4800 | cat >>conftest.$ac_ext <<_ACEOF | ||
4801 | /* end confdefs.h. */ | ||
4802 | |||
4803 | int | ||
4804 | main () | ||
4805 | { | ||
4806 | |||
4807 | ; | ||
4808 | return 0; | ||
4809 | } | ||
4810 | _ACEOF | ||
4811 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4813 | (eval $ac_link) 2>conftest.er1 | ||
4814 | ac_status=$? | ||
4815 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4816 | rm -f conftest.er1 | ||
4817 | cat conftest.err >&5 | ||
4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4819 | (exit $ac_status); } && | ||
4820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4822 | (eval $ac_try) 2>&5 | ||
4823 | ac_status=$? | ||
4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4825 | (exit $ac_status); }; } && | ||
4826 | { ac_try='test -s conftest$ac_exeext' | ||
4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4828 | (eval $ac_try) 2>&5 | ||
4829 | ac_status=$? | ||
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4831 | (exit $ac_status); }; }; then | ||
4832 | lt_cv_cc_needs_belf=yes | ||
4833 | else | ||
4834 | echo "$as_me: failed program was:" >&5 | ||
4835 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4836 | |||
4837 | lt_cv_cc_needs_belf=no | ||
4838 | fi | ||
4839 | rm -f conftest.err conftest.$ac_objext \ | ||
4840 | conftest$ac_exeext conftest.$ac_ext | ||
4841 | ac_ext=c | ||
4842 | ac_cpp='$CPP $CPPFLAGS' | ||
4843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4846 | |||
4847 | fi | ||
4848 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | ||
4849 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | ||
4850 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
4851 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
4852 | CFLAGS="$SAVE_CFLAGS" | ||
4853 | fi | ||
4854 | ;; | ||
4855 | |||
4856 | |||
4857 | esac | ||
4858 | |||
4859 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
4860 | # metacharacters that are still active within double-quoted strings. | ||
4861 | Xsed='sed -e s/^X//' | ||
4862 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | ||
4863 | |||
4864 | # Same as above, but do not quote variable references. | ||
4865 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | ||
4866 | |||
4867 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
4868 | # double_quote_subst'ed string. | ||
4869 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
4870 | |||
4871 | # Constants: | ||
4872 | rm="rm -f" | ||
4873 | |||
4874 | # Global variables: | ||
4875 | default_ofile=libtool | ||
4876 | can_build_shared=yes | ||
4877 | |||
4878 | # All known linkers require a `.a' archive for static linking (except M$VC, | ||
4879 | # which needs '.lib'). | ||
4880 | libext=a | ||
4881 | ltmain="$ac_aux_dir/ltmain.sh" | ||
4882 | ofile="$default_ofile" | ||
4883 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
4884 | need_locks="$enable_libtool_lock" | ||
4885 | |||
4886 | old_CC="$CC" | ||
4887 | old_CFLAGS="$CFLAGS" | ||
4888 | |||
4889 | # Set sane defaults for various variables | ||
4890 | test -z "$AR" && AR=ar | ||
4891 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
4892 | test -z "$AS" && AS=as | ||
4893 | test -z "$CC" && CC=cc | ||
4894 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
4895 | test -z "$LD" && LD=ld | ||
4896 | test -z "$LN_S" && LN_S="ln -s" | ||
4897 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
4898 | test -z "$NM" && NM=nm | ||
4899 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
4900 | test -z "$RANLIB" && RANLIB=: | ||
4901 | test -z "$STRIP" && STRIP=: | ||
4902 | test -z "$ac_objext" && ac_objext=o | ||
4903 | |||
4904 | if test x"$host" != x"$build"; then | ||
4905 | ac_tool_prefix=${host_alias}- | ||
4906 | else | ||
4907 | ac_tool_prefix= | ||
4908 | fi | ||
4909 | |||
4910 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. | ||
4911 | case $host_os in | ||
4912 | linux-gnu*) ;; | ||
4913 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` | ||
4914 | esac | ||
4915 | |||
4916 | case $host_os in | ||
4917 | aix3*) | ||
4918 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
4919 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
4920 | # vanish in a puff of smoke. | ||
4921 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
4922 | COLLECT_NAMES= | ||
4923 | export COLLECT_NAMES | ||
4924 | fi | ||
4925 | ;; | ||
4926 | esac | ||
4927 | |||
4928 | # Determine commands to create old-style static archives. | ||
4929 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
4930 | old_postinstall_cmds='chmod 644 $oldlib' | ||
4931 | old_postuninstall_cmds= | ||
4932 | |||
4933 | if test -n "$RANLIB"; then | ||
4934 | case $host_os in | ||
4935 | openbsd*) | ||
4936 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | ||
4937 | ;; | ||
4938 | *) | ||
4939 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | ||
4940 | ;; | ||
4941 | esac | ||
4942 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
4943 | fi | ||
4944 | |||
4945 | # Allow CC to be a program name with arguments. | ||
4946 | set dummy $CC | ||
4947 | compiler="$2" | ||
4948 | |||
4949 | echo "$as_me:$LINENO: checking for objdir" >&5 | ||
4950 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | ||
4951 | rm -f .libs 2>/dev/null | ||
4952 | mkdir .libs 2>/dev/null | ||
4953 | if test -d .libs; then | ||
4954 | objdir=.libs | ||
4955 | else | ||
4956 | # MS-DOS does not allow filenames that begin with a dot. | ||
4957 | objdir=_libs | ||
4958 | fi | ||
4959 | rmdir .libs 2>/dev/null | ||
4960 | echo "$as_me:$LINENO: result: $objdir" >&5 | ||
4961 | echo "${ECHO_T}$objdir" >&6 | ||
4962 | |||
4963 | |||
4964 | |||
4965 | # Check whether --with-pic or --without-pic was given. | ||
4966 | if test "${with_pic+set}" = set; then | ||
4967 | withval="$with_pic" | ||
4968 | pic_mode="$withval" | ||
4969 | else | ||
4970 | pic_mode=default | ||
4971 | fi; | ||
4972 | test -z "$pic_mode" && pic_mode=default | ||
4973 | |||
4974 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached | ||
4975 | # in isolation, and that seeing it set (from the cache) indicates that | ||
4976 | # the associated values are set (in the cache) correctly too. | ||
4977 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
4978 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | ||
4979 | if test "${lt_cv_prog_cc_pic+set}" = set; then | ||
4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4981 | else | ||
4982 | lt_cv_prog_cc_pic= | ||
4983 | lt_cv_prog_cc_shlib= | ||
4984 | lt_cv_prog_cc_wl= | ||
4985 | lt_cv_prog_cc_static= | ||
4986 | lt_cv_prog_cc_no_builtin= | ||
4987 | lt_cv_prog_cc_can_build_shared=$can_build_shared | ||
4988 | |||
4989 | if test "$GCC" = yes; then | ||
4990 | lt_cv_prog_cc_wl='-Wl,' | ||
4991 | lt_cv_prog_cc_static='-static' | ||
4992 | |||
4993 | case $host_os in | ||
4994 | aix*) | ||
4995 | # Below there is a dirty hack to force normal static linking with -ldl | ||
4996 | # The problem is because libdl dynamically linked with both libc and | ||
4997 | # libC (AIX C++ library), which obviously doesn't included in libraries | ||
4998 | # list by gcc. This cause undefined symbols with -static flags. | ||
4999 | # This hack allows C programs to be linked with "-static -ldl", but | ||
5000 | # not sure about C++ programs. | ||
5001 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" | ||
5002 | ;; | ||
5003 | amigaos*) | ||
5004 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
5005 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
5006 | # like `-m68040'. | ||
5007 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' | ||
5008 | ;; | ||
5009 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
5010 | # PIC is the default for these OSes. | ||
5011 | ;; | ||
5012 | darwin* | rhapsody*) | ||
5013 | # PIC is the default on this platform | ||
5014 | # Common symbols not allowed in MH_DYLIB files | ||
5015 | lt_cv_prog_cc_pic='-fno-common' | ||
5016 | ;; | ||
5017 | cygwin* | mingw* | pw32* | os2*) | ||
5018 | # This hack is so that the source file can tell whether it is being | ||
5019 | # built for inclusion in a dll (and should export symbols for example). | ||
5020 | lt_cv_prog_cc_pic='-DDLL_EXPORT' | ||
5021 | ;; | ||
5022 | sysv4*MP*) | ||
5023 | if test -d /usr/nec; then | ||
5024 | lt_cv_prog_cc_pic=-Kconform_pic | ||
5025 | fi | ||
5026 | ;; | ||
5027 | *) | ||
5028 | lt_cv_prog_cc_pic='-fPIC' | ||
5029 | ;; | ||
5030 | esac | ||
5031 | else | ||
5032 | # PORTME Check for PIC flags for the system compiler. | ||
5033 | case $host_os in | ||
5034 | aix3* | aix4* | aix5*) | ||
5035 | lt_cv_prog_cc_wl='-Wl,' | ||
5036 | # All AIX code is PIC. | ||
5037 | if test "$host_cpu" = ia64; then | ||
5038 | # AIX 5 now supports IA64 processor | ||
5039 | lt_cv_prog_cc_static='-Bstatic' | ||
5040 | else | ||
5041 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' | ||
5042 | fi | ||
5043 | ;; | ||
5044 | |||
5045 | hpux9* | hpux10* | hpux11*) | ||
5046 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? | ||
5047 | lt_cv_prog_cc_wl='-Wl,' | ||
5048 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" | ||
5049 | lt_cv_prog_cc_pic='+Z' | ||
5050 | ;; | ||
5051 | |||
5052 | irix5* | irix6* | nonstopux*) | ||
5053 | lt_cv_prog_cc_wl='-Wl,' | ||
5054 | lt_cv_prog_cc_static='-non_shared' | ||
5055 | # PIC (with -KPIC) is the default. | ||
5056 | ;; | ||
5057 | |||
5058 | cygwin* | mingw* | pw32* | os2*) | ||
5059 | # This hack is so that the source file can tell whether it is being | ||
5060 | # built for inclusion in a dll (and should export symbols for example). | ||
5061 | lt_cv_prog_cc_pic='-DDLL_EXPORT' | ||
5062 | ;; | ||
5063 | |||
5064 | newsos6) | ||
5065 | lt_cv_prog_cc_pic='-KPIC' | ||
5066 | lt_cv_prog_cc_static='-Bstatic' | ||
5067 | ;; | ||
5068 | |||
5069 | osf3* | osf4* | osf5*) | ||
5070 | # All OSF/1 code is PIC. | ||
5071 | lt_cv_prog_cc_wl='-Wl,' | ||
5072 | lt_cv_prog_cc_static='-non_shared' | ||
5073 | ;; | ||
5074 | |||
5075 | sco3.2v5*) | ||
5076 | lt_cv_prog_cc_pic='-Kpic' | ||
5077 | lt_cv_prog_cc_static='-dn' | ||
5078 | lt_cv_prog_cc_shlib='-belf' | ||
5079 | ;; | ||
5080 | |||
5081 | solaris*) | ||
5082 | lt_cv_prog_cc_pic='-KPIC' | ||
5083 | lt_cv_prog_cc_static='-Bstatic' | ||
5084 | lt_cv_prog_cc_wl='-Wl,' | ||
5085 | ;; | ||
5086 | |||
5087 | sunos4*) | ||
5088 | lt_cv_prog_cc_pic='-PIC' | ||
5089 | lt_cv_prog_cc_static='-Bstatic' | ||
5090 | lt_cv_prog_cc_wl='-Qoption ld ' | ||
5091 | ;; | ||
5092 | |||
5093 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
5094 | lt_cv_prog_cc_pic='-KPIC' | ||
5095 | lt_cv_prog_cc_static='-Bstatic' | ||
5096 | lt_cv_prog_cc_wl='-Wl,' | ||
5097 | ;; | ||
5098 | |||
5099 | uts4*) | ||
5100 | lt_cv_prog_cc_pic='-pic' | ||
5101 | lt_cv_prog_cc_static='-Bstatic' | ||
5102 | ;; | ||
5103 | |||
5104 | sysv4*MP*) | ||
5105 | if test -d /usr/nec ;then | ||
5106 | lt_cv_prog_cc_pic='-Kconform_pic' | ||
5107 | lt_cv_prog_cc_static='-Bstatic' | ||
5108 | fi | ||
5109 | ;; | ||
5110 | |||
5111 | *) | ||
5112 | lt_cv_prog_cc_can_build_shared=no | ||
5113 | ;; | ||
5114 | esac | ||
5115 | fi | ||
5116 | |||
5117 | fi | ||
5118 | |||
5119 | if test -z "$lt_cv_prog_cc_pic"; then | ||
5120 | echo "$as_me:$LINENO: result: none" >&5 | ||
5121 | echo "${ECHO_T}none" >&6 | ||
5122 | else | ||
5123 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 | ||
5124 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 | ||
5125 | |||
5126 | # Check to make sure the pic_flag actually works. | ||
5127 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 | ||
5128 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 | ||
5129 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then | ||
5130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5131 | else | ||
5132 | save_CFLAGS="$CFLAGS" | ||
5133 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" | ||
5134 | cat >conftest.$ac_ext <<_ACEOF | ||
5135 | /* confdefs.h. */ | ||
5136 | _ACEOF | ||
5137 | cat confdefs.h >>conftest.$ac_ext | ||
5138 | cat >>conftest.$ac_ext <<_ACEOF | ||
5139 | /* end confdefs.h. */ | ||
5140 | |||
5141 | int | ||
5142 | main () | ||
5143 | { | ||
5144 | |||
5145 | ; | ||
5146 | return 0; | ||
5147 | } | ||
5148 | _ACEOF | ||
5149 | rm -f conftest.$ac_objext | ||
5150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5151 | (eval $ac_compile) 2>conftest.er1 | ||
5152 | ac_status=$? | ||
5153 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5154 | rm -f conftest.er1 | ||
5155 | cat conftest.err >&5 | ||
5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5157 | (exit $ac_status); } && | ||
5158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5160 | (eval $ac_try) 2>&5 | ||
5161 | ac_status=$? | ||
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5163 | (exit $ac_status); }; } && | ||
5164 | { ac_try='test -s conftest.$ac_objext' | ||
5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5166 | (eval $ac_try) 2>&5 | ||
5167 | ac_status=$? | ||
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5169 | (exit $ac_status); }; }; then | ||
5170 | case $host_os in | ||
5171 | hpux9* | hpux10* | hpux11*) | ||
5172 | # On HP-UX, both CC and GCC only warn that PIC is supported... then | ||
5173 | # they create non-PIC objects. So, if there were any warnings, we | ||
5174 | # assume that PIC is not supported. | ||
5175 | if test -s conftest.err; then | ||
5176 | lt_cv_prog_cc_pic_works=no | ||
5177 | else | ||
5178 | lt_cv_prog_cc_pic_works=yes | ||
5179 | fi | ||
5180 | ;; | ||
5181 | *) | ||
5182 | lt_cv_prog_cc_pic_works=yes | ||
5183 | ;; | ||
5184 | esac | ||
5185 | |||
5186 | else | ||
5187 | echo "$as_me: failed program was:" >&5 | ||
5188 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5189 | |||
5190 | lt_cv_prog_cc_pic_works=no | ||
5191 | |||
5192 | fi | ||
5193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5194 | CFLAGS="$save_CFLAGS" | ||
5195 | |||
5196 | fi | ||
5197 | |||
5198 | |||
5199 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then | ||
5200 | lt_cv_prog_cc_pic= | ||
5201 | lt_cv_prog_cc_can_build_shared=no | ||
5202 | else | ||
5203 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" | ||
5204 | fi | ||
5205 | |||
5206 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 | ||
5207 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 | ||
5208 | fi | ||
5209 | |||
5210 | # Check for any special shared library compilation flags. | ||
5211 | if test -n "$lt_cv_prog_cc_shlib"; then | ||
5212 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 | ||
5213 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} | ||
5214 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : | ||
5215 | else | ||
5216 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | ||
5217 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | ||
5218 | lt_cv_prog_cc_can_build_shared=no | ||
5219 | fi | ||
5220 | fi | ||
5221 | |||
5222 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 | ||
5223 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 | ||
5224 | if test "${lt_cv_prog_cc_static_works+set}" = set; then | ||
5225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5226 | else | ||
5227 | lt_cv_prog_cc_static_works=no | ||
5228 | save_LDFLAGS="$LDFLAGS" | ||
5229 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" | ||
5230 | cat >conftest.$ac_ext <<_ACEOF | ||
5231 | /* confdefs.h. */ | ||
5232 | _ACEOF | ||
5233 | cat confdefs.h >>conftest.$ac_ext | ||
5234 | cat >>conftest.$ac_ext <<_ACEOF | ||
5235 | /* end confdefs.h. */ | ||
5236 | |||
5237 | int | ||
5238 | main () | ||
5239 | { | ||
5240 | |||
5241 | ; | ||
5242 | return 0; | ||
5243 | } | ||
5244 | _ACEOF | ||
5245 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5247 | (eval $ac_link) 2>conftest.er1 | ||
5248 | ac_status=$? | ||
5249 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5250 | rm -f conftest.er1 | ||
5251 | cat conftest.err >&5 | ||
5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5253 | (exit $ac_status); } && | ||
5254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5256 | (eval $ac_try) 2>&5 | ||
5257 | ac_status=$? | ||
5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5259 | (exit $ac_status); }; } && | ||
5260 | { ac_try='test -s conftest$ac_exeext' | ||
5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5262 | (eval $ac_try) 2>&5 | ||
5263 | ac_status=$? | ||
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5265 | (exit $ac_status); }; }; then | ||
5266 | lt_cv_prog_cc_static_works=yes | ||
5267 | else | ||
5268 | echo "$as_me: failed program was:" >&5 | ||
5269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5270 | |||
5271 | fi | ||
5272 | rm -f conftest.err conftest.$ac_objext \ | ||
5273 | conftest$ac_exeext conftest.$ac_ext | ||
5274 | LDFLAGS="$save_LDFLAGS" | ||
5275 | |||
5276 | fi | ||
5277 | |||
5278 | |||
5279 | # Belt *and* braces to stop my trousers falling down: | ||
5280 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= | ||
5281 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 | ||
5282 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 | ||
5283 | |||
5284 | pic_flag="$lt_cv_prog_cc_pic" | ||
5285 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" | ||
5286 | wl="$lt_cv_prog_cc_wl" | ||
5287 | link_static_flag="$lt_cv_prog_cc_static" | ||
5288 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" | ||
5289 | can_build_shared="$lt_cv_prog_cc_can_build_shared" | ||
5290 | |||
5291 | |||
5292 | # Check to see if options -o and -c are simultaneously supported by compiler | ||
5293 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
5294 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | ||
5295 | if test "${lt_cv_compiler_c_o+set}" = set; then | ||
5296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5297 | else | ||
5298 | |||
5299 | $rm -r conftest 2>/dev/null | ||
5300 | mkdir conftest | ||
5301 | cd conftest | ||
5302 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
5303 | mkdir out | ||
5304 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | ||
5305 | # that will create temporary files in the current directory regardless of | ||
5306 | # the output directory. Thus, making CWD read-only will cause this test | ||
5307 | # to fail, enabling locking or at least warning the user not to do parallel | ||
5308 | # builds. | ||
5309 | chmod -w . | ||
5310 | save_CFLAGS="$CFLAGS" | ||
5311 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | ||
5312 | compiler_c_o=no | ||
5313 | if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then | ||
5314 | # The compiler can only warn and ignore the option if not recognized | ||
5315 | # So say no if there are warnings | ||
5316 | if test -s out/conftest.err; then | ||
5317 | lt_cv_compiler_c_o=no | ||
5318 | else | ||
5319 | lt_cv_compiler_c_o=yes | ||
5320 | fi | ||
5321 | else | ||
5322 | # Append any errors to the config.log. | ||
5323 | cat out/conftest.err 1>&5 | ||
5324 | lt_cv_compiler_c_o=no | ||
5325 | fi | ||
5326 | CFLAGS="$save_CFLAGS" | ||
5327 | chmod u+w . | ||
5328 | $rm conftest* out/* | ||
5329 | rmdir out | ||
5330 | cd .. | ||
5331 | rmdir conftest | ||
5332 | $rm -r conftest 2>/dev/null | ||
5333 | |||
5334 | fi | ||
5335 | |||
5336 | compiler_c_o=$lt_cv_compiler_c_o | ||
5337 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 | ||
5338 | echo "${ECHO_T}$compiler_c_o" >&6 | ||
5339 | |||
5340 | if test x"$compiler_c_o" = x"yes"; then | ||
5341 | # Check to see if we can write to a .lo | ||
5342 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 | ||
5343 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 | ||
5344 | if test "${lt_cv_compiler_o_lo+set}" = set; then | ||
5345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5346 | else | ||
5347 | |||
5348 | lt_cv_compiler_o_lo=no | ||
5349 | save_CFLAGS="$CFLAGS" | ||
5350 | CFLAGS="$CFLAGS -c -o conftest.lo" | ||
5351 | save_objext="$ac_objext" | ||
5352 | ac_objext=lo | ||
5353 | cat >conftest.$ac_ext <<_ACEOF | ||
5354 | /* confdefs.h. */ | ||
5355 | _ACEOF | ||
5356 | cat confdefs.h >>conftest.$ac_ext | ||
5357 | cat >>conftest.$ac_ext <<_ACEOF | ||
5358 | /* end confdefs.h. */ | ||
5359 | |||
5360 | int | ||
5361 | main () | ||
5362 | { | ||
5363 | int some_variable = 0; | ||
5364 | ; | ||
5365 | return 0; | ||
5366 | } | ||
5367 | _ACEOF | ||
5368 | rm -f conftest.$ac_objext | ||
5369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5370 | (eval $ac_compile) 2>conftest.er1 | ||
5371 | ac_status=$? | ||
5372 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5373 | rm -f conftest.er1 | ||
5374 | cat conftest.err >&5 | ||
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5376 | (exit $ac_status); } && | ||
5377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5379 | (eval $ac_try) 2>&5 | ||
5380 | ac_status=$? | ||
5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5382 | (exit $ac_status); }; } && | ||
5383 | { ac_try='test -s conftest.$ac_objext' | ||
5384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5385 | (eval $ac_try) 2>&5 | ||
5386 | ac_status=$? | ||
5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5388 | (exit $ac_status); }; }; then | ||
5389 | # The compiler can only warn and ignore the option if not recognized | ||
5390 | # So say no if there are warnings | ||
5391 | if test -s conftest.err; then | ||
5392 | lt_cv_compiler_o_lo=no | ||
5393 | else | ||
5394 | lt_cv_compiler_o_lo=yes | ||
5395 | fi | ||
5396 | |||
5397 | else | ||
5398 | echo "$as_me: failed program was:" >&5 | ||
5399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5400 | |||
5401 | fi | ||
5402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5403 | ac_objext="$save_objext" | ||
5404 | CFLAGS="$save_CFLAGS" | ||
5405 | |||
5406 | fi | ||
5407 | |||
5408 | compiler_o_lo=$lt_cv_compiler_o_lo | ||
5409 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 | ||
5410 | echo "${ECHO_T}$compiler_o_lo" >&6 | ||
5411 | else | ||
5412 | compiler_o_lo=no | ||
5413 | fi | ||
5414 | |||
5415 | # Check to see if we can do hard links to lock some files if needed | ||
5416 | hard_links="nottested" | ||
5417 | if test "$compiler_c_o" = no && test "$need_locks" != no; then | ||
5418 | # do not overwrite the value of need_locks provided by the user | ||
5419 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
5420 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | ||
5421 | hard_links=yes | ||
5422 | $rm conftest* | ||
5423 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
5424 | touch conftest.a | ||
5425 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
5426 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
5427 | echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
5428 | echo "${ECHO_T}$hard_links" >&6 | ||
5429 | if test "$hard_links" = no; then | ||
5430 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
5431 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
5432 | need_locks=warn | ||
5433 | fi | ||
5434 | else | ||
5435 | need_locks=no | ||
5436 | fi | ||
5437 | |||
5438 | if test "$GCC" = yes; then | ||
5439 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler | ||
5440 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
5441 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | ||
5442 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
5443 | save_CFLAGS="$CFLAGS" | ||
5444 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | ||
5445 | compiler_rtti_exceptions=no | ||
5446 | cat >conftest.$ac_ext <<_ACEOF | ||
5447 | /* confdefs.h. */ | ||
5448 | _ACEOF | ||
5449 | cat confdefs.h >>conftest.$ac_ext | ||
5450 | cat >>conftest.$ac_ext <<_ACEOF | ||
5451 | /* end confdefs.h. */ | ||
5452 | |||
5453 | int | ||
5454 | main () | ||
5455 | { | ||
5456 | int some_variable = 0; | ||
5457 | ; | ||
5458 | return 0; | ||
5459 | } | ||
5460 | _ACEOF | ||
5461 | rm -f conftest.$ac_objext | ||
5462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5463 | (eval $ac_compile) 2>conftest.er1 | ||
5464 | ac_status=$? | ||
5465 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5466 | rm -f conftest.er1 | ||
5467 | cat conftest.err >&5 | ||
5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5469 | (exit $ac_status); } && | ||
5470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5472 | (eval $ac_try) 2>&5 | ||
5473 | ac_status=$? | ||
5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5475 | (exit $ac_status); }; } && | ||
5476 | { ac_try='test -s conftest.$ac_objext' | ||
5477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5478 | (eval $ac_try) 2>&5 | ||
5479 | ac_status=$? | ||
5480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5481 | (exit $ac_status); }; }; then | ||
5482 | # The compiler can only warn and ignore the option if not recognized | ||
5483 | # So say no if there are warnings | ||
5484 | if test -s conftest.err; then | ||
5485 | compiler_rtti_exceptions=no | ||
5486 | else | ||
5487 | compiler_rtti_exceptions=yes | ||
5488 | fi | ||
5489 | |||
5490 | else | ||
5491 | echo "$as_me: failed program was:" >&5 | ||
5492 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5493 | |||
5494 | fi | ||
5495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5496 | CFLAGS="$save_CFLAGS" | ||
5497 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 | ||
5498 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 | ||
5499 | |||
5500 | if test "$compiler_rtti_exceptions" = "yes"; then | ||
5501 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' | ||
5502 | else | ||
5503 | no_builtin_flag=' -fno-builtin' | ||
5504 | fi | ||
5505 | fi | ||
5506 | |||
5507 | # See if the linker supports building shared libraries. | ||
5508 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 | ||
5509 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 | ||
5510 | |||
5511 | allow_undefined_flag= | ||
5512 | no_undefined_flag= | ||
5513 | need_lib_prefix=unknown | ||
5514 | need_version=unknown | ||
5515 | # when you set need_version to no, make sure it does not cause -set_version | ||
5516 | # flags to be left without arguments | ||
5517 | archive_cmds= | ||
5518 | archive_expsym_cmds= | ||
5519 | old_archive_from_new_cmds= | ||
5520 | old_archive_from_expsyms_cmds= | ||
5521 | export_dynamic_flag_spec= | ||
5522 | whole_archive_flag_spec= | ||
5523 | thread_safe_flag_spec= | ||
5524 | hardcode_into_libs=no | ||
5525 | hardcode_libdir_flag_spec= | ||
5526 | hardcode_libdir_separator= | ||
5527 | hardcode_direct=no | ||
5528 | hardcode_minus_L=no | ||
5529 | hardcode_shlibpath_var=unsupported | ||
5530 | runpath_var= | ||
5531 | link_all_deplibs=unknown | ||
5532 | always_export_symbols=no | ||
5533 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
5534 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
5535 | # included in the symbol list | ||
5536 | include_expsyms= | ||
5537 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | ||
5538 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
5539 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
5540 | # as well as any symbol that contains `d'. | ||
5541 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | ||
5542 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
5543 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
5544 | # the symbol is explicitly referenced. Since portable code cannot | ||
5545 | # rely on this symbol name, it's probably fine to never include it in | ||
5546 | # preloaded symbol tables. | ||
5547 | extract_expsyms_cmds= | ||
5548 | |||
5549 | case $host_os in | ||
5550 | cygwin* | mingw* | pw32*) | ||
5551 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
5552 | # When not using gcc, we currently assume that we are using | ||
5553 | # Microsoft Visual C++. | ||
5554 | if test "$GCC" != yes; then | ||
5555 | with_gnu_ld=no | ||
5556 | fi | ||
5557 | ;; | ||
5558 | openbsd*) | ||
5559 | with_gnu_ld=no | ||
5560 | ;; | ||
5561 | esac | ||
5562 | |||
5563 | ld_shlibs=yes | ||
5564 | if test "$with_gnu_ld" = yes; then | ||
5565 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
5566 | wlarc='${wl}' | ||
5567 | |||
5568 | # See if GNU ld supports shared libraries. | ||
5569 | case $host_os in | ||
5570 | aix3* | aix4* | aix5*) | ||
5571 | # On AIX, the GNU linker is very broken | ||
5572 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. | ||
5573 | ld_shlibs=no | ||
5574 | cat <<EOF 1>&2 | ||
5575 | |||
5576 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
5577 | *** to be unable to reliably create shared libraries on AIX. | ||
5578 | *** Therefore, libtool is disabling shared libraries support. If you | ||
5579 | *** really care for shared libraries, you may want to modify your PATH | ||
5580 | *** so that a non-GNU linker is found, and then restart. | ||
5581 | |||
5582 | EOF | ||
5583 | ;; | ||
5584 | |||
5585 | amigaos*) | ||
5586 | 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)' | ||
5587 | hardcode_libdir_flag_spec='-L$libdir' | ||
5588 | hardcode_minus_L=yes | ||
5589 | |||
5590 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
5591 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
5592 | # to version 4, is to share data among multiple programs linked | ||
5593 | # with the same dynamic library. Since this doesn't match the | ||
5594 | # behavior of shared libraries on other platforms, we can use | ||
5595 | # them. | ||
5596 | ld_shlibs=no | ||
5597 | ;; | ||
5598 | |||
5599 | beos*) | ||
5600 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | ||
5601 | allow_undefined_flag=unsupported | ||
5602 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
5603 | # support --undefined. This deserves some investigation. FIXME | ||
5604 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5605 | else | ||
5606 | ld_shlibs=no | ||
5607 | fi | ||
5608 | ;; | ||
5609 | |||
5610 | cygwin* | mingw* | pw32*) | ||
5611 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
5612 | # no search path for DLLs. | ||
5613 | hardcode_libdir_flag_spec='-L$libdir' | ||
5614 | allow_undefined_flag=unsupported | ||
5615 | always_export_symbols=yes | ||
5616 | |||
5617 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | ||
5618 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | ||
5619 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | ||
5620 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | ||
5621 | else $CC -o impgen impgen.c ; fi)~ | ||
5622 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | ||
5623 | |||
5624 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | ||
5625 | |||
5626 | # cygwin and mingw dlls have different entry points and sets of symbols | ||
5627 | # to exclude. | ||
5628 | # FIXME: what about values for MSVC? | ||
5629 | dll_entry=__cygwin_dll_entry@12 | ||
5630 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | ||
5631 | case $host_os in | ||
5632 | mingw*) | ||
5633 | # mingw values | ||
5634 | dll_entry=_DllMainCRTStartup@12 | ||
5635 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | ||
5636 | ;; | ||
5637 | esac | ||
5638 | |||
5639 | # mingw and cygwin differ, and it's simplest to just exclude the union | ||
5640 | # of the two symbol sets. | ||
5641 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | ||
5642 | |||
5643 | # recent cygwin and mingw systems supply a stub DllMain which the user | ||
5644 | # can override, but on older systems we have to supply one (in ltdll.c) | ||
5645 | if test "x$lt_cv_need_dllmain" = "xyes"; then | ||
5646 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | ||
5647 | 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~ | ||
5648 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | ||
5649 | else | ||
5650 | ltdll_obj= | ||
5651 | ltdll_cmds= | ||
5652 | fi | ||
5653 | |||
5654 | # Extract the symbol export list from an `--export-all' def file, | ||
5655 | # then regenerate the def file from the symbol export list, so that | ||
5656 | # the compiled dll only exports the symbol export list. | ||
5657 | # Be careful not to strip the DATA tag left be newer dlltools. | ||
5658 | export_symbols_cmds="$ltdll_cmds"' | ||
5659 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | ||
5660 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | ||
5661 | |||
5662 | # If the export-symbols file already is a .def file (1st line | ||
5663 | # is EXPORTS), use it as is. | ||
5664 | # If DATA tags from a recent dlltool are present, honour them! | ||
5665 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then | ||
5666 | cp $export_symbols $output_objdir/$soname-def; | ||
5667 | else | ||
5668 | echo EXPORTS > $output_objdir/$soname-def; | ||
5669 | _lt_hint=1; | ||
5670 | cat $export_symbols | while read symbol; do | ||
5671 | set dummy \$symbol; | ||
5672 | case \$# in | ||
5673 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | ||
5674 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; | ||
5675 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | ||
5676 | esac; | ||
5677 | _lt_hint=`expr 1 + \$_lt_hint`; | ||
5678 | done; | ||
5679 | fi~ | ||
5680 | '"$ltdll_cmds"' | ||
5681 | $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~ | ||
5682 | $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~ | ||
5683 | $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~ | ||
5684 | $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~ | ||
5685 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | ||
5686 | ;; | ||
5687 | |||
5688 | netbsd*) | ||
5689 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
5690 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
5691 | wlarc= | ||
5692 | else | ||
5693 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5694 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
5695 | fi | ||
5696 | ;; | ||
5697 | |||
5698 | solaris* | sysv5*) | ||
5699 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | ||
5700 | ld_shlibs=no | ||
5701 | cat <<EOF 1>&2 | ||
5702 | |||
5703 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
5704 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
5705 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
5706 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
5707 | *** your PATH or compiler configuration so that the native linker is | ||
5708 | *** used, and then restart. | ||
5709 | |||
5710 | EOF | ||
5711 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | ||
5712 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5713 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
5714 | else | ||
5715 | ld_shlibs=no | ||
5716 | fi | ||
5717 | ;; | ||
5718 | |||
5719 | sunos4*) | ||
5720 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
5721 | wlarc= | ||
5722 | hardcode_direct=yes | ||
5723 | hardcode_shlibpath_var=no | ||
5724 | ;; | ||
5725 | |||
5726 | *) | ||
5727 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | ||
5728 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5729 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
5730 | else | ||
5731 | ld_shlibs=no | ||
5732 | fi | ||
5733 | ;; | ||
5734 | esac | ||
5735 | |||
5736 | if test "$ld_shlibs" = yes; then | ||
5737 | runpath_var=LD_RUN_PATH | ||
5738 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | ||
5739 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
5740 | case $host_os in | ||
5741 | cygwin* | mingw* | pw32*) | ||
5742 | # dlltool doesn't understand --whole-archive et. al. | ||
5743 | whole_archive_flag_spec= | ||
5744 | ;; | ||
5745 | *) | ||
5746 | # ancient GNU ld didn't support --whole-archive et. al. | ||
5747 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | ||
5748 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
5749 | else | ||
5750 | whole_archive_flag_spec= | ||
5751 | fi | ||
5752 | ;; | ||
5753 | esac | ||
5754 | fi | ||
5755 | else | ||
5756 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
5757 | case $host_os in | ||
5758 | aix3*) | ||
5759 | allow_undefined_flag=unsupported | ||
5760 | always_export_symbols=yes | ||
5761 | 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' | ||
5762 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
5763 | # are no directories specified by -L. | ||
5764 | hardcode_minus_L=yes | ||
5765 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
5766 | # Neither direct hardcoding nor static linking is supported with a | ||
5767 | # broken collect2. | ||
5768 | hardcode_direct=unsupported | ||
5769 | fi | ||
5770 | ;; | ||
5771 | |||
5772 | aix4* | aix5*) | ||
5773 | if test "$host_cpu" = ia64; then | ||
5774 | # On IA64, the linker does run time linking by default, so we don't | ||
5775 | # have to do anything special. | ||
5776 | aix_use_runtimelinking=no | ||
5777 | exp_sym_flag='-Bexport' | ||
5778 | no_entry_flag="" | ||
5779 | else | ||
5780 | aix_use_runtimelinking=no | ||
5781 | |||
5782 | # Test if we are trying to use run time linking or normal | ||
5783 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
5784 | # need to do runtime linking. | ||
5785 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
5786 | for ld_flag in $LDFLAGS; do | ||
5787 | case $ld_flag in | ||
5788 | *-brtl*) | ||
5789 | aix_use_runtimelinking=yes | ||
5790 | break | ||
5791 | ;; | ||
5792 | esac | ||
5793 | done | ||
5794 | esac | ||
5795 | |||
5796 | exp_sym_flag='-bexport' | ||
5797 | no_entry_flag='-bnoentry' | ||
5798 | fi | ||
5799 | |||
5800 | # When large executables or shared objects are built, AIX ld can | ||
5801 | # have problems creating the table of contents. If linking a library | ||
5802 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
5803 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
5804 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
5805 | |||
5806 | hardcode_direct=yes | ||
5807 | archive_cmds='' | ||
5808 | hardcode_libdir_separator=':' | ||
5809 | if test "$GCC" = yes; then | ||
5810 | case $host_os in aix4.[012]|aix4.[012].*) | ||
5811 | collect2name=`${CC} -print-prog-name=collect2` | ||
5812 | if test -f "$collect2name" && \ | ||
5813 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
5814 | then | ||
5815 | # We have reworked collect2 | ||
5816 | hardcode_direct=yes | ||
5817 | else | ||
5818 | # We have old collect2 | ||
5819 | hardcode_direct=unsupported | ||
5820 | # It fails to find uninstalled libraries when the uninstalled | ||
5821 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
5822 | # to unsupported forces relinking | ||
5823 | hardcode_minus_L=yes | ||
5824 | hardcode_libdir_flag_spec='-L$libdir' | ||
5825 | hardcode_libdir_separator= | ||
5826 | fi | ||
5827 | esac | ||
5828 | |||
5829 | shared_flag='-shared' | ||
5830 | else | ||
5831 | # not using gcc | ||
5832 | if test "$host_cpu" = ia64; then | ||
5833 | shared_flag='${wl}-G' | ||
5834 | else | ||
5835 | if test "$aix_use_runtimelinking" = yes; then | ||
5836 | shared_flag='${wl}-G' | ||
5837 | else | ||
5838 | shared_flag='${wl}-bM:SRE' | ||
5839 | fi | ||
5840 | fi | ||
5841 | fi | ||
5842 | |||
5843 | # It seems that -bexpall can do strange things, so it is better to | ||
5844 | # generate a list of symbols to export. | ||
5845 | always_export_symbols=yes | ||
5846 | if test "$aix_use_runtimelinking" = yes; then | ||
5847 | # Warning - without using the other runtime loading flags (-brtl), | ||
5848 | # -berok will link without error, but may produce a broken library. | ||
5849 | allow_undefined_flag='-berok' | ||
5850 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' | ||
5851 | 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" | ||
5852 | else | ||
5853 | if test "$host_cpu" = ia64; then | ||
5854 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
5855 | allow_undefined_flag="-z nodefs" | ||
5856 | 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" | ||
5857 | else | ||
5858 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' | ||
5859 | # Warning - without using the other run time loading flags, | ||
5860 | # -berok will link without error, but may produce a broken library. | ||
5861 | allow_undefined_flag='${wl}-berok' | ||
5862 | # This is a bit strange, but is similar to how AIX traditionally builds | ||
5863 | # it's shared libraries. | ||
5864 | 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 $output_objdir/$libname$release.a $output_objdir/$soname' | ||
5865 | fi | ||
5866 | fi | ||
5867 | ;; | ||
5868 | |||
5869 | amigaos*) | ||
5870 | 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)' | ||
5871 | hardcode_libdir_flag_spec='-L$libdir' | ||
5872 | hardcode_minus_L=yes | ||
5873 | # see comment about different semantics on the GNU ld section | ||
5874 | ld_shlibs=no | ||
5875 | ;; | ||
5876 | |||
5877 | cygwin* | mingw* | pw32*) | ||
5878 | # When not using gcc, we currently assume that we are using | ||
5879 | # Microsoft Visual C++. | ||
5880 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
5881 | # no search path for DLLs. | ||
5882 | hardcode_libdir_flag_spec=' ' | ||
5883 | allow_undefined_flag=unsupported | ||
5884 | # Tell ltmain to make .lib files, not .a files. | ||
5885 | libext=lib | ||
5886 | # FIXME: Setting linknames here is a bad hack. | ||
5887 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
5888 | # The linker will automatically build a .lib file if we build a DLL. | ||
5889 | old_archive_from_new_cmds='true' | ||
5890 | # FIXME: Should let the user specify the lib program. | ||
5891 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
5892 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
5893 | ;; | ||
5894 | |||
5895 | darwin* | rhapsody*) | ||
5896 | case "$host_os" in | ||
5897 | rhapsody* | darwin1.[012]) | ||
5898 | allow_undefined_flag='-undefined suppress' | ||
5899 | ;; | ||
5900 | *) # Darwin 1.3 on | ||
5901 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
5902 | ;; | ||
5903 | esac | ||
5904 | # FIXME: Relying on posixy $() will cause problems for | ||
5905 | # cross-compilation, but unfortunately the echo tests do not | ||
5906 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | ||
5907 | # `"' quotes if we put them in here... so don't! | ||
5908 | archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' | ||
5909 | # We need to add '_' to the symbols in $export_symbols first | ||
5910 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' | ||
5911 | hardcode_direct=yes | ||
5912 | hardcode_shlibpath_var=no | ||
5913 | whole_archive_flag_spec='-all_load $convenience' | ||
5914 | ;; | ||
5915 | |||
5916 | freebsd1*) | ||
5917 | ld_shlibs=no | ||
5918 | ;; | ||
5919 | |||
5920 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
5921 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
5922 | # does not break anything, and helps significantly (at the cost of a little | ||
5923 | # extra space). | ||
5924 | freebsd2.2*) | ||
5925 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
5926 | hardcode_libdir_flag_spec='-R$libdir' | ||
5927 | hardcode_direct=yes | ||
5928 | hardcode_shlibpath_var=no | ||
5929 | ;; | ||
5930 | |||
5931 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
5932 | freebsd2*) | ||
5933 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
5934 | hardcode_direct=yes | ||
5935 | hardcode_minus_L=yes | ||
5936 | hardcode_shlibpath_var=no | ||
5937 | ;; | ||
5938 | |||
5939 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
5940 | freebsd*) | ||
5941 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
5942 | hardcode_libdir_flag_spec='-R$libdir' | ||
5943 | hardcode_direct=yes | ||
5944 | hardcode_shlibpath_var=no | ||
5945 | ;; | ||
5946 | |||
5947 | hpux9* | hpux10* | hpux11*) | ||
5948 | case $host_os in | ||
5949 | 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' ;; | ||
5950 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; | ||
5951 | esac | ||
5952 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
5953 | hardcode_libdir_separator=: | ||
5954 | hardcode_direct=yes | ||
5955 | hardcode_minus_L=yes # Not in the search PATH, but as the default | ||
5956 | # location of the library. | ||
5957 | export_dynamic_flag_spec='${wl}-E' | ||
5958 | ;; | ||
5959 | |||
5960 | irix5* | irix6* | nonstopux*) | ||
5961 | if test "$GCC" = yes; then | ||
5962 | 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' | ||
5963 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
5964 | else | ||
5965 | 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' | ||
5966 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
5967 | fi | ||
5968 | hardcode_libdir_separator=: | ||
5969 | link_all_deplibs=yes | ||
5970 | ;; | ||
5971 | |||
5972 | netbsd*) | ||
5973 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
5974 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
5975 | else | ||
5976 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
5977 | fi | ||
5978 | hardcode_libdir_flag_spec='-R$libdir' | ||
5979 | hardcode_direct=yes | ||
5980 | hardcode_shlibpath_var=no | ||
5981 | ;; | ||
5982 | |||
5983 | newsos6) | ||
5984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
5985 | hardcode_direct=yes | ||
5986 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
5987 | hardcode_libdir_separator=: | ||
5988 | hardcode_shlibpath_var=no | ||
5989 | ;; | ||
5990 | |||
5991 | openbsd*) | ||
5992 | hardcode_direct=yes | ||
5993 | hardcode_shlibpath_var=no | ||
5994 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
5995 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
5996 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
5997 | export_dynamic_flag_spec='${wl}-E' | ||
5998 | else | ||
5999 | case "$host_os" in | ||
6000 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
6001 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6002 | hardcode_libdir_flag_spec='-R$libdir' | ||
6003 | ;; | ||
6004 | *) | ||
6005 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
6006 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
6007 | ;; | ||
6008 | esac | ||
6009 | fi | ||
6010 | ;; | ||
6011 | |||
6012 | os2*) | ||
6013 | hardcode_libdir_flag_spec='-L$libdir' | ||
6014 | hardcode_minus_L=yes | ||
6015 | allow_undefined_flag=unsupported | ||
6016 | 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' | ||
6017 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
6018 | ;; | ||
6019 | |||
6020 | osf3*) | ||
6021 | if test "$GCC" = yes; then | ||
6022 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
6023 | 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' | ||
6024 | else | ||
6025 | allow_undefined_flag=' -expect_unresolved \*' | ||
6026 | 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' | ||
6027 | fi | ||
6028 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
6029 | hardcode_libdir_separator=: | ||
6030 | ;; | ||
6031 | |||
6032 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
6033 | if test "$GCC" = yes; then | ||
6034 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
6035 | 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' | ||
6036 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
6037 | else | ||
6038 | allow_undefined_flag=' -expect_unresolved \*' | ||
6039 | 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' | ||
6040 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
6041 | $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' | ||
6042 | |||
6043 | #Both c and cxx compiler support -rpath directly | ||
6044 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
6045 | fi | ||
6046 | hardcode_libdir_separator=: | ||
6047 | ;; | ||
6048 | |||
6049 | sco3.2v5*) | ||
6050 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6051 | hardcode_shlibpath_var=no | ||
6052 | runpath_var=LD_RUN_PATH | ||
6053 | hardcode_runpath_var=yes | ||
6054 | export_dynamic_flag_spec='${wl}-Bexport' | ||
6055 | ;; | ||
6056 | |||
6057 | solaris*) | ||
6058 | # gcc --version < 3.0 without binutils cannot create self contained | ||
6059 | # shared libraries reliably, requiring libgcc.a to resolve some of | ||
6060 | # the object symbols generated in some cases. Libraries that use | ||
6061 | # assert need libgcc.a to resolve __eprintf, for example. Linking | ||
6062 | # a copy of libgcc.a into every shared library to guarantee resolving | ||
6063 | # such symbols causes other problems: According to Tim Van Holder | ||
6064 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate | ||
6065 | # (to the application) exception stack for one thing. | ||
6066 | no_undefined_flag=' -z defs' | ||
6067 | if test "$GCC" = yes; then | ||
6068 | case `$CC --version 2>/dev/null` in | ||
6069 | [12].*) | ||
6070 | cat <<EOF 1>&2 | ||
6071 | |||
6072 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably | ||
6073 | *** create self contained shared libraries on Solaris systems, without | ||
6074 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling | ||
6075 | *** -no-undefined support, which will at least allow you to build shared | ||
6076 | *** libraries. However, you may find that when you link such libraries | ||
6077 | *** into an application without using GCC, you have to manually add | ||
6078 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to | ||
6079 | *** upgrade to a newer version of GCC. Another option is to rebuild your | ||
6080 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. | ||
6081 | |||
6082 | EOF | ||
6083 | no_undefined_flag= | ||
6084 | ;; | ||
6085 | esac | ||
6086 | fi | ||
6087 | # $CC -shared without GNU ld will not create a library from C++ | ||
6088 | # object files and a static libstdc++, better avoid it by now | ||
6089 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6090 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
6091 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
6092 | hardcode_libdir_flag_spec='-R$libdir' | ||
6093 | hardcode_shlibpath_var=no | ||
6094 | case $host_os in | ||
6095 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
6096 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
6097 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | ||
6098 | esac | ||
6099 | link_all_deplibs=yes | ||
6100 | ;; | ||
6101 | |||
6102 | sunos4*) | ||
6103 | if test "x$host_vendor" = xsequent; then | ||
6104 | # Use $CC to link under sequent, because it throws in some extra .o | ||
6105 | # files that make .init and .fini sections work. | ||
6106 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6107 | else | ||
6108 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
6109 | fi | ||
6110 | hardcode_libdir_flag_spec='-L$libdir' | ||
6111 | hardcode_direct=yes | ||
6112 | hardcode_minus_L=yes | ||
6113 | hardcode_shlibpath_var=no | ||
6114 | ;; | ||
6115 | |||
6116 | sysv4) | ||
6117 | case $host_vendor in | ||
6118 | sni) | ||
6119 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6120 | hardcode_direct=yes # is this really true??? | ||
6121 | ;; | ||
6122 | siemens) | ||
6123 | ## LD is ld it makes a PLAMLIB | ||
6124 | ## CC just makes a GrossModule. | ||
6125 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
6126 | reload_cmds='$CC -r -o $output$reload_objs' | ||
6127 | hardcode_direct=no | ||
6128 | ;; | ||
6129 | motorola) | ||
6130 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6131 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
6132 | ;; | ||
6133 | esac | ||
6134 | runpath_var='LD_RUN_PATH' | ||
6135 | hardcode_shlibpath_var=no | ||
6136 | ;; | ||
6137 | |||
6138 | sysv4.3*) | ||
6139 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6140 | hardcode_shlibpath_var=no | ||
6141 | export_dynamic_flag_spec='-Bexport' | ||
6142 | ;; | ||
6143 | |||
6144 | sysv5*) | ||
6145 | no_undefined_flag=' -z text' | ||
6146 | # $CC -shared without GNU ld will not create a library from C++ | ||
6147 | # object files and a static libstdc++, better avoid it by now | ||
6148 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6149 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
6150 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
6151 | hardcode_libdir_flag_spec= | ||
6152 | hardcode_shlibpath_var=no | ||
6153 | runpath_var='LD_RUN_PATH' | ||
6154 | ;; | ||
6155 | |||
6156 | uts4*) | ||
6157 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6158 | hardcode_libdir_flag_spec='-L$libdir' | ||
6159 | hardcode_shlibpath_var=no | ||
6160 | ;; | ||
6161 | |||
6162 | dgux*) | ||
6163 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6164 | hardcode_libdir_flag_spec='-L$libdir' | ||
6165 | hardcode_shlibpath_var=no | ||
6166 | ;; | ||
6167 | |||
6168 | sysv4*MP*) | ||
6169 | if test -d /usr/nec; then | ||
6170 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6171 | hardcode_shlibpath_var=no | ||
6172 | runpath_var=LD_RUN_PATH | ||
6173 | hardcode_runpath_var=yes | ||
6174 | ld_shlibs=yes | ||
6175 | fi | ||
6176 | ;; | ||
6177 | |||
6178 | sysv4.2uw2*) | ||
6179 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
6180 | hardcode_direct=yes | ||
6181 | hardcode_minus_L=no | ||
6182 | hardcode_shlibpath_var=no | ||
6183 | hardcode_runpath_var=yes | ||
6184 | runpath_var=LD_RUN_PATH | ||
6185 | ;; | ||
6186 | |||
6187 | sysv5uw7* | unixware7*) | ||
6188 | no_undefined_flag='${wl}-z ${wl}text' | ||
6189 | if test "$GCC" = yes; then | ||
6190 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6191 | else | ||
6192 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6193 | fi | ||
6194 | runpath_var='LD_RUN_PATH' | ||
6195 | hardcode_shlibpath_var=no | ||
6196 | ;; | ||
6197 | |||
6198 | *) | ||
6199 | ld_shlibs=no | ||
6200 | ;; | ||
6201 | esac | ||
6202 | fi | ||
6203 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | ||
6204 | echo "${ECHO_T}$ld_shlibs" >&6 | ||
6205 | test "$ld_shlibs" = no && can_build_shared=no | ||
6206 | |||
6207 | # Check hardcoding attributes. | ||
6208 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
6209 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | ||
6210 | hardcode_action= | ||
6211 | if test -n "$hardcode_libdir_flag_spec" || \ | ||
6212 | test -n "$runpath_var"; then | ||
6213 | |||
6214 | # We can hardcode non-existant directories. | ||
6215 | if test "$hardcode_direct" != no && | ||
6216 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
6217 | # have to relink, otherwise we might link with an installed library | ||
6218 | # when we should be linking with a yet-to-be-installed one | ||
6219 | ## test "$hardcode_shlibpath_var" != no && | ||
6220 | test "$hardcode_minus_L" != no; then | ||
6221 | # Linking always hardcodes the temporary library directory. | ||
6222 | hardcode_action=relink | ||
6223 | else | ||
6224 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
6225 | hardcode_action=immediate | ||
6226 | fi | ||
6227 | else | ||
6228 | # We cannot hardcode anything, or else we can only hardcode existing | ||
6229 | # directories. | ||
6230 | hardcode_action=unsupported | ||
6231 | fi | ||
6232 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | ||
6233 | echo "${ECHO_T}$hardcode_action" >&6 | ||
6234 | |||
6235 | striplib= | ||
6236 | old_striplib= | ||
6237 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
6238 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
6239 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
6240 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
6241 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
6242 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6243 | echo "${ECHO_T}yes" >&6 | ||
6244 | else | ||
6245 | echo "$as_me:$LINENO: result: no" >&5 | ||
6246 | echo "${ECHO_T}no" >&6 | ||
6247 | fi | ||
6248 | |||
6249 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6250 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6251 | |||
6252 | # PORTME Fill in your ld.so characteristics | ||
6253 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
6254 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | ||
6255 | library_names_spec= | ||
6256 | libname_spec='lib$name' | ||
6257 | soname_spec= | ||
6258 | postinstall_cmds= | ||
6259 | postuninstall_cmds= | ||
6260 | finish_cmds= | ||
6261 | finish_eval= | ||
6262 | shlibpath_var= | ||
6263 | shlibpath_overrides_runpath=unknown | ||
6264 | version_type=none | ||
6265 | dynamic_linker="$host_os ld.so" | ||
6266 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
6267 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
6268 | |||
6269 | case $host_os in | ||
6270 | aix3*) | ||
6271 | version_type=linux | ||
6272 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | ||
6273 | shlibpath_var=LIBPATH | ||
6274 | |||
6275 | # AIX has no versioning support, so we append a major version to the name. | ||
6276 | soname_spec='${libname}${release}.so$major' | ||
6277 | ;; | ||
6278 | |||
6279 | aix4* | aix5*) | ||
6280 | version_type=linux | ||
6281 | need_lib_prefix=no | ||
6282 | need_version=no | ||
6283 | hardcode_into_libs=yes | ||
6284 | if test "$host_cpu" = ia64; then | ||
6285 | # AIX 5 supports IA64 | ||
6286 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | ||
6287 | shlibpath_var=LD_LIBRARY_PATH | ||
6288 | else | ||
6289 | # With GCC up to 2.95.x, collect2 would create an import file | ||
6290 | # for dependence libraries. The import file would start with | ||
6291 | # the line `#! .'. This would cause the generated library to | ||
6292 | # depend on `.', always an invalid library. This was fixed in | ||
6293 | # development snapshots of GCC prior to 3.0. | ||
6294 | case $host_os in | ||
6295 | aix4 | aix4.[01] | aix4.[01].*) | ||
6296 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
6297 | echo ' yes ' | ||
6298 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
6299 | : | ||
6300 | else | ||
6301 | can_build_shared=no | ||
6302 | fi | ||
6303 | ;; | ||
6304 | esac | ||
6305 | # AIX (on Power*) has no versioning support, so currently we can | ||
6306 | # not hardcode correct soname into executable. Probably we can | ||
6307 | # add versioning support to collect2, so additional links can | ||
6308 | # be useful in future. | ||
6309 | if test "$aix_use_runtimelinking" = yes; then | ||
6310 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
6311 | # instead of lib<name>.a to let people know that these are not | ||
6312 | # typical AIX shared libraries. | ||
6313 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6314 | else | ||
6315 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
6316 | # and later when we are not doing run time linking. | ||
6317 | library_names_spec='${libname}${release}.a $libname.a' | ||
6318 | soname_spec='${libname}${release}.so$major' | ||
6319 | fi | ||
6320 | shlibpath_var=LIBPATH | ||
6321 | fi | ||
6322 | hardcode_into_libs=yes | ||
6323 | ;; | ||
6324 | |||
6325 | amigaos*) | ||
6326 | library_names_spec='$libname.ixlibrary $libname.a' | ||
6327 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
6328 | 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' | ||
6329 | ;; | ||
6330 | |||
6331 | beos*) | ||
6332 | library_names_spec='${libname}.so' | ||
6333 | dynamic_linker="$host_os ld.so" | ||
6334 | shlibpath_var=LIBRARY_PATH | ||
6335 | ;; | ||
6336 | |||
6337 | bsdi4*) | ||
6338 | version_type=linux | ||
6339 | need_version=no | ||
6340 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6341 | soname_spec='${libname}${release}.so$major' | ||
6342 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
6343 | shlibpath_var=LD_LIBRARY_PATH | ||
6344 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
6345 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
6346 | export_dynamic_flag_spec=-rdynamic | ||
6347 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
6348 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
6349 | # libtool to hard-code these into programs | ||
6350 | ;; | ||
6351 | |||
6352 | cygwin* | mingw* | pw32*) | ||
6353 | version_type=windows | ||
6354 | need_version=no | ||
6355 | need_lib_prefix=no | ||
6356 | case $GCC,$host_os in | ||
6357 | yes,cygwin*) | ||
6358 | library_names_spec='$libname.dll.a' | ||
6359 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | ||
6360 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | ||
6361 | dldir=$destdir/`dirname \$dlpath`~ | ||
6362 | test -d \$dldir || mkdir -p \$dldir~ | ||
6363 | $install_prog .libs/$dlname \$dldir/$dlname' | ||
6364 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
6365 | dlpath=$dir/\$dldll~ | ||
6366 | $rm \$dlpath' | ||
6367 | ;; | ||
6368 | yes,mingw*) | ||
6369 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | ||
6370 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` | ||
6371 | ;; | ||
6372 | yes,pw32*) | ||
6373 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | ||
6374 | ;; | ||
6375 | *) | ||
6376 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | ||
6377 | ;; | ||
6378 | esac | ||
6379 | dynamic_linker='Win32 ld.exe' | ||
6380 | # FIXME: first we should search . and the directory the executable is in | ||
6381 | shlibpath_var=PATH | ||
6382 | ;; | ||
6383 | |||
6384 | darwin* | rhapsody*) | ||
6385 | dynamic_linker="$host_os dyld" | ||
6386 | version_type=darwin | ||
6387 | need_lib_prefix=no | ||
6388 | need_version=no | ||
6389 | # FIXME: Relying on posixy $() will cause problems for | ||
6390 | # cross-compilation, but unfortunately the echo tests do not | ||
6391 | # yet detect zsh echo's removal of \ escapes. | ||
6392 | 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)' | ||
6393 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | ||
6394 | shlibpath_overrides_runpath=yes | ||
6395 | shlibpath_var=DYLD_LIBRARY_PATH | ||
6396 | ;; | ||
6397 | |||
6398 | freebsd1*) | ||
6399 | dynamic_linker=no | ||
6400 | ;; | ||
6401 | |||
6402 | freebsd*-gnu*) | ||
6403 | version_type=linux | ||
6404 | need_lib_prefix=no | ||
6405 | need_version=no | ||
6406 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6407 | soname_spec='${libname}${release}.so$major' | ||
6408 | shlibpath_var=LD_LIBRARY_PATH | ||
6409 | shlibpath_overrides_runpath=no | ||
6410 | hardcode_into_libs=yes | ||
6411 | dynamic_linker='GNU/FreeBSD ld.so' | ||
6412 | ;; | ||
6413 | |||
6414 | freebsd*) | ||
6415 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
6416 | version_type=freebsd-$objformat | ||
6417 | case $version_type in | ||
6418 | freebsd-elf*) | ||
6419 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | ||
6420 | need_version=no | ||
6421 | need_lib_prefix=no | ||
6422 | ;; | ||
6423 | freebsd-*) | ||
6424 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | ||
6425 | need_version=yes | ||
6426 | ;; | ||
6427 | esac | ||
6428 | shlibpath_var=LD_LIBRARY_PATH | ||
6429 | case $host_os in | ||
6430 | freebsd2*) | ||
6431 | shlibpath_overrides_runpath=yes | ||
6432 | ;; | ||
6433 | *) | ||
6434 | shlibpath_overrides_runpath=no | ||
6435 | hardcode_into_libs=yes | ||
6436 | ;; | ||
6437 | esac | ||
6438 | ;; | ||
6439 | |||
6440 | gnu*) | ||
6441 | version_type=linux | ||
6442 | need_lib_prefix=no | ||
6443 | need_version=no | ||
6444 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | ||
6445 | soname_spec='${libname}${release}.so$major' | ||
6446 | shlibpath_var=LD_LIBRARY_PATH | ||
6447 | hardcode_into_libs=yes | ||
6448 | ;; | ||
6449 | |||
6450 | hpux9* | hpux10* | hpux11*) | ||
6451 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
6452 | # link against other versions. | ||
6453 | dynamic_linker="$host_os dld.sl" | ||
6454 | version_type=sunos | ||
6455 | need_lib_prefix=no | ||
6456 | need_version=no | ||
6457 | shlibpath_var=SHLIB_PATH | ||
6458 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
6459 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | ||
6460 | soname_spec='${libname}${release}.sl$major' | ||
6461 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
6462 | postinstall_cmds='chmod 555 $lib' | ||
6463 | ;; | ||
6464 | |||
6465 | irix5* | irix6* | nonstopux*) | ||
6466 | case $host_os in | ||
6467 | nonstopux*) version_type=nonstopux ;; | ||
6468 | *) version_type=irix ;; | ||
6469 | esac | ||
6470 | need_lib_prefix=no | ||
6471 | need_version=no | ||
6472 | soname_spec='${libname}${release}.so$major' | ||
6473 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | ||
6474 | case $host_os in | ||
6475 | irix5* | nonstopux*) | ||
6476 | libsuff= shlibsuff= | ||
6477 | ;; | ||
6478 | *) | ||
6479 | case $LD in # libtool.m4 will add one of these switches to LD | ||
6480 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | ||
6481 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
6482 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
6483 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
6484 | esac | ||
6485 | ;; | ||
6486 | esac | ||
6487 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
6488 | shlibpath_overrides_runpath=no | ||
6489 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
6490 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
6491 | ;; | ||
6492 | |||
6493 | # No shared lib support for Linux oldld, aout, or coff. | ||
6494 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) | ||
6495 | dynamic_linker=no | ||
6496 | ;; | ||
6497 | |||
6498 | # This must be Linux ELF. | ||
6499 | linux-gnu*) | ||
6500 | version_type=linux | ||
6501 | need_lib_prefix=no | ||
6502 | need_version=no | ||
6503 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6504 | soname_spec='${libname}${release}.so$major' | ||
6505 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
6506 | shlibpath_var=LD_LIBRARY_PATH | ||
6507 | shlibpath_overrides_runpath=no | ||
6508 | # This implies no fast_install, which is unacceptable. | ||
6509 | # Some rework will be needed to allow for fast_install | ||
6510 | # before this can be enabled. | ||
6511 | hardcode_into_libs=yes | ||
6512 | |||
6513 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
6514 | # powerpc, because MkLinux only supported shared libraries with the | ||
6515 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
6516 | # most powerpc-linux boxes support dynamic linking these days and | ||
6517 | # people can always --disable-shared, the test was removed, and we | ||
6518 | # assume the GNU/Linux dynamic linker is in use. | ||
6519 | dynamic_linker='GNU/Linux ld.so' | ||
6520 | ;; | ||
6521 | |||
6522 | netbsd*) | ||
6523 | version_type=sunos | ||
6524 | need_lib_prefix=no | ||
6525 | need_version=no | ||
6526 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
6527 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | ||
6528 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
6529 | dynamic_linker='NetBSD (a.out) ld.so' | ||
6530 | else | ||
6531 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | ||
6532 | soname_spec='${libname}${release}.so$major' | ||
6533 | dynamic_linker='NetBSD ld.elf_so' | ||
6534 | fi | ||
6535 | shlibpath_var=LD_LIBRARY_PATH | ||
6536 | shlibpath_overrides_runpath=yes | ||
6537 | hardcode_into_libs=yes | ||
6538 | ;; | ||
6539 | |||
6540 | newsos6) | ||
6541 | version_type=linux | ||
6542 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6543 | shlibpath_var=LD_LIBRARY_PATH | ||
6544 | shlibpath_overrides_runpath=yes | ||
6545 | ;; | ||
6546 | |||
6547 | openbsd*) | ||
6548 | version_type=sunos | ||
6549 | need_lib_prefix=no | ||
6550 | need_version=no | ||
6551 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6552 | case "$host_os" in | ||
6553 | openbsd2.[89] | openbsd2.[89].*) | ||
6554 | shlibpath_overrides_runpath=no | ||
6555 | ;; | ||
6556 | *) | ||
6557 | shlibpath_overrides_runpath=yes | ||
6558 | ;; | ||
6559 | esac | ||
6560 | else | ||
6561 | shlibpath_overrides_runpath=yes | ||
6562 | fi | ||
6563 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | ||
6564 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
6565 | shlibpath_var=LD_LIBRARY_PATH | ||
6566 | ;; | ||
6567 | |||
6568 | os2*) | ||
6569 | libname_spec='$name' | ||
6570 | need_lib_prefix=no | ||
6571 | library_names_spec='$libname.dll $libname.a' | ||
6572 | dynamic_linker='OS/2 ld.exe' | ||
6573 | shlibpath_var=LIBPATH | ||
6574 | ;; | ||
6575 | |||
6576 | osf3* | osf4* | osf5*) | ||
6577 | version_type=osf | ||
6578 | need_version=no | ||
6579 | need_lib_prefix=no | ||
6580 | soname_spec='${libname}${release}.so$major' | ||
6581 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6582 | shlibpath_var=LD_LIBRARY_PATH | ||
6583 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
6584 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
6585 | hardcode_into_libs=yes | ||
6586 | ;; | ||
6587 | |||
6588 | sco3.2v5*) | ||
6589 | version_type=osf | ||
6590 | soname_spec='${libname}${release}.so$major' | ||
6591 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6592 | shlibpath_var=LD_LIBRARY_PATH | ||
6593 | ;; | ||
6594 | |||
6595 | solaris*) | ||
6596 | version_type=linux | ||
6597 | need_lib_prefix=no | ||
6598 | need_version=no | ||
6599 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6600 | soname_spec='${libname}${release}.so$major' | ||
6601 | shlibpath_var=LD_LIBRARY_PATH | ||
6602 | shlibpath_overrides_runpath=yes | ||
6603 | hardcode_into_libs=yes | ||
6604 | # ldd complains unless libraries are executable | ||
6605 | postinstall_cmds='chmod +x $lib' | ||
6606 | ;; | ||
6607 | |||
6608 | sunos4*) | ||
6609 | version_type=sunos | ||
6610 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | ||
6611 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
6612 | shlibpath_var=LD_LIBRARY_PATH | ||
6613 | shlibpath_overrides_runpath=yes | ||
6614 | if test "$with_gnu_ld" = yes; then | ||
6615 | need_lib_prefix=no | ||
6616 | fi | ||
6617 | need_version=yes | ||
6618 | ;; | ||
6619 | |||
6620 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
6621 | version_type=linux | ||
6622 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6623 | soname_spec='${libname}${release}.so$major' | ||
6624 | shlibpath_var=LD_LIBRARY_PATH | ||
6625 | case $host_vendor in | ||
6626 | sni) | ||
6627 | shlibpath_overrides_runpath=no | ||
6628 | need_lib_prefix=no | ||
6629 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
6630 | runpath_var=LD_RUN_PATH | ||
6631 | ;; | ||
6632 | siemens) | ||
6633 | need_lib_prefix=no | ||
6634 | ;; | ||
6635 | motorola) | ||
6636 | need_lib_prefix=no | ||
6637 | need_version=no | ||
6638 | shlibpath_overrides_runpath=no | ||
6639 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
6640 | ;; | ||
6641 | esac | ||
6642 | ;; | ||
6643 | |||
6644 | uts4*) | ||
6645 | version_type=linux | ||
6646 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6647 | soname_spec='${libname}${release}.so$major' | ||
6648 | shlibpath_var=LD_LIBRARY_PATH | ||
6649 | ;; | ||
6650 | |||
6651 | dgux*) | ||
6652 | version_type=linux | ||
6653 | need_lib_prefix=no | ||
6654 | need_version=no | ||
6655 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
6656 | soname_spec='${libname}${release}.so$major' | ||
6657 | shlibpath_var=LD_LIBRARY_PATH | ||
6658 | ;; | ||
6659 | |||
6660 | sysv4*MP*) | ||
6661 | if test -d /usr/nec ;then | ||
6662 | version_type=linux | ||
6663 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | ||
6664 | soname_spec='$libname.so.$major' | ||
6665 | shlibpath_var=LD_LIBRARY_PATH | ||
6666 | fi | ||
6667 | ;; | ||
6668 | |||
6669 | *) | ||
6670 | dynamic_linker=no | ||
6671 | ;; | ||
6672 | esac | ||
6673 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
6674 | echo "${ECHO_T}$dynamic_linker" >&6 | ||
6675 | test "$dynamic_linker" = no && can_build_shared=no | ||
6676 | |||
6677 | # Report the final consequences. | ||
6678 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
6679 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | ||
6680 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
6681 | echo "${ECHO_T}$can_build_shared" >&6 | ||
6682 | |||
6683 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
6684 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | ||
6685 | test "$can_build_shared" = "no" && enable_shared=no | ||
6686 | |||
6687 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
6688 | # are all built from PIC. | ||
6689 | case "$host_os" in | ||
6690 | aix3*) | ||
6691 | test "$enable_shared" = yes && enable_static=no | ||
6692 | if test -n "$RANLIB"; then | ||
6693 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
6694 | postinstall_cmds='$RANLIB $lib' | ||
6695 | fi | ||
6696 | ;; | ||
6697 | |||
6698 | aix4*) | ||
6699 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
6700 | test "$enable_shared" = yes && enable_static=no | ||
6701 | fi | ||
6702 | ;; | ||
6703 | esac | ||
6704 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
6705 | echo "${ECHO_T}$enable_shared" >&6 | ||
6706 | |||
6707 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
6708 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | ||
6709 | # Make sure either enable_shared or enable_static is yes. | ||
6710 | test "$enable_shared" = yes || enable_static=yes | ||
6711 | echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
6712 | echo "${ECHO_T}$enable_static" >&6 | ||
6713 | |||
6714 | if test "$hardcode_action" = relink; then | ||
6715 | # Fast installation is not supported | ||
6716 | enable_fast_install=no | ||
6717 | elif test "$shlibpath_overrides_runpath" = yes || | ||
6718 | test "$enable_shared" = no; then | ||
6719 | # Fast installation is not necessary | ||
6720 | enable_fast_install=needless | ||
6721 | fi | ||
6722 | |||
6723 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
6724 | if test "$GCC" = yes; then | ||
6725 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
6726 | fi | ||
6727 | |||
6728 | if test "x$enable_dlopen" != xyes; then | ||
6729 | enable_dlopen=unknown | ||
6730 | enable_dlopen_self=unknown | ||
6731 | enable_dlopen_self_static=unknown | ||
6732 | else | ||
6733 | lt_cv_dlopen=no | ||
6734 | lt_cv_dlopen_libs= | ||
6735 | |||
6736 | case $host_os in | ||
6737 | beos*) | ||
6738 | lt_cv_dlopen="load_add_on" | ||
6739 | lt_cv_dlopen_libs= | ||
6740 | lt_cv_dlopen_self=yes | ||
6741 | ;; | ||
6742 | |||
6743 | cygwin* | mingw* | pw32*) | ||
6744 | lt_cv_dlopen="LoadLibrary" | ||
6745 | lt_cv_dlopen_libs= | ||
6746 | ;; | ||
6747 | |||
6748 | *) | ||
6749 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
6750 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
6751 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6753 | else | ||
6754 | cat >conftest.$ac_ext <<_ACEOF | ||
6755 | /* confdefs.h. */ | ||
6756 | _ACEOF | ||
6757 | cat confdefs.h >>conftest.$ac_ext | ||
6758 | cat >>conftest.$ac_ext <<_ACEOF | ||
6759 | /* end confdefs.h. */ | ||
6760 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
6761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6762 | #define shl_load innocuous_shl_load | ||
6763 | |||
6764 | /* System header to define __stub macros and hopefully few prototypes, | ||
6765 | which can conflict with char shl_load (); below. | ||
6766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6767 | <limits.h> exists even on freestanding compilers. */ | ||
6768 | |||
6769 | #ifdef __STDC__ | ||
6770 | # include <limits.h> | ||
6771 | #else | ||
6772 | # include <assert.h> | ||
6773 | #endif | ||
6774 | |||
6775 | #undef shl_load | ||
6776 | |||
6777 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6778 | #ifdef __cplusplus | ||
6779 | extern "C" | ||
6780 | { | ||
6781 | #endif | ||
6782 | /* We use char because int might match the return type of a gcc2 | ||
6783 | builtin and then its argument prototype would still apply. */ | ||
6784 | char shl_load (); | ||
6785 | /* The GNU C library defines this for functions which it implements | ||
6786 | to always fail with ENOSYS. Some functions are actually named | ||
6787 | something starting with __ and the normal name is an alias. */ | ||
6788 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
6789 | choke me | ||
6790 | #else | ||
6791 | char (*f) () = shl_load; | ||
6792 | #endif | ||
6793 | #ifdef __cplusplus | ||
6794 | } | ||
6795 | #endif | ||
6796 | |||
6797 | int | ||
6798 | main () | ||
6799 | { | ||
6800 | return f != shl_load; | ||
6801 | ; | ||
6802 | return 0; | ||
6803 | } | ||
6804 | _ACEOF | ||
6805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6807 | (eval $ac_link) 2>conftest.er1 | ||
6808 | ac_status=$? | ||
6809 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6810 | rm -f conftest.er1 | ||
6811 | cat conftest.err >&5 | ||
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6813 | (exit $ac_status); } && | ||
6814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6816 | (eval $ac_try) 2>&5 | ||
6817 | ac_status=$? | ||
6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6819 | (exit $ac_status); }; } && | ||
6820 | { ac_try='test -s conftest$ac_exeext' | ||
6821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6822 | (eval $ac_try) 2>&5 | ||
6823 | ac_status=$? | ||
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6825 | (exit $ac_status); }; }; then | ||
6826 | ac_cv_func_shl_load=yes | ||
6827 | else | ||
6828 | echo "$as_me: failed program was:" >&5 | ||
6829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6830 | |||
6831 | ac_cv_func_shl_load=no | ||
6832 | fi | ||
6833 | rm -f conftest.err conftest.$ac_objext \ | ||
6834 | conftest$ac_exeext conftest.$ac_ext | ||
6835 | fi | ||
6836 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
6837 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
6838 | if test $ac_cv_func_shl_load = yes; then | ||
6839 | lt_cv_dlopen="shl_load" | ||
6840 | else | ||
6841 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
6842 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
6843 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
6844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6845 | else | ||
6846 | ac_check_lib_save_LIBS=$LIBS | ||
6847 | LIBS="-ldld $LIBS" | ||
6848 | cat >conftest.$ac_ext <<_ACEOF | ||
6849 | /* confdefs.h. */ | ||
6850 | _ACEOF | ||
6851 | cat confdefs.h >>conftest.$ac_ext | ||
6852 | cat >>conftest.$ac_ext <<_ACEOF | ||
6853 | /* end confdefs.h. */ | ||
6854 | |||
6855 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6856 | #ifdef __cplusplus | ||
6857 | extern "C" | ||
6858 | #endif | ||
6859 | /* We use char because int might match the return type of a gcc2 | ||
6860 | builtin and then its argument prototype would still apply. */ | ||
6861 | char shl_load (); | ||
6862 | int | ||
6863 | main () | ||
6864 | { | ||
6865 | shl_load (); | ||
6866 | ; | ||
6867 | return 0; | ||
6868 | } | ||
6869 | _ACEOF | ||
6870 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6872 | (eval $ac_link) 2>conftest.er1 | ||
6873 | ac_status=$? | ||
6874 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6875 | rm -f conftest.er1 | ||
6876 | cat conftest.err >&5 | ||
6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6878 | (exit $ac_status); } && | ||
6879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6881 | (eval $ac_try) 2>&5 | ||
6882 | ac_status=$? | ||
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6884 | (exit $ac_status); }; } && | ||
6885 | { ac_try='test -s conftest$ac_exeext' | ||
6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6887 | (eval $ac_try) 2>&5 | ||
6888 | ac_status=$? | ||
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6890 | (exit $ac_status); }; }; then | ||
6891 | ac_cv_lib_dld_shl_load=yes | ||
6892 | else | ||
6893 | echo "$as_me: failed program was:" >&5 | ||
6894 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6895 | |||
6896 | ac_cv_lib_dld_shl_load=no | ||
6897 | fi | ||
6898 | rm -f conftest.err conftest.$ac_objext \ | ||
6899 | conftest$ac_exeext conftest.$ac_ext | ||
6900 | LIBS=$ac_check_lib_save_LIBS | ||
6901 | fi | ||
6902 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
6903 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
6904 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
6905 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
6906 | else | ||
6907 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
6908 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
6909 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
6910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6911 | else | ||
6912 | cat >conftest.$ac_ext <<_ACEOF | ||
6913 | /* confdefs.h. */ | ||
6914 | _ACEOF | ||
6915 | cat confdefs.h >>conftest.$ac_ext | ||
6916 | cat >>conftest.$ac_ext <<_ACEOF | ||
6917 | /* end confdefs.h. */ | ||
6918 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
6919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6920 | #define dlopen innocuous_dlopen | ||
6921 | |||
6922 | /* System header to define __stub macros and hopefully few prototypes, | ||
6923 | which can conflict with char dlopen (); below. | ||
6924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6925 | <limits.h> exists even on freestanding compilers. */ | ||
6926 | |||
6927 | #ifdef __STDC__ | ||
6928 | # include <limits.h> | ||
6929 | #else | ||
6930 | # include <assert.h> | ||
6931 | #endif | ||
6932 | |||
6933 | #undef dlopen | ||
6934 | |||
6935 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6936 | #ifdef __cplusplus | ||
6937 | extern "C" | ||
6938 | { | ||
6939 | #endif | ||
6940 | /* We use char because int might match the return type of a gcc2 | ||
6941 | builtin and then its argument prototype would still apply. */ | ||
6942 | char dlopen (); | ||
6943 | /* The GNU C library defines this for functions which it implements | ||
6944 | to always fail with ENOSYS. Some functions are actually named | ||
6945 | something starting with __ and the normal name is an alias. */ | ||
6946 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | ||
6947 | choke me | ||
6948 | #else | ||
6949 | char (*f) () = dlopen; | ||
6950 | #endif | ||
6951 | #ifdef __cplusplus | ||
6952 | } | ||
6953 | #endif | ||
6954 | |||
6955 | int | ||
6956 | main () | ||
6957 | { | ||
6958 | return f != dlopen; | ||
6959 | ; | ||
6960 | return 0; | ||
6961 | } | ||
6962 | _ACEOF | ||
6963 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6965 | (eval $ac_link) 2>conftest.er1 | ||
6966 | ac_status=$? | ||
6967 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6968 | rm -f conftest.er1 | ||
6969 | cat conftest.err >&5 | ||
6970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6971 | (exit $ac_status); } && | ||
6972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6974 | (eval $ac_try) 2>&5 | ||
6975 | ac_status=$? | ||
6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6977 | (exit $ac_status); }; } && | ||
6978 | { ac_try='test -s conftest$ac_exeext' | ||
6979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6980 | (eval $ac_try) 2>&5 | ||
6981 | ac_status=$? | ||
6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6983 | (exit $ac_status); }; }; then | ||
6984 | ac_cv_func_dlopen=yes | ||
6985 | else | ||
6986 | echo "$as_me: failed program was:" >&5 | ||
6987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6988 | |||
6989 | ac_cv_func_dlopen=no | ||
6990 | fi | ||
6991 | rm -f conftest.err conftest.$ac_objext \ | ||
6992 | conftest$ac_exeext conftest.$ac_ext | ||
6993 | fi | ||
6994 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
6995 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
6996 | if test $ac_cv_func_dlopen = yes; then | ||
6997 | lt_cv_dlopen="dlopen" | ||
6998 | else | ||
6999 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
7000 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
7001 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
7002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7003 | else | ||
7004 | ac_check_lib_save_LIBS=$LIBS | ||
7005 | LIBS="-ldl $LIBS" | ||
7006 | cat >conftest.$ac_ext <<_ACEOF | ||
7007 | /* confdefs.h. */ | ||
7008 | _ACEOF | ||
7009 | cat confdefs.h >>conftest.$ac_ext | ||
7010 | cat >>conftest.$ac_ext <<_ACEOF | ||
7011 | /* end confdefs.h. */ | ||
7012 | |||
7013 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7014 | #ifdef __cplusplus | ||
7015 | extern "C" | ||
7016 | #endif | ||
7017 | /* We use char because int might match the return type of a gcc2 | ||
7018 | builtin and then its argument prototype would still apply. */ | ||
7019 | char dlopen (); | ||
7020 | int | ||
7021 | main () | ||
7022 | { | ||
7023 | dlopen (); | ||
7024 | ; | ||
7025 | return 0; | ||
7026 | } | ||
7027 | _ACEOF | ||
7028 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7030 | (eval $ac_link) 2>conftest.er1 | ||
7031 | ac_status=$? | ||
7032 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7033 | rm -f conftest.er1 | ||
7034 | cat conftest.err >&5 | ||
7035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7036 | (exit $ac_status); } && | ||
7037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7039 | (eval $ac_try) 2>&5 | ||
7040 | ac_status=$? | ||
7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7042 | (exit $ac_status); }; } && | ||
7043 | { ac_try='test -s conftest$ac_exeext' | ||
7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7045 | (eval $ac_try) 2>&5 | ||
7046 | ac_status=$? | ||
7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7048 | (exit $ac_status); }; }; then | ||
7049 | ac_cv_lib_dl_dlopen=yes | ||
7050 | else | ||
7051 | echo "$as_me: failed program was:" >&5 | ||
7052 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7053 | |||
7054 | ac_cv_lib_dl_dlopen=no | ||
7055 | fi | ||
7056 | rm -f conftest.err conftest.$ac_objext \ | ||
7057 | conftest$ac_exeext conftest.$ac_ext | ||
7058 | LIBS=$ac_check_lib_save_LIBS | ||
7059 | fi | ||
7060 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
7061 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
7062 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
7063 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
7064 | else | ||
7065 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
7066 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
7067 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7069 | else | ||
7070 | ac_check_lib_save_LIBS=$LIBS | ||
7071 | LIBS="-lsvld $LIBS" | ||
7072 | cat >conftest.$ac_ext <<_ACEOF | ||
7073 | /* confdefs.h. */ | ||
7074 | _ACEOF | ||
7075 | cat confdefs.h >>conftest.$ac_ext | ||
7076 | cat >>conftest.$ac_ext <<_ACEOF | ||
7077 | /* end confdefs.h. */ | ||
7078 | |||
7079 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7080 | #ifdef __cplusplus | ||
7081 | extern "C" | ||
7082 | #endif | ||
7083 | /* We use char because int might match the return type of a gcc2 | ||
7084 | builtin and then its argument prototype would still apply. */ | ||
7085 | char dlopen (); | ||
7086 | int | ||
7087 | main () | ||
7088 | { | ||
7089 | dlopen (); | ||
7090 | ; | ||
7091 | return 0; | ||
7092 | } | ||
7093 | _ACEOF | ||
7094 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7096 | (eval $ac_link) 2>conftest.er1 | ||
7097 | ac_status=$? | ||
7098 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7099 | rm -f conftest.er1 | ||
7100 | cat conftest.err >&5 | ||
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7102 | (exit $ac_status); } && | ||
7103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7105 | (eval $ac_try) 2>&5 | ||
7106 | ac_status=$? | ||
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7108 | (exit $ac_status); }; } && | ||
7109 | { ac_try='test -s conftest$ac_exeext' | ||
7110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7111 | (eval $ac_try) 2>&5 | ||
7112 | ac_status=$? | ||
7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7114 | (exit $ac_status); }; }; then | ||
7115 | ac_cv_lib_svld_dlopen=yes | ||
7116 | else | ||
7117 | echo "$as_me: failed program was:" >&5 | ||
7118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7119 | |||
7120 | ac_cv_lib_svld_dlopen=no | ||
7121 | fi | ||
7122 | rm -f conftest.err conftest.$ac_objext \ | ||
7123 | conftest$ac_exeext conftest.$ac_ext | ||
7124 | LIBS=$ac_check_lib_save_LIBS | ||
7125 | fi | ||
7126 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
7127 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
7128 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
7129 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
7130 | else | ||
7131 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
7132 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
7133 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
7134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7135 | else | ||
7136 | ac_check_lib_save_LIBS=$LIBS | ||
7137 | LIBS="-ldld $LIBS" | ||
7138 | cat >conftest.$ac_ext <<_ACEOF | ||
7139 | /* confdefs.h. */ | ||
7140 | _ACEOF | ||
7141 | cat confdefs.h >>conftest.$ac_ext | ||
7142 | cat >>conftest.$ac_ext <<_ACEOF | ||
7143 | /* end confdefs.h. */ | ||
7144 | |||
7145 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7146 | #ifdef __cplusplus | ||
7147 | extern "C" | ||
7148 | #endif | ||
7149 | /* We use char because int might match the return type of a gcc2 | ||
7150 | builtin and then its argument prototype would still apply. */ | ||
7151 | char dld_link (); | ||
7152 | int | ||
7153 | main () | ||
7154 | { | ||
7155 | dld_link (); | ||
7156 | ; | ||
7157 | return 0; | ||
7158 | } | ||
7159 | _ACEOF | ||
7160 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7162 | (eval $ac_link) 2>conftest.er1 | ||
7163 | ac_status=$? | ||
7164 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7165 | rm -f conftest.er1 | ||
7166 | cat conftest.err >&5 | ||
7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7168 | (exit $ac_status); } && | ||
7169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7171 | (eval $ac_try) 2>&5 | ||
7172 | ac_status=$? | ||
7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7174 | (exit $ac_status); }; } && | ||
7175 | { ac_try='test -s conftest$ac_exeext' | ||
7176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7177 | (eval $ac_try) 2>&5 | ||
7178 | ac_status=$? | ||
7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7180 | (exit $ac_status); }; }; then | ||
7181 | ac_cv_lib_dld_dld_link=yes | ||
7182 | else | ||
7183 | echo "$as_me: failed program was:" >&5 | ||
7184 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7185 | |||
7186 | ac_cv_lib_dld_dld_link=no | ||
7187 | fi | ||
7188 | rm -f conftest.err conftest.$ac_objext \ | ||
7189 | conftest$ac_exeext conftest.$ac_ext | ||
7190 | LIBS=$ac_check_lib_save_LIBS | ||
7191 | fi | ||
7192 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
7193 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
7194 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
7195 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
7196 | fi | ||
7197 | |||
7198 | |||
7199 | fi | ||
7200 | |||
7201 | |||
7202 | fi | ||
7203 | |||
7204 | |||
7205 | fi | ||
7206 | |||
7207 | |||
7208 | fi | ||
7209 | |||
7210 | |||
7211 | fi | ||
7212 | |||
7213 | ;; | ||
7214 | esac | ||
7215 | |||
7216 | if test "x$lt_cv_dlopen" != xno; then | ||
7217 | enable_dlopen=yes | ||
7218 | else | ||
7219 | enable_dlopen=no | ||
7220 | fi | ||
7221 | |||
7222 | case $lt_cv_dlopen in | ||
7223 | dlopen) | ||
7224 | save_CPPFLAGS="$CPPFLAGS" | ||
7225 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
7226 | |||
7227 | save_LDFLAGS="$LDFLAGS" | ||
7228 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
7229 | |||
7230 | save_LIBS="$LIBS" | ||
7231 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
7232 | |||
7233 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
7234 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
7235 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
7236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7237 | else | ||
7238 | if test "$cross_compiling" = yes; then : | ||
7239 | lt_cv_dlopen_self=cross | ||
7240 | else | ||
7241 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
7242 | lt_status=$lt_dlunknown | ||
7243 | cat > conftest.$ac_ext <<EOF | ||
7244 | #line 7244 "configure" | ||
7245 | #include "confdefs.h" | ||
7246 | |||
7247 | #if HAVE_DLFCN_H | ||
7248 | #include <dlfcn.h> | ||
7249 | #endif | ||
7250 | |||
7251 | #include <stdio.h> | ||
7252 | |||
7253 | #ifdef RTLD_GLOBAL | ||
7254 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
7255 | #else | ||
7256 | # ifdef DL_GLOBAL | ||
7257 | # define LT_DLGLOBAL DL_GLOBAL | ||
7258 | # else | ||
7259 | # define LT_DLGLOBAL 0 | ||
7260 | # endif | ||
7261 | #endif | ||
7262 | |||
7263 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
7264 | find out it does not work in some platform. */ | ||
7265 | #ifndef LT_DLLAZY_OR_NOW | ||
7266 | # ifdef RTLD_LAZY | ||
7267 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
7268 | # else | ||
7269 | # ifdef DL_LAZY | ||
7270 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
7271 | # else | ||
7272 | # ifdef RTLD_NOW | ||
7273 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
7274 | # else | ||
7275 | # ifdef DL_NOW | ||
7276 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
7277 | # else | ||
7278 | # define LT_DLLAZY_OR_NOW 0 | ||
7279 | # endif | ||
7280 | # endif | ||
7281 | # endif | ||
7282 | # endif | ||
7283 | #endif | ||
7284 | |||
7285 | #ifdef __cplusplus | ||
7286 | extern "C" void exit (int); | ||
7287 | #endif | ||
7288 | |||
7289 | void fnord() { int i=42;} | ||
7290 | int main () | ||
7291 | { | ||
7292 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
7293 | int status = $lt_dlunknown; | ||
7294 | |||
7295 | if (self) | ||
7296 | { | ||
7297 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
7298 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
7299 | /* dlclose (self); */ | ||
7300 | } | ||
7301 | |||
7302 | exit (status); | ||
7303 | } | ||
7304 | EOF | ||
7305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7306 | (eval $ac_link) 2>&5 | ||
7307 | ac_status=$? | ||
7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7309 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
7310 | (./conftest; exit; ) 2>/dev/null | ||
7311 | lt_status=$? | ||
7312 | case x$lt_status in | ||
7313 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
7314 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
7315 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
7316 | esac | ||
7317 | else : | ||
7318 | # compilation failed | ||
7319 | lt_cv_dlopen_self=no | ||
7320 | fi | ||
7321 | fi | ||
7322 | rm -fr conftest* | ||
7323 | |||
7324 | |||
7325 | fi | ||
7326 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
7327 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | ||
7328 | |||
7329 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
7330 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
7331 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
7332 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
7333 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
7334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7335 | else | ||
7336 | if test "$cross_compiling" = yes; then : | ||
7337 | lt_cv_dlopen_self_static=cross | ||
7338 | else | ||
7339 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
7340 | lt_status=$lt_dlunknown | ||
7341 | cat > conftest.$ac_ext <<EOF | ||
7342 | #line 7342 "configure" | ||
7343 | #include "confdefs.h" | ||
7344 | |||
7345 | #if HAVE_DLFCN_H | ||
7346 | #include <dlfcn.h> | ||
7347 | #endif | ||
7348 | |||
7349 | #include <stdio.h> | ||
7350 | |||
7351 | #ifdef RTLD_GLOBAL | ||
7352 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
7353 | #else | ||
7354 | # ifdef DL_GLOBAL | ||
7355 | # define LT_DLGLOBAL DL_GLOBAL | ||
7356 | # else | ||
7357 | # define LT_DLGLOBAL 0 | ||
7358 | # endif | ||
7359 | #endif | ||
7360 | |||
7361 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
7362 | find out it does not work in some platform. */ | ||
7363 | #ifndef LT_DLLAZY_OR_NOW | ||
7364 | # ifdef RTLD_LAZY | ||
7365 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
7366 | # else | ||
7367 | # ifdef DL_LAZY | ||
7368 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
7369 | # else | ||
7370 | # ifdef RTLD_NOW | ||
7371 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
7372 | # else | ||
7373 | # ifdef DL_NOW | ||
7374 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
7375 | # else | ||
7376 | # define LT_DLLAZY_OR_NOW 0 | ||
7377 | # endif | ||
7378 | # endif | ||
7379 | # endif | ||
7380 | # endif | ||
7381 | #endif | ||
7382 | |||
7383 | #ifdef __cplusplus | ||
7384 | extern "C" void exit (int); | ||
7385 | #endif | ||
7386 | |||
7387 | void fnord() { int i=42;} | ||
7388 | int main () | ||
7389 | { | ||
7390 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
7391 | int status = $lt_dlunknown; | ||
7392 | |||
7393 | if (self) | ||
7394 | { | ||
7395 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
7396 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
7397 | /* dlclose (self); */ | ||
7398 | } | ||
7399 | |||
7400 | exit (status); | ||
7401 | } | ||
7402 | EOF | ||
7403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7404 | (eval $ac_link) 2>&5 | ||
7405 | ac_status=$? | ||
7406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7407 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
7408 | (./conftest; exit; ) 2>/dev/null | ||
7409 | lt_status=$? | ||
7410 | case x$lt_status in | ||
7411 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
7412 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
7413 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
7414 | esac | ||
7415 | else : | ||
7416 | # compilation failed | ||
7417 | lt_cv_dlopen_self_static=no | ||
7418 | fi | ||
7419 | fi | ||
7420 | rm -fr conftest* | ||
7421 | |||
7422 | |||
7423 | fi | ||
7424 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
7425 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | ||
7426 | fi | ||
7427 | |||
7428 | CPPFLAGS="$save_CPPFLAGS" | ||
7429 | LDFLAGS="$save_LDFLAGS" | ||
7430 | LIBS="$save_LIBS" | ||
7431 | ;; | ||
7432 | esac | ||
7433 | |||
7434 | case $lt_cv_dlopen_self in | ||
7435 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
7436 | *) enable_dlopen_self=unknown ;; | ||
7437 | esac | ||
7438 | |||
7439 | case $lt_cv_dlopen_self_static in | ||
7440 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
7441 | *) enable_dlopen_self_static=unknown ;; | ||
7442 | esac | ||
7443 | fi | ||
7444 | |||
7445 | |||
7446 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
7447 | case $archive_cmds in | ||
7448 | *'~'*) | ||
7449 | # FIXME: we may have to deal with multi-command sequences. | ||
7450 | ;; | ||
7451 | '$CC '*) | ||
7452 | # Test whether the compiler implicitly links with -lc since on some | ||
7453 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
7454 | # to ld, don't add -lc before -lgcc. | ||
7455 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
7456 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | ||
7457 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then | ||
7458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7459 | else | ||
7460 | $rm conftest* | ||
7461 | echo 'static int dummy;' > conftest.$ac_ext | ||
7462 | |||
7463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7464 | (eval $ac_compile) 2>&5 | ||
7465 | ac_status=$? | ||
7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7467 | (exit $ac_status); }; then | ||
7468 | soname=conftest | ||
7469 | lib=conftest | ||
7470 | libobjs=conftest.$ac_objext | ||
7471 | deplibs= | ||
7472 | wl=$lt_cv_prog_cc_wl | ||
7473 | compiler_flags=-v | ||
7474 | linker_flags=-v | ||
7475 | verstring= | ||
7476 | output_objdir=. | ||
7477 | libname=conftest | ||
7478 | save_allow_undefined_flag=$allow_undefined_flag | ||
7479 | allow_undefined_flag= | ||
7480 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
7481 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
7482 | ac_status=$? | ||
7483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7484 | (exit $ac_status); } | ||
7485 | then | ||
7486 | lt_cv_archive_cmds_need_lc=no | ||
7487 | else | ||
7488 | lt_cv_archive_cmds_need_lc=yes | ||
7489 | fi | ||
7490 | allow_undefined_flag=$save_allow_undefined_flag | ||
7491 | else | ||
7492 | cat conftest.err 1>&5 | ||
7493 | fi | ||
7494 | fi | ||
7495 | |||
7496 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | ||
7497 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | ||
7498 | ;; | ||
7499 | esac | ||
7500 | fi | ||
7501 | need_lc=${lt_cv_archive_cmds_need_lc-yes} | ||
7502 | |||
7503 | # The second clause should only fire when bootstrapping the | ||
7504 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
7505 | # with your package, and you will get complaints that there are | ||
7506 | # no rules to generate ltmain.sh. | ||
7507 | if test -f "$ltmain"; then | ||
7508 | : | ||
7509 | else | ||
7510 | # If there is no Makefile yet, we rely on a make rule to execute | ||
7511 | # `config.status --recheck' to rerun these tests and create the | ||
7512 | # libtool script then. | ||
7513 | test -f Makefile && make "$ltmain" | ||
7514 | fi | ||
7515 | |||
7516 | if test -f "$ltmain"; then | ||
7517 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 | ||
7518 | $rm -f "${ofile}T" | ||
7519 | |||
7520 | echo creating $ofile | ||
7521 | |||
7522 | # Now quote all the things that may contain metacharacters while being | ||
7523 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
7524 | # variables and quote the copies for generation of the libtool script. | ||
7525 | for var in echo old_CC old_CFLAGS SED \ | ||
7526 | AR AR_FLAGS CC LD LN_S NM SHELL \ | ||
7527 | reload_flag reload_cmds wl \ | ||
7528 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ | ||
7529 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ | ||
7530 | library_names_spec soname_spec \ | ||
7531 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ | ||
7532 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ | ||
7533 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ | ||
7534 | old_striplib striplib file_magic_cmd export_symbols_cmds \ | ||
7535 | deplibs_check_method allow_undefined_flag no_undefined_flag \ | ||
7536 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ | ||
7537 | global_symbol_to_c_name_address \ | ||
7538 | hardcode_libdir_flag_spec hardcode_libdir_separator \ | ||
7539 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
7540 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do | ||
7541 | |||
7542 | case $var in | ||
7543 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ | ||
7544 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
7545 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ | ||
7546 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ | ||
7547 | postinstall_cmds | postuninstall_cmds | \ | ||
7548 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
7549 | # Double-quote double-evaled strings. | ||
7550 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
7551 | ;; | ||
7552 | *) | ||
7553 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
7554 | ;; | ||
7555 | esac | ||
7556 | done | ||
7557 | |||
7558 | cat <<__EOF__ > "${ofile}T" | ||
7559 | #! $SHELL | ||
7560 | |||
7561 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
7562 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
7563 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
7564 | # | ||
7565 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. | ||
7566 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
7567 | # | ||
7568 | # This program is free software; you can redistribute it and/or modify | ||
7569 | # it under the terms of the GNU General Public License as published by | ||
7570 | # the Free Software Foundation; either version 2 of the License, or | ||
7571 | # (at your option) any later version. | ||
7572 | # | ||
7573 | # This program is distributed in the hope that it will be useful, but | ||
7574 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
7575 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
7576 | # General Public License for more details. | ||
7577 | # | ||
7578 | # You should have received a copy of the GNU General Public License | ||
7579 | # along with this program; if not, write to the Free Software | ||
7580 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
7581 | # | ||
7582 | # As a special exception to the GNU General Public License, if you | ||
7583 | # distribute this file as part of a program that contains a | ||
7584 | # configuration script generated by Autoconf, you may include it under | ||
7585 | # the same distribution terms that you use for the rest of that program. | ||
7586 | |||
7587 | # A sed that does not truncate output. | ||
7588 | SED=$lt_SED | ||
7589 | |||
7590 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
7591 | Xsed="${SED} -e s/^X//" | ||
7592 | |||
7593 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
7594 | # if CDPATH is set. | ||
7595 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | ||
7596 | |||
7597 | # ### BEGIN LIBTOOL CONFIG | ||
7598 | |||
7599 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
7600 | |||
7601 | # Shell to use when invoking shell scripts. | ||
7602 | SHELL=$lt_SHELL | ||
7603 | |||
7604 | # Whether or not to build shared libraries. | ||
7605 | build_libtool_libs=$enable_shared | ||
7606 | |||
7607 | # Whether or not to build static libraries. | ||
7608 | build_old_libs=$enable_static | ||
7609 | |||
7610 | # Whether or not to add -lc for building shared libraries. | ||
7611 | build_libtool_need_lc=$need_lc | ||
7612 | |||
7613 | # Whether or not to optimize for fast installation. | ||
7614 | fast_install=$enable_fast_install | ||
7615 | |||
7616 | # The host system. | ||
7617 | host_alias=$host_alias | ||
7618 | host=$host | ||
7619 | |||
7620 | # An echo program that does not interpret backslashes. | ||
7621 | echo=$lt_echo | ||
7622 | |||
7623 | # The archiver. | ||
7624 | AR=$lt_AR | ||
7625 | AR_FLAGS=$lt_AR_FLAGS | ||
7626 | |||
7627 | # The default C compiler. | ||
7628 | CC=$lt_CC | ||
7629 | |||
7630 | # Is the compiler the GNU C compiler? | ||
7631 | with_gcc=$GCC | ||
7632 | |||
7633 | # The linker used to build libraries. | ||
7634 | LD=$lt_LD | ||
7635 | |||
7636 | # Whether we need hard or soft links. | ||
7637 | LN_S=$lt_LN_S | ||
7638 | |||
7639 | # A BSD-compatible nm program. | ||
7640 | NM=$lt_NM | ||
7641 | |||
7642 | # A symbol stripping program | ||
7643 | STRIP="$STRIP" | ||
7644 | |||
7645 | # Used to examine libraries when file_magic_cmd begins "file" | ||
7646 | MAGIC_CMD=$MAGIC_CMD | ||
7647 | |||
7648 | # Used on cygwin: DLL creation program. | ||
7649 | DLLTOOL="$DLLTOOL" | ||
7650 | |||
7651 | # Used on cygwin: object dumper. | ||
7652 | OBJDUMP="$OBJDUMP" | ||
7653 | |||
7654 | # Used on cygwin: assembler. | ||
7655 | AS="$AS" | ||
7656 | |||
7657 | # The name of the directory that contains temporary libtool files. | ||
7658 | objdir=$objdir | ||
7659 | |||
7660 | # How to create reloadable object files. | ||
7661 | reload_flag=$lt_reload_flag | ||
7662 | reload_cmds=$lt_reload_cmds | ||
7663 | |||
7664 | # How to pass a linker flag through the compiler. | ||
7665 | wl=$lt_wl | ||
7666 | |||
7667 | # Object file suffix (normally "o"). | ||
7668 | objext="$ac_objext" | ||
7669 | |||
7670 | # Old archive suffix (normally "a"). | ||
7671 | libext="$libext" | ||
7672 | |||
7673 | # Executable file suffix (normally ""). | ||
7674 | exeext="$exeext" | ||
7675 | |||
7676 | # Additional compiler flags for building library objects. | ||
7677 | pic_flag=$lt_pic_flag | ||
7678 | pic_mode=$pic_mode | ||
7679 | |||
7680 | # Does compiler simultaneously support -c and -o options? | ||
7681 | compiler_c_o=$lt_compiler_c_o | ||
7682 | |||
7683 | # Can we write directly to a .lo ? | ||
7684 | compiler_o_lo=$lt_compiler_o_lo | ||
7685 | |||
7686 | # Must we lock files when doing compilation ? | ||
7687 | need_locks=$lt_need_locks | ||
7688 | |||
7689 | # Do we need the lib prefix for modules? | ||
7690 | need_lib_prefix=$need_lib_prefix | ||
7691 | |||
7692 | # Do we need a version for libraries? | ||
7693 | need_version=$need_version | ||
7694 | |||
7695 | # Whether dlopen is supported. | ||
7696 | dlopen_support=$enable_dlopen | ||
7697 | |||
7698 | # Whether dlopen of programs is supported. | ||
7699 | dlopen_self=$enable_dlopen_self | ||
7700 | |||
7701 | # Whether dlopen of statically linked programs is supported. | ||
7702 | dlopen_self_static=$enable_dlopen_self_static | ||
7703 | |||
7704 | # Compiler flag to prevent dynamic linking. | ||
7705 | link_static_flag=$lt_link_static_flag | ||
7706 | |||
7707 | # Compiler flag to turn off builtin functions. | ||
7708 | no_builtin_flag=$lt_no_builtin_flag | ||
7709 | |||
7710 | # Compiler flag to allow reflexive dlopens. | ||
7711 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
7712 | |||
7713 | # Compiler flag to generate shared objects directly from archives. | ||
7714 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
7715 | |||
7716 | # Compiler flag to generate thread-safe objects. | ||
7717 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | ||
7718 | |||
7719 | # Library versioning type. | ||
7720 | version_type=$version_type | ||
7721 | |||
7722 | # Format of library name prefix. | ||
7723 | libname_spec=$lt_libname_spec | ||
7724 | |||
7725 | # List of archive names. First name is the real one, the rest are links. | ||
7726 | # The last name is the one that the linker finds with -lNAME. | ||
7727 | library_names_spec=$lt_library_names_spec | ||
7728 | |||
7729 | # The coded name of the library, if different from the real name. | ||
7730 | soname_spec=$lt_soname_spec | ||
7731 | |||
7732 | # Commands used to build and install an old-style archive. | ||
7733 | RANLIB=$lt_RANLIB | ||
7734 | old_archive_cmds=$lt_old_archive_cmds | ||
7735 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
7736 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
7737 | |||
7738 | # Create an old-style archive from a shared archive. | ||
7739 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
7740 | |||
7741 | # Create a temporary old-style archive to link instead of a shared archive. | ||
7742 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
7743 | |||
7744 | # Commands used to build and install a shared archive. | ||
7745 | archive_cmds=$lt_archive_cmds | ||
7746 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
7747 | postinstall_cmds=$lt_postinstall_cmds | ||
7748 | postuninstall_cmds=$lt_postuninstall_cmds | ||
7749 | |||
7750 | # Commands to strip libraries. | ||
7751 | old_striplib=$lt_old_striplib | ||
7752 | striplib=$lt_striplib | ||
7753 | |||
7754 | # Method to check whether dependent libraries are shared objects. | ||
7755 | deplibs_check_method=$lt_deplibs_check_method | ||
7756 | |||
7757 | # Command to use when deplibs_check_method == file_magic. | ||
7758 | file_magic_cmd=$lt_file_magic_cmd | ||
7759 | |||
7760 | # Flag that allows shared libraries with undefined symbols to be built. | ||
7761 | allow_undefined_flag=$lt_allow_undefined_flag | ||
7762 | |||
7763 | # Flag that forces no undefined symbols. | ||
7764 | no_undefined_flag=$lt_no_undefined_flag | ||
7765 | |||
7766 | # Commands used to finish a libtool library installation in a directory. | ||
7767 | finish_cmds=$lt_finish_cmds | ||
7768 | |||
7769 | # Same as above, but a single script fragment to be evaled but not shown. | ||
7770 | finish_eval=$lt_finish_eval | ||
7771 | |||
7772 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
7773 | global_symbol_pipe=$lt_global_symbol_pipe | ||
7774 | |||
7775 | # Transform the output of nm in a proper C declaration | ||
7776 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl | ||
7777 | |||
7778 | # Transform the output of nm in a C name address pair | ||
7779 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address | ||
7780 | |||
7781 | # This is the shared library runtime path variable. | ||
7782 | runpath_var=$runpath_var | ||
7783 | |||
7784 | # This is the shared library path variable. | ||
7785 | shlibpath_var=$shlibpath_var | ||
7786 | |||
7787 | # Is shlibpath searched before the hard-coded library search path? | ||
7788 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
7789 | |||
7790 | # How to hardcode a shared library path into an executable. | ||
7791 | hardcode_action=$hardcode_action | ||
7792 | |||
7793 | # Whether we should hardcode library paths into libraries. | ||
7794 | hardcode_into_libs=$hardcode_into_libs | ||
7795 | |||
7796 | # Flag to hardcode \$libdir into a binary during linking. | ||
7797 | # This must work even if \$libdir does not exist. | ||
7798 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
7799 | |||
7800 | # Whether we need a single -rpath flag with a separated argument. | ||
7801 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
7802 | |||
7803 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | ||
7804 | # resulting binary. | ||
7805 | hardcode_direct=$hardcode_direct | ||
7806 | |||
7807 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
7808 | # resulting binary. | ||
7809 | hardcode_minus_L=$hardcode_minus_L | ||
7810 | |||
7811 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
7812 | # the resulting binary. | ||
7813 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
7814 | |||
7815 | # Variables whose values should be saved in libtool wrapper scripts and | ||
7816 | # restored at relink time. | ||
7817 | variables_saved_for_relink="$variables_saved_for_relink" | ||
7818 | |||
7819 | # Whether libtool must link a program against all its dependency libraries. | ||
7820 | link_all_deplibs=$link_all_deplibs | ||
7821 | |||
7822 | # Compile-time system search path for libraries | ||
7823 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
7824 | |||
7825 | # Run-time system search path for libraries | ||
7826 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
7827 | |||
7828 | # Fix the shell variable \$srcfile for the compiler. | ||
7829 | fix_srcfile_path="$fix_srcfile_path" | ||
7830 | |||
7831 | # Set to yes if exported symbols are required. | ||
7832 | always_export_symbols=$always_export_symbols | ||
7833 | |||
7834 | # The commands to list exported symbols. | ||
7835 | export_symbols_cmds=$lt_export_symbols_cmds | ||
7836 | |||
7837 | # The commands to extract the exported symbol list from a shared archive. | ||
7838 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
7839 | |||
7840 | # Symbols that should not be listed in the preloaded symbols. | ||
7841 | exclude_expsyms=$lt_exclude_expsyms | ||
7842 | |||
7843 | # Symbols that must always be exported. | ||
7844 | include_expsyms=$lt_include_expsyms | ||
7845 | |||
7846 | # ### END LIBTOOL CONFIG | ||
7847 | |||
7848 | __EOF__ | ||
7849 | |||
7850 | case $host_os in | ||
7851 | aix3*) | ||
7852 | cat <<\EOF >> "${ofile}T" | ||
7853 | |||
7854 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
7855 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
7856 | # vanish in a puff of smoke. | ||
7857 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
7858 | COLLECT_NAMES= | ||
7859 | export COLLECT_NAMES | ||
7860 | fi | ||
7861 | EOF | ||
7862 | ;; | ||
7863 | esac | ||
7864 | |||
7865 | case $host_os in | ||
7866 | cygwin* | mingw* | pw32* | os2*) | ||
7867 | cat <<'EOF' >> "${ofile}T" | ||
7868 | # This is a source program that is used to create dlls on Windows | ||
7869 | # Don't remove nor modify the starting and closing comments | ||
7870 | # /* ltdll.c starts here */ | ||
7871 | # #define WIN32_LEAN_AND_MEAN | ||
7872 | # #include <windows.h> | ||
7873 | # #undef WIN32_LEAN_AND_MEAN | ||
7874 | # #include <stdio.h> | ||
7875 | # | ||
7876 | # #ifndef __CYGWIN__ | ||
7877 | # # ifdef __CYGWIN32__ | ||
7878 | # # define __CYGWIN__ __CYGWIN32__ | ||
7879 | # # endif | ||
7880 | # #endif | ||
7881 | # | ||
7882 | # #ifdef __cplusplus | ||
7883 | # extern "C" { | ||
7884 | # #endif | ||
7885 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | ||
7886 | # #ifdef __cplusplus | ||
7887 | # } | ||
7888 | # #endif | ||
7889 | # | ||
7890 | # #ifdef __CYGWIN__ | ||
7891 | # #include <cygwin/cygwin_dll.h> | ||
7892 | # DECLARE_CYGWIN_DLL( DllMain ); | ||
7893 | # #endif | ||
7894 | # HINSTANCE __hDllInstance_base; | ||
7895 | # | ||
7896 | # BOOL APIENTRY | ||
7897 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | ||
7898 | # { | ||
7899 | # __hDllInstance_base = hInst; | ||
7900 | # return TRUE; | ||
7901 | # } | ||
7902 | # /* ltdll.c ends here */ | ||
7903 | # This is a source program that is used to create import libraries | ||
7904 | # on Windows for dlls which lack them. Don't remove nor modify the | ||
7905 | # starting and closing comments | ||
7906 | # /* impgen.c starts here */ | ||
7907 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. | ||
7908 | # | ||
7909 | # This file is part of GNU libtool. | ||
7910 | # | ||
7911 | # This program is free software; you can redistribute it and/or modify | ||
7912 | # it under the terms of the GNU General Public License as published by | ||
7913 | # the Free Software Foundation; either version 2 of the License, or | ||
7914 | # (at your option) any later version. | ||
7915 | # | ||
7916 | # This program is distributed in the hope that it will be useful, | ||
7917 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
7918 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
7919 | # GNU General Public License for more details. | ||
7920 | # | ||
7921 | # You should have received a copy of the GNU General Public License | ||
7922 | # along with this program; if not, write to the Free Software | ||
7923 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
7924 | # */ | ||
7925 | # | ||
7926 | # #include <stdio.h> /* for printf() */ | ||
7927 | # #include <unistd.h> /* for open(), lseek(), read() */ | ||
7928 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | ||
7929 | # #include <string.h> /* for strdup() */ | ||
7930 | # | ||
7931 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | ||
7932 | # #ifndef O_BINARY | ||
7933 | # #define O_BINARY 0 | ||
7934 | # #endif | ||
7935 | # | ||
7936 | # static unsigned int | ||
7937 | # pe_get16 (fd, offset) | ||
7938 | # int fd; | ||
7939 | # int offset; | ||
7940 | # { | ||
7941 | # unsigned char b[2]; | ||
7942 | # lseek (fd, offset, SEEK_SET); | ||
7943 | # read (fd, b, 2); | ||
7944 | # return b[0] + (b[1]<<8); | ||
7945 | # } | ||
7946 | # | ||
7947 | # static unsigned int | ||
7948 | # pe_get32 (fd, offset) | ||
7949 | # int fd; | ||
7950 | # int offset; | ||
7951 | # { | ||
7952 | # unsigned char b[4]; | ||
7953 | # lseek (fd, offset, SEEK_SET); | ||
7954 | # read (fd, b, 4); | ||
7955 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | ||
7956 | # } | ||
7957 | # | ||
7958 | # static unsigned int | ||
7959 | # pe_as32 (ptr) | ||
7960 | # void *ptr; | ||
7961 | # { | ||
7962 | # unsigned char *b = ptr; | ||
7963 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | ||
7964 | # } | ||
7965 | # | ||
7966 | # int | ||
7967 | # main (argc, argv) | ||
7968 | # int argc; | ||
7969 | # char *argv[]; | ||
7970 | # { | ||
7971 | # int dll; | ||
7972 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | ||
7973 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | ||
7974 | # unsigned long name_rvas, nexp; | ||
7975 | # unsigned char *expdata, *erva; | ||
7976 | # char *filename, *dll_name; | ||
7977 | # | ||
7978 | # filename = argv[1]; | ||
7979 | # | ||
7980 | # dll = open(filename, O_RDONLY|O_BINARY); | ||
7981 | # if (dll < 1) | ||
7982 | # return 1; | ||
7983 | # | ||
7984 | # dll_name = filename; | ||
7985 | # | ||
7986 | # for (i=0; filename[i]; i++) | ||
7987 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | ||
7988 | # dll_name = filename + i +1; | ||
7989 | # | ||
7990 | # pe_header_offset = pe_get32 (dll, 0x3c); | ||
7991 | # opthdr_ofs = pe_header_offset + 4 + 20; | ||
7992 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | ||
7993 | # | ||
7994 | # if (num_entries < 1) /* no exports */ | ||
7995 | # return 1; | ||
7996 | # | ||
7997 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | ||
7998 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | ||
7999 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | ||
8000 | # secptr = (pe_header_offset + 4 + 20 + | ||
8001 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | ||
8002 | # | ||
8003 | # expptr = 0; | ||
8004 | # for (i = 0; i < nsections; i++) | ||
8005 | # { | ||
8006 | # char sname[8]; | ||
8007 | # unsigned long secptr1 = secptr + 40 * i; | ||
8008 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | ||
8009 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | ||
8010 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | ||
8011 | # lseek(dll, secptr1, SEEK_SET); | ||
8012 | # read(dll, sname, 8); | ||
8013 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | ||
8014 | # { | ||
8015 | # expptr = fptr + (export_rva - vaddr); | ||
8016 | # if (export_rva + export_size > vaddr + vsize) | ||
8017 | # export_size = vsize - (export_rva - vaddr); | ||
8018 | # break; | ||
8019 | # } | ||
8020 | # } | ||
8021 | # | ||
8022 | # expdata = (unsigned char*)malloc(export_size); | ||
8023 | # lseek (dll, expptr, SEEK_SET); | ||
8024 | # read (dll, expdata, export_size); | ||
8025 | # erva = expdata - export_rva; | ||
8026 | # | ||
8027 | # nexp = pe_as32 (expdata+24); | ||
8028 | # name_rvas = pe_as32 (expdata+32); | ||
8029 | # | ||
8030 | # printf ("EXPORTS\n"); | ||
8031 | # for (i = 0; i<nexp; i++) | ||
8032 | # { | ||
8033 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | ||
8034 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | ||
8035 | # } | ||
8036 | # | ||
8037 | # return 0; | ||
8038 | # } | ||
8039 | # /* impgen.c ends here */ | ||
8040 | |||
8041 | EOF | ||
8042 | ;; | ||
8043 | esac | ||
8044 | |||
8045 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
8046 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
8047 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
8048 | # is reportedly fixed, but why not run on old versions too? | ||
8049 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) | ||
8050 | |||
8051 | mv -f "${ofile}T" "$ofile" || \ | ||
8052 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") | ||
8053 | chmod +x "$ofile" | ||
8054 | fi | ||
8055 | |||
8056 | |||
8057 | |||
8058 | |||
8059 | |||
8060 | # This can be used to rebuild libtool when needed | ||
8061 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
8062 | |||
8063 | # Always use our own libtool. | ||
8064 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
8065 | |||
8066 | # Prevent multiple expansion | ||
8067 | |||
8068 | |||
8069 | for ac_prog in gawk mawk nawk awk | ||
8070 | do | ||
8071 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
8072 | set dummy $ac_prog; ac_word=$2 | ||
8073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8075 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
8076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8077 | else | ||
8078 | if test -n "$AWK"; then | ||
8079 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
8080 | else | ||
8081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8082 | for as_dir in $PATH | ||
8083 | do | ||
8084 | IFS=$as_save_IFS | ||
8085 | test -z "$as_dir" && as_dir=. | ||
8086 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8088 | ac_cv_prog_AWK="$ac_prog" | ||
8089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8090 | break 2 | ||
8091 | fi | ||
8092 | done | ||
8093 | done | ||
8094 | |||
8095 | fi | ||
8096 | fi | ||
8097 | AWK=$ac_cv_prog_AWK | ||
8098 | if test -n "$AWK"; then | ||
8099 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
8100 | echo "${ECHO_T}$AWK" >&6 | ||
8101 | else | ||
8102 | echo "$as_me:$LINENO: result: no" >&5 | ||
8103 | echo "${ECHO_T}no" >&6 | ||
8104 | fi | ||
8105 | |||
8106 | test -n "$AWK" && break | ||
8107 | done | ||
8108 | |||
8109 | |||
8110 | # We need to compile and run a program on the build machine. | ||
8111 | echo "$as_me:$LINENO: checking for cc for build" >&5 | ||
8112 | echo $ECHO_N "checking for cc for build... $ECHO_C" >&6 | ||
8113 | if test "$cross_compiling" = "yes"; then | ||
8114 | CC_FOR_BUILD="${CC_FOR_BUILD-cc}" | ||
8115 | else | ||
8116 | CC_FOR_BUILD="${CC_FOR_BUILD-$CC}" | ||
8117 | fi | ||
8118 | echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5 | ||
8119 | echo "${ECHO_T}$CC_FOR_BUILD" >&6 | ||
8120 | |||
8121 | |||
8122 | # Checks for libraries. | ||
8123 | |||
8124 | # Note, that autogen.sh greps for the next line. | ||
8125 | |||
8126 | |||
8127 | MKINSTALLDIRS= | ||
8128 | if test -n "$ac_aux_dir"; then | ||
8129 | case "$ac_aux_dir" in | ||
8130 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | ||
8131 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | ||
8132 | esac | ||
8133 | fi | ||
8134 | if test -z "$MKINSTALLDIRS"; then | ||
8135 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
8136 | fi | ||
8137 | |||
8138 | |||
8139 | |||
8140 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | ||
8141 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | ||
8142 | # Check whether --enable-nls or --disable-nls was given. | ||
8143 | if test "${enable_nls+set}" = set; then | ||
8144 | enableval="$enable_nls" | ||
8145 | USE_NLS=$enableval | ||
8146 | else | ||
8147 | USE_NLS=yes | ||
8148 | fi; | ||
8149 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | ||
8150 | echo "${ECHO_T}$USE_NLS" >&6 | ||
8151 | |||
8152 | |||
8153 | |||
8154 | |||
8155 | |||
8156 | |||
8157 | # Prepare PATH_SEPARATOR. | ||
8158 | # The user is always right. | ||
8159 | if test "${PATH_SEPARATOR+set}" != set; then | ||
8160 | echo "#! /bin/sh" >conf$$.sh | ||
8161 | echo "exit 0" >>conf$$.sh | ||
8162 | chmod +x conf$$.sh | ||
8163 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
8164 | PATH_SEPARATOR=';' | ||
8165 | else | ||
8166 | PATH_SEPARATOR=: | ||
8167 | fi | ||
8168 | rm -f conf$$.sh | ||
8169 | fi | ||
8170 | |||
8171 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
8172 | # as systems may use methods other than mode bits to determine executability. | ||
8173 | cat >conf$$.file <<_ASEOF | ||
8174 | #! /bin/sh | ||
8175 | exit 0 | ||
8176 | _ASEOF | ||
8177 | chmod +x conf$$.file | ||
8178 | if test -x conf$$.file >/dev/null 2>&1; then | ||
8179 | ac_executable_p="test -x" | ||
8180 | else | ||
8181 | ac_executable_p="test -f" | ||
8182 | fi | ||
8183 | rm -f conf$$.file | ||
8184 | |||
8185 | # Extract the first word of "msgfmt", so it can be a program name with args. | ||
8186 | set dummy msgfmt; ac_word=$2 | ||
8187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8189 | if test "${ac_cv_path_MSGFMT+set}" = set; then | ||
8190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8191 | else | ||
8192 | case "$MSGFMT" in | ||
8193 | [\\/]* | ?:[\\/]*) | ||
8194 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | ||
8195 | ;; | ||
8196 | *) | ||
8197 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
8198 | for ac_dir in $PATH; do | ||
8199 | IFS="$ac_save_IFS" | ||
8200 | test -z "$ac_dir" && ac_dir=. | ||
8201 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8202 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
8203 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | ||
8204 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
8205 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | ||
8206 | break 2 | ||
8207 | fi | ||
8208 | fi | ||
8209 | done | ||
8210 | done | ||
8211 | IFS="$ac_save_IFS" | ||
8212 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | ||
8213 | ;; | ||
8214 | esac | ||
8215 | fi | ||
8216 | MSGFMT="$ac_cv_path_MSGFMT" | ||
8217 | if test "$MSGFMT" != ":"; then | ||
8218 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | ||
8219 | echo "${ECHO_T}$MSGFMT" >&6 | ||
8220 | else | ||
8221 | echo "$as_me:$LINENO: result: no" >&5 | ||
8222 | echo "${ECHO_T}no" >&6 | ||
8223 | fi | ||
8224 | |||
8225 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | ||
8226 | set dummy gmsgfmt; ac_word=$2 | ||
8227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8229 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | ||
8230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8231 | else | ||
8232 | case $GMSGFMT in | ||
8233 | [\\/]* | ?:[\\/]*) | ||
8234 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | ||
8235 | ;; | ||
8236 | *) | ||
8237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8238 | for as_dir in $PATH | ||
8239 | do | ||
8240 | IFS=$as_save_IFS | ||
8241 | test -z "$as_dir" && as_dir=. | ||
8242 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8244 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | ||
8245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8246 | break 2 | ||
8247 | fi | ||
8248 | done | ||
8249 | done | ||
8250 | |||
8251 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | ||
8252 | ;; | ||
8253 | esac | ||
8254 | fi | ||
8255 | GMSGFMT=$ac_cv_path_GMSGFMT | ||
8256 | |||
8257 | if test -n "$GMSGFMT"; then | ||
8258 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | ||
8259 | echo "${ECHO_T}$GMSGFMT" >&6 | ||
8260 | else | ||
8261 | echo "$as_me:$LINENO: result: no" >&5 | ||
8262 | echo "${ECHO_T}no" >&6 | ||
8263 | fi | ||
8264 | |||
8265 | |||
8266 | |||
8267 | # Prepare PATH_SEPARATOR. | ||
8268 | # The user is always right. | ||
8269 | if test "${PATH_SEPARATOR+set}" != set; then | ||
8270 | echo "#! /bin/sh" >conf$$.sh | ||
8271 | echo "exit 0" >>conf$$.sh | ||
8272 | chmod +x conf$$.sh | ||
8273 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
8274 | PATH_SEPARATOR=';' | ||
8275 | else | ||
8276 | PATH_SEPARATOR=: | ||
8277 | fi | ||
8278 | rm -f conf$$.sh | ||
8279 | fi | ||
8280 | |||
8281 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
8282 | # as systems may use methods other than mode bits to determine executability. | ||
8283 | cat >conf$$.file <<_ASEOF | ||
8284 | #! /bin/sh | ||
8285 | exit 0 | ||
8286 | _ASEOF | ||
8287 | chmod +x conf$$.file | ||
8288 | if test -x conf$$.file >/dev/null 2>&1; then | ||
8289 | ac_executable_p="test -x" | ||
8290 | else | ||
8291 | ac_executable_p="test -f" | ||
8292 | fi | ||
8293 | rm -f conf$$.file | ||
8294 | |||
8295 | # Extract the first word of "xgettext", so it can be a program name with args. | ||
8296 | set dummy xgettext; ac_word=$2 | ||
8297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8299 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | ||
8300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8301 | else | ||
8302 | case "$XGETTEXT" in | ||
8303 | [\\/]* | ?:[\\/]*) | ||
8304 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | ||
8305 | ;; | ||
8306 | *) | ||
8307 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
8308 | for ac_dir in $PATH; do | ||
8309 | IFS="$ac_save_IFS" | ||
8310 | test -z "$ac_dir" && ac_dir=. | ||
8311 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8312 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
8313 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | ||
8314 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
8315 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | ||
8316 | break 2 | ||
8317 | fi | ||
8318 | fi | ||
8319 | done | ||
8320 | done | ||
8321 | IFS="$ac_save_IFS" | ||
8322 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | ||
8323 | ;; | ||
8324 | esac | ||
8325 | fi | ||
8326 | XGETTEXT="$ac_cv_path_XGETTEXT" | ||
8327 | if test "$XGETTEXT" != ":"; then | ||
8328 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | ||
8329 | echo "${ECHO_T}$XGETTEXT" >&6 | ||
8330 | else | ||
8331 | echo "$as_me:$LINENO: result: no" >&5 | ||
8332 | echo "${ECHO_T}no" >&6 | ||
8333 | fi | ||
8334 | |||
8335 | rm -f messages.po | ||
8336 | |||
8337 | |||
8338 | # Prepare PATH_SEPARATOR. | ||
8339 | # The user is always right. | ||
8340 | if test "${PATH_SEPARATOR+set}" != set; then | ||
8341 | echo "#! /bin/sh" >conf$$.sh | ||
8342 | echo "exit 0" >>conf$$.sh | ||
8343 | chmod +x conf$$.sh | ||
8344 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
8345 | PATH_SEPARATOR=';' | ||
8346 | else | ||
8347 | PATH_SEPARATOR=: | ||
8348 | fi | ||
8349 | rm -f conf$$.sh | ||
8350 | fi | ||
8351 | |||
8352 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
8353 | # as systems may use methods other than mode bits to determine executability. | ||
8354 | cat >conf$$.file <<_ASEOF | ||
8355 | #! /bin/sh | ||
8356 | exit 0 | ||
8357 | _ASEOF | ||
8358 | chmod +x conf$$.file | ||
8359 | if test -x conf$$.file >/dev/null 2>&1; then | ||
8360 | ac_executable_p="test -x" | ||
8361 | else | ||
8362 | ac_executable_p="test -f" | ||
8363 | fi | ||
8364 | rm -f conf$$.file | ||
8365 | |||
8366 | # Extract the first word of "msgmerge", so it can be a program name with args. | ||
8367 | set dummy msgmerge; ac_word=$2 | ||
8368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8370 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | ||
8371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8372 | else | ||
8373 | case "$MSGMERGE" in | ||
8374 | [\\/]* | ?:[\\/]*) | ||
8375 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | ||
8376 | ;; | ||
8377 | *) | ||
8378 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
8379 | for ac_dir in $PATH; do | ||
8380 | IFS="$ac_save_IFS" | ||
8381 | test -z "$ac_dir" && ac_dir=. | ||
8382 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8383 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
8384 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | ||
8385 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | ||
8386 | break 2 | ||
8387 | fi | ||
8388 | fi | ||
8389 | done | ||
8390 | done | ||
8391 | IFS="$ac_save_IFS" | ||
8392 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | ||
8393 | ;; | ||
8394 | esac | ||
8395 | fi | ||
8396 | MSGMERGE="$ac_cv_path_MSGMERGE" | ||
8397 | if test "$MSGMERGE" != ":"; then | ||
8398 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | ||
8399 | echo "${ECHO_T}$MSGMERGE" >&6 | ||
8400 | else | ||
8401 | echo "$as_me:$LINENO: result: no" >&5 | ||
8402 | echo "${ECHO_T}no" >&6 | ||
8403 | fi | ||
8404 | |||
8405 | |||
8406 | if test "$GMSGFMT" != ":"; then | ||
8407 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | ||
8408 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
8409 | : ; | ||
8410 | else | ||
8411 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | ||
8412 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | ||
8413 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | ||
8414 | GMSGFMT=":" | ||
8415 | fi | ||
8416 | fi | ||
8417 | |||
8418 | if test "$XGETTEXT" != ":"; then | ||
8419 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | ||
8420 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
8421 | : ; | ||
8422 | else | ||
8423 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | ||
8424 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | ||
8425 | XGETTEXT=":" | ||
8426 | fi | ||
8427 | rm -f messages.po | ||
8428 | fi | ||
8429 | |||
8430 | ac_config_commands="$ac_config_commands default-1" | ||
8431 | |||
8432 | |||
8433 | |||
8434 | if test "X$prefix" = "XNONE"; then | ||
8435 | acl_final_prefix="$ac_default_prefix" | ||
8436 | else | ||
8437 | acl_final_prefix="$prefix" | ||
8438 | fi | ||
8439 | if test "X$exec_prefix" = "XNONE"; then | ||
8440 | acl_final_exec_prefix='${prefix}' | ||
8441 | else | ||
8442 | acl_final_exec_prefix="$exec_prefix" | ||
8443 | fi | ||
8444 | acl_save_prefix="$prefix" | ||
8445 | prefix="$acl_final_prefix" | ||
8446 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | ||
8447 | prefix="$acl_save_prefix" | ||
8448 | |||
8449 | |||
8450 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
8451 | if test "${with_gnu_ld+set}" = set; then | ||
8452 | withval="$with_gnu_ld" | ||
8453 | test "$withval" = no || with_gnu_ld=yes | ||
8454 | else | ||
8455 | with_gnu_ld=no | ||
8456 | fi; | ||
8457 | # Prepare PATH_SEPARATOR. | ||
8458 | # The user is always right. | ||
8459 | if test "${PATH_SEPARATOR+set}" != set; then | ||
8460 | echo "#! /bin/sh" >conf$$.sh | ||
8461 | echo "exit 0" >>conf$$.sh | ||
8462 | chmod +x conf$$.sh | ||
8463 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
8464 | PATH_SEPARATOR=';' | ||
8465 | else | ||
8466 | PATH_SEPARATOR=: | ||
8467 | fi | ||
8468 | rm -f conf$$.sh | ||
8469 | fi | ||
8470 | ac_prog=ld | ||
8471 | if test "$GCC" = yes; then | ||
8472 | # Check if gcc -print-prog-name=ld gives a path. | ||
8473 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | ||
8474 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | ||
8475 | case $host in | ||
8476 | *-*-mingw*) | ||
8477 | # gcc leaves a trailing carriage return which upsets mingw | ||
8478 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
8479 | *) | ||
8480 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
8481 | esac | ||
8482 | case $ac_prog in | ||
8483 | # Accept absolute paths. | ||
8484 | [\\/]* | [A-Za-z]:[\\/]*) | ||
8485 | re_direlt='/[^/][^/]*/\.\./' | ||
8486 | # Canonicalize the path of ld | ||
8487 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
8488 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
8489 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
8490 | done | ||
8491 | test -z "$LD" && LD="$ac_prog" | ||
8492 | ;; | ||
8493 | "") | ||
8494 | # If it fails, then pretend we aren't using GCC. | ||
8495 | ac_prog=ld | ||
8496 | ;; | ||
8497 | *) | ||
8498 | # If it is relative, then search for the first ld in PATH. | ||
8499 | with_gnu_ld=unknown | ||
8500 | ;; | ||
8501 | esac | ||
8502 | elif test "$with_gnu_ld" = yes; then | ||
8503 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
8504 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | ||
8505 | else | ||
8506 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
8507 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | ||
8508 | fi | ||
8509 | if test "${acl_cv_path_LD+set}" = set; then | ||
8510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8511 | else | ||
8512 | if test -z "$LD"; then | ||
8513 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
8514 | for ac_dir in $PATH; do | ||
8515 | test -z "$ac_dir" && ac_dir=. | ||
8516 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
8517 | acl_cv_path_LD="$ac_dir/$ac_prog" | ||
8518 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
8519 | # but apparently some GNU ld's only accept -v. | ||
8520 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
8521 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | ||
8522 | test "$with_gnu_ld" != no && break | ||
8523 | else | ||
8524 | test "$with_gnu_ld" != yes && break | ||
8525 | fi | ||
8526 | fi | ||
8527 | done | ||
8528 | IFS="$ac_save_ifs" | ||
8529 | else | ||
8530 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | ||
8531 | fi | ||
8532 | fi | ||
8533 | |||
8534 | LD="$acl_cv_path_LD" | ||
8535 | if test -n "$LD"; then | ||
8536 | echo "$as_me:$LINENO: result: $LD" >&5 | ||
8537 | echo "${ECHO_T}$LD" >&6 | ||
8538 | else | ||
8539 | echo "$as_me:$LINENO: result: no" >&5 | ||
8540 | echo "${ECHO_T}no" >&6 | ||
8541 | fi | ||
8542 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
8543 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
8544 | { (exit 1); exit 1; }; } | ||
8545 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
8546 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | ||
8547 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | ||
8548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8549 | else | ||
8550 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
8551 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | ||
8552 | acl_cv_prog_gnu_ld=yes | ||
8553 | else | ||
8554 | acl_cv_prog_gnu_ld=no | ||
8555 | fi | ||
8556 | fi | ||
8557 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | ||
8558 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | ||
8559 | with_gnu_ld=$acl_cv_prog_gnu_ld | ||
8560 | |||
8561 | |||
8562 | |||
8563 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | ||
8564 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | ||
8565 | if test "${acl_cv_rpath+set}" = set; then | ||
8566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8567 | else | ||
8568 | |||
8569 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | ||
8570 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | ||
8571 | . ./conftest.sh | ||
8572 | rm -f ./conftest.sh | ||
8573 | acl_cv_rpath=done | ||
8574 | |||
8575 | fi | ||
8576 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | ||
8577 | echo "${ECHO_T}$acl_cv_rpath" >&6 | ||
8578 | wl="$acl_cv_wl" | ||
8579 | libext="$acl_cv_libext" | ||
8580 | shlibext="$acl_cv_shlibext" | ||
8581 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
8582 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
8583 | hardcode_direct="$acl_cv_hardcode_direct" | ||
8584 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
8585 | # Check whether --enable-rpath or --disable-rpath was given. | ||
8586 | if test "${enable_rpath+set}" = set; then | ||
8587 | enableval="$enable_rpath" | ||
8588 | : | ||
8589 | else | ||
8590 | enable_rpath=yes | ||
8591 | fi; | ||
8592 | |||
8593 | |||
8594 | |||
8595 | |||
8596 | |||
8597 | |||
8598 | |||
8599 | use_additional=yes | ||
8600 | |||
8601 | acl_save_prefix="$prefix" | ||
8602 | prefix="$acl_final_prefix" | ||
8603 | acl_save_exec_prefix="$exec_prefix" | ||
8604 | exec_prefix="$acl_final_exec_prefix" | ||
8605 | |||
8606 | eval additional_includedir=\"$includedir\" | ||
8607 | eval additional_libdir=\"$libdir\" | ||
8608 | |||
8609 | exec_prefix="$acl_save_exec_prefix" | ||
8610 | prefix="$acl_save_prefix" | ||
8611 | |||
8612 | |||
8613 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | ||
8614 | if test "${with_libiconv_prefix+set}" = set; then | ||
8615 | withval="$with_libiconv_prefix" | ||
8616 | |||
8617 | if test "X$withval" = "Xno"; then | ||
8618 | use_additional=no | ||
8619 | else | ||
8620 | if test "X$withval" = "X"; then | ||
8621 | |||
8622 | acl_save_prefix="$prefix" | ||
8623 | prefix="$acl_final_prefix" | ||
8624 | acl_save_exec_prefix="$exec_prefix" | ||
8625 | exec_prefix="$acl_final_exec_prefix" | ||
8626 | |||
8627 | eval additional_includedir=\"$includedir\" | ||
8628 | eval additional_libdir=\"$libdir\" | ||
8629 | |||
8630 | exec_prefix="$acl_save_exec_prefix" | ||
8631 | prefix="$acl_save_prefix" | ||
8632 | |||
8633 | else | ||
8634 | additional_includedir="$withval/include" | ||
8635 | additional_libdir="$withval/lib" | ||
8636 | fi | ||
8637 | fi | ||
8638 | |||
8639 | fi; | ||
8640 | LIBICONV= | ||
8641 | LTLIBICONV= | ||
8642 | INCICONV= | ||
8643 | rpathdirs= | ||
8644 | ltrpathdirs= | ||
8645 | names_already_handled= | ||
8646 | names_next_round='iconv ' | ||
8647 | while test -n "$names_next_round"; do | ||
8648 | names_this_round="$names_next_round" | ||
8649 | names_next_round= | ||
8650 | for name in $names_this_round; do | ||
8651 | already_handled= | ||
8652 | for n in $names_already_handled; do | ||
8653 | if test "$n" = "$name"; then | ||
8654 | already_handled=yes | ||
8655 | break | ||
8656 | fi | ||
8657 | done | ||
8658 | if test -z "$already_handled"; then | ||
8659 | names_already_handled="$names_already_handled $name" | ||
8660 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
8661 | eval value=\"\$HAVE_LIB$uppername\" | ||
8662 | if test -n "$value"; then | ||
8663 | if test "$value" = yes; then | ||
8664 | eval value=\"\$LIB$uppername\" | ||
8665 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | ||
8666 | eval value=\"\$LTLIB$uppername\" | ||
8667 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | ||
8668 | else | ||
8669 | : | ||
8670 | fi | ||
8671 | else | ||
8672 | found_dir= | ||
8673 | found_la= | ||
8674 | found_so= | ||
8675 | found_a= | ||
8676 | if test $use_additional = yes; then | ||
8677 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | ||
8678 | found_dir="$additional_libdir" | ||
8679 | found_so="$additional_libdir/lib$name.$shlibext" | ||
8680 | if test -f "$additional_libdir/lib$name.la"; then | ||
8681 | found_la="$additional_libdir/lib$name.la" | ||
8682 | fi | ||
8683 | else | ||
8684 | if test -f "$additional_libdir/lib$name.$libext"; then | ||
8685 | found_dir="$additional_libdir" | ||
8686 | found_a="$additional_libdir/lib$name.$libext" | ||
8687 | if test -f "$additional_libdir/lib$name.la"; then | ||
8688 | found_la="$additional_libdir/lib$name.la" | ||
8689 | fi | ||
8690 | fi | ||
8691 | fi | ||
8692 | fi | ||
8693 | if test "X$found_dir" = "X"; then | ||
8694 | for x in $LDFLAGS $LTLIBICONV; do | ||
8695 | |||
8696 | acl_save_prefix="$prefix" | ||
8697 | prefix="$acl_final_prefix" | ||
8698 | acl_save_exec_prefix="$exec_prefix" | ||
8699 | exec_prefix="$acl_final_exec_prefix" | ||
8700 | eval x=\"$x\" | ||
8701 | exec_prefix="$acl_save_exec_prefix" | ||
8702 | prefix="$acl_save_prefix" | ||
8703 | |||
8704 | case "$x" in | ||
8705 | -L*) | ||
8706 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
8707 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | ||
8708 | found_dir="$dir" | ||
8709 | found_so="$dir/lib$name.$shlibext" | ||
8710 | if test -f "$dir/lib$name.la"; then | ||
8711 | found_la="$dir/lib$name.la" | ||
8712 | fi | ||
8713 | else | ||
8714 | if test -f "$dir/lib$name.$libext"; then | ||
8715 | found_dir="$dir" | ||
8716 | found_a="$dir/lib$name.$libext" | ||
8717 | if test -f "$dir/lib$name.la"; then | ||
8718 | found_la="$dir/lib$name.la" | ||
8719 | fi | ||
8720 | fi | ||
8721 | fi | ||
8722 | ;; | ||
8723 | esac | ||
8724 | if test "X$found_dir" != "X"; then | ||
8725 | break | ||
8726 | fi | ||
8727 | done | ||
8728 | fi | ||
8729 | if test "X$found_dir" != "X"; then | ||
8730 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | ||
8731 | if test "X$found_so" != "X"; then | ||
8732 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | ||
8733 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
8734 | else | ||
8735 | haveit= | ||
8736 | for x in $ltrpathdirs; do | ||
8737 | if test "X$x" = "X$found_dir"; then | ||
8738 | haveit=yes | ||
8739 | break | ||
8740 | fi | ||
8741 | done | ||
8742 | if test -z "$haveit"; then | ||
8743 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
8744 | fi | ||
8745 | if test "$hardcode_direct" = yes; then | ||
8746 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
8747 | else | ||
8748 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
8749 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
8750 | haveit= | ||
8751 | for x in $rpathdirs; do | ||
8752 | if test "X$x" = "X$found_dir"; then | ||
8753 | haveit=yes | ||
8754 | break | ||
8755 | fi | ||
8756 | done | ||
8757 | if test -z "$haveit"; then | ||
8758 | rpathdirs="$rpathdirs $found_dir" | ||
8759 | fi | ||
8760 | else | ||
8761 | haveit= | ||
8762 | for x in $LDFLAGS $LIBICONV; do | ||
8763 | |||
8764 | acl_save_prefix="$prefix" | ||
8765 | prefix="$acl_final_prefix" | ||
8766 | acl_save_exec_prefix="$exec_prefix" | ||
8767 | exec_prefix="$acl_final_exec_prefix" | ||
8768 | eval x=\"$x\" | ||
8769 | exec_prefix="$acl_save_exec_prefix" | ||
8770 | prefix="$acl_save_prefix" | ||
8771 | |||
8772 | if test "X$x" = "X-L$found_dir"; then | ||
8773 | haveit=yes | ||
8774 | break | ||
8775 | fi | ||
8776 | done | ||
8777 | if test -z "$haveit"; then | ||
8778 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | ||
8779 | fi | ||
8780 | if test "$hardcode_minus_L" != no; then | ||
8781 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
8782 | else | ||
8783 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | ||
8784 | fi | ||
8785 | fi | ||
8786 | fi | ||
8787 | fi | ||
8788 | else | ||
8789 | if test "X$found_a" != "X"; then | ||
8790 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | ||
8791 | else | ||
8792 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | ||
8793 | fi | ||
8794 | fi | ||
8795 | additional_includedir= | ||
8796 | case "$found_dir" in | ||
8797 | */lib | */lib/) | ||
8798 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | ||
8799 | additional_includedir="$basedir/include" | ||
8800 | ;; | ||
8801 | esac | ||
8802 | if test "X$additional_includedir" != "X"; then | ||
8803 | if test "X$additional_includedir" != "X/usr/include"; then | ||
8804 | haveit= | ||
8805 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
8806 | if test -n "$GCC"; then | ||
8807 | case $host_os in | ||
8808 | linux*) haveit=yes;; | ||
8809 | esac | ||
8810 | fi | ||
8811 | fi | ||
8812 | if test -z "$haveit"; then | ||
8813 | for x in $CPPFLAGS $INCICONV; do | ||
8814 | |||
8815 | acl_save_prefix="$prefix" | ||
8816 | prefix="$acl_final_prefix" | ||
8817 | acl_save_exec_prefix="$exec_prefix" | ||
8818 | exec_prefix="$acl_final_exec_prefix" | ||
8819 | eval x=\"$x\" | ||
8820 | exec_prefix="$acl_save_exec_prefix" | ||
8821 | prefix="$acl_save_prefix" | ||
8822 | |||
8823 | if test "X$x" = "X-I$additional_includedir"; then | ||
8824 | haveit=yes | ||
8825 | break | ||
8826 | fi | ||
8827 | done | ||
8828 | if test -z "$haveit"; then | ||
8829 | if test -d "$additional_includedir"; then | ||
8830 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | ||
8831 | fi | ||
8832 | fi | ||
8833 | fi | ||
8834 | fi | ||
8835 | fi | ||
8836 | if test -n "$found_la"; then | ||
8837 | save_libdir="$libdir" | ||
8838 | case "$found_la" in | ||
8839 | */* | *\\*) . "$found_la" ;; | ||
8840 | *) . "./$found_la" ;; | ||
8841 | esac | ||
8842 | libdir="$save_libdir" | ||
8843 | for dep in $dependency_libs; do | ||
8844 | case "$dep" in | ||
8845 | -L*) | ||
8846 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
8847 | if test "X$additional_libdir" != "X/usr/lib"; then | ||
8848 | haveit= | ||
8849 | if test "X$additional_libdir" = "X/usr/local/lib"; then | ||
8850 | if test -n "$GCC"; then | ||
8851 | case $host_os in | ||
8852 | linux*) haveit=yes;; | ||
8853 | esac | ||
8854 | fi | ||
8855 | fi | ||
8856 | if test -z "$haveit"; then | ||
8857 | haveit= | ||
8858 | for x in $LDFLAGS $LIBICONV; do | ||
8859 | |||
8860 | acl_save_prefix="$prefix" | ||
8861 | prefix="$acl_final_prefix" | ||
8862 | acl_save_exec_prefix="$exec_prefix" | ||
8863 | exec_prefix="$acl_final_exec_prefix" | ||
8864 | eval x=\"$x\" | ||
8865 | exec_prefix="$acl_save_exec_prefix" | ||
8866 | prefix="$acl_save_prefix" | ||
8867 | |||
8868 | if test "X$x" = "X-L$additional_libdir"; then | ||
8869 | haveit=yes | ||
8870 | break | ||
8871 | fi | ||
8872 | done | ||
8873 | if test -z "$haveit"; then | ||
8874 | if test -d "$additional_libdir"; then | ||
8875 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | ||
8876 | fi | ||
8877 | fi | ||
8878 | haveit= | ||
8879 | for x in $LDFLAGS $LTLIBICONV; do | ||
8880 | |||
8881 | acl_save_prefix="$prefix" | ||
8882 | prefix="$acl_final_prefix" | ||
8883 | acl_save_exec_prefix="$exec_prefix" | ||
8884 | exec_prefix="$acl_final_exec_prefix" | ||
8885 | eval x=\"$x\" | ||
8886 | exec_prefix="$acl_save_exec_prefix" | ||
8887 | prefix="$acl_save_prefix" | ||
8888 | |||
8889 | if test "X$x" = "X-L$additional_libdir"; then | ||
8890 | haveit=yes | ||
8891 | break | ||
8892 | fi | ||
8893 | done | ||
8894 | if test -z "$haveit"; then | ||
8895 | if test -d "$additional_libdir"; then | ||
8896 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | ||
8897 | fi | ||
8898 | fi | ||
8899 | fi | ||
8900 | fi | ||
8901 | ;; | ||
8902 | -R*) | ||
8903 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
8904 | if test "$enable_rpath" != no; then | ||
8905 | haveit= | ||
8906 | for x in $rpathdirs; do | ||
8907 | if test "X$x" = "X$dir"; then | ||
8908 | haveit=yes | ||
8909 | break | ||
8910 | fi | ||
8911 | done | ||
8912 | if test -z "$haveit"; then | ||
8913 | rpathdirs="$rpathdirs $dir" | ||
8914 | fi | ||
8915 | haveit= | ||
8916 | for x in $ltrpathdirs; do | ||
8917 | if test "X$x" = "X$dir"; then | ||
8918 | haveit=yes | ||
8919 | break | ||
8920 | fi | ||
8921 | done | ||
8922 | if test -z "$haveit"; then | ||
8923 | ltrpathdirs="$ltrpathdirs $dir" | ||
8924 | fi | ||
8925 | fi | ||
8926 | ;; | ||
8927 | -l*) | ||
8928 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
8929 | ;; | ||
8930 | *.la) | ||
8931 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
8932 | ;; | ||
8933 | *) | ||
8934 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | ||
8935 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | ||
8936 | ;; | ||
8937 | esac | ||
8938 | done | ||
8939 | fi | ||
8940 | else | ||
8941 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | ||
8942 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | ||
8943 | fi | ||
8944 | fi | ||
8945 | fi | ||
8946 | done | ||
8947 | done | ||
8948 | if test "X$rpathdirs" != "X"; then | ||
8949 | if test -n "$hardcode_libdir_separator"; then | ||
8950 | alldirs= | ||
8951 | for found_dir in $rpathdirs; do | ||
8952 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | ||
8953 | done | ||
8954 | acl_save_libdir="$libdir" | ||
8955 | libdir="$alldirs" | ||
8956 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
8957 | libdir="$acl_save_libdir" | ||
8958 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | ||
8959 | else | ||
8960 | for found_dir in $rpathdirs; do | ||
8961 | acl_save_libdir="$libdir" | ||
8962 | libdir="$found_dir" | ||
8963 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
8964 | libdir="$acl_save_libdir" | ||
8965 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | ||
8966 | done | ||
8967 | fi | ||
8968 | fi | ||
8969 | if test "X$ltrpathdirs" != "X"; then | ||
8970 | for found_dir in $ltrpathdirs; do | ||
8971 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | ||
8972 | done | ||
8973 | fi | ||
8974 | |||
8975 | |||
8976 | |||
8977 | |||
8978 | |||
8979 | |||
8980 | |||
8981 | |||
8982 | |||
8983 | |||
8984 | |||
8985 | |||
8986 | |||
8987 | |||
8988 | |||
8989 | |||
8990 | |||
8991 | |||
8992 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | ||
8993 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | ||
8994 | # Check whether --enable-nls or --disable-nls was given. | ||
8995 | if test "${enable_nls+set}" = set; then | ||
8996 | enableval="$enable_nls" | ||
8997 | USE_NLS=$enableval | ||
8998 | else | ||
8999 | USE_NLS=yes | ||
9000 | fi; | ||
9001 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | ||
9002 | echo "${ECHO_T}$USE_NLS" >&6 | ||
9003 | |||
9004 | |||
9005 | |||
9006 | |||
9007 | LIBINTL= | ||
9008 | LTLIBINTL= | ||
9009 | POSUB= | ||
9010 | |||
9011 | if test "$USE_NLS" = "yes"; then | ||
9012 | gt_use_preinstalled_gnugettext=no | ||
9013 | |||
9014 | |||
9015 | |||
9016 | |||
9017 | |||
9018 | |||
9019 | echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 | ||
9020 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 | ||
9021 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | ||
9022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9023 | else | ||
9024 | cat >conftest.$ac_ext <<_ACEOF | ||
9025 | /* confdefs.h. */ | ||
9026 | _ACEOF | ||
9027 | cat confdefs.h >>conftest.$ac_ext | ||
9028 | cat >>conftest.$ac_ext <<_ACEOF | ||
9029 | /* end confdefs.h. */ | ||
9030 | #include <libintl.h> | ||
9031 | extern int _nl_msg_cat_cntr; | ||
9032 | extern int *_nl_domain_bindings; | ||
9033 | int | ||
9034 | main () | ||
9035 | { | ||
9036 | bindtextdomain ("", ""); | ||
9037 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | ||
9038 | ; | ||
9039 | return 0; | ||
9040 | } | ||
9041 | _ACEOF | ||
9042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9044 | (eval $ac_link) 2>conftest.er1 | ||
9045 | ac_status=$? | ||
9046 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9047 | rm -f conftest.er1 | ||
9048 | cat conftest.err >&5 | ||
9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9050 | (exit $ac_status); } && | ||
9051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9053 | (eval $ac_try) 2>&5 | ||
9054 | ac_status=$? | ||
9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9056 | (exit $ac_status); }; } && | ||
9057 | { ac_try='test -s conftest$ac_exeext' | ||
9058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9059 | (eval $ac_try) 2>&5 | ||
9060 | ac_status=$? | ||
9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9062 | (exit $ac_status); }; }; then | ||
9063 | gt_cv_func_gnugettext1_libc=yes | ||
9064 | else | ||
9065 | echo "$as_me: failed program was:" >&5 | ||
9066 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9067 | |||
9068 | gt_cv_func_gnugettext1_libc=no | ||
9069 | fi | ||
9070 | rm -f conftest.err conftest.$ac_objext \ | ||
9071 | conftest$ac_exeext conftest.$ac_ext | ||
9072 | fi | ||
9073 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 | ||
9074 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 | ||
9075 | |||
9076 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then | ||
9077 | |||
9078 | |||
9079 | |||
9080 | |||
9081 | |||
9082 | am_save_CPPFLAGS="$CPPFLAGS" | ||
9083 | |||
9084 | for element in $INCICONV; do | ||
9085 | haveit= | ||
9086 | for x in $CPPFLAGS; do | ||
9087 | |||
9088 | acl_save_prefix="$prefix" | ||
9089 | prefix="$acl_final_prefix" | ||
9090 | acl_save_exec_prefix="$exec_prefix" | ||
9091 | exec_prefix="$acl_final_exec_prefix" | ||
9092 | eval x=\"$x\" | ||
9093 | exec_prefix="$acl_save_exec_prefix" | ||
9094 | prefix="$acl_save_prefix" | ||
9095 | |||
9096 | if test "X$x" = "X$element"; then | ||
9097 | haveit=yes | ||
9098 | break | ||
9099 | fi | ||
9100 | done | ||
9101 | if test -z "$haveit"; then | ||
9102 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | ||
9103 | fi | ||
9104 | done | ||
9105 | |||
9106 | |||
9107 | echo "$as_me:$LINENO: checking for iconv" >&5 | ||
9108 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | ||
9109 | if test "${am_cv_func_iconv+set}" = set; then | ||
9110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9111 | else | ||
9112 | |||
9113 | am_cv_func_iconv="no, consider installing GNU libiconv" | ||
9114 | am_cv_lib_iconv=no | ||
9115 | cat >conftest.$ac_ext <<_ACEOF | ||
9116 | /* confdefs.h. */ | ||
9117 | _ACEOF | ||
9118 | cat confdefs.h >>conftest.$ac_ext | ||
9119 | cat >>conftest.$ac_ext <<_ACEOF | ||
9120 | /* end confdefs.h. */ | ||
9121 | #include <stdlib.h> | ||
9122 | #include <iconv.h> | ||
9123 | int | ||
9124 | main () | ||
9125 | { | ||
9126 | iconv_t cd = iconv_open("",""); | ||
9127 | iconv(cd,NULL,NULL,NULL,NULL); | ||
9128 | iconv_close(cd); | ||
9129 | ; | ||
9130 | return 0; | ||
9131 | } | ||
9132 | _ACEOF | ||
9133 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9135 | (eval $ac_link) 2>conftest.er1 | ||
9136 | ac_status=$? | ||
9137 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9138 | rm -f conftest.er1 | ||
9139 | cat conftest.err >&5 | ||
9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9141 | (exit $ac_status); } && | ||
9142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9144 | (eval $ac_try) 2>&5 | ||
9145 | ac_status=$? | ||
9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9147 | (exit $ac_status); }; } && | ||
9148 | { ac_try='test -s conftest$ac_exeext' | ||
9149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9150 | (eval $ac_try) 2>&5 | ||
9151 | ac_status=$? | ||
9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9153 | (exit $ac_status); }; }; then | ||
9154 | am_cv_func_iconv=yes | ||
9155 | else | ||
9156 | echo "$as_me: failed program was:" >&5 | ||
9157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9158 | |||
9159 | fi | ||
9160 | rm -f conftest.err conftest.$ac_objext \ | ||
9161 | conftest$ac_exeext conftest.$ac_ext | ||
9162 | if test "$am_cv_func_iconv" != yes; then | ||
9163 | am_save_LIBS="$LIBS" | ||
9164 | LIBS="$LIBS $LIBICONV" | ||
9165 | cat >conftest.$ac_ext <<_ACEOF | ||
9166 | /* confdefs.h. */ | ||
9167 | _ACEOF | ||
9168 | cat confdefs.h >>conftest.$ac_ext | ||
9169 | cat >>conftest.$ac_ext <<_ACEOF | ||
9170 | /* end confdefs.h. */ | ||
9171 | #include <stdlib.h> | ||
9172 | #include <iconv.h> | ||
9173 | int | ||
9174 | main () | ||
9175 | { | ||
9176 | iconv_t cd = iconv_open("",""); | ||
9177 | iconv(cd,NULL,NULL,NULL,NULL); | ||
9178 | iconv_close(cd); | ||
9179 | ; | ||
9180 | return 0; | ||
9181 | } | ||
9182 | _ACEOF | ||
9183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9185 | (eval $ac_link) 2>conftest.er1 | ||
9186 | ac_status=$? | ||
9187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9188 | rm -f conftest.er1 | ||
9189 | cat conftest.err >&5 | ||
9190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9191 | (exit $ac_status); } && | ||
9192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9194 | (eval $ac_try) 2>&5 | ||
9195 | ac_status=$? | ||
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9197 | (exit $ac_status); }; } && | ||
9198 | { ac_try='test -s conftest$ac_exeext' | ||
9199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9200 | (eval $ac_try) 2>&5 | ||
9201 | ac_status=$? | ||
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9203 | (exit $ac_status); }; }; then | ||
9204 | am_cv_lib_iconv=yes | ||
9205 | am_cv_func_iconv=yes | ||
9206 | else | ||
9207 | echo "$as_me: failed program was:" >&5 | ||
9208 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9209 | |||
9210 | fi | ||
9211 | rm -f conftest.err conftest.$ac_objext \ | ||
9212 | conftest$ac_exeext conftest.$ac_ext | ||
9213 | LIBS="$am_save_LIBS" | ||
9214 | fi | ||
9215 | |||
9216 | fi | ||
9217 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | ||
9218 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | ||
9219 | if test "$am_cv_func_iconv" = yes; then | ||
9220 | |||
9221 | cat >>confdefs.h <<\_ACEOF | ||
9222 | #define HAVE_ICONV 1 | ||
9223 | _ACEOF | ||
9224 | |||
9225 | fi | ||
9226 | if test "$am_cv_lib_iconv" = yes; then | ||
9227 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 | ||
9228 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | ||
9229 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 | ||
9230 | echo "${ECHO_T}$LIBICONV" >&6 | ||
9231 | else | ||
9232 | CPPFLAGS="$am_save_CPPFLAGS" | ||
9233 | LIBICONV= | ||
9234 | LTLIBICONV= | ||
9235 | fi | ||
9236 | |||
9237 | |||
9238 | |||
9239 | |||
9240 | |||
9241 | |||
9242 | use_additional=yes | ||
9243 | |||
9244 | acl_save_prefix="$prefix" | ||
9245 | prefix="$acl_final_prefix" | ||
9246 | acl_save_exec_prefix="$exec_prefix" | ||
9247 | exec_prefix="$acl_final_exec_prefix" | ||
9248 | |||
9249 | eval additional_includedir=\"$includedir\" | ||
9250 | eval additional_libdir=\"$libdir\" | ||
9251 | |||
9252 | exec_prefix="$acl_save_exec_prefix" | ||
9253 | prefix="$acl_save_prefix" | ||
9254 | |||
9255 | |||
9256 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. | ||
9257 | if test "${with_libintl_prefix+set}" = set; then | ||
9258 | withval="$with_libintl_prefix" | ||
9259 | |||
9260 | if test "X$withval" = "Xno"; then | ||
9261 | use_additional=no | ||
9262 | else | ||
9263 | if test "X$withval" = "X"; then | ||
9264 | |||
9265 | acl_save_prefix="$prefix" | ||
9266 | prefix="$acl_final_prefix" | ||
9267 | acl_save_exec_prefix="$exec_prefix" | ||
9268 | exec_prefix="$acl_final_exec_prefix" | ||
9269 | |||
9270 | eval additional_includedir=\"$includedir\" | ||
9271 | eval additional_libdir=\"$libdir\" | ||
9272 | |||
9273 | exec_prefix="$acl_save_exec_prefix" | ||
9274 | prefix="$acl_save_prefix" | ||
9275 | |||
9276 | else | ||
9277 | additional_includedir="$withval/include" | ||
9278 | additional_libdir="$withval/lib" | ||
9279 | fi | ||
9280 | fi | ||
9281 | |||
9282 | fi; | ||
9283 | LIBINTL= | ||
9284 | LTLIBINTL= | ||
9285 | INCINTL= | ||
9286 | rpathdirs= | ||
9287 | ltrpathdirs= | ||
9288 | names_already_handled= | ||
9289 | names_next_round='intl ' | ||
9290 | while test -n "$names_next_round"; do | ||
9291 | names_this_round="$names_next_round" | ||
9292 | names_next_round= | ||
9293 | for name in $names_this_round; do | ||
9294 | already_handled= | ||
9295 | for n in $names_already_handled; do | ||
9296 | if test "$n" = "$name"; then | ||
9297 | already_handled=yes | ||
9298 | break | ||
9299 | fi | ||
9300 | done | ||
9301 | if test -z "$already_handled"; then | ||
9302 | names_already_handled="$names_already_handled $name" | ||
9303 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
9304 | eval value=\"\$HAVE_LIB$uppername\" | ||
9305 | if test -n "$value"; then | ||
9306 | if test "$value" = yes; then | ||
9307 | eval value=\"\$LIB$uppername\" | ||
9308 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | ||
9309 | eval value=\"\$LTLIB$uppername\" | ||
9310 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | ||
9311 | else | ||
9312 | : | ||
9313 | fi | ||
9314 | else | ||
9315 | found_dir= | ||
9316 | found_la= | ||
9317 | found_so= | ||
9318 | found_a= | ||
9319 | if test $use_additional = yes; then | ||
9320 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | ||
9321 | found_dir="$additional_libdir" | ||
9322 | found_so="$additional_libdir/lib$name.$shlibext" | ||
9323 | if test -f "$additional_libdir/lib$name.la"; then | ||
9324 | found_la="$additional_libdir/lib$name.la" | ||
9325 | fi | ||
9326 | else | ||
9327 | if test -f "$additional_libdir/lib$name.$libext"; then | ||
9328 | found_dir="$additional_libdir" | ||
9329 | found_a="$additional_libdir/lib$name.$libext" | ||
9330 | if test -f "$additional_libdir/lib$name.la"; then | ||
9331 | found_la="$additional_libdir/lib$name.la" | ||
9332 | fi | ||
9333 | fi | ||
9334 | fi | ||
9335 | fi | ||
9336 | if test "X$found_dir" = "X"; then | ||
9337 | for x in $LDFLAGS $LTLIBINTL; do | ||
9338 | |||
9339 | acl_save_prefix="$prefix" | ||
9340 | prefix="$acl_final_prefix" | ||
9341 | acl_save_exec_prefix="$exec_prefix" | ||
9342 | exec_prefix="$acl_final_exec_prefix" | ||
9343 | eval x=\"$x\" | ||
9344 | exec_prefix="$acl_save_exec_prefix" | ||
9345 | prefix="$acl_save_prefix" | ||
9346 | |||
9347 | case "$x" in | ||
9348 | -L*) | ||
9349 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
9350 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | ||
9351 | found_dir="$dir" | ||
9352 | found_so="$dir/lib$name.$shlibext" | ||
9353 | if test -f "$dir/lib$name.la"; then | ||
9354 | found_la="$dir/lib$name.la" | ||
9355 | fi | ||
9356 | else | ||
9357 | if test -f "$dir/lib$name.$libext"; then | ||
9358 | found_dir="$dir" | ||
9359 | found_a="$dir/lib$name.$libext" | ||
9360 | if test -f "$dir/lib$name.la"; then | ||
9361 | found_la="$dir/lib$name.la" | ||
9362 | fi | ||
9363 | fi | ||
9364 | fi | ||
9365 | ;; | ||
9366 | esac | ||
9367 | if test "X$found_dir" != "X"; then | ||
9368 | break | ||
9369 | fi | ||
9370 | done | ||
9371 | fi | ||
9372 | if test "X$found_dir" != "X"; then | ||
9373 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | ||
9374 | if test "X$found_so" != "X"; then | ||
9375 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | ||
9376 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
9377 | else | ||
9378 | haveit= | ||
9379 | for x in $ltrpathdirs; do | ||
9380 | if test "X$x" = "X$found_dir"; then | ||
9381 | haveit=yes | ||
9382 | break | ||
9383 | fi | ||
9384 | done | ||
9385 | if test -z "$haveit"; then | ||
9386 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
9387 | fi | ||
9388 | if test "$hardcode_direct" = yes; then | ||
9389 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
9390 | else | ||
9391 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
9392 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
9393 | haveit= | ||
9394 | for x in $rpathdirs; do | ||
9395 | if test "X$x" = "X$found_dir"; then | ||
9396 | haveit=yes | ||
9397 | break | ||
9398 | fi | ||
9399 | done | ||
9400 | if test -z "$haveit"; then | ||
9401 | rpathdirs="$rpathdirs $found_dir" | ||
9402 | fi | ||
9403 | else | ||
9404 | haveit= | ||
9405 | for x in $LDFLAGS $LIBINTL; do | ||
9406 | |||
9407 | acl_save_prefix="$prefix" | ||
9408 | prefix="$acl_final_prefix" | ||
9409 | acl_save_exec_prefix="$exec_prefix" | ||
9410 | exec_prefix="$acl_final_exec_prefix" | ||
9411 | eval x=\"$x\" | ||
9412 | exec_prefix="$acl_save_exec_prefix" | ||
9413 | prefix="$acl_save_prefix" | ||
9414 | |||
9415 | if test "X$x" = "X-L$found_dir"; then | ||
9416 | haveit=yes | ||
9417 | break | ||
9418 | fi | ||
9419 | done | ||
9420 | if test -z "$haveit"; then | ||
9421 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | ||
9422 | fi | ||
9423 | if test "$hardcode_minus_L" != no; then | ||
9424 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
9425 | else | ||
9426 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | ||
9427 | fi | ||
9428 | fi | ||
9429 | fi | ||
9430 | fi | ||
9431 | else | ||
9432 | if test "X$found_a" != "X"; then | ||
9433 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | ||
9434 | else | ||
9435 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | ||
9436 | fi | ||
9437 | fi | ||
9438 | additional_includedir= | ||
9439 | case "$found_dir" in | ||
9440 | */lib | */lib/) | ||
9441 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | ||
9442 | additional_includedir="$basedir/include" | ||
9443 | ;; | ||
9444 | esac | ||
9445 | if test "X$additional_includedir" != "X"; then | ||
9446 | if test "X$additional_includedir" != "X/usr/include"; then | ||
9447 | haveit= | ||
9448 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
9449 | if test -n "$GCC"; then | ||
9450 | case $host_os in | ||
9451 | linux*) haveit=yes;; | ||
9452 | esac | ||
9453 | fi | ||
9454 | fi | ||
9455 | if test -z "$haveit"; then | ||
9456 | for x in $CPPFLAGS $INCINTL; do | ||
9457 | |||
9458 | acl_save_prefix="$prefix" | ||
9459 | prefix="$acl_final_prefix" | ||
9460 | acl_save_exec_prefix="$exec_prefix" | ||
9461 | exec_prefix="$acl_final_exec_prefix" | ||
9462 | eval x=\"$x\" | ||
9463 | exec_prefix="$acl_save_exec_prefix" | ||
9464 | prefix="$acl_save_prefix" | ||
9465 | |||
9466 | if test "X$x" = "X-I$additional_includedir"; then | ||
9467 | haveit=yes | ||
9468 | break | ||
9469 | fi | ||
9470 | done | ||
9471 | if test -z "$haveit"; then | ||
9472 | if test -d "$additional_includedir"; then | ||
9473 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | ||
9474 | fi | ||
9475 | fi | ||
9476 | fi | ||
9477 | fi | ||
9478 | fi | ||
9479 | if test -n "$found_la"; then | ||
9480 | save_libdir="$libdir" | ||
9481 | case "$found_la" in | ||
9482 | */* | *\\*) . "$found_la" ;; | ||
9483 | *) . "./$found_la" ;; | ||
9484 | esac | ||
9485 | libdir="$save_libdir" | ||
9486 | for dep in $dependency_libs; do | ||
9487 | case "$dep" in | ||
9488 | -L*) | ||
9489 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
9490 | if test "X$additional_libdir" != "X/usr/lib"; then | ||
9491 | haveit= | ||
9492 | if test "X$additional_libdir" = "X/usr/local/lib"; then | ||
9493 | if test -n "$GCC"; then | ||
9494 | case $host_os in | ||
9495 | linux*) haveit=yes;; | ||
9496 | esac | ||
9497 | fi | ||
9498 | fi | ||
9499 | if test -z "$haveit"; then | ||
9500 | haveit= | ||
9501 | for x in $LDFLAGS $LIBINTL; do | ||
9502 | |||
9503 | acl_save_prefix="$prefix" | ||
9504 | prefix="$acl_final_prefix" | ||
9505 | acl_save_exec_prefix="$exec_prefix" | ||
9506 | exec_prefix="$acl_final_exec_prefix" | ||
9507 | eval x=\"$x\" | ||
9508 | exec_prefix="$acl_save_exec_prefix" | ||
9509 | prefix="$acl_save_prefix" | ||
9510 | |||
9511 | if test "X$x" = "X-L$additional_libdir"; then | ||
9512 | haveit=yes | ||
9513 | break | ||
9514 | fi | ||
9515 | done | ||
9516 | if test -z "$haveit"; then | ||
9517 | if test -d "$additional_libdir"; then | ||
9518 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | ||
9519 | fi | ||
9520 | fi | ||
9521 | haveit= | ||
9522 | for x in $LDFLAGS $LTLIBINTL; do | ||
9523 | |||
9524 | acl_save_prefix="$prefix" | ||
9525 | prefix="$acl_final_prefix" | ||
9526 | acl_save_exec_prefix="$exec_prefix" | ||
9527 | exec_prefix="$acl_final_exec_prefix" | ||
9528 | eval x=\"$x\" | ||
9529 | exec_prefix="$acl_save_exec_prefix" | ||
9530 | prefix="$acl_save_prefix" | ||
9531 | |||
9532 | if test "X$x" = "X-L$additional_libdir"; then | ||
9533 | haveit=yes | ||
9534 | break | ||
9535 | fi | ||
9536 | done | ||
9537 | if test -z "$haveit"; then | ||
9538 | if test -d "$additional_libdir"; then | ||
9539 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | ||
9540 | fi | ||
9541 | fi | ||
9542 | fi | ||
9543 | fi | ||
9544 | ;; | ||
9545 | -R*) | ||
9546 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
9547 | if test "$enable_rpath" != no; then | ||
9548 | haveit= | ||
9549 | for x in $rpathdirs; do | ||
9550 | if test "X$x" = "X$dir"; then | ||
9551 | haveit=yes | ||
9552 | break | ||
9553 | fi | ||
9554 | done | ||
9555 | if test -z "$haveit"; then | ||
9556 | rpathdirs="$rpathdirs $dir" | ||
9557 | fi | ||
9558 | haveit= | ||
9559 | for x in $ltrpathdirs; do | ||
9560 | if test "X$x" = "X$dir"; then | ||
9561 | haveit=yes | ||
9562 | break | ||
9563 | fi | ||
9564 | done | ||
9565 | if test -z "$haveit"; then | ||
9566 | ltrpathdirs="$ltrpathdirs $dir" | ||
9567 | fi | ||
9568 | fi | ||
9569 | ;; | ||
9570 | -l*) | ||
9571 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
9572 | ;; | ||
9573 | *.la) | ||
9574 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
9575 | ;; | ||
9576 | *) | ||
9577 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | ||
9578 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | ||
9579 | ;; | ||
9580 | esac | ||
9581 | done | ||
9582 | fi | ||
9583 | else | ||
9584 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | ||
9585 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | ||
9586 | fi | ||
9587 | fi | ||
9588 | fi | ||
9589 | done | ||
9590 | done | ||
9591 | if test "X$rpathdirs" != "X"; then | ||
9592 | if test -n "$hardcode_libdir_separator"; then | ||
9593 | alldirs= | ||
9594 | for found_dir in $rpathdirs; do | ||
9595 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | ||
9596 | done | ||
9597 | acl_save_libdir="$libdir" | ||
9598 | libdir="$alldirs" | ||
9599 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
9600 | libdir="$acl_save_libdir" | ||
9601 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | ||
9602 | else | ||
9603 | for found_dir in $rpathdirs; do | ||
9604 | acl_save_libdir="$libdir" | ||
9605 | libdir="$found_dir" | ||
9606 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
9607 | libdir="$acl_save_libdir" | ||
9608 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | ||
9609 | done | ||
9610 | fi | ||
9611 | fi | ||
9612 | if test "X$ltrpathdirs" != "X"; then | ||
9613 | for found_dir in $ltrpathdirs; do | ||
9614 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | ||
9615 | done | ||
9616 | fi | ||
9617 | |||
9618 | echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 | ||
9619 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 | ||
9620 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | ||
9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9622 | else | ||
9623 | gt_save_CPPFLAGS="$CPPFLAGS" | ||
9624 | CPPFLAGS="$CPPFLAGS $INCINTL" | ||
9625 | gt_save_LIBS="$LIBS" | ||
9626 | LIBS="$LIBS $LIBINTL" | ||
9627 | cat >conftest.$ac_ext <<_ACEOF | ||
9628 | /* confdefs.h. */ | ||
9629 | _ACEOF | ||
9630 | cat confdefs.h >>conftest.$ac_ext | ||
9631 | cat >>conftest.$ac_ext <<_ACEOF | ||
9632 | /* end confdefs.h. */ | ||
9633 | #include <libintl.h> | ||
9634 | extern int _nl_msg_cat_cntr; | ||
9635 | extern | ||
9636 | #ifdef __cplusplus | ||
9637 | "C" | ||
9638 | #endif | ||
9639 | const char *_nl_expand_alias (); | ||
9640 | int | ||
9641 | main () | ||
9642 | { | ||
9643 | bindtextdomain ("", ""); | ||
9644 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | ||
9645 | ; | ||
9646 | return 0; | ||
9647 | } | ||
9648 | _ACEOF | ||
9649 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9651 | (eval $ac_link) 2>conftest.er1 | ||
9652 | ac_status=$? | ||
9653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9654 | rm -f conftest.er1 | ||
9655 | cat conftest.err >&5 | ||
9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9657 | (exit $ac_status); } && | ||
9658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9660 | (eval $ac_try) 2>&5 | ||
9661 | ac_status=$? | ||
9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9663 | (exit $ac_status); }; } && | ||
9664 | { ac_try='test -s conftest$ac_exeext' | ||
9665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9666 | (eval $ac_try) 2>&5 | ||
9667 | ac_status=$? | ||
9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9669 | (exit $ac_status); }; }; then | ||
9670 | gt_cv_func_gnugettext1_libintl=yes | ||
9671 | else | ||
9672 | echo "$as_me: failed program was:" >&5 | ||
9673 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9674 | |||
9675 | gt_cv_func_gnugettext1_libintl=no | ||
9676 | fi | ||
9677 | rm -f conftest.err conftest.$ac_objext \ | ||
9678 | conftest$ac_exeext conftest.$ac_ext | ||
9679 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then | ||
9680 | LIBS="$LIBS $LIBICONV" | ||
9681 | cat >conftest.$ac_ext <<_ACEOF | ||
9682 | /* confdefs.h. */ | ||
9683 | _ACEOF | ||
9684 | cat confdefs.h >>conftest.$ac_ext | ||
9685 | cat >>conftest.$ac_ext <<_ACEOF | ||
9686 | /* end confdefs.h. */ | ||
9687 | #include <libintl.h> | ||
9688 | extern int _nl_msg_cat_cntr; | ||
9689 | extern | ||
9690 | #ifdef __cplusplus | ||
9691 | "C" | ||
9692 | #endif | ||
9693 | const char *_nl_expand_alias (); | ||
9694 | int | ||
9695 | main () | ||
9696 | { | ||
9697 | bindtextdomain ("", ""); | ||
9698 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | ||
9699 | ; | ||
9700 | return 0; | ||
9701 | } | ||
9702 | _ACEOF | ||
9703 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9705 | (eval $ac_link) 2>conftest.er1 | ||
9706 | ac_status=$? | ||
9707 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9708 | rm -f conftest.er1 | ||
9709 | cat conftest.err >&5 | ||
9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9711 | (exit $ac_status); } && | ||
9712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9714 | (eval $ac_try) 2>&5 | ||
9715 | ac_status=$? | ||
9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9717 | (exit $ac_status); }; } && | ||
9718 | { ac_try='test -s conftest$ac_exeext' | ||
9719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9720 | (eval $ac_try) 2>&5 | ||
9721 | ac_status=$? | ||
9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9723 | (exit $ac_status); }; }; then | ||
9724 | LIBINTL="$LIBINTL $LIBICONV" | ||
9725 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | ||
9726 | gt_cv_func_gnugettext1_libintl=yes | ||
9727 | |||
9728 | else | ||
9729 | echo "$as_me: failed program was:" >&5 | ||
9730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9731 | |||
9732 | fi | ||
9733 | rm -f conftest.err conftest.$ac_objext \ | ||
9734 | conftest$ac_exeext conftest.$ac_ext | ||
9735 | fi | ||
9736 | CPPFLAGS="$gt_save_CPPFLAGS" | ||
9737 | LIBS="$gt_save_LIBS" | ||
9738 | fi | ||
9739 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 | ||
9740 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 | ||
9741 | fi | ||
9742 | |||
9743 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ | ||
9744 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | ||
9745 | && test "$PACKAGE" != gettext-runtime \ | ||
9746 | && test "$PACKAGE" != gettext-tools; }; then | ||
9747 | gt_use_preinstalled_gnugettext=yes | ||
9748 | else | ||
9749 | LIBINTL= | ||
9750 | LTLIBINTL= | ||
9751 | INCINTL= | ||
9752 | fi | ||
9753 | |||
9754 | |||
9755 | |||
9756 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
9757 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
9758 | |||
9759 | cat >>confdefs.h <<\_ACEOF | ||
9760 | #define ENABLE_NLS 1 | ||
9761 | _ACEOF | ||
9762 | |||
9763 | else | ||
9764 | USE_NLS=no | ||
9765 | fi | ||
9766 | fi | ||
9767 | |||
9768 | echo "$as_me:$LINENO: checking whether to use NLS" >&5 | ||
9769 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 | ||
9770 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | ||
9771 | echo "${ECHO_T}$USE_NLS" >&6 | ||
9772 | if test "$USE_NLS" = "yes"; then | ||
9773 | echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 | ||
9774 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 | ||
9775 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | ||
9776 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | ||
9777 | gt_source="external libintl" | ||
9778 | else | ||
9779 | gt_source="libc" | ||
9780 | fi | ||
9781 | else | ||
9782 | gt_source="included intl directory" | ||
9783 | fi | ||
9784 | echo "$as_me:$LINENO: result: $gt_source" >&5 | ||
9785 | echo "${ECHO_T}$gt_source" >&6 | ||
9786 | fi | ||
9787 | |||
9788 | if test "$USE_NLS" = "yes"; then | ||
9789 | |||
9790 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | ||
9791 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | ||
9792 | echo "$as_me:$LINENO: checking how to link with libintl" >&5 | ||
9793 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 | ||
9794 | echo "$as_me:$LINENO: result: $LIBINTL" >&5 | ||
9795 | echo "${ECHO_T}$LIBINTL" >&6 | ||
9796 | |||
9797 | for element in $INCINTL; do | ||
9798 | haveit= | ||
9799 | for x in $CPPFLAGS; do | ||
9800 | |||
9801 | acl_save_prefix="$prefix" | ||
9802 | prefix="$acl_final_prefix" | ||
9803 | acl_save_exec_prefix="$exec_prefix" | ||
9804 | exec_prefix="$acl_final_exec_prefix" | ||
9805 | eval x=\"$x\" | ||
9806 | exec_prefix="$acl_save_exec_prefix" | ||
9807 | prefix="$acl_save_prefix" | ||
9808 | |||
9809 | if test "X$x" = "X$element"; then | ||
9810 | haveit=yes | ||
9811 | break | ||
9812 | fi | ||
9813 | done | ||
9814 | if test -z "$haveit"; then | ||
9815 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | ||
9816 | fi | ||
9817 | done | ||
9818 | |||
9819 | fi | ||
9820 | |||
9821 | |||
9822 | cat >>confdefs.h <<\_ACEOF | ||
9823 | #define HAVE_GETTEXT 1 | ||
9824 | _ACEOF | ||
9825 | |||
9826 | |||
9827 | cat >>confdefs.h <<\_ACEOF | ||
9828 | #define HAVE_DCGETTEXT 1 | ||
9829 | _ACEOF | ||
9830 | |||
9831 | fi | ||
9832 | |||
9833 | POSUB=po | ||
9834 | fi | ||
9835 | |||
9836 | |||
9837 | |||
9838 | INTLLIBS="$LIBINTL" | ||
9839 | |||
9840 | |||
9841 | |||
9842 | |||
9843 | |||
9844 | |||
9845 | |||
9846 | # Checks for header files. | ||
9847 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
9848 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
9849 | if test "${ac_cv_header_stdc+set}" = set; then | ||
9850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9851 | else | ||
9852 | cat >conftest.$ac_ext <<_ACEOF | ||
9853 | /* confdefs.h. */ | ||
9854 | _ACEOF | ||
9855 | cat confdefs.h >>conftest.$ac_ext | ||
9856 | cat >>conftest.$ac_ext <<_ACEOF | ||
9857 | /* end confdefs.h. */ | ||
9858 | #include <stdlib.h> | ||
9859 | #include <stdarg.h> | ||
9860 | #include <string.h> | ||
9861 | #include <float.h> | ||
9862 | |||
9863 | int | ||
9864 | main () | ||
9865 | { | ||
9866 | |||
9867 | ; | ||
9868 | return 0; | ||
9869 | } | ||
9870 | _ACEOF | ||
9871 | rm -f conftest.$ac_objext | ||
9872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9873 | (eval $ac_compile) 2>conftest.er1 | ||
9874 | ac_status=$? | ||
9875 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9876 | rm -f conftest.er1 | ||
9877 | cat conftest.err >&5 | ||
9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9879 | (exit $ac_status); } && | ||
9880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9882 | (eval $ac_try) 2>&5 | ||
9883 | ac_status=$? | ||
9884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9885 | (exit $ac_status); }; } && | ||
9886 | { ac_try='test -s conftest.$ac_objext' | ||
9887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9888 | (eval $ac_try) 2>&5 | ||
9889 | ac_status=$? | ||
9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9891 | (exit $ac_status); }; }; then | ||
9892 | ac_cv_header_stdc=yes | ||
9893 | else | ||
9894 | echo "$as_me: failed program was:" >&5 | ||
9895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9896 | |||
9897 | ac_cv_header_stdc=no | ||
9898 | fi | ||
9899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9900 | |||
9901 | if test $ac_cv_header_stdc = yes; then | ||
9902 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
9903 | cat >conftest.$ac_ext <<_ACEOF | ||
9904 | /* confdefs.h. */ | ||
9905 | _ACEOF | ||
9906 | cat confdefs.h >>conftest.$ac_ext | ||
9907 | cat >>conftest.$ac_ext <<_ACEOF | ||
9908 | /* end confdefs.h. */ | ||
9909 | #include <string.h> | ||
9910 | |||
9911 | _ACEOF | ||
9912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9913 | $EGREP "memchr" >/dev/null 2>&1; then | ||
9914 | : | ||
9915 | else | ||
9916 | ac_cv_header_stdc=no | ||
9917 | fi | ||
9918 | rm -f conftest* | ||
9919 | |||
9920 | fi | ||
9921 | |||
9922 | if test $ac_cv_header_stdc = yes; then | ||
9923 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
9924 | cat >conftest.$ac_ext <<_ACEOF | ||
9925 | /* confdefs.h. */ | ||
9926 | _ACEOF | ||
9927 | cat confdefs.h >>conftest.$ac_ext | ||
9928 | cat >>conftest.$ac_ext <<_ACEOF | ||
9929 | /* end confdefs.h. */ | ||
9930 | #include <stdlib.h> | ||
9931 | |||
9932 | _ACEOF | ||
9933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9934 | $EGREP "free" >/dev/null 2>&1; then | ||
9935 | : | ||
9936 | else | ||
9937 | ac_cv_header_stdc=no | ||
9938 | fi | ||
9939 | rm -f conftest* | ||
9940 | |||
9941 | fi | ||
9942 | |||
9943 | if test $ac_cv_header_stdc = yes; then | ||
9944 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
9945 | if test "$cross_compiling" = yes; then | ||
9946 | : | ||
9947 | else | ||
9948 | cat >conftest.$ac_ext <<_ACEOF | ||
9949 | /* confdefs.h. */ | ||
9950 | _ACEOF | ||
9951 | cat confdefs.h >>conftest.$ac_ext | ||
9952 | cat >>conftest.$ac_ext <<_ACEOF | ||
9953 | /* end confdefs.h. */ | ||
9954 | #include <ctype.h> | ||
9955 | #if ((' ' & 0x0FF) == 0x020) | ||
9956 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
9957 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
9958 | #else | ||
9959 | # define ISLOWER(c) \ | ||
9960 | (('a' <= (c) && (c) <= 'i') \ | ||
9961 | || ('j' <= (c) && (c) <= 'r') \ | ||
9962 | || ('s' <= (c) && (c) <= 'z')) | ||
9963 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
9964 | #endif | ||
9965 | |||
9966 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
9967 | int | ||
9968 | main () | ||
9969 | { | ||
9970 | int i; | ||
9971 | for (i = 0; i < 256; i++) | ||
9972 | if (XOR (islower (i), ISLOWER (i)) | ||
9973 | || toupper (i) != TOUPPER (i)) | ||
9974 | exit(2); | ||
9975 | exit (0); | ||
9976 | } | ||
9977 | _ACEOF | ||
9978 | rm -f conftest$ac_exeext | ||
9979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9980 | (eval $ac_link) 2>&5 | ||
9981 | ac_status=$? | ||
9982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9985 | (eval $ac_try) 2>&5 | ||
9986 | ac_status=$? | ||
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9988 | (exit $ac_status); }; }; then | ||
9989 | : | ||
9990 | else | ||
9991 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9992 | echo "$as_me: failed program was:" >&5 | ||
9993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9994 | |||
9995 | ( exit $ac_status ) | ||
9996 | ac_cv_header_stdc=no | ||
9997 | fi | ||
9998 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9999 | fi | ||
10000 | fi | ||
10001 | fi | ||
10002 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
10003 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
10004 | if test $ac_cv_header_stdc = yes; then | ||
10005 | |||
10006 | cat >>confdefs.h <<\_ACEOF | ||
10007 | #define STDC_HEADERS 1 | ||
10008 | _ACEOF | ||
10009 | |||
10010 | fi | ||
10011 | |||
10012 | |||
10013 | for ac_header in stdlib.h | ||
10014 | do | ||
10015 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10017 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10018 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10021 | fi | ||
10022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10024 | else | ||
10025 | # Is the header compilable? | ||
10026 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10027 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
10028 | cat >conftest.$ac_ext <<_ACEOF | ||
10029 | /* confdefs.h. */ | ||
10030 | _ACEOF | ||
10031 | cat confdefs.h >>conftest.$ac_ext | ||
10032 | cat >>conftest.$ac_ext <<_ACEOF | ||
10033 | /* end confdefs.h. */ | ||
10034 | $ac_includes_default | ||
10035 | #include <$ac_header> | ||
10036 | _ACEOF | ||
10037 | rm -f conftest.$ac_objext | ||
10038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10039 | (eval $ac_compile) 2>conftest.er1 | ||
10040 | ac_status=$? | ||
10041 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10042 | rm -f conftest.er1 | ||
10043 | cat conftest.err >&5 | ||
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10045 | (exit $ac_status); } && | ||
10046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10048 | (eval $ac_try) 2>&5 | ||
10049 | ac_status=$? | ||
10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10051 | (exit $ac_status); }; } && | ||
10052 | { ac_try='test -s conftest.$ac_objext' | ||
10053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10054 | (eval $ac_try) 2>&5 | ||
10055 | ac_status=$? | ||
10056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10057 | (exit $ac_status); }; }; then | ||
10058 | ac_header_compiler=yes | ||
10059 | else | ||
10060 | echo "$as_me: failed program was:" >&5 | ||
10061 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10062 | |||
10063 | ac_header_compiler=no | ||
10064 | fi | ||
10065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10066 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10067 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
10068 | |||
10069 | # Is the header present? | ||
10070 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10071 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
10072 | cat >conftest.$ac_ext <<_ACEOF | ||
10073 | /* confdefs.h. */ | ||
10074 | _ACEOF | ||
10075 | cat confdefs.h >>conftest.$ac_ext | ||
10076 | cat >>conftest.$ac_ext <<_ACEOF | ||
10077 | /* end confdefs.h. */ | ||
10078 | #include <$ac_header> | ||
10079 | _ACEOF | ||
10080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
10081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
10082 | ac_status=$? | ||
10083 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10084 | rm -f conftest.er1 | ||
10085 | cat conftest.err >&5 | ||
10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10087 | (exit $ac_status); } >/dev/null; then | ||
10088 | if test -s conftest.err; then | ||
10089 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
10090 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
10091 | else | ||
10092 | ac_cpp_err= | ||
10093 | fi | ||
10094 | else | ||
10095 | ac_cpp_err=yes | ||
10096 | fi | ||
10097 | if test -z "$ac_cpp_err"; then | ||
10098 | ac_header_preproc=yes | ||
10099 | else | ||
10100 | echo "$as_me: failed program was:" >&5 | ||
10101 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10102 | |||
10103 | ac_header_preproc=no | ||
10104 | fi | ||
10105 | rm -f conftest.err conftest.$ac_ext | ||
10106 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10107 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
10108 | |||
10109 | # So? What about this header? | ||
10110 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10111 | yes:no: ) | ||
10112 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10113 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10115 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10116 | ac_header_preproc=yes | ||
10117 | ;; | ||
10118 | no:yes:* ) | ||
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10120 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10121 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10122 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10123 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10124 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10125 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10126 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10127 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10128 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10129 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10130 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10131 | ( | ||
10132 | cat <<\_ASBOX | ||
10133 | ## ---------------------------------- ## | ||
10134 | ## Report this to bug-gnupg@gnupg.org ## | ||
10135 | ## ---------------------------------- ## | ||
10136 | _ASBOX | ||
10137 | ) | | ||
10138 | sed "s/^/$as_me: WARNING: /" >&2 | ||
10139 | ;; | ||
10140 | esac | ||
10141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10145 | else | ||
10146 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10147 | fi | ||
10148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10149 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10150 | |||
10151 | fi | ||
10152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10153 | cat >>confdefs.h <<_ACEOF | ||
10154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10155 | _ACEOF | ||
10156 | |||
10157 | fi | ||
10158 | |||
10159 | done | ||
10160 | |||
10161 | echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 | ||
10162 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 | ||
10163 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | ||
10164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10165 | else | ||
10166 | cat >conftest.$ac_ext <<_ACEOF | ||
10167 | /* confdefs.h. */ | ||
10168 | _ACEOF | ||
10169 | cat confdefs.h >>conftest.$ac_ext | ||
10170 | cat >>conftest.$ac_ext <<_ACEOF | ||
10171 | /* end confdefs.h. */ | ||
10172 | $ac_includes_default | ||
10173 | int | ||
10174 | main () | ||
10175 | { | ||
10176 | #ifndef strerror_r | ||
10177 | char *p = (char *) strerror_r; | ||
10178 | #endif | ||
10179 | |||
10180 | ; | ||
10181 | return 0; | ||
10182 | } | ||
10183 | _ACEOF | ||
10184 | rm -f conftest.$ac_objext | ||
10185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10186 | (eval $ac_compile) 2>conftest.er1 | ||
10187 | ac_status=$? | ||
10188 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10189 | rm -f conftest.er1 | ||
10190 | cat conftest.err >&5 | ||
10191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10192 | (exit $ac_status); } && | ||
10193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10195 | (eval $ac_try) 2>&5 | ||
10196 | ac_status=$? | ||
10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10198 | (exit $ac_status); }; } && | ||
10199 | { ac_try='test -s conftest.$ac_objext' | ||
10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10201 | (eval $ac_try) 2>&5 | ||
10202 | ac_status=$? | ||
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10204 | (exit $ac_status); }; }; then | ||
10205 | ac_cv_have_decl_strerror_r=yes | ||
10206 | else | ||
10207 | echo "$as_me: failed program was:" >&5 | ||
10208 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10209 | |||
10210 | ac_cv_have_decl_strerror_r=no | ||
10211 | fi | ||
10212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10213 | fi | ||
10214 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 | ||
10215 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 | ||
10216 | if test $ac_cv_have_decl_strerror_r = yes; then | ||
10217 | |||
10218 | cat >>confdefs.h <<_ACEOF | ||
10219 | #define HAVE_DECL_STRERROR_R 1 | ||
10220 | _ACEOF | ||
10221 | |||
10222 | |||
10223 | else | ||
10224 | cat >>confdefs.h <<_ACEOF | ||
10225 | #define HAVE_DECL_STRERROR_R 0 | ||
10226 | _ACEOF | ||
10227 | |||
10228 | |||
10229 | fi | ||
10230 | |||
10231 | |||
10232 | |||
10233 | for ac_func in strerror_r | ||
10234 | do | ||
10235 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10236 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10237 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10238 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10240 | else | ||
10241 | cat >conftest.$ac_ext <<_ACEOF | ||
10242 | /* confdefs.h. */ | ||
10243 | _ACEOF | ||
10244 | cat confdefs.h >>conftest.$ac_ext | ||
10245 | cat >>conftest.$ac_ext <<_ACEOF | ||
10246 | /* end confdefs.h. */ | ||
10247 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10249 | #define $ac_func innocuous_$ac_func | ||
10250 | |||
10251 | /* System header to define __stub macros and hopefully few prototypes, | ||
10252 | which can conflict with char $ac_func (); below. | ||
10253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10254 | <limits.h> exists even on freestanding compilers. */ | ||
10255 | |||
10256 | #ifdef __STDC__ | ||
10257 | # include <limits.h> | ||
10258 | #else | ||
10259 | # include <assert.h> | ||
10260 | #endif | ||
10261 | |||
10262 | #undef $ac_func | ||
10263 | |||
10264 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10265 | #ifdef __cplusplus | ||
10266 | extern "C" | ||
10267 | { | ||
10268 | #endif | ||
10269 | /* We use char because int might match the return type of a gcc2 | ||
10270 | builtin and then its argument prototype would still apply. */ | ||
10271 | char $ac_func (); | ||
10272 | /* The GNU C library defines this for functions which it implements | ||
10273 | to always fail with ENOSYS. Some functions are actually named | ||
10274 | something starting with __ and the normal name is an alias. */ | ||
10275 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10276 | choke me | ||
10277 | #else | ||
10278 | char (*f) () = $ac_func; | ||
10279 | #endif | ||
10280 | #ifdef __cplusplus | ||
10281 | } | ||
10282 | #endif | ||
10283 | |||
10284 | int | ||
10285 | main () | ||
10286 | { | ||
10287 | return f != $ac_func; | ||
10288 | ; | ||
10289 | return 0; | ||
10290 | } | ||
10291 | _ACEOF | ||
10292 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10294 | (eval $ac_link) 2>conftest.er1 | ||
10295 | ac_status=$? | ||
10296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10297 | rm -f conftest.er1 | ||
10298 | cat conftest.err >&5 | ||
10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10300 | (exit $ac_status); } && | ||
10301 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10303 | (eval $ac_try) 2>&5 | ||
10304 | ac_status=$? | ||
10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10306 | (exit $ac_status); }; } && | ||
10307 | { ac_try='test -s conftest$ac_exeext' | ||
10308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10309 | (eval $ac_try) 2>&5 | ||
10310 | ac_status=$? | ||
10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10312 | (exit $ac_status); }; }; then | ||
10313 | eval "$as_ac_var=yes" | ||
10314 | else | ||
10315 | echo "$as_me: failed program was:" >&5 | ||
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10317 | |||
10318 | eval "$as_ac_var=no" | ||
10319 | fi | ||
10320 | rm -f conftest.err conftest.$ac_objext \ | ||
10321 | conftest$ac_exeext conftest.$ac_ext | ||
10322 | fi | ||
10323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10326 | cat >>confdefs.h <<_ACEOF | ||
10327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10328 | _ACEOF | ||
10329 | |||
10330 | fi | ||
10331 | done | ||
10332 | |||
10333 | echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 | ||
10334 | echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6 | ||
10335 | if test "${ac_cv_func_strerror_r_char_p+set}" = set; then | ||
10336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10337 | else | ||
10338 | |||
10339 | ac_cv_func_strerror_r_char_p=no | ||
10340 | if test $ac_cv_have_decl_strerror_r = yes; then | ||
10341 | cat >conftest.$ac_ext <<_ACEOF | ||
10342 | /* confdefs.h. */ | ||
10343 | _ACEOF | ||
10344 | cat confdefs.h >>conftest.$ac_ext | ||
10345 | cat >>conftest.$ac_ext <<_ACEOF | ||
10346 | /* end confdefs.h. */ | ||
10347 | $ac_includes_default | ||
10348 | int | ||
10349 | main () | ||
10350 | { | ||
10351 | |||
10352 | char buf[100]; | ||
10353 | char x = *strerror_r (0, buf, sizeof buf); | ||
10354 | char *p = strerror_r (0, buf, sizeof buf); | ||
10355 | |||
10356 | ; | ||
10357 | return 0; | ||
10358 | } | ||
10359 | _ACEOF | ||
10360 | rm -f conftest.$ac_objext | ||
10361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10362 | (eval $ac_compile) 2>conftest.er1 | ||
10363 | ac_status=$? | ||
10364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10365 | rm -f conftest.er1 | ||
10366 | cat conftest.err >&5 | ||
10367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10368 | (exit $ac_status); } && | ||
10369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10371 | (eval $ac_try) 2>&5 | ||
10372 | ac_status=$? | ||
10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10374 | (exit $ac_status); }; } && | ||
10375 | { ac_try='test -s conftest.$ac_objext' | ||
10376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10377 | (eval $ac_try) 2>&5 | ||
10378 | ac_status=$? | ||
10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10380 | (exit $ac_status); }; }; then | ||
10381 | ac_cv_func_strerror_r_char_p=yes | ||
10382 | else | ||
10383 | echo "$as_me: failed program was:" >&5 | ||
10384 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10385 | |||
10386 | fi | ||
10387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10388 | else | ||
10389 | # strerror_r is not declared. Choose between | ||
10390 | # systems that have relatively inaccessible declarations for the | ||
10391 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | ||
10392 | # former has a strerror_r that returns char*, while the latter | ||
10393 | # has a strerror_r that returns `int'. | ||
10394 | # This test should segfault on the DEC system. | ||
10395 | if test "$cross_compiling" = yes; then | ||
10396 | : | ||
10397 | else | ||
10398 | cat >conftest.$ac_ext <<_ACEOF | ||
10399 | /* confdefs.h. */ | ||
10400 | _ACEOF | ||
10401 | cat confdefs.h >>conftest.$ac_ext | ||
10402 | cat >>conftest.$ac_ext <<_ACEOF | ||
10403 | /* end confdefs.h. */ | ||
10404 | $ac_includes_default | ||
10405 | extern char *strerror_r (); | ||
10406 | int | ||
10407 | main () | ||
10408 | { | ||
10409 | char buf[100]; | ||
10410 | char x = *strerror_r (0, buf, sizeof buf); | ||
10411 | exit (!isalpha (x)); | ||
10412 | ; | ||
10413 | return 0; | ||
10414 | } | ||
10415 | _ACEOF | ||
10416 | rm -f conftest$ac_exeext | ||
10417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10418 | (eval $ac_link) 2>&5 | ||
10419 | ac_status=$? | ||
10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10423 | (eval $ac_try) 2>&5 | ||
10424 | ac_status=$? | ||
10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10426 | (exit $ac_status); }; }; then | ||
10427 | ac_cv_func_strerror_r_char_p=yes | ||
10428 | else | ||
10429 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10430 | echo "$as_me: failed program was:" >&5 | ||
10431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10432 | |||
10433 | fi | ||
10434 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10435 | fi | ||
10436 | fi | ||
10437 | |||
10438 | fi | ||
10439 | echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 | ||
10440 | echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6 | ||
10441 | if test $ac_cv_func_strerror_r_char_p = yes; then | ||
10442 | |||
10443 | cat >>confdefs.h <<\_ACEOF | ||
10444 | #define STRERROR_R_CHAR_P 1 | ||
10445 | _ACEOF | ||
10446 | |||
10447 | fi | ||
10448 | |||
10449 | echo "$as_me:$LINENO: checking for strerror_r" >&5 | ||
10450 | echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6 | ||
10451 | if test "${ac_cv_func_strerror_r+set}" = set; then | ||
10452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10453 | else | ||
10454 | cat >conftest.$ac_ext <<_ACEOF | ||
10455 | /* confdefs.h. */ | ||
10456 | _ACEOF | ||
10457 | cat confdefs.h >>conftest.$ac_ext | ||
10458 | cat >>conftest.$ac_ext <<_ACEOF | ||
10459 | /* end confdefs.h. */ | ||
10460 | /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r. | ||
10461 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10462 | #define strerror_r innocuous_strerror_r | ||
10463 | |||
10464 | /* System header to define __stub macros and hopefully few prototypes, | ||
10465 | which can conflict with char strerror_r (); below. | ||
10466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10467 | <limits.h> exists even on freestanding compilers. */ | ||
10468 | |||
10469 | #ifdef __STDC__ | ||
10470 | # include <limits.h> | ||
10471 | #else | ||
10472 | # include <assert.h> | ||
10473 | #endif | ||
10474 | |||
10475 | #undef strerror_r | ||
10476 | |||
10477 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10478 | #ifdef __cplusplus | ||
10479 | extern "C" | ||
10480 | { | ||
10481 | #endif | ||
10482 | /* We use char because int might match the return type of a gcc2 | ||
10483 | builtin and then its argument prototype would still apply. */ | ||
10484 | char strerror_r (); | ||
10485 | /* The GNU C library defines this for functions which it implements | ||
10486 | to always fail with ENOSYS. Some functions are actually named | ||
10487 | something starting with __ and the normal name is an alias. */ | ||
10488 | #if defined (__stub_strerror_r) || defined (__stub___strerror_r) | ||
10489 | choke me | ||
10490 | #else | ||
10491 | char (*f) () = strerror_r; | ||
10492 | #endif | ||
10493 | #ifdef __cplusplus | ||
10494 | } | ||
10495 | #endif | ||
10496 | |||
10497 | int | ||
10498 | main () | ||
10499 | { | ||
10500 | return f != strerror_r; | ||
10501 | ; | ||
10502 | return 0; | ||
10503 | } | ||
10504 | _ACEOF | ||
10505 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10507 | (eval $ac_link) 2>conftest.er1 | ||
10508 | ac_status=$? | ||
10509 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10510 | rm -f conftest.er1 | ||
10511 | cat conftest.err >&5 | ||
10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10513 | (exit $ac_status); } && | ||
10514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10516 | (eval $ac_try) 2>&5 | ||
10517 | ac_status=$? | ||
10518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10519 | (exit $ac_status); }; } && | ||
10520 | { ac_try='test -s conftest$ac_exeext' | ||
10521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10522 | (eval $ac_try) 2>&5 | ||
10523 | ac_status=$? | ||
10524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10525 | (exit $ac_status); }; }; then | ||
10526 | ac_cv_func_strerror_r=yes | ||
10527 | else | ||
10528 | echo "$as_me: failed program was:" >&5 | ||
10529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10530 | |||
10531 | ac_cv_func_strerror_r=no | ||
10532 | fi | ||
10533 | rm -f conftest.err conftest.$ac_objext \ | ||
10534 | conftest$ac_exeext conftest.$ac_ext | ||
10535 | fi | ||
10536 | echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5 | ||
10537 | echo "${ECHO_T}$ac_cv_func_strerror_r" >&6 | ||
10538 | if test $ac_cv_func_strerror_r = yes; then | ||
10539 | : | ||
10540 | else | ||
10541 | { echo "$as_me:$LINENO: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5 | ||
10542 | echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;} | ||
10543 | fi | ||
10544 | |||
10545 | |||
10546 | # Checks for typedefs, structures, and compiler characteristics. | ||
10547 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | ||
10548 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | ||
10549 | if test "${ac_cv_c_const+set}" = set; then | ||
10550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10551 | else | ||
10552 | cat >conftest.$ac_ext <<_ACEOF | ||
10553 | /* confdefs.h. */ | ||
10554 | _ACEOF | ||
10555 | cat confdefs.h >>conftest.$ac_ext | ||
10556 | cat >>conftest.$ac_ext <<_ACEOF | ||
10557 | /* end confdefs.h. */ | ||
10558 | |||
10559 | int | ||
10560 | main () | ||
10561 | { | ||
10562 | /* FIXME: Include the comments suggested by Paul. */ | ||
10563 | #ifndef __cplusplus | ||
10564 | /* Ultrix mips cc rejects this. */ | ||
10565 | typedef int charset[2]; | ||
10566 | const charset x; | ||
10567 | /* SunOS 4.1.1 cc rejects this. */ | ||
10568 | char const *const *ccp; | ||
10569 | char **p; | ||
10570 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
10571 | struct point {int x, y;}; | ||
10572 | static struct point const zero = {0,0}; | ||
10573 | /* AIX XL C 1.02.0.0 rejects this. | ||
10574 | It does not let you subtract one const X* pointer from another in | ||
10575 | an arm of an if-expression whose if-part is not a constant | ||
10576 | expression */ | ||
10577 | const char *g = "string"; | ||
10578 | ccp = &g + (g ? g-g : 0); | ||
10579 | /* HPUX 7.0 cc rejects these. */ | ||
10580 | ++ccp; | ||
10581 | p = (char**) ccp; | ||
10582 | ccp = (char const *const *) p; | ||
10583 | { /* SCO 3.2v4 cc rejects this. */ | ||
10584 | char *t; | ||
10585 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
10586 | |||
10587 | *t++ = 0; | ||
10588 | } | ||
10589 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
10590 | int x[] = {25, 17}; | ||
10591 | const int *foo = &x[0]; | ||
10592 | ++foo; | ||
10593 | } | ||
10594 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
10595 | typedef const int *iptr; | ||
10596 | iptr p = 0; | ||
10597 | ++p; | ||
10598 | } | ||
10599 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
10600 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
10601 | struct s { int j; const int *ap[3]; }; | ||
10602 | struct s *b; b->j = 5; | ||
10603 | } | ||
10604 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
10605 | const int foo = 10; | ||
10606 | } | ||
10607 | #endif | ||
10608 | |||
10609 | ; | ||
10610 | return 0; | ||
10611 | } | ||
10612 | _ACEOF | ||
10613 | rm -f conftest.$ac_objext | ||
10614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10615 | (eval $ac_compile) 2>conftest.er1 | ||
10616 | ac_status=$? | ||
10617 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10618 | rm -f conftest.er1 | ||
10619 | cat conftest.err >&5 | ||
10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10621 | (exit $ac_status); } && | ||
10622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10624 | (eval $ac_try) 2>&5 | ||
10625 | ac_status=$? | ||
10626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10627 | (exit $ac_status); }; } && | ||
10628 | { ac_try='test -s conftest.$ac_objext' | ||
10629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10630 | (eval $ac_try) 2>&5 | ||
10631 | ac_status=$? | ||
10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10633 | (exit $ac_status); }; }; then | ||
10634 | ac_cv_c_const=yes | ||
10635 | else | ||
10636 | echo "$as_me: failed program was:" >&5 | ||
10637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10638 | |||
10639 | ac_cv_c_const=no | ||
10640 | fi | ||
10641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10642 | fi | ||
10643 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | ||
10644 | echo "${ECHO_T}$ac_cv_c_const" >&6 | ||
10645 | if test $ac_cv_c_const = no; then | ||
10646 | |||
10647 | cat >>confdefs.h <<\_ACEOF | ||
10648 | #define const | ||
10649 | _ACEOF | ||
10650 | |||
10651 | fi | ||
10652 | |||
10653 | |||
10654 | # Substitution used for gpg-error-config | ||
10655 | GPG_ERROR_CONFIG_LIBS="-lgpg-error" | ||
10656 | GPG_ERROR_CONFIG_CFLAGS="" | ||
10657 | |||
10658 | |||
10659 | ac_config_files="$ac_config_files src/gpg-error-config" | ||
10660 | |||
10661 | |||
10662 | # Checks for library functions. | ||
10663 | ac_config_files="$ac_config_files Makefile" | ||
10664 | |||
10665 | ac_config_files="$ac_config_files po/Makefile.in m4/Makefile" | ||
10666 | |||
10667 | ac_config_files="$ac_config_files src/Makefile tests/Makefile" | ||
10668 | |||
10669 | cat >confcache <<\_ACEOF | ||
10670 | # This file is a shell script that caches the results of configure | ||
10671 | # tests run on this system so they can be shared between configure | ||
10672 | # scripts and configure runs, see configure's option --config-cache. | ||
10673 | # It is not useful on other systems. If it contains results you don't | ||
10674 | # want to keep, you may remove or edit it. | ||
10675 | # | ||
10676 | # config.status only pays attention to the cache file if you give it | ||
10677 | # the --recheck option to rerun configure. | ||
10678 | # | ||
10679 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
10680 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
10681 | # following values. | ||
10682 | |||
10683 | _ACEOF | ||
10684 | |||
10685 | # The following way of writing the cache mishandles newlines in values, | ||
10686 | # but we know of no workaround that is simple, portable, and efficient. | ||
10687 | # So, don't put newlines in cache variables' values. | ||
10688 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
10689 | # and sets the high bit in the cache file unless we assign to the vars. | ||
10690 | { | ||
10691 | (set) 2>&1 | | ||
10692 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
10693 | *ac_space=\ *) | ||
10694 | # `set' does not quote correctly, so add quotes (double-quote | ||
10695 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
10696 | sed -n \ | ||
10697 | "s/'/'\\\\''/g; | ||
10698 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
10699 | ;; | ||
10700 | *) | ||
10701 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
10702 | sed -n \ | ||
10703 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
10704 | ;; | ||
10705 | esac; | ||
10706 | } | | ||
10707 | sed ' | ||
10708 | t clear | ||
10709 | : clear | ||
10710 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
10711 | t end | ||
10712 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
10713 | : end' >>confcache | ||
10714 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
10715 | if test -w $cache_file; then | ||
10716 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
10717 | cat confcache >$cache_file | ||
10718 | else | ||
10719 | echo "not updating unwritable cache $cache_file" | ||
10720 | fi | ||
10721 | fi | ||
10722 | rm -f confcache | ||
10723 | |||
10724 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
10725 | # Let make expand exec_prefix. | ||
10726 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
10727 | |||
10728 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
10729 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
10730 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
10731 | # (actually we leave an empty line to preserve line numbers). | ||
10732 | if test "x$srcdir" = x.; then | ||
10733 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
10734 | s/:*\$(srcdir):*/:/; | ||
10735 | s/:*\${srcdir}:*/:/; | ||
10736 | s/:*@srcdir@:*/:/; | ||
10737 | s/^\([^=]*=[ ]*\):*/\1/; | ||
10738 | s/:*$//; | ||
10739 | s/^[^=]*=[ ]*$//; | ||
10740 | }' | ||
10741 | fi | ||
10742 | |||
10743 | DEFS=-DHAVE_CONFIG_H | ||
10744 | |||
10745 | ac_libobjs= | ||
10746 | ac_ltlibobjs= | ||
10747 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
10748 | # 1. Remove the extension, and $U if already installed. | ||
10749 | ac_i=`echo "$ac_i" | | ||
10750 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
10751 | # 2. Add them. | ||
10752 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
10753 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
10754 | done | ||
10755 | LIBOBJS=$ac_libobjs | ||
10756 | |||
10757 | LTLIBOBJS=$ac_ltlibobjs | ||
10758 | |||
10759 | |||
10760 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | ||
10761 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | ||
10762 | Usually this means the macro was only invoked conditionally." >&5 | ||
10763 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | ||
10764 | Usually this means the macro was only invoked conditionally." >&2;} | ||
10765 | { (exit 1); exit 1; }; } | ||
10766 | fi | ||
10767 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
10768 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
10769 | Usually this means the macro was only invoked conditionally." >&5 | ||
10770 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
10771 | Usually this means the macro was only invoked conditionally." >&2;} | ||
10772 | { (exit 1); exit 1; }; } | ||
10773 | fi | ||
10774 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
10775 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
10776 | Usually this means the macro was only invoked conditionally." >&5 | ||
10777 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
10778 | Usually this means the macro was only invoked conditionally." >&2;} | ||
10779 | { (exit 1); exit 1; }; } | ||
10780 | fi | ||
10781 | |||
10782 | : ${CONFIG_STATUS=./config.status} | ||
10783 | ac_clean_files_save=$ac_clean_files | ||
10784 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
10785 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
10786 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
10787 | cat >$CONFIG_STATUS <<_ACEOF | ||
10788 | #! $SHELL | ||
10789 | # Generated by $as_me. | ||
10790 | # Run this file to recreate the current configuration. | ||
10791 | # Compiler output produced by configure, useful for debugging | ||
10792 | # configure, is in config.log if it exists. | ||
10793 | |||
10794 | debug=false | ||
10795 | ac_cs_recheck=false | ||
10796 | ac_cs_silent=false | ||
10797 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
10798 | _ACEOF | ||
10799 | |||
10800 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10801 | ## --------------------- ## | ||
10802 | ## M4sh Initialization. ## | ||
10803 | ## --------------------- ## | ||
10804 | |||
10805 | # Be Bourne compatible | ||
10806 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
10807 | emulate sh | ||
10808 | NULLCMD=: | ||
10809 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
10810 | # is contrary to our usage. Disable this feature. | ||
10811 | alias -g '${1+"$@"}'='"$@"' | ||
10812 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
10813 | set -o posix | ||
10814 | fi | ||
10815 | DUALCASE=1; export DUALCASE # for MKS sh | ||
10816 | |||
10817 | # Support unset when possible. | ||
10818 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
10819 | as_unset=unset | ||
10820 | else | ||
10821 | as_unset=false | ||
10822 | fi | ||
10823 | |||
10824 | |||
10825 | # Work around bugs in pre-3.0 UWIN ksh. | ||
10826 | $as_unset ENV MAIL MAILPATH | ||
10827 | PS1='$ ' | ||
10828 | PS2='> ' | ||
10829 | PS4='+ ' | ||
10830 | |||
10831 | # NLS nuisances. | ||
10832 | for as_var in \ | ||
10833 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
10834 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
10835 | LC_TELEPHONE LC_TIME | ||
10836 | do | ||
10837 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
10838 | eval $as_var=C; export $as_var | ||
10839 | else | ||
10840 | $as_unset $as_var | ||
10841 | fi | ||
10842 | done | ||
10843 | |||
10844 | # Required to use basename. | ||
10845 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
10846 | as_expr=expr | ||
10847 | else | ||
10848 | as_expr=false | ||
10849 | fi | ||
10850 | |||
10851 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
10852 | as_basename=basename | ||
10853 | else | ||
10854 | as_basename=false | ||
10855 | fi | ||
10856 | |||
10857 | |||
10858 | # Name of the executable. | ||
10859 | as_me=`$as_basename "$0" || | ||
10860 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
10861 | X"$0" : 'X\(//\)$' \| \ | ||
10862 | X"$0" : 'X\(/\)$' \| \ | ||
10863 | . : '\(.\)' 2>/dev/null || | ||
10864 | echo X/"$0" | | ||
10865 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
10866 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
10867 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
10868 | s/.*/./; q'` | ||
10869 | |||
10870 | |||
10871 | # PATH needs CR, and LINENO needs CR and PATH. | ||
10872 | # Avoid depending upon Character Ranges. | ||
10873 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
10874 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
10875 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
10876 | as_cr_digits='0123456789' | ||
10877 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
10878 | |||
10879 | # The user is always right. | ||
10880 | if test "${PATH_SEPARATOR+set}" != set; then | ||
10881 | echo "#! /bin/sh" >conf$$.sh | ||
10882 | echo "exit 0" >>conf$$.sh | ||
10883 | chmod +x conf$$.sh | ||
10884 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
10885 | PATH_SEPARATOR=';' | ||
10886 | else | ||
10887 | PATH_SEPARATOR=: | ||
10888 | fi | ||
10889 | rm -f conf$$.sh | ||
10890 | fi | ||
10891 | |||
10892 | |||
10893 | as_lineno_1=$LINENO | ||
10894 | as_lineno_2=$LINENO | ||
10895 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
10896 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
10897 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
10898 | # Find who we are. Look in the path if we contain no path at all | ||
10899 | # relative or not. | ||
10900 | case $0 in | ||
10901 | *[\\/]* ) as_myself=$0 ;; | ||
10902 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10903 | for as_dir in $PATH | ||
10904 | do | ||
10905 | IFS=$as_save_IFS | ||
10906 | test -z "$as_dir" && as_dir=. | ||
10907 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
10908 | done | ||
10909 | |||
10910 | ;; | ||
10911 | esac | ||
10912 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
10913 | # in which case we are not to be found in the path. | ||
10914 | if test "x$as_myself" = x; then | ||
10915 | as_myself=$0 | ||
10916 | fi | ||
10917 | if test ! -f "$as_myself"; then | ||
10918 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
10919 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
10920 | { (exit 1); exit 1; }; } | ||
10921 | fi | ||
10922 | case $CONFIG_SHELL in | ||
10923 | '') | ||
10924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10925 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
10926 | do | ||
10927 | IFS=$as_save_IFS | ||
10928 | test -z "$as_dir" && as_dir=. | ||
10929 | for as_base in sh bash ksh sh5; do | ||
10930 | case $as_dir in | ||
10931 | /*) | ||
10932 | if ("$as_dir/$as_base" -c ' | ||
10933 | as_lineno_1=$LINENO | ||
10934 | as_lineno_2=$LINENO | ||
10935 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
10936 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
10937 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
10938 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
10939 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
10940 | CONFIG_SHELL=$as_dir/$as_base | ||
10941 | export CONFIG_SHELL | ||
10942 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
10943 | fi;; | ||
10944 | esac | ||
10945 | done | ||
10946 | done | ||
10947 | ;; | ||
10948 | esac | ||
10949 | |||
10950 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
10951 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
10952 | # line-number line before each line; the second 'sed' does the real | ||
10953 | # work. The second script uses 'N' to pair each line-number line | ||
10954 | # with the numbered line, and appends trailing '-' during | ||
10955 | # substitution so that $LINENO is not a special case at line end. | ||
10956 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
10957 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
10958 | sed '=' <$as_myself | | ||
10959 | sed ' | ||
10960 | N | ||
10961 | s,$,-, | ||
10962 | : loop | ||
10963 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
10964 | t loop | ||
10965 | s,-$,, | ||
10966 | s,^['$as_cr_digits']*\n,, | ||
10967 | ' >$as_me.lineno && | ||
10968 | chmod +x $as_me.lineno || | ||
10969 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
10970 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
10971 | { (exit 1); exit 1; }; } | ||
10972 | |||
10973 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
10974 | # (the dirname of $[0] is not the place where we might find the | ||
10975 | # original and so on. Autoconf is especially sensible to this). | ||
10976 | . ./$as_me.lineno | ||
10977 | # Exit status is that of the last command. | ||
10978 | exit | ||
10979 | } | ||
10980 | |||
10981 | |||
10982 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
10983 | *c*,-n*) ECHO_N= ECHO_C=' | ||
10984 | ' ECHO_T=' ' ;; | ||
10985 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
10986 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
10987 | esac | ||
10988 | |||
10989 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
10990 | as_expr=expr | ||
10991 | else | ||
10992 | as_expr=false | ||
10993 | fi | ||
10994 | |||
10995 | rm -f conf$$ conf$$.exe conf$$.file | ||
10996 | echo >conf$$.file | ||
10997 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
10998 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
10999 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
11000 | if test -f conf$$.exe; then | ||
11001 | # Don't use ln at all; we don't have any links | ||
11002 | as_ln_s='cp -p' | ||
11003 | else | ||
11004 | as_ln_s='ln -s' | ||
11005 | fi | ||
11006 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
11007 | as_ln_s=ln | ||
11008 | else | ||
11009 | as_ln_s='cp -p' | ||
11010 | fi | ||
11011 | rm -f conf$$ conf$$.exe conf$$.file | ||
11012 | |||
11013 | if mkdir -p . 2>/dev/null; then | ||
11014 | as_mkdir_p=: | ||
11015 | else | ||
11016 | test -d ./-p && rmdir ./-p | ||
11017 | as_mkdir_p=false | ||
11018 | fi | ||
11019 | |||
11020 | as_executable_p="test -f" | ||
11021 | |||
11022 | # Sed expression to map a string onto a valid CPP name. | ||
11023 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
11024 | |||
11025 | # Sed expression to map a string onto a valid variable name. | ||
11026 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
11027 | |||
11028 | |||
11029 | # IFS | ||
11030 | # We need space, tab and new line, in precisely that order. | ||
11031 | as_nl=' | ||
11032 | ' | ||
11033 | IFS=" $as_nl" | ||
11034 | |||
11035 | # CDPATH. | ||
11036 | $as_unset CDPATH | ||
11037 | |||
11038 | exec 6>&1 | ||
11039 | |||
11040 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
11041 | # report actual input values of CONFIG_FILES etc. instead of their | ||
11042 | # values after options handling. Logging --version etc. is OK. | ||
11043 | exec 5>>config.log | ||
11044 | { | ||
11045 | echo | ||
11046 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
11047 | ## Running $as_me. ## | ||
11048 | _ASBOX | ||
11049 | } >&5 | ||
11050 | cat >&5 <<_CSEOF | ||
11051 | |||
11052 | This file was extended by libgpg-error $as_me 1.0, which was | ||
11053 | generated by GNU Autoconf 2.59. Invocation command line was | ||
11054 | |||
11055 | CONFIG_FILES = $CONFIG_FILES | ||
11056 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
11057 | CONFIG_LINKS = $CONFIG_LINKS | ||
11058 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
11059 | $ $0 $@ | ||
11060 | |||
11061 | _CSEOF | ||
11062 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
11063 | echo >&5 | ||
11064 | _ACEOF | ||
11065 | |||
11066 | # Files that config.status was made for. | ||
11067 | if test -n "$ac_config_files"; then | ||
11068 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
11069 | fi | ||
11070 | |||
11071 | if test -n "$ac_config_headers"; then | ||
11072 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
11073 | fi | ||
11074 | |||
11075 | if test -n "$ac_config_links"; then | ||
11076 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
11077 | fi | ||
11078 | |||
11079 | if test -n "$ac_config_commands"; then | ||
11080 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
11081 | fi | ||
11082 | |||
11083 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11084 | |||
11085 | ac_cs_usage="\ | ||
11086 | \`$as_me' instantiates files from templates according to the | ||
11087 | current configuration. | ||
11088 | |||
11089 | Usage: $0 [OPTIONS] [FILE]... | ||
11090 | |||
11091 | -h, --help print this help, then exit | ||
11092 | -V, --version print version number, then exit | ||
11093 | -q, --quiet do not print progress messages | ||
11094 | -d, --debug don't remove temporary files | ||
11095 | --recheck update $as_me by reconfiguring in the same conditions | ||
11096 | --file=FILE[:TEMPLATE] | ||
11097 | instantiate the configuration file FILE | ||
11098 | --header=FILE[:TEMPLATE] | ||
11099 | instantiate the configuration header FILE | ||
11100 | |||
11101 | Configuration files: | ||
11102 | $config_files | ||
11103 | |||
11104 | Configuration headers: | ||
11105 | $config_headers | ||
11106 | |||
11107 | Configuration commands: | ||
11108 | $config_commands | ||
11109 | |||
11110 | Report bugs to <bug-autoconf@gnu.org>." | ||
11111 | _ACEOF | ||
11112 | |||
11113 | cat >>$CONFIG_STATUS <<_ACEOF | ||
11114 | ac_cs_version="\\ | ||
11115 | libgpg-error config.status 1.0 | ||
11116 | configured by $0, generated by GNU Autoconf 2.59, | ||
11117 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
11118 | |||
11119 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
11120 | This config.status script is free software; the Free Software Foundation | ||
11121 | gives unlimited permission to copy, distribute and modify it." | ||
11122 | srcdir=$srcdir | ||
11123 | INSTALL="$INSTALL" | ||
11124 | _ACEOF | ||
11125 | |||
11126 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11127 | # If no file are specified by the user, then we need to provide default | ||
11128 | # value. By we need to know if files were specified by the user. | ||
11129 | ac_need_defaults=: | ||
11130 | while test $# != 0 | ||
11131 | do | ||
11132 | case $1 in | ||
11133 | --*=*) | ||
11134 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
11135 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
11136 | ac_shift=: | ||
11137 | ;; | ||
11138 | -*) | ||
11139 | ac_option=$1 | ||
11140 | ac_optarg=$2 | ||
11141 | ac_shift=shift | ||
11142 | ;; | ||
11143 | *) # This is not an option, so the user has probably given explicit | ||
11144 | # arguments. | ||
11145 | ac_option=$1 | ||
11146 | ac_need_defaults=false;; | ||
11147 | esac | ||
11148 | |||
11149 | case $ac_option in | ||
11150 | # Handling of the options. | ||
11151 | _ACEOF | ||
11152 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11153 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
11154 | ac_cs_recheck=: ;; | ||
11155 | --version | --vers* | -V ) | ||
11156 | echo "$ac_cs_version"; exit 0 ;; | ||
11157 | --he | --h) | ||
11158 | # Conflict between --help and --header | ||
11159 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
11160 | Try \`$0 --help' for more information." >&5 | ||
11161 | echo "$as_me: error: ambiguous option: $1 | ||
11162 | Try \`$0 --help' for more information." >&2;} | ||
11163 | { (exit 1); exit 1; }; };; | ||
11164 | --help | --hel | -h ) | ||
11165 | echo "$ac_cs_usage"; exit 0 ;; | ||
11166 | --debug | --d* | -d ) | ||
11167 | debug=: ;; | ||
11168 | --file | --fil | --fi | --f ) | ||
11169 | $ac_shift | ||
11170 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
11171 | ac_need_defaults=false;; | ||
11172 | --header | --heade | --head | --hea ) | ||
11173 | $ac_shift | ||
11174 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
11175 | ac_need_defaults=false;; | ||
11176 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
11177 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
11178 | ac_cs_silent=: ;; | ||
11179 | |||
11180 | # This is an error. | ||
11181 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
11182 | Try \`$0 --help' for more information." >&5 | ||
11183 | echo "$as_me: error: unrecognized option: $1 | ||
11184 | Try \`$0 --help' for more information." >&2;} | ||
11185 | { (exit 1); exit 1; }; } ;; | ||
11186 | |||
11187 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
11188 | |||
11189 | esac | ||
11190 | shift | ||
11191 | done | ||
11192 | |||
11193 | ac_configure_extra_args= | ||
11194 | |||
11195 | if $ac_cs_silent; then | ||
11196 | exec 6>/dev/null | ||
11197 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
11198 | fi | ||
11199 | |||
11200 | _ACEOF | ||
11201 | cat >>$CONFIG_STATUS <<_ACEOF | ||
11202 | if \$ac_cs_recheck; then | ||
11203 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
11204 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
11205 | fi | ||
11206 | |||
11207 | _ACEOF | ||
11208 | |||
11209 | cat >>$CONFIG_STATUS <<_ACEOF | ||
11210 | # | ||
11211 | # INIT-COMMANDS section. | ||
11212 | # | ||
11213 | |||
11214 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
11215 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | ||
11216 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | ||
11217 | # from automake. | ||
11218 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | ||
11219 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | ||
11220 | LINGUAS="${LINGUAS-%UNSET%}" | ||
11221 | |||
11222 | |||
11223 | _ACEOF | ||
11224 | |||
11225 | |||
11226 | |||
11227 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11228 | for ac_config_target in $ac_config_targets | ||
11229 | do | ||
11230 | case "$ac_config_target" in | ||
11231 | # Handling of arguments. | ||
11232 | "src/gpg-error-config" ) CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;; | ||
11233 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
11234 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | ||
11235 | "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | ||
11236 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
11237 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | ||
11238 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
11239 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | ||
11240 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
11241 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
11242 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
11243 | { (exit 1); exit 1; }; };; | ||
11244 | esac | ||
11245 | done | ||
11246 | |||
11247 | # If the user did not use the arguments to specify the items to instantiate, | ||
11248 | # then the envvar interface is used. Set only those that are not. | ||
11249 | # We use the long form for the default assignment because of an extremely | ||
11250 | # bizarre bug on SunOS 4.1.3. | ||
11251 | if $ac_need_defaults; then | ||
11252 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
11253 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
11254 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
11255 | fi | ||
11256 | |||
11257 | # Have a temporary directory for convenience. Make it in the build tree | ||
11258 | # simply because there is no reason to put it here, and in addition, | ||
11259 | # creating and moving files from /tmp can sometimes cause problems. | ||
11260 | # Create a temporary directory, and hook for its removal unless debugging. | ||
11261 | $debug || | ||
11262 | { | ||
11263 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
11264 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
11265 | } | ||
11266 | |||
11267 | # Create a (secure) tmp directory for tmp files. | ||
11268 | |||
11269 | { | ||
11270 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
11271 | test -n "$tmp" && test -d "$tmp" | ||
11272 | } || | ||
11273 | { | ||
11274 | tmp=./confstat$$-$RANDOM | ||
11275 | (umask 077 && mkdir $tmp) | ||
11276 | } || | ||
11277 | { | ||
11278 | echo "$me: cannot create a temporary directory in ." >&2 | ||
11279 | { (exit 1); exit 1; } | ||
11280 | } | ||
11281 | |||
11282 | _ACEOF | ||
11283 | |||
11284 | cat >>$CONFIG_STATUS <<_ACEOF | ||
11285 | |||
11286 | # | ||
11287 | # CONFIG_FILES section. | ||
11288 | # | ||
11289 | |||
11290 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
11291 | # This happens for instance when ./config.status config.h | ||
11292 | if test -n "\$CONFIG_FILES"; then | ||
11293 | # Protect against being on the right side of a sed subst in config.status. | ||
11294 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
11295 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
11296 | s,@SHELL@,$SHELL,;t t | ||
11297 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
11298 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
11299 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
11300 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
11301 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
11302 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
11303 | s,@exec_prefix@,$exec_prefix,;t t | ||
11304 | s,@prefix@,$prefix,;t t | ||
11305 | s,@program_transform_name@,$program_transform_name,;t t | ||
11306 | s,@bindir@,$bindir,;t t | ||
11307 | s,@sbindir@,$sbindir,;t t | ||
11308 | s,@libexecdir@,$libexecdir,;t t | ||
11309 | s,@datadir@,$datadir,;t t | ||
11310 | s,@sysconfdir@,$sysconfdir,;t t | ||
11311 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
11312 | s,@localstatedir@,$localstatedir,;t t | ||
11313 | s,@libdir@,$libdir,;t t | ||
11314 | s,@includedir@,$includedir,;t t | ||
11315 | s,@oldincludedir@,$oldincludedir,;t t | ||
11316 | s,@infodir@,$infodir,;t t | ||
11317 | s,@mandir@,$mandir,;t t | ||
11318 | s,@build_alias@,$build_alias,;t t | ||
11319 | s,@host_alias@,$host_alias,;t t | ||
11320 | s,@target_alias@,$target_alias,;t t | ||
11321 | s,@DEFS@,$DEFS,;t t | ||
11322 | s,@ECHO_C@,$ECHO_C,;t t | ||
11323 | s,@ECHO_N@,$ECHO_N,;t t | ||
11324 | s,@ECHO_T@,$ECHO_T,;t t | ||
11325 | s,@LIBS@,$LIBS,;t t | ||
11326 | s,@LIBGPG_ERROR_LT_CURRENT@,$LIBGPG_ERROR_LT_CURRENT,;t t | ||
11327 | s,@LIBGPG_ERROR_LT_AGE@,$LIBGPG_ERROR_LT_AGE,;t t | ||
11328 | s,@LIBGPG_ERROR_LT_REVISION@,$LIBGPG_ERROR_LT_REVISION,;t t | ||
11329 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
11330 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
11331 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
11332 | s,@CYGPATH_W@,$CYGPATH_W,;t t | ||
11333 | s,@PACKAGE@,$PACKAGE,;t t | ||
11334 | s,@VERSION@,$VERSION,;t t | ||
11335 | s,@ACLOCAL@,$ACLOCAL,;t t | ||
11336 | s,@AUTOCONF@,$AUTOCONF,;t t | ||
11337 | s,@AUTOMAKE@,$AUTOMAKE,;t t | ||
11338 | s,@AUTOHEADER@,$AUTOHEADER,;t t | ||
11339 | s,@MAKEINFO@,$MAKEINFO,;t t | ||
11340 | s,@AMTAR@,$AMTAR,;t t | ||
11341 | s,@install_sh@,$install_sh,;t t | ||
11342 | s,@STRIP@,$STRIP,;t t | ||
11343 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | ||
11344 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | ||
11345 | s,@AWK@,$AWK,;t t | ||
11346 | s,@SET_MAKE@,$SET_MAKE,;t t | ||
11347 | s,@am__leading_dot@,$am__leading_dot,;t t | ||
11348 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | ||
11349 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | ||
11350 | s,@MAINT@,$MAINT,;t t | ||
11351 | s,@CC@,$CC,;t t | ||
11352 | s,@CFLAGS@,$CFLAGS,;t t | ||
11353 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
11354 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
11355 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
11356 | s,@EXEEXT@,$EXEEXT,;t t | ||
11357 | s,@OBJEXT@,$OBJEXT,;t t | ||
11358 | s,@DEPDIR@,$DEPDIR,;t t | ||
11359 | s,@am__include@,$am__include,;t t | ||
11360 | s,@am__quote@,$am__quote,;t t | ||
11361 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | ||
11362 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | ||
11363 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | ||
11364 | s,@CCDEPMODE@,$CCDEPMODE,;t t | ||
11365 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | ||
11366 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | ||
11367 | s,@CPP@,$CPP,;t t | ||
11368 | s,@build@,$build,;t t | ||
11369 | s,@build_cpu@,$build_cpu,;t t | ||
11370 | s,@build_vendor@,$build_vendor,;t t | ||
11371 | s,@build_os@,$build_os,;t t | ||
11372 | s,@host@,$host,;t t | ||
11373 | s,@host_cpu@,$host_cpu,;t t | ||
11374 | s,@host_vendor@,$host_vendor,;t t | ||
11375 | s,@host_os@,$host_os,;t t | ||
11376 | s,@LN_S@,$LN_S,;t t | ||
11377 | s,@ECHO@,$ECHO,;t t | ||
11378 | s,@RANLIB@,$RANLIB,;t t | ||
11379 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
11380 | s,@EGREP@,$EGREP,;t t | ||
11381 | s,@LIBTOOL@,$LIBTOOL,;t t | ||
11382 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | ||
11383 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | ||
11384 | s,@USE_NLS@,$USE_NLS,;t t | ||
11385 | s,@MSGFMT@,$MSGFMT,;t t | ||
11386 | s,@GMSGFMT@,$GMSGFMT,;t t | ||
11387 | s,@XGETTEXT@,$XGETTEXT,;t t | ||
11388 | s,@MSGMERGE@,$MSGMERGE,;t t | ||
11389 | s,@LIBICONV@,$LIBICONV,;t t | ||
11390 | s,@LTLIBICONV@,$LTLIBICONV,;t t | ||
11391 | s,@INTLLIBS@,$INTLLIBS,;t t | ||
11392 | s,@LIBINTL@,$LIBINTL,;t t | ||
11393 | s,@LTLIBINTL@,$LTLIBINTL,;t t | ||
11394 | s,@POSUB@,$POSUB,;t t | ||
11395 | s,@GPG_ERROR_CONFIG_LIBS@,$GPG_ERROR_CONFIG_LIBS,;t t | ||
11396 | s,@GPG_ERROR_CONFIG_CFLAGS@,$GPG_ERROR_CONFIG_CFLAGS,;t t | ||
11397 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
11398 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
11399 | CEOF | ||
11400 | |||
11401 | _ACEOF | ||
11402 | |||
11403 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11404 | # Split the substitutions into bite-sized pieces for seds with | ||
11405 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
11406 | ac_max_sed_lines=48 | ||
11407 | ac_sed_frag=1 # Number of current file. | ||
11408 | ac_beg=1 # First line for current file. | ||
11409 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
11410 | ac_more_lines=: | ||
11411 | ac_sed_cmds= | ||
11412 | while $ac_more_lines; do | ||
11413 | if test $ac_beg -gt 1; then | ||
11414 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
11415 | else | ||
11416 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
11417 | fi | ||
11418 | if test ! -s $tmp/subs.frag; then | ||
11419 | ac_more_lines=false | ||
11420 | else | ||
11421 | # The purpose of the label and of the branching condition is to | ||
11422 | # speed up the sed processing (if there are no `@' at all, there | ||
11423 | # is no need to browse any of the substitutions). | ||
11424 | # These are the two extra sed commands mentioned above. | ||
11425 | (echo ':t | ||
11426 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
11427 | if test -z "$ac_sed_cmds"; then | ||
11428 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
11429 | else | ||
11430 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
11431 | fi | ||
11432 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
11433 | ac_beg=$ac_end | ||
11434 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
11435 | fi | ||
11436 | done | ||
11437 | if test -z "$ac_sed_cmds"; then | ||
11438 | ac_sed_cmds=cat | ||
11439 | fi | ||
11440 | fi # test -n "$CONFIG_FILES" | ||
11441 | |||
11442 | _ACEOF | ||
11443 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11444 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
11445 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
11446 | case $ac_file in | ||
11447 | - | *:- | *:-:* ) # input from stdin | ||
11448 | cat >$tmp/stdin | ||
11449 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
11450 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
11451 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
11452 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
11453 | * ) ac_file_in=$ac_file.in ;; | ||
11454 | esac | ||
11455 | |||
11456 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
11457 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
11458 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11459 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
11460 | X"$ac_file" : 'X\(//\)$' \| \ | ||
11461 | X"$ac_file" : 'X\(/\)' \| \ | ||
11462 | . : '\(.\)' 2>/dev/null || | ||
11463 | echo X"$ac_file" | | ||
11464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11465 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11466 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11467 | /^X\(\/\).*/{ s//\1/; q; } | ||
11468 | s/.*/./; q'` | ||
11469 | { if $as_mkdir_p; then | ||
11470 | mkdir -p "$ac_dir" | ||
11471 | else | ||
11472 | as_dir="$ac_dir" | ||
11473 | as_dirs= | ||
11474 | while test ! -d "$as_dir"; do | ||
11475 | as_dirs="$as_dir $as_dirs" | ||
11476 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
11477 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11478 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
11479 | X"$as_dir" : 'X\(//\)$' \| \ | ||
11480 | X"$as_dir" : 'X\(/\)' \| \ | ||
11481 | . : '\(.\)' 2>/dev/null || | ||
11482 | echo X"$as_dir" | | ||
11483 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11484 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11485 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11486 | /^X\(\/\).*/{ s//\1/; q; } | ||
11487 | s/.*/./; q'` | ||
11488 | done | ||
11489 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
11490 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
11491 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
11492 | { (exit 1); exit 1; }; }; } | ||
11493 | |||
11494 | ac_builddir=. | ||
11495 | |||
11496 | if test "$ac_dir" != .; then | ||
11497 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
11498 | # A "../" for each directory in $ac_dir_suffix. | ||
11499 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
11500 | else | ||
11501 | ac_dir_suffix= ac_top_builddir= | ||
11502 | fi | ||
11503 | |||
11504 | case $srcdir in | ||
11505 | .) # No --srcdir option. We are building in place. | ||
11506 | ac_srcdir=. | ||
11507 | if test -z "$ac_top_builddir"; then | ||
11508 | ac_top_srcdir=. | ||
11509 | else | ||
11510 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
11511 | fi ;; | ||
11512 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
11513 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
11514 | ac_top_srcdir=$srcdir ;; | ||
11515 | *) # Relative path. | ||
11516 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
11517 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
11518 | esac | ||
11519 | |||
11520 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
11521 | # the directories may not exist. | ||
11522 | case `pwd` in | ||
11523 | .) ac_abs_builddir="$ac_dir";; | ||
11524 | *) | ||
11525 | case "$ac_dir" in | ||
11526 | .) ac_abs_builddir=`pwd`;; | ||
11527 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
11528 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
11529 | esac;; | ||
11530 | esac | ||
11531 | case $ac_abs_builddir in | ||
11532 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
11533 | *) | ||
11534 | case ${ac_top_builddir}. in | ||
11535 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
11536 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
11537 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
11538 | esac;; | ||
11539 | esac | ||
11540 | case $ac_abs_builddir in | ||
11541 | .) ac_abs_srcdir=$ac_srcdir;; | ||
11542 | *) | ||
11543 | case $ac_srcdir in | ||
11544 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
11545 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
11546 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
11547 | esac;; | ||
11548 | esac | ||
11549 | case $ac_abs_builddir in | ||
11550 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
11551 | *) | ||
11552 | case $ac_top_srcdir in | ||
11553 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
11554 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
11555 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
11556 | esac;; | ||
11557 | esac | ||
11558 | |||
11559 | |||
11560 | case $INSTALL in | ||
11561 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
11562 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
11563 | esac | ||
11564 | |||
11565 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
11566 | # use $as_me), people would be surprised to read: | ||
11567 | # /* config.h. Generated by config.status. */ | ||
11568 | if test x"$ac_file" = x-; then | ||
11569 | configure_input= | ||
11570 | else | ||
11571 | configure_input="$ac_file. " | ||
11572 | fi | ||
11573 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
11574 | sed 's,.*/,,'` by configure." | ||
11575 | |||
11576 | # First look for the input files in the build tree, otherwise in the | ||
11577 | # src tree. | ||
11578 | ac_file_inputs=`IFS=: | ||
11579 | for f in $ac_file_in; do | ||
11580 | case $f in | ||
11581 | -) echo $tmp/stdin ;; | ||
11582 | [\\/$]*) | ||
11583 | # Absolute (can't be DOS-style, as IFS=:) | ||
11584 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
11585 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
11586 | { (exit 1); exit 1; }; } | ||
11587 | echo "$f";; | ||
11588 | *) # Relative | ||
11589 | if test -f "$f"; then | ||
11590 | # Build tree | ||
11591 | echo "$f" | ||
11592 | elif test -f "$srcdir/$f"; then | ||
11593 | # Source tree | ||
11594 | echo "$srcdir/$f" | ||
11595 | else | ||
11596 | # /dev/null tree | ||
11597 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
11598 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
11599 | { (exit 1); exit 1; }; } | ||
11600 | fi;; | ||
11601 | esac | ||
11602 | done` || { (exit 1); exit 1; } | ||
11603 | |||
11604 | if test x"$ac_file" != x-; then | ||
11605 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
11606 | echo "$as_me: creating $ac_file" >&6;} | ||
11607 | rm -f "$ac_file" | ||
11608 | fi | ||
11609 | _ACEOF | ||
11610 | cat >>$CONFIG_STATUS <<_ACEOF | ||
11611 | sed "$ac_vpsub | ||
11612 | $extrasub | ||
11613 | _ACEOF | ||
11614 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11615 | :t | ||
11616 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
11617 | s,@configure_input@,$configure_input,;t t | ||
11618 | s,@srcdir@,$ac_srcdir,;t t | ||
11619 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
11620 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
11621 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
11622 | s,@builddir@,$ac_builddir,;t t | ||
11623 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
11624 | s,@top_builddir@,$ac_top_builddir,;t t | ||
11625 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
11626 | s,@INSTALL@,$ac_INSTALL,;t t | ||
11627 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
11628 | rm -f $tmp/stdin | ||
11629 | if test x"$ac_file" != x-; then | ||
11630 | mv $tmp/out $ac_file | ||
11631 | else | ||
11632 | cat $tmp/out | ||
11633 | rm -f $tmp/out | ||
11634 | fi | ||
11635 | |||
11636 | # Run the commands associated with the file. | ||
11637 | case $ac_file in | ||
11638 | src/gpg-error-config ) chmod +x src/gpg-error-config ;; | ||
11639 | esac | ||
11640 | done | ||
11641 | _ACEOF | ||
11642 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11643 | |||
11644 | # | ||
11645 | # CONFIG_HEADER section. | ||
11646 | # | ||
11647 | |||
11648 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
11649 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
11650 | # | ||
11651 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
11652 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
11653 | ac_dB='[ ].*$,\1#\2' | ||
11654 | ac_dC=' ' | ||
11655 | ac_dD=',;t' | ||
11656 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
11657 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
11658 | ac_uB='$,\1#\2define\3' | ||
11659 | ac_uC=' ' | ||
11660 | ac_uD=',;t' | ||
11661 | |||
11662 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
11663 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
11664 | case $ac_file in | ||
11665 | - | *:- | *:-:* ) # input from stdin | ||
11666 | cat >$tmp/stdin | ||
11667 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
11668 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
11669 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
11670 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
11671 | * ) ac_file_in=$ac_file.in ;; | ||
11672 | esac | ||
11673 | |||
11674 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
11675 | echo "$as_me: creating $ac_file" >&6;} | ||
11676 | |||
11677 | # First look for the input files in the build tree, otherwise in the | ||
11678 | # src tree. | ||
11679 | ac_file_inputs=`IFS=: | ||
11680 | for f in $ac_file_in; do | ||
11681 | case $f in | ||
11682 | -) echo $tmp/stdin ;; | ||
11683 | [\\/$]*) | ||
11684 | # Absolute (can't be DOS-style, as IFS=:) | ||
11685 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
11686 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
11687 | { (exit 1); exit 1; }; } | ||
11688 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
11689 | echo "$f";; | ||
11690 | *) # Relative | ||
11691 | if test -f "$f"; then | ||
11692 | # Build tree | ||
11693 | echo "$f" | ||
11694 | elif test -f "$srcdir/$f"; then | ||
11695 | # Source tree | ||
11696 | echo "$srcdir/$f" | ||
11697 | else | ||
11698 | # /dev/null tree | ||
11699 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
11700 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
11701 | { (exit 1); exit 1; }; } | ||
11702 | fi;; | ||
11703 | esac | ||
11704 | done` || { (exit 1); exit 1; } | ||
11705 | # Remove the trailing spaces. | ||
11706 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
11707 | |||
11708 | _ACEOF | ||
11709 | |||
11710 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
11711 | # `conftest.undefs', that substitutes the proper values into | ||
11712 | # config.h.in to produce config.h. The first handles `#define' | ||
11713 | # templates, and the second `#undef' templates. | ||
11714 | # And first: Protect against being on the right side of a sed subst in | ||
11715 | # config.status. Protect against being in an unquoted here document | ||
11716 | # in config.status. | ||
11717 | rm -f conftest.defines conftest.undefs | ||
11718 | # Using a here document instead of a string reduces the quoting nightmare. | ||
11719 | # Putting comments in sed scripts is not portable. | ||
11720 | # | ||
11721 | # `end' is used to avoid that the second main sed command (meant for | ||
11722 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
11723 | # See the Autoconf documentation for `clear'. | ||
11724 | cat >confdef2sed.sed <<\_ACEOF | ||
11725 | s/[\\&,]/\\&/g | ||
11726 | s,[\\$`],\\&,g | ||
11727 | t clear | ||
11728 | : clear | ||
11729 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
11730 | t end | ||
11731 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
11732 | : end | ||
11733 | _ACEOF | ||
11734 | # If some macros were called several times there might be several times | ||
11735 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
11736 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
11737 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
11738 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
11739 | rm -f confdef2sed.sed | ||
11740 | |||
11741 | # This sed command replaces #undef with comments. This is necessary, for | ||
11742 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
11743 | # on some systems where configure will not decide to define it. | ||
11744 | cat >>conftest.undefs <<\_ACEOF | ||
11745 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
11746 | _ACEOF | ||
11747 | |||
11748 | # Break up conftest.defines because some shells have a limit on the size | ||
11749 | # of here documents, and old seds have small limits too (100 cmds). | ||
11750 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
11751 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
11752 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
11753 | echo ' :' >>$CONFIG_STATUS | ||
11754 | rm -f conftest.tail | ||
11755 | while grep . conftest.defines >/dev/null | ||
11756 | do | ||
11757 | # Write a limited-size here document to $tmp/defines.sed. | ||
11758 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
11759 | # Speed up: don't consider the non `#define' lines. | ||
11760 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
11761 | # Work around the forget-to-reset-the-flag bug. | ||
11762 | echo 't clr' >>$CONFIG_STATUS | ||
11763 | echo ': clr' >>$CONFIG_STATUS | ||
11764 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
11765 | echo 'CEOF | ||
11766 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
11767 | rm -f $tmp/in | ||
11768 | mv $tmp/out $tmp/in | ||
11769 | ' >>$CONFIG_STATUS | ||
11770 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
11771 | rm -f conftest.defines | ||
11772 | mv conftest.tail conftest.defines | ||
11773 | done | ||
11774 | rm -f conftest.defines | ||
11775 | echo ' fi # grep' >>$CONFIG_STATUS | ||
11776 | echo >>$CONFIG_STATUS | ||
11777 | |||
11778 | # Break up conftest.undefs because some shells have a limit on the size | ||
11779 | # of here documents, and old seds have small limits too (100 cmds). | ||
11780 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
11781 | rm -f conftest.tail | ||
11782 | while grep . conftest.undefs >/dev/null | ||
11783 | do | ||
11784 | # Write a limited-size here document to $tmp/undefs.sed. | ||
11785 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
11786 | # Speed up: don't consider the non `#undef' | ||
11787 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
11788 | # Work around the forget-to-reset-the-flag bug. | ||
11789 | echo 't clr' >>$CONFIG_STATUS | ||
11790 | echo ': clr' >>$CONFIG_STATUS | ||
11791 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
11792 | echo 'CEOF | ||
11793 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
11794 | rm -f $tmp/in | ||
11795 | mv $tmp/out $tmp/in | ||
11796 | ' >>$CONFIG_STATUS | ||
11797 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
11798 | rm -f conftest.undefs | ||
11799 | mv conftest.tail conftest.undefs | ||
11800 | done | ||
11801 | rm -f conftest.undefs | ||
11802 | |||
11803 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11804 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
11805 | # use $as_me), people would be surprised to read: | ||
11806 | # /* config.h. Generated by config.status. */ | ||
11807 | if test x"$ac_file" = x-; then | ||
11808 | echo "/* Generated by configure. */" >$tmp/config.h | ||
11809 | else | ||
11810 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
11811 | fi | ||
11812 | cat $tmp/in >>$tmp/config.h | ||
11813 | rm -f $tmp/in | ||
11814 | if test x"$ac_file" != x-; then | ||
11815 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
11816 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
11817 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
11818 | else | ||
11819 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
11820 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11821 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
11822 | X"$ac_file" : 'X\(//\)$' \| \ | ||
11823 | X"$ac_file" : 'X\(/\)' \| \ | ||
11824 | . : '\(.\)' 2>/dev/null || | ||
11825 | echo X"$ac_file" | | ||
11826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11827 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11828 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11829 | /^X\(\/\).*/{ s//\1/; q; } | ||
11830 | s/.*/./; q'` | ||
11831 | { if $as_mkdir_p; then | ||
11832 | mkdir -p "$ac_dir" | ||
11833 | else | ||
11834 | as_dir="$ac_dir" | ||
11835 | as_dirs= | ||
11836 | while test ! -d "$as_dir"; do | ||
11837 | as_dirs="$as_dir $as_dirs" | ||
11838 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
11839 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11840 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
11841 | X"$as_dir" : 'X\(//\)$' \| \ | ||
11842 | X"$as_dir" : 'X\(/\)' \| \ | ||
11843 | . : '\(.\)' 2>/dev/null || | ||
11844 | echo X"$as_dir" | | ||
11845 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11846 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11847 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11848 | /^X\(\/\).*/{ s//\1/; q; } | ||
11849 | s/.*/./; q'` | ||
11850 | done | ||
11851 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
11852 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
11853 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
11854 | { (exit 1); exit 1; }; }; } | ||
11855 | |||
11856 | rm -f $ac_file | ||
11857 | mv $tmp/config.h $ac_file | ||
11858 | fi | ||
11859 | else | ||
11860 | cat $tmp/config.h | ||
11861 | rm -f $tmp/config.h | ||
11862 | fi | ||
11863 | # Compute $ac_file's index in $config_headers. | ||
11864 | _am_stamp_count=1 | ||
11865 | for _am_header in $config_headers :; do | ||
11866 | case $_am_header in | ||
11867 | $ac_file | $ac_file:* ) | ||
11868 | break ;; | ||
11869 | * ) | ||
11870 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
11871 | esac | ||
11872 | done | ||
11873 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | ||
11874 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11875 | X$ac_file : 'X\(//\)[^/]' \| \ | ||
11876 | X$ac_file : 'X\(//\)$' \| \ | ||
11877 | X$ac_file : 'X\(/\)' \| \ | ||
11878 | . : '\(.\)' 2>/dev/null || | ||
11879 | echo X$ac_file | | ||
11880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11881 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11882 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11883 | /^X\(\/\).*/{ s//\1/; q; } | ||
11884 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
11885 | done | ||
11886 | _ACEOF | ||
11887 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
11888 | |||
11889 | # | ||
11890 | # CONFIG_COMMANDS section. | ||
11891 | # | ||
11892 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | ||
11893 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | ||
11894 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
11895 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | ||
11896 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11897 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | ||
11898 | X"$ac_dest" : 'X\(//\)$' \| \ | ||
11899 | X"$ac_dest" : 'X\(/\)' \| \ | ||
11900 | . : '\(.\)' 2>/dev/null || | ||
11901 | echo X"$ac_dest" | | ||
11902 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11903 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11904 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11905 | /^X\(\/\).*/{ s//\1/; q; } | ||
11906 | s/.*/./; q'` | ||
11907 | { if $as_mkdir_p; then | ||
11908 | mkdir -p "$ac_dir" | ||
11909 | else | ||
11910 | as_dir="$ac_dir" | ||
11911 | as_dirs= | ||
11912 | while test ! -d "$as_dir"; do | ||
11913 | as_dirs="$as_dir $as_dirs" | ||
11914 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
11915 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
11916 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
11917 | X"$as_dir" : 'X\(//\)$' \| \ | ||
11918 | X"$as_dir" : 'X\(/\)' \| \ | ||
11919 | . : '\(.\)' 2>/dev/null || | ||
11920 | echo X"$as_dir" | | ||
11921 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
11922 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
11923 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
11924 | /^X\(\/\).*/{ s//\1/; q; } | ||
11925 | s/.*/./; q'` | ||
11926 | done | ||
11927 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
11928 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
11929 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
11930 | { (exit 1); exit 1; }; }; } | ||
11931 | |||
11932 | ac_builddir=. | ||
11933 | |||
11934 | if test "$ac_dir" != .; then | ||
11935 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
11936 | # A "../" for each directory in $ac_dir_suffix. | ||
11937 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
11938 | else | ||
11939 | ac_dir_suffix= ac_top_builddir= | ||
11940 | fi | ||
11941 | |||
11942 | case $srcdir in | ||
11943 | .) # No --srcdir option. We are building in place. | ||
11944 | ac_srcdir=. | ||
11945 | if test -z "$ac_top_builddir"; then | ||
11946 | ac_top_srcdir=. | ||
11947 | else | ||
11948 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
11949 | fi ;; | ||
11950 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
11951 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
11952 | ac_top_srcdir=$srcdir ;; | ||
11953 | *) # Relative path. | ||
11954 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
11955 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
11956 | esac | ||
11957 | |||
11958 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
11959 | # the directories may not exist. | ||
11960 | case `pwd` in | ||
11961 | .) ac_abs_builddir="$ac_dir";; | ||
11962 | *) | ||
11963 | case "$ac_dir" in | ||
11964 | .) ac_abs_builddir=`pwd`;; | ||
11965 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
11966 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
11967 | esac;; | ||
11968 | esac | ||
11969 | case $ac_abs_builddir in | ||
11970 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
11971 | *) | ||
11972 | case ${ac_top_builddir}. in | ||
11973 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
11974 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
11975 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
11976 | esac;; | ||
11977 | esac | ||
11978 | case $ac_abs_builddir in | ||
11979 | .) ac_abs_srcdir=$ac_srcdir;; | ||
11980 | *) | ||
11981 | case $ac_srcdir in | ||
11982 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
11983 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
11984 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
11985 | esac;; | ||
11986 | esac | ||
11987 | case $ac_abs_builddir in | ||
11988 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
11989 | *) | ||
11990 | case $ac_top_srcdir in | ||
11991 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
11992 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
11993 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
11994 | esac;; | ||
11995 | esac | ||
11996 | |||
11997 | |||
11998 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | ||
11999 | echo "$as_me: executing $ac_dest commands" >&6;} | ||
12000 | case $ac_dest in | ||
12001 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
12002 | # Strip MF so we end up with the name of the file. | ||
12003 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
12004 | # Check whether this is an Automake generated Makefile or not. | ||
12005 | # We used to match only the files named `Makefile.in', but | ||
12006 | # some people rename them; so instead we look at the file content. | ||
12007 | # Grep'ing the first line is not enough: some people post-process | ||
12008 | # each Makefile.in and add a new line on top of each file to say so. | ||
12009 | # So let's grep whole file. | ||
12010 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
12011 | dirpart=`(dirname "$mf") 2>/dev/null || | ||
12012 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
12013 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
12014 | X"$mf" : 'X\(//\)$' \| \ | ||
12015 | X"$mf" : 'X\(/\)' \| \ | ||
12016 | . : '\(.\)' 2>/dev/null || | ||
12017 | echo X"$mf" | | ||
12018 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
12019 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
12020 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
12021 | /^X\(\/\).*/{ s//\1/; q; } | ||
12022 | s/.*/./; q'` | ||
12023 | else | ||
12024 | continue | ||
12025 | fi | ||
12026 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | ||
12027 | # Extract the definition of DEP_FILES from the Makefile without | ||
12028 | # running `make'. | ||
12029 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | ||
12030 | test -z "$DEPDIR" && continue | ||
12031 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
12032 | U=`sed -n -e '/^U = / s///p' < "$mf"` | ||
12033 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | ||
12034 | # We invoke sed twice because it is the simplest approach to | ||
12035 | # changing $(DEPDIR) to its actual value in the expansion. | ||
12036 | for file in `sed -n -e ' | ||
12037 | /^DEP_FILES = .*\\\\$/ { | ||
12038 | s/^DEP_FILES = // | ||
12039 | :loop | ||
12040 | s/\\\\$// | ||
12041 | p | ||
12042 | n | ||
12043 | /\\\\$/ b loop | ||
12044 | p | ||
12045 | } | ||
12046 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | ||
12047 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
12048 | # Make sure the directory exists. | ||
12049 | test -f "$dirpart/$file" && continue | ||
12050 | fdir=`(dirname "$file") 2>/dev/null || | ||
12051 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
12052 | X"$file" : 'X\(//\)[^/]' \| \ | ||
12053 | X"$file" : 'X\(//\)$' \| \ | ||
12054 | X"$file" : 'X\(/\)' \| \ | ||
12055 | . : '\(.\)' 2>/dev/null || | ||
12056 | echo X"$file" | | ||
12057 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
12058 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
12059 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
12060 | /^X\(\/\).*/{ s//\1/; q; } | ||
12061 | s/.*/./; q'` | ||
12062 | { if $as_mkdir_p; then | ||
12063 | mkdir -p $dirpart/$fdir | ||
12064 | else | ||
12065 | as_dir=$dirpart/$fdir | ||
12066 | as_dirs= | ||
12067 | while test ! -d "$as_dir"; do | ||
12068 | as_dirs="$as_dir $as_dirs" | ||
12069 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
12070 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
12071 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
12072 | X"$as_dir" : 'X\(//\)$' \| \ | ||
12073 | X"$as_dir" : 'X\(/\)' \| \ | ||
12074 | . : '\(.\)' 2>/dev/null || | ||
12075 | echo X"$as_dir" | | ||
12076 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
12077 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
12078 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
12079 | /^X\(\/\).*/{ s//\1/; q; } | ||
12080 | s/.*/./; q'` | ||
12081 | done | ||
12082 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
12083 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | ||
12084 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | ||
12085 | { (exit 1); exit 1; }; }; } | ||
12086 | |||
12087 | # echo "creating $dirpart/$file" | ||
12088 | echo '# dummy' > "$dirpart/$file" | ||
12089 | done | ||
12090 | done | ||
12091 | ;; | ||
12092 | default-1 ) | ||
12093 | for ac_file in $CONFIG_FILES; do | ||
12094 | # Support "outfile[:infile[:infile...]]" | ||
12095 | case "$ac_file" in | ||
12096 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
12097 | esac | ||
12098 | # PO directories have a Makefile.in generated from Makefile.in.in. | ||
12099 | case "$ac_file" in */Makefile.in) | ||
12100 | # Adjust a relative srcdir. | ||
12101 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ||
12102 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | ||
12103 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ||
12104 | # In autoconf-2.13 it is called $ac_given_srcdir. | ||
12105 | # In autoconf-2.50 it is called $srcdir. | ||
12106 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | ||
12107 | case "$ac_given_srcdir" in | ||
12108 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | ||
12109 | /*) top_srcdir="$ac_given_srcdir" ;; | ||
12110 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
12111 | esac | ||
12112 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | ||
12113 | rm -f "$ac_dir/POTFILES" | ||
12114 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | ||
12115 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | ||
12116 | POMAKEFILEDEPS="POTFILES.in" | ||
12117 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | ||
12118 | # on $ac_dir but don't depend on user-specified configuration | ||
12119 | # parameters. | ||
12120 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | ||
12121 | # The LINGUAS file contains the set of available languages. | ||
12122 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | ||
12123 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | ||
12124 | fi | ||
12125 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | ||
12126 | # Hide the ALL_LINGUAS assigment from automake. | ||
12127 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | ||
12128 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | ||
12129 | else | ||
12130 | # The set of available languages was given in configure.in. | ||
12131 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | ||
12132 | fi | ||
12133 | case "$ac_given_srcdir" in | ||
12134 | .) srcdirpre= ;; | ||
12135 | *) srcdirpre='$(srcdir)/' ;; | ||
12136 | esac | ||
12137 | POFILES= | ||
12138 | GMOFILES= | ||
12139 | UPDATEPOFILES= | ||
12140 | DUMMYPOFILES= | ||
12141 | for lang in $ALL_LINGUAS; do | ||
12142 | POFILES="$POFILES $srcdirpre$lang.po" | ||
12143 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | ||
12144 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | ||
12145 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | ||
12146 | done | ||
12147 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | ||
12148 | # environment variable. | ||
12149 | INST_LINGUAS= | ||
12150 | if test -n "$ALL_LINGUAS"; then | ||
12151 | for presentlang in $ALL_LINGUAS; do | ||
12152 | useit=no | ||
12153 | if test "%UNSET%" != "$LINGUAS"; then | ||
12154 | desiredlanguages="$LINGUAS" | ||
12155 | else | ||
12156 | desiredlanguages="$ALL_LINGUAS" | ||
12157 | fi | ||
12158 | for desiredlang in $desiredlanguages; do | ||
12159 | # Use the presentlang catalog if desiredlang is | ||
12160 | # a. equal to presentlang, or | ||
12161 | # b. a variant of presentlang (because in this case, | ||
12162 | # presentlang can be used as a fallback for messages | ||
12163 | # which are not translated in the desiredlang catalog). | ||
12164 | case "$desiredlang" in | ||
12165 | "$presentlang"*) useit=yes;; | ||
12166 | esac | ||
12167 | done | ||
12168 | if test $useit = yes; then | ||
12169 | INST_LINGUAS="$INST_LINGUAS $presentlang" | ||
12170 | fi | ||
12171 | done | ||
12172 | fi | ||
12173 | CATALOGS= | ||
12174 | if test -n "$INST_LINGUAS"; then | ||
12175 | for lang in $INST_LINGUAS; do | ||
12176 | CATALOGS="$CATALOGS $lang.gmo" | ||
12177 | done | ||
12178 | fi | ||
12179 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | ||
12180 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | ||
12181 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | ||
12182 | if test -f "$f"; then | ||
12183 | case "$f" in | ||
12184 | *.orig | *.bak | *~) ;; | ||
12185 | *) cat "$f" >> "$ac_dir/Makefile" ;; | ||
12186 | esac | ||
12187 | fi | ||
12188 | done | ||
12189 | fi | ||
12190 | ;; | ||
12191 | esac | ||
12192 | done ;; | ||
12193 | esac | ||
12194 | done | ||
12195 | _ACEOF | ||
12196 | |||
12197 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
12198 | |||
12199 | { (exit 0); exit 0; } | ||
12200 | _ACEOF | ||
12201 | chmod +x $CONFIG_STATUS | ||
12202 | ac_clean_files=$ac_clean_files_save | ||
12203 | |||
12204 | |||
12205 | # configure is writing to config.log, and then calls config.status. | ||
12206 | # config.status does its own redirection, appending to config.log. | ||
12207 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
12208 | # by configure, so config.status won't be able to write to it; its | ||
12209 | # output is simply discarded. So we exec the FD to /dev/null, | ||
12210 | # effectively closing config.log, so it can be properly (re)opened and | ||
12211 | # appended to by config.status. When coming back to configure, we | ||
12212 | # need to make the FD available again. | ||
12213 | if test "$no_create" != yes; then | ||
12214 | ac_cs_success=: | ||
12215 | ac_config_status_args= | ||
12216 | test "$silent" = yes && | ||
12217 | ac_config_status_args="$ac_config_status_args --quiet" | ||
12218 | exec 5>/dev/null | ||
12219 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
12220 | exec 5>>config.log | ||
12221 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
12222 | # would make configure fail if this is the last instruction. | ||
12223 | $ac_cs_success || { (exit 1); exit 1; } | ||
12224 | fi | ||
12225 | |||