]>
Commit | Line | Data |
---|---|---|
eff02e4f ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.64 for package-unused version-unused. | |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
121 | PS1='$ ' | |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
126 | LC_ALL=C | |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
d4c059d5 | 172 | test \$(( 1 + 1 )) = 2 || exit 1 |
eff02e4f ILT |
173 | |
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
d4c059d5 | 180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
eff02e4f ILT |
181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
192 | do | |
193 | IFS=$as_save_IFS | |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
236 | else | |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
241 | fi | |
242 | exit 1 | |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
380 | ||
381 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
383 | as_expr=expr | |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
389 | as_basename=basename | |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
399 | ||
400 | as_me=`$as_basename -- "$0" || | |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
402 | X"$0" : 'X\(//\)$' \| \ | |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
418 | ||
419 | # Avoid depending upon Character Ranges. | |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
426 | ||
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
436 | sed ' | |
437 | s/[$]LINENO.*/&-/ | |
438 | t lineno | |
439 | b | |
440 | :lineno | |
441 | N | |
442 | :loop | |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
444 | t loop | |
445 | s/-\n.*// | |
446 | ' >$as_me.lineno && | |
447 | chmod +x "$as_me.lineno" || | |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
449 | ||
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
452 | # original and so on. Autoconf is especially sensitive to this). | |
453 | . "./$as_me.lineno" | |
454 | # Exit status is that of the last command. | |
455 | exit | |
456 | } | |
457 | ||
458 | ECHO_C= ECHO_N= ECHO_T= | |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
469 | esac | |
470 | ||
471 | rm -f conf$$ conf$$.exe conf$$.file | |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
474 | else | |
475 | rm -f conf$$.dir | |
476 | mkdir conf$$.dir 2>/dev/null | |
477 | fi | |
478 | if (echo >conf$$.file) 2>/dev/null; then | |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s='ln -s' | |
481 | # ... but there are two gotchas: | |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | else | |
493 | as_ln_s='cp -p' | |
494 | fi | |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
496 | rmdir conf$$.dir 2>/dev/null | |
497 | ||
498 | if mkdir -p . 2>/dev/null; then | |
499 | as_mkdir_p='mkdir -p "$as_dir"' | |
500 | else | |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
505 | if test -x / >/dev/null 2>&1; then | |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
527 | ||
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | ||
536 | ||
537 | exec 7<&0 </dev/null 6>&1 | |
538 | ||
539 | # Name of the host. | |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
544 | # | |
545 | # Initializations. | |
546 | # | |
547 | ac_default_prefix=/usr/local | |
548 | ac_clean_files= | |
549 | ac_config_libobj_dir=. | |
550 | LIBOBJS= | |
551 | cross_compiling=no | |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
555 | ||
556 | # Identity of this package. | |
557 | PACKAGE_NAME='package-unused' | |
558 | PACKAGE_TARNAME='libbacktrace' | |
559 | PACKAGE_VERSION='version-unused' | |
560 | PACKAGE_STRING='package-unused version-unused' | |
561 | PACKAGE_BUGREPORT='' | |
562 | PACKAGE_URL='' | |
563 | ||
564 | ac_unique_file="backtrace.h" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
568 | #ifdef HAVE_SYS_TYPES_H | |
569 | # include <sys/types.h> | |
570 | #endif | |
571 | #ifdef HAVE_SYS_STAT_H | |
572 | # include <sys/stat.h> | |
573 | #endif | |
574 | #ifdef STDC_HEADERS | |
575 | # include <stdlib.h> | |
576 | # include <stddef.h> | |
577 | #else | |
578 | # ifdef HAVE_STDLIB_H | |
579 | # include <stdlib.h> | |
580 | # endif | |
581 | #endif | |
582 | #ifdef HAVE_STRING_H | |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
584 | # include <memory.h> | |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
588 | #ifdef HAVE_STRINGS_H | |
589 | # include <strings.h> | |
590 | #endif | |
591 | #ifdef HAVE_INTTYPES_H | |
592 | # include <inttypes.h> | |
593 | #endif | |
594 | #ifdef HAVE_STDINT_H | |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
598 | # include <unistd.h> | |
599 | #endif" | |
600 | ||
601 | ac_subst_vars='am__EXEEXT_FALSE | |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | NATIVE_FALSE | |
606 | NATIVE_TRUE | |
607 | BACKTRACE_USES_MALLOC | |
608 | ALLOC_FILE | |
609 | VIEW_FILE | |
610 | BACKTRACE_SUPPORTED | |
611 | FORMAT_FILE | |
612 | BACKTRACE_SUPPORTS_THREADS | |
613 | PIC_FLAG | |
614 | WARN_FLAGS | |
56195009 | 615 | EXTRA_FLAGS |
eff02e4f ILT |
616 | BACKTRACE_FILE |
617 | multi_basedir | |
eff02e4f ILT |
618 | OTOOL64 |
619 | OTOOL | |
620 | LIPO | |
621 | NMEDIT | |
622 | DSYMUTIL | |
623 | AR | |
624 | OBJDUMP | |
625 | LN_S | |
626 | NM | |
627 | ac_ct_DUMPBIN | |
628 | DUMPBIN | |
629 | LD | |
630 | FGREP | |
eff02e4f ILT |
631 | SED |
632 | LIBTOOL | |
633 | RANLIB | |
d4c059d5 ILT |
634 | MAINT |
635 | MAINTAINER_MODE_FALSE | |
636 | MAINTAINER_MODE_TRUE | |
eff02e4f ILT |
637 | am__untar |
638 | am__tar | |
639 | AMTAR | |
640 | am__leading_dot | |
641 | SET_MAKE | |
642 | AWK | |
643 | mkdir_p | |
644 | MKDIR_P | |
645 | INSTALL_STRIP_PROGRAM | |
646 | STRIP | |
647 | install_sh | |
648 | MAKEINFO | |
649 | AUTOHEADER | |
650 | AUTOMAKE | |
651 | AUTOCONF | |
652 | ACLOCAL | |
653 | VERSION | |
654 | PACKAGE | |
655 | CYGPATH_W | |
656 | am__isrc | |
657 | INSTALL_DATA | |
658 | INSTALL_SCRIPT | |
659 | INSTALL_PROGRAM | |
660 | libtool_VERSION | |
d4c059d5 ILT |
661 | EGREP |
662 | GREP | |
663 | CPP | |
664 | OBJEXT | |
665 | EXEEXT | |
666 | ac_ct_CC | |
667 | CPPFLAGS | |
668 | LDFLAGS | |
669 | CFLAGS | |
670 | CC | |
eff02e4f ILT |
671 | target_os |
672 | target_vendor | |
673 | target_cpu | |
674 | target | |
675 | host_os | |
676 | host_vendor | |
677 | host_cpu | |
678 | host | |
679 | build_os | |
680 | build_vendor | |
681 | build_cpu | |
682 | build | |
683 | target_alias | |
684 | host_alias | |
685 | build_alias | |
686 | LIBS | |
687 | ECHO_T | |
688 | ECHO_N | |
689 | ECHO_C | |
690 | DEFS | |
691 | mandir | |
692 | localedir | |
693 | libdir | |
694 | psdir | |
695 | pdfdir | |
696 | dvidir | |
697 | htmldir | |
698 | infodir | |
699 | docdir | |
700 | oldincludedir | |
701 | includedir | |
702 | localstatedir | |
703 | sharedstatedir | |
704 | sysconfdir | |
705 | datadir | |
706 | datarootdir | |
707 | libexecdir | |
708 | sbindir | |
709 | bindir | |
710 | program_transform_name | |
711 | prefix | |
712 | exec_prefix | |
713 | PACKAGE_URL | |
714 | PACKAGE_BUGREPORT | |
715 | PACKAGE_STRING | |
716 | PACKAGE_VERSION | |
717 | PACKAGE_TARNAME | |
718 | PACKAGE_NAME | |
719 | PATH_SEPARATOR | |
720 | SHELL' | |
721 | ac_subst_files='' | |
722 | ac_user_opts=' | |
723 | enable_option_checking | |
724 | enable_maintainer_mode | |
725 | with_target_subdir | |
eff02e4f ILT |
726 | enable_shared |
727 | enable_static | |
728 | with_pic | |
729 | enable_fast_install | |
730 | with_gnu_ld | |
731 | enable_libtool_lock | |
732 | enable_multilib | |
733 | with_system_libunwind | |
459260ec | 734 | enable_host_shared |
eff02e4f ILT |
735 | ' |
736 | ac_precious_vars='build_alias | |
737 | host_alias | |
738 | target_alias | |
d4c059d5 ILT |
739 | CC |
740 | CFLAGS | |
741 | LDFLAGS | |
742 | LIBS | |
743 | CPPFLAGS | |
744 | CPP' | |
eff02e4f ILT |
745 | |
746 | ||
747 | # Initialize some variables set by options. | |
748 | ac_init_help= | |
749 | ac_init_version=false | |
750 | ac_unrecognized_opts= | |
751 | ac_unrecognized_sep= | |
752 | # The variables have the same names as the options, with | |
753 | # dashes changed to underlines. | |
754 | cache_file=/dev/null | |
755 | exec_prefix=NONE | |
756 | no_create= | |
757 | no_recursion= | |
758 | prefix=NONE | |
759 | program_prefix=NONE | |
760 | program_suffix=NONE | |
761 | program_transform_name=s,x,x, | |
762 | silent= | |
763 | site= | |
764 | srcdir= | |
765 | verbose= | |
766 | x_includes=NONE | |
767 | x_libraries=NONE | |
768 | ||
769 | # Installation directory options. | |
770 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
771 | # and all the variables that are supposed to be based on exec_prefix | |
772 | # by default will actually change. | |
773 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
774 | # (The list follows the same order as the GNU Coding Standards.) | |
775 | bindir='${exec_prefix}/bin' | |
776 | sbindir='${exec_prefix}/sbin' | |
777 | libexecdir='${exec_prefix}/libexec' | |
778 | datarootdir='${prefix}/share' | |
779 | datadir='${datarootdir}' | |
780 | sysconfdir='${prefix}/etc' | |
781 | sharedstatedir='${prefix}/com' | |
782 | localstatedir='${prefix}/var' | |
783 | includedir='${prefix}/include' | |
784 | oldincludedir='/usr/include' | |
785 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
786 | infodir='${datarootdir}/info' | |
787 | htmldir='${docdir}' | |
788 | dvidir='${docdir}' | |
789 | pdfdir='${docdir}' | |
790 | psdir='${docdir}' | |
791 | libdir='${exec_prefix}/lib' | |
792 | localedir='${datarootdir}/locale' | |
793 | mandir='${datarootdir}/man' | |
794 | ||
795 | ac_prev= | |
796 | ac_dashdash= | |
797 | for ac_option | |
798 | do | |
799 | # If the previous option needs an argument, assign it. | |
800 | if test -n "$ac_prev"; then | |
801 | eval $ac_prev=\$ac_option | |
802 | ac_prev= | |
803 | continue | |
804 | fi | |
805 | ||
806 | case $ac_option in | |
807 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
808 | *) ac_optarg=yes ;; | |
809 | esac | |
810 | ||
811 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
812 | ||
813 | case $ac_dashdash$ac_option in | |
814 | --) | |
815 | ac_dashdash=yes ;; | |
816 | ||
817 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
818 | ac_prev=bindir ;; | |
819 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
820 | bindir=$ac_optarg ;; | |
821 | ||
822 | -build | --build | --buil | --bui | --bu) | |
823 | ac_prev=build_alias ;; | |
824 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
825 | build_alias=$ac_optarg ;; | |
826 | ||
827 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
828 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
829 | ac_prev=cache_file ;; | |
830 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
831 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
832 | cache_file=$ac_optarg ;; | |
833 | ||
834 | --config-cache | -C) | |
835 | cache_file=config.cache ;; | |
836 | ||
837 | -datadir | --datadir | --datadi | --datad) | |
838 | ac_prev=datadir ;; | |
839 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
840 | datadir=$ac_optarg ;; | |
841 | ||
842 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
843 | | --dataroo | --dataro | --datar) | |
844 | ac_prev=datarootdir ;; | |
845 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
846 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
847 | datarootdir=$ac_optarg ;; | |
848 | ||
849 | -disable-* | --disable-*) | |
850 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
851 | # Reject names that are not valid shell variable names. | |
852 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
853 | as_fn_error "invalid feature name: $ac_useropt" | |
854 | ac_useropt_orig=$ac_useropt | |
855 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
856 | case $ac_user_opts in | |
857 | *" | |
858 | "enable_$ac_useropt" | |
859 | "*) ;; | |
860 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
861 | ac_unrecognized_sep=', ';; | |
862 | esac | |
863 | eval enable_$ac_useropt=no ;; | |
864 | ||
865 | -docdir | --docdir | --docdi | --doc | --do) | |
866 | ac_prev=docdir ;; | |
867 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
868 | docdir=$ac_optarg ;; | |
869 | ||
870 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
871 | ac_prev=dvidir ;; | |
872 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
873 | dvidir=$ac_optarg ;; | |
874 | ||
875 | -enable-* | --enable-*) | |
876 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
877 | # Reject names that are not valid shell variable names. | |
878 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
879 | as_fn_error "invalid feature name: $ac_useropt" | |
880 | ac_useropt_orig=$ac_useropt | |
881 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
882 | case $ac_user_opts in | |
883 | *" | |
884 | "enable_$ac_useropt" | |
885 | "*) ;; | |
886 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
887 | ac_unrecognized_sep=', ';; | |
888 | esac | |
889 | eval enable_$ac_useropt=\$ac_optarg ;; | |
890 | ||
891 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
892 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
893 | | --exec | --exe | --ex) | |
894 | ac_prev=exec_prefix ;; | |
895 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
896 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
897 | | --exec=* | --exe=* | --ex=*) | |
898 | exec_prefix=$ac_optarg ;; | |
899 | ||
900 | -gas | --gas | --ga | --g) | |
901 | # Obsolete; use --with-gas. | |
902 | with_gas=yes ;; | |
903 | ||
904 | -help | --help | --hel | --he | -h) | |
905 | ac_init_help=long ;; | |
906 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
907 | ac_init_help=recursive ;; | |
908 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
909 | ac_init_help=short ;; | |
910 | ||
911 | -host | --host | --hos | --ho) | |
912 | ac_prev=host_alias ;; | |
913 | -host=* | --host=* | --hos=* | --ho=*) | |
914 | host_alias=$ac_optarg ;; | |
915 | ||
916 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
917 | ac_prev=htmldir ;; | |
918 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
919 | | --ht=*) | |
920 | htmldir=$ac_optarg ;; | |
921 | ||
922 | -includedir | --includedir | --includedi | --included | --include \ | |
923 | | --includ | --inclu | --incl | --inc) | |
924 | ac_prev=includedir ;; | |
925 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
926 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
927 | includedir=$ac_optarg ;; | |
928 | ||
929 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
930 | ac_prev=infodir ;; | |
931 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
932 | infodir=$ac_optarg ;; | |
933 | ||
934 | -libdir | --libdir | --libdi | --libd) | |
935 | ac_prev=libdir ;; | |
936 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
937 | libdir=$ac_optarg ;; | |
938 | ||
939 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
940 | | --libexe | --libex | --libe) | |
941 | ac_prev=libexecdir ;; | |
942 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
943 | | --libexe=* | --libex=* | --libe=*) | |
944 | libexecdir=$ac_optarg ;; | |
945 | ||
946 | -localedir | --localedir | --localedi | --localed | --locale) | |
947 | ac_prev=localedir ;; | |
948 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
949 | localedir=$ac_optarg ;; | |
950 | ||
951 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
952 | | --localstate | --localstat | --localsta | --localst | --locals) | |
953 | ac_prev=localstatedir ;; | |
954 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
955 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
956 | localstatedir=$ac_optarg ;; | |
957 | ||
958 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
959 | ac_prev=mandir ;; | |
960 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
961 | mandir=$ac_optarg ;; | |
962 | ||
963 | -nfp | --nfp | --nf) | |
964 | # Obsolete; use --without-fp. | |
965 | with_fp=no ;; | |
966 | ||
967 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
968 | | --no-cr | --no-c | -n) | |
969 | no_create=yes ;; | |
970 | ||
971 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
972 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
973 | no_recursion=yes ;; | |
974 | ||
975 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
976 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
977 | | --oldin | --oldi | --old | --ol | --o) | |
978 | ac_prev=oldincludedir ;; | |
979 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
980 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
981 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
982 | oldincludedir=$ac_optarg ;; | |
983 | ||
984 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
985 | ac_prev=prefix ;; | |
986 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
987 | prefix=$ac_optarg ;; | |
988 | ||
989 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
990 | | --program-pre | --program-pr | --program-p) | |
991 | ac_prev=program_prefix ;; | |
992 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
993 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
994 | program_prefix=$ac_optarg ;; | |
995 | ||
996 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
997 | | --program-suf | --program-su | --program-s) | |
998 | ac_prev=program_suffix ;; | |
999 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1000 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1001 | program_suffix=$ac_optarg ;; | |
1002 | ||
1003 | -program-transform-name | --program-transform-name \ | |
1004 | | --program-transform-nam | --program-transform-na \ | |
1005 | | --program-transform-n | --program-transform- \ | |
1006 | | --program-transform | --program-transfor \ | |
1007 | | --program-transfo | --program-transf \ | |
1008 | | --program-trans | --program-tran \ | |
1009 | | --progr-tra | --program-tr | --program-t) | |
1010 | ac_prev=program_transform_name ;; | |
1011 | -program-transform-name=* | --program-transform-name=* \ | |
1012 | | --program-transform-nam=* | --program-transform-na=* \ | |
1013 | | --program-transform-n=* | --program-transform-=* \ | |
1014 | | --program-transform=* | --program-transfor=* \ | |
1015 | | --program-transfo=* | --program-transf=* \ | |
1016 | | --program-trans=* | --program-tran=* \ | |
1017 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1018 | program_transform_name=$ac_optarg ;; | |
1019 | ||
1020 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1021 | ac_prev=pdfdir ;; | |
1022 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1023 | pdfdir=$ac_optarg ;; | |
1024 | ||
1025 | -psdir | --psdir | --psdi | --psd | --ps) | |
1026 | ac_prev=psdir ;; | |
1027 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1028 | psdir=$ac_optarg ;; | |
1029 | ||
1030 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1031 | | -silent | --silent | --silen | --sile | --sil) | |
1032 | silent=yes ;; | |
1033 | ||
1034 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1035 | ac_prev=sbindir ;; | |
1036 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1037 | | --sbi=* | --sb=*) | |
1038 | sbindir=$ac_optarg ;; | |
1039 | ||
1040 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1041 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1042 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1043 | | --sha | --sh) | |
1044 | ac_prev=sharedstatedir ;; | |
1045 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1046 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1047 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1048 | | --sha=* | --sh=*) | |
1049 | sharedstatedir=$ac_optarg ;; | |
1050 | ||
1051 | -site | --site | --sit) | |
1052 | ac_prev=site ;; | |
1053 | -site=* | --site=* | --sit=*) | |
1054 | site=$ac_optarg ;; | |
1055 | ||
1056 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1057 | ac_prev=srcdir ;; | |
1058 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1059 | srcdir=$ac_optarg ;; | |
1060 | ||
1061 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1062 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1063 | ac_prev=sysconfdir ;; | |
1064 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1065 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1066 | sysconfdir=$ac_optarg ;; | |
1067 | ||
1068 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1069 | ac_prev=target_alias ;; | |
1070 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1071 | target_alias=$ac_optarg ;; | |
1072 | ||
1073 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1074 | verbose=yes ;; | |
1075 | ||
1076 | -version | --version | --versio | --versi | --vers | -V) | |
1077 | ac_init_version=: ;; | |
1078 | ||
1079 | -with-* | --with-*) | |
1080 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1081 | # Reject names that are not valid shell variable names. | |
1082 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1083 | as_fn_error "invalid package name: $ac_useropt" | |
1084 | ac_useropt_orig=$ac_useropt | |
1085 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1086 | case $ac_user_opts in | |
1087 | *" | |
1088 | "with_$ac_useropt" | |
1089 | "*) ;; | |
1090 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1091 | ac_unrecognized_sep=', ';; | |
1092 | esac | |
1093 | eval with_$ac_useropt=\$ac_optarg ;; | |
1094 | ||
1095 | -without-* | --without-*) | |
1096 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1097 | # Reject names that are not valid shell variable names. | |
1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1099 | as_fn_error "invalid package name: $ac_useropt" | |
1100 | ac_useropt_orig=$ac_useropt | |
1101 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1102 | case $ac_user_opts in | |
1103 | *" | |
1104 | "with_$ac_useropt" | |
1105 | "*) ;; | |
1106 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1107 | ac_unrecognized_sep=', ';; | |
1108 | esac | |
1109 | eval with_$ac_useropt=no ;; | |
1110 | ||
1111 | --x) | |
1112 | # Obsolete; use --with-x. | |
1113 | with_x=yes ;; | |
1114 | ||
1115 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1116 | | --x-incl | --x-inc | --x-in | --x-i) | |
1117 | ac_prev=x_includes ;; | |
1118 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1119 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1120 | x_includes=$ac_optarg ;; | |
1121 | ||
1122 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1123 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1124 | ac_prev=x_libraries ;; | |
1125 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1126 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1127 | x_libraries=$ac_optarg ;; | |
1128 | ||
1129 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1130 | Try \`$0 --help' for more information." | |
1131 | ;; | |
1132 | ||
1133 | *=*) | |
1134 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1135 | # Reject names that are not valid shell variable names. | |
1136 | case $ac_envvar in #( | |
1137 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1138 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1139 | esac | |
1140 | eval $ac_envvar=\$ac_optarg | |
1141 | export $ac_envvar ;; | |
1142 | ||
1143 | *) | |
1144 | # FIXME: should be removed in autoconf 3.0. | |
1145 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1146 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1147 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1148 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1149 | ;; | |
1150 | ||
1151 | esac | |
1152 | done | |
1153 | ||
1154 | if test -n "$ac_prev"; then | |
1155 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1156 | as_fn_error "missing argument to $ac_option" | |
1157 | fi | |
1158 | ||
1159 | if test -n "$ac_unrecognized_opts"; then | |
1160 | case $enable_option_checking in | |
1161 | no) ;; | |
1162 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1163 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1164 | esac | |
1165 | fi | |
1166 | ||
1167 | # Check all directory arguments for consistency. | |
1168 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1169 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1170 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1171 | libdir localedir mandir | |
1172 | do | |
1173 | eval ac_val=\$$ac_var | |
1174 | # Remove trailing slashes. | |
1175 | case $ac_val in | |
1176 | */ ) | |
1177 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1178 | eval $ac_var=\$ac_val;; | |
1179 | esac | |
1180 | # Be sure to have absolute directory names. | |
1181 | case $ac_val in | |
1182 | [\\/$]* | ?:[\\/]* ) continue;; | |
1183 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1184 | esac | |
1185 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1186 | done | |
1187 | ||
1188 | # There might be people who depend on the old broken behavior: `$host' | |
1189 | # used to hold the argument of --host etc. | |
1190 | # FIXME: To remove some day. | |
1191 | build=$build_alias | |
1192 | host=$host_alias | |
1193 | target=$target_alias | |
1194 | ||
1195 | # FIXME: To remove some day. | |
1196 | if test "x$host_alias" != x; then | |
1197 | if test "x$build_alias" = x; then | |
1198 | cross_compiling=maybe | |
1199 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1200 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1201 | elif test "x$build_alias" != "x$host_alias"; then | |
1202 | cross_compiling=yes | |
1203 | fi | |
1204 | fi | |
1205 | ||
1206 | ac_tool_prefix= | |
1207 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1208 | ||
1209 | test "$silent" = yes && exec 6>/dev/null | |
1210 | ||
1211 | ||
1212 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1213 | ac_ls_di=`ls -di .` && | |
1214 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1215 | as_fn_error "working directory cannot be determined" | |
1216 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1217 | as_fn_error "pwd does not report name of working directory" | |
1218 | ||
1219 | ||
1220 | # Find the source files, if location was not specified. | |
1221 | if test -z "$srcdir"; then | |
1222 | ac_srcdir_defaulted=yes | |
1223 | # Try the directory containing this script, then the parent directory. | |
1224 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1225 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1226 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1227 | X"$as_myself" : 'X\(//\)$' \| \ | |
1228 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1229 | $as_echo X"$as_myself" | | |
1230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1231 | s//\1/ | |
1232 | q | |
1233 | } | |
1234 | /^X\(\/\/\)[^/].*/{ | |
1235 | s//\1/ | |
1236 | q | |
1237 | } | |
1238 | /^X\(\/\/\)$/{ | |
1239 | s//\1/ | |
1240 | q | |
1241 | } | |
1242 | /^X\(\/\).*/{ | |
1243 | s//\1/ | |
1244 | q | |
1245 | } | |
1246 | s/.*/./; q'` | |
1247 | srcdir=$ac_confdir | |
1248 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1249 | srcdir=.. | |
1250 | fi | |
1251 | else | |
1252 | ac_srcdir_defaulted=no | |
1253 | fi | |
1254 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1255 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1256 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1257 | fi | |
1258 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1259 | ac_abs_confdir=`( | |
1260 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1261 | pwd)` | |
1262 | # When building in place, set srcdir=. | |
1263 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1264 | srcdir=. | |
1265 | fi | |
1266 | # Remove unnecessary trailing slashes from srcdir. | |
1267 | # Double slashes in file names in object file debugging info | |
1268 | # mess up M-x gdb in Emacs. | |
1269 | case $srcdir in | |
1270 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1271 | esac | |
1272 | for ac_var in $ac_precious_vars; do | |
1273 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1274 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1275 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1276 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1277 | done | |
1278 | ||
1279 | # | |
1280 | # Report the --help message. | |
1281 | # | |
1282 | if test "$ac_init_help" = "long"; then | |
1283 | # Omit some internal or obsolete options to make the list less imposing. | |
1284 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1285 | cat <<_ACEOF | |
1286 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1287 | ||
1288 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1289 | ||
1290 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1291 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1292 | ||
1293 | Defaults for the options are specified in brackets. | |
1294 | ||
1295 | Configuration: | |
1296 | -h, --help display this help and exit | |
1297 | --help=short display options specific to this package | |
1298 | --help=recursive display the short help of all the included packages | |
1299 | -V, --version display version information and exit | |
1300 | -q, --quiet, --silent do not print \`checking...' messages | |
1301 | --cache-file=FILE cache test results in FILE [disabled] | |
1302 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1303 | -n, --no-create do not create output files | |
1304 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1305 | ||
1306 | Installation directories: | |
1307 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1308 | [$ac_default_prefix] | |
1309 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1310 | [PREFIX] | |
1311 | ||
1312 | By default, \`make install' will install all the files in | |
1313 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1314 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1315 | for instance \`--prefix=\$HOME'. | |
1316 | ||
1317 | For better control, use the options below. | |
1318 | ||
1319 | Fine tuning of the installation directories: | |
1320 | --bindir=DIR user executables [EPREFIX/bin] | |
1321 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1322 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1323 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1324 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1325 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1326 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1327 | --includedir=DIR C header files [PREFIX/include] | |
1328 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1329 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1330 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1331 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1332 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1333 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1334 | --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace] | |
1335 | --htmldir=DIR html documentation [DOCDIR] | |
1336 | --dvidir=DIR dvi documentation [DOCDIR] | |
1337 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1338 | --psdir=DIR ps documentation [DOCDIR] | |
1339 | _ACEOF | |
1340 | ||
1341 | cat <<\_ACEOF | |
1342 | ||
1343 | Program names: | |
1344 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1345 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1346 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1347 | ||
1348 | System types: | |
1349 | --build=BUILD configure for building on BUILD [guessed] | |
1350 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1351 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1352 | _ACEOF | |
1353 | fi | |
1354 | ||
1355 | if test -n "$ac_init_help"; then | |
1356 | case $ac_init_help in | |
1357 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1358 | esac | |
1359 | cat <<\_ACEOF | |
1360 | ||
1361 | Optional Features: | |
1362 | --disable-option-checking ignore unrecognized --enable/--with options | |
1363 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1364 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d4c059d5 ILT |
1365 | --enable-maintainer-mode enable make rules and dependencies not useful |
1366 | (and sometimes confusing) to the casual installer | |
eff02e4f ILT |
1367 | --enable-shared[=PKGS] build shared libraries [default=no] |
1368 | --enable-static[=PKGS] build static libraries [default=yes] | |
1369 | --enable-fast-install[=PKGS] | |
1370 | optimize for fast installation [default=yes] | |
1371 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1372 | --enable-multilib build many library versions (default) | |
459260ec | 1373 | --enable-host-shared build host code as shared libraries |
eff02e4f ILT |
1374 | |
1375 | Optional Packages: | |
1376 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1377 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1378 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1379 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1380 | both] | |
1381 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1382 | --with-system-libunwind use installed libunwind | |
1383 | ||
1384 | Some influential environment variables: | |
1385 | CC C compiler command | |
1386 | CFLAGS C compiler flags | |
1387 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1388 | nonstandard directory <lib dir> | |
1389 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1390 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1391 | you have headers in a nonstandard directory <include dir> | |
1392 | CPP C preprocessor | |
1393 | ||
1394 | Use these variables to override the choices made by `configure' or to help | |
1395 | it to find libraries and programs with nonstandard names/locations. | |
1396 | ||
1397 | Report bugs to the package provider. | |
1398 | _ACEOF | |
1399 | ac_status=$? | |
1400 | fi | |
1401 | ||
1402 | if test "$ac_init_help" = "recursive"; then | |
1403 | # If there are subdirs, report their specific --help. | |
1404 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1405 | test -d "$ac_dir" || | |
1406 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1407 | continue | |
1408 | ac_builddir=. | |
1409 | ||
1410 | case "$ac_dir" in | |
1411 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1412 | *) | |
1413 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1414 | # A ".." for each directory in $ac_dir_suffix. | |
1415 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1416 | case $ac_top_builddir_sub in | |
1417 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1418 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1419 | esac ;; | |
1420 | esac | |
1421 | ac_abs_top_builddir=$ac_pwd | |
1422 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1423 | # for backward compatibility: | |
1424 | ac_top_builddir=$ac_top_build_prefix | |
1425 | ||
1426 | case $srcdir in | |
1427 | .) # We are building in place. | |
1428 | ac_srcdir=. | |
1429 | ac_top_srcdir=$ac_top_builddir_sub | |
1430 | ac_abs_top_srcdir=$ac_pwd ;; | |
1431 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1432 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1433 | ac_top_srcdir=$srcdir | |
1434 | ac_abs_top_srcdir=$srcdir ;; | |
1435 | *) # Relative name. | |
1436 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1437 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1438 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1439 | esac | |
1440 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1441 | ||
1442 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1443 | # Check for guested configure. | |
1444 | if test -f "$ac_srcdir/configure.gnu"; then | |
1445 | echo && | |
1446 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1447 | elif test -f "$ac_srcdir/configure"; then | |
1448 | echo && | |
1449 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1450 | else | |
1451 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1452 | fi || ac_status=$? | |
1453 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1454 | done | |
1455 | fi | |
1456 | ||
1457 | test -n "$ac_init_help" && exit $ac_status | |
1458 | if $ac_init_version; then | |
1459 | cat <<\_ACEOF | |
1460 | package-unused configure version-unused | |
1461 | generated by GNU Autoconf 2.64 | |
1462 | ||
1463 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1464 | This configure script is free software; the Free Software Foundation | |
1465 | gives unlimited permission to copy, distribute and modify it. | |
1466 | _ACEOF | |
1467 | exit | |
1468 | fi | |
1469 | ||
1470 | ## ------------------------ ## | |
1471 | ## Autoconf initialization. ## | |
1472 | ## ------------------------ ## | |
1473 | ||
1474 | # ac_fn_c_try_compile LINENO | |
1475 | # -------------------------- | |
1476 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1477 | ac_fn_c_try_compile () | |
1478 | { | |
1479 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1480 | rm -f conftest.$ac_objext | |
1481 | if { { ac_try="$ac_compile" | |
1482 | case "(($ac_try" in | |
1483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1484 | *) ac_try_echo=$ac_try;; | |
1485 | esac | |
1486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1487 | $as_echo "$ac_try_echo"; } >&5 | |
1488 | (eval "$ac_compile") 2>conftest.err | |
1489 | ac_status=$? | |
1490 | if test -s conftest.err; then | |
1491 | grep -v '^ *+' conftest.err >conftest.er1 | |
1492 | cat conftest.er1 >&5 | |
1493 | mv -f conftest.er1 conftest.err | |
1494 | fi | |
1495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1496 | test $ac_status = 0; } && { | |
1497 | test -z "$ac_c_werror_flag" || | |
1498 | test ! -s conftest.err | |
1499 | } && test -s conftest.$ac_objext; then : | |
1500 | ac_retval=0 | |
1501 | else | |
1502 | $as_echo "$as_me: failed program was:" >&5 | |
1503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1504 | ||
1505 | ac_retval=1 | |
1506 | fi | |
1507 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1508 | return $ac_retval | |
1509 | ||
1510 | } # ac_fn_c_try_compile | |
1511 | ||
d4c059d5 ILT |
1512 | # ac_fn_c_try_cpp LINENO |
1513 | # ---------------------- | |
1514 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1515 | ac_fn_c_try_cpp () | |
eff02e4f ILT |
1516 | { |
1517 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d4c059d5 | 1518 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
eff02e4f ILT |
1519 | case "(($ac_try" in |
1520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1521 | *) ac_try_echo=$ac_try;; | |
1522 | esac | |
1523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1524 | $as_echo "$ac_try_echo"; } >&5 | |
d4c059d5 | 1525 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
eff02e4f ILT |
1526 | ac_status=$? |
1527 | if test -s conftest.err; then | |
1528 | grep -v '^ *+' conftest.err >conftest.er1 | |
1529 | cat conftest.er1 >&5 | |
1530 | mv -f conftest.er1 conftest.err | |
1531 | fi | |
1532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d4c059d5 ILT |
1533 | test $ac_status = 0; } >/dev/null && { |
1534 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
eff02e4f | 1535 | test ! -s conftest.err |
eff02e4f ILT |
1536 | }; then : |
1537 | ac_retval=0 | |
1538 | else | |
1539 | $as_echo "$as_me: failed program was:" >&5 | |
1540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1541 | ||
d4c059d5 | 1542 | ac_retval=1 |
eff02e4f | 1543 | fi |
eff02e4f ILT |
1544 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1545 | return $ac_retval | |
1546 | ||
d4c059d5 | 1547 | } # ac_fn_c_try_cpp |
eff02e4f | 1548 | |
d4c059d5 | 1549 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
eff02e4f | 1550 | # ------------------------------------------------------- |
d4c059d5 ILT |
1551 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1552 | # the include files in INCLUDES and setting the cache variable VAR | |
1553 | # accordingly. | |
1554 | ac_fn_c_check_header_mongrel () | |
eff02e4f ILT |
1555 | { |
1556 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d4c059d5 | 1557 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
eff02e4f ILT |
1558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1559 | $as_echo_n "checking for $2... " >&6; } | |
1560 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1561 | $as_echo_n "(cached) " >&6 | |
d4c059d5 ILT |
1562 | fi |
1563 | eval ac_res=\$$3 | |
1564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1565 | $as_echo "$ac_res" >&6; } | |
eff02e4f | 1566 | else |
d4c059d5 ILT |
1567 | # Is the header compilable? |
1568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1569 | $as_echo_n "checking $2 usability... " >&6; } | |
1570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eff02e4f ILT |
1571 | /* end confdefs.h. */ |
1572 | $4 | |
1573 | #include <$2> | |
1574 | _ACEOF | |
1575 | if ac_fn_c_try_compile "$LINENO"; then : | |
d4c059d5 | 1576 | ac_header_compiler=yes |
eff02e4f | 1577 | else |
d4c059d5 | 1578 | ac_header_compiler=no |
eff02e4f ILT |
1579 | fi |
1580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d4c059d5 ILT |
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1582 | $as_echo "$ac_header_compiler" >&6; } | |
eff02e4f | 1583 | |
d4c059d5 ILT |
1584 | # Is the header present? |
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1586 | $as_echo_n "checking $2 presence... " >&6; } | |
1587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1588 | /* end confdefs.h. */ | |
1589 | #include <$2> | |
1590 | _ACEOF | |
1591 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1592 | ac_header_preproc=yes | |
1593 | else | |
1594 | ac_header_preproc=no | |
1595 | fi | |
1596 | rm -f conftest.err conftest.$ac_ext | |
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1598 | $as_echo "$ac_header_preproc" >&6; } | |
eff02e4f | 1599 | |
d4c059d5 ILT |
1600 | # So? What about this header? |
1601 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1602 | yes:no: ) | |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1604 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1606 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1607 | ;; | |
1608 | no:yes:* ) | |
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1610 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1612 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1614 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1616 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1618 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1619 | ;; | |
eff02e4f | 1620 | esac |
d4c059d5 ILT |
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1622 | $as_echo_n "checking for $2... " >&6; } | |
1623 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1624 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 1625 | else |
d4c059d5 ILT |
1626 | eval "$3=\$ac_header_compiler" |
1627 | fi | |
1628 | eval ac_res=\$$3 | |
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1630 | $as_echo "$ac_res" >&6; } | |
eff02e4f ILT |
1631 | fi |
1632 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
eff02e4f | 1633 | |
d4c059d5 | 1634 | } # ac_fn_c_check_header_mongrel |
eff02e4f ILT |
1635 | |
1636 | # ac_fn_c_try_run LINENO | |
1637 | # ---------------------- | |
1638 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1639 | # that executables *can* be run. | |
1640 | ac_fn_c_try_run () | |
1641 | { | |
1642 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1643 | if { { ac_try="$ac_link" | |
1644 | case "(($ac_try" in | |
1645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1646 | *) ac_try_echo=$ac_try;; | |
1647 | esac | |
1648 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1649 | $as_echo "$ac_try_echo"; } >&5 | |
1650 | (eval "$ac_link") 2>&5 | |
1651 | ac_status=$? | |
1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1653 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1654 | { { case "(($ac_try" in | |
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 | *) ac_try_echo=$ac_try;; | |
1657 | esac | |
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 | $as_echo "$ac_try_echo"; } >&5 | |
1660 | (eval "$ac_try") 2>&5 | |
1661 | ac_status=$? | |
1662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1663 | test $ac_status = 0; }; }; then : | |
1664 | ac_retval=0 | |
1665 | else | |
1666 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1667 | $as_echo "$as_me: failed program was:" >&5 | |
1668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1669 | ||
1670 | ac_retval=$ac_status | |
1671 | fi | |
1672 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1673 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1674 | return $ac_retval | |
1675 | ||
1676 | } # ac_fn_c_try_run | |
1677 | ||
d4c059d5 ILT |
1678 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1679 | # ------------------------------------------------------- | |
1680 | # Tests whether HEADER exists and can be compiled using the include files in | |
1681 | # INCLUDES, setting the cache variable VAR accordingly. | |
1682 | ac_fn_c_check_header_compile () | |
1683 | { | |
1684 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1686 | $as_echo_n "checking for $2... " >&6; } | |
1687 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1688 | $as_echo_n "(cached) " >&6 | |
1689 | else | |
1690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1691 | /* end confdefs.h. */ | |
1692 | $4 | |
1693 | #include <$2> | |
1694 | _ACEOF | |
1695 | if ac_fn_c_try_compile "$LINENO"; then : | |
1696 | eval "$3=yes" | |
1697 | else | |
1698 | eval "$3=no" | |
1699 | fi | |
1700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1701 | fi | |
1702 | eval ac_res=\$$3 | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1704 | $as_echo "$ac_res" >&6; } | |
1705 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1706 | ||
1707 | } # ac_fn_c_check_header_compile | |
1708 | ||
1709 | # ac_fn_c_try_link LINENO | |
1710 | # ----------------------- | |
1711 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1712 | ac_fn_c_try_link () | |
1713 | { | |
1714 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1716 | if { { ac_try="$ac_link" | |
1717 | case "(($ac_try" in | |
1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1719 | *) ac_try_echo=$ac_try;; | |
1720 | esac | |
1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1722 | $as_echo "$ac_try_echo"; } >&5 | |
1723 | (eval "$ac_link") 2>conftest.err | |
1724 | ac_status=$? | |
1725 | if test -s conftest.err; then | |
1726 | grep -v '^ *+' conftest.err >conftest.er1 | |
1727 | cat conftest.er1 >&5 | |
1728 | mv -f conftest.er1 conftest.err | |
1729 | fi | |
1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1731 | test $ac_status = 0; } && { | |
1732 | test -z "$ac_c_werror_flag" || | |
1733 | test ! -s conftest.err | |
1734 | } && test -s conftest$ac_exeext && { | |
1735 | test "$cross_compiling" = yes || | |
1736 | $as_test_x conftest$ac_exeext | |
1737 | }; then : | |
1738 | ac_retval=0 | |
1739 | else | |
1740 | $as_echo "$as_me: failed program was:" >&5 | |
1741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1742 | ||
1743 | ac_retval=1 | |
1744 | fi | |
1745 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1746 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1747 | # interfere with the next link command; also delete a directory that is | |
1748 | # left behind by Apple's compiler. We do this before executing the actions. | |
1749 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1750 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1751 | return $ac_retval | |
1752 | ||
1753 | } # ac_fn_c_try_link | |
1754 | ||
eff02e4f ILT |
1755 | # ac_fn_c_check_func LINENO FUNC VAR |
1756 | # ---------------------------------- | |
1757 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1758 | ac_fn_c_check_func () | |
1759 | { | |
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1762 | $as_echo_n "checking for $2... " >&6; } | |
1763 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1764 | $as_echo_n "(cached) " >&6 | |
1765 | else | |
1766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1767 | /* end confdefs.h. */ | |
1768 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1769 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1770 | #define $2 innocuous_$2 | |
1771 | ||
1772 | /* System header to define __stub macros and hopefully few prototypes, | |
1773 | which can conflict with char $2 (); below. | |
1774 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1775 | <limits.h> exists even on freestanding compilers. */ | |
1776 | ||
1777 | #ifdef __STDC__ | |
1778 | # include <limits.h> | |
1779 | #else | |
1780 | # include <assert.h> | |
1781 | #endif | |
1782 | ||
1783 | #undef $2 | |
1784 | ||
1785 | /* Override any GCC internal prototype to avoid an error. | |
1786 | Use char because int might match the return type of a GCC | |
1787 | builtin and then its argument prototype would still apply. */ | |
1788 | #ifdef __cplusplus | |
1789 | extern "C" | |
1790 | #endif | |
1791 | char $2 (); | |
1792 | /* The GNU C library defines this for functions which it implements | |
1793 | to always fail with ENOSYS. Some functions are actually named | |
1794 | something starting with __ and the normal name is an alias. */ | |
1795 | #if defined __stub_$2 || defined __stub___$2 | |
1796 | choke me | |
1797 | #endif | |
1798 | ||
1799 | int | |
1800 | main () | |
1801 | { | |
1802 | return $2 (); | |
1803 | ; | |
1804 | return 0; | |
1805 | } | |
1806 | _ACEOF | |
1807 | if ac_fn_c_try_link "$LINENO"; then : | |
1808 | eval "$3=yes" | |
1809 | else | |
1810 | eval "$3=no" | |
1811 | fi | |
1812 | rm -f core conftest.err conftest.$ac_objext \ | |
1813 | conftest$ac_exeext conftest.$ac_ext | |
1814 | fi | |
1815 | eval ac_res=\$$3 | |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1817 | $as_echo "$ac_res" >&6; } | |
1818 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1819 | ||
1820 | } # ac_fn_c_check_func | |
1821 | ||
76850556 RO |
1822 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1823 | # ------------------------------------------- | |
1824 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1825 | # variable VAR accordingly. | |
1826 | ac_fn_c_check_type () | |
1827 | { | |
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1830 | $as_echo_n "checking for $2... " >&6; } | |
1831 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1832 | $as_echo_n "(cached) " >&6 | |
1833 | else | |
1834 | eval "$3=no" | |
1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1836 | /* end confdefs.h. */ | |
1837 | $4 | |
1838 | int | |
1839 | main () | |
1840 | { | |
1841 | if (sizeof ($2)) | |
1842 | return 0; | |
1843 | ; | |
1844 | return 0; | |
1845 | } | |
1846 | _ACEOF | |
1847 | if ac_fn_c_try_compile "$LINENO"; then : | |
1848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1849 | /* end confdefs.h. */ | |
1850 | $4 | |
1851 | int | |
1852 | main () | |
1853 | { | |
1854 | if (sizeof (($2))) | |
1855 | return 0; | |
1856 | ; | |
1857 | return 0; | |
1858 | } | |
1859 | _ACEOF | |
1860 | if ac_fn_c_try_compile "$LINENO"; then : | |
1861 | ||
1862 | else | |
1863 | eval "$3=yes" | |
1864 | fi | |
1865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1866 | fi | |
1867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1868 | fi | |
1869 | eval ac_res=\$$3 | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1871 | $as_echo "$ac_res" >&6; } | |
1872 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1873 | ||
1874 | } # ac_fn_c_check_type | |
1875 | ||
1876 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1877 | # -------------------------------------------- | |
1878 | # Tries to find the compile-time value of EXPR in a program that includes | |
1879 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1880 | # computed | |
1881 | ac_fn_c_compute_int () | |
1882 | { | |
1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1884 | if test "$cross_compiling" = yes; then | |
1885 | # Depending upon the size, compute the lo and hi bounds. | |
1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1887 | /* end confdefs.h. */ | |
1888 | $4 | |
1889 | int | |
1890 | main () | |
1891 | { | |
1892 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1893 | test_array [0] = 0 | |
1894 | ||
1895 | ; | |
1896 | return 0; | |
1897 | } | |
1898 | _ACEOF | |
1899 | if ac_fn_c_try_compile "$LINENO"; then : | |
1900 | ac_lo=0 ac_mid=0 | |
1901 | while :; do | |
1902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1903 | /* end confdefs.h. */ | |
1904 | $4 | |
1905 | int | |
1906 | main () | |
1907 | { | |
1908 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1909 | test_array [0] = 0 | |
1910 | ||
1911 | ; | |
1912 | return 0; | |
1913 | } | |
1914 | _ACEOF | |
1915 | if ac_fn_c_try_compile "$LINENO"; then : | |
1916 | ac_hi=$ac_mid; break | |
1917 | else | |
1918 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1919 | if test $ac_lo -le $ac_mid; then | |
1920 | ac_lo= ac_hi= | |
1921 | break | |
1922 | fi | |
1923 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1924 | fi | |
1925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1926 | done | |
1927 | else | |
1928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1929 | /* end confdefs.h. */ | |
1930 | $4 | |
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1935 | test_array [0] = 0 | |
1936 | ||
1937 | ; | |
1938 | return 0; | |
1939 | } | |
1940 | _ACEOF | |
1941 | if ac_fn_c_try_compile "$LINENO"; then : | |
1942 | ac_hi=-1 ac_mid=-1 | |
1943 | while :; do | |
1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1945 | /* end confdefs.h. */ | |
1946 | $4 | |
1947 | int | |
1948 | main () | |
1949 | { | |
1950 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1951 | test_array [0] = 0 | |
1952 | ||
1953 | ; | |
1954 | return 0; | |
1955 | } | |
1956 | _ACEOF | |
1957 | if ac_fn_c_try_compile "$LINENO"; then : | |
1958 | ac_lo=$ac_mid; break | |
1959 | else | |
1960 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1961 | if test $ac_mid -le $ac_hi; then | |
1962 | ac_lo= ac_hi= | |
1963 | break | |
1964 | fi | |
1965 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1966 | fi | |
1967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1968 | done | |
1969 | else | |
1970 | ac_lo= ac_hi= | |
1971 | fi | |
1972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1973 | fi | |
1974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1975 | # Binary search between lo and hi bounds. | |
1976 | while test "x$ac_lo" != "x$ac_hi"; do | |
1977 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1979 | /* end confdefs.h. */ | |
1980 | $4 | |
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1985 | test_array [0] = 0 | |
1986 | ||
1987 | ; | |
1988 | return 0; | |
1989 | } | |
1990 | _ACEOF | |
1991 | if ac_fn_c_try_compile "$LINENO"; then : | |
1992 | ac_hi=$ac_mid | |
1993 | else | |
1994 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1995 | fi | |
1996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1997 | done | |
1998 | case $ac_lo in #(( | |
1999 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2000 | '') ac_retval=1 ;; | |
2001 | esac | |
2002 | else | |
2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2004 | /* end confdefs.h. */ | |
2005 | $4 | |
2006 | static long int longval () { return $2; } | |
2007 | static unsigned long int ulongval () { return $2; } | |
2008 | #include <stdio.h> | |
2009 | #include <stdlib.h> | |
2010 | int | |
2011 | main () | |
2012 | { | |
2013 | ||
2014 | FILE *f = fopen ("conftest.val", "w"); | |
2015 | if (! f) | |
2016 | return 1; | |
2017 | if (($2) < 0) | |
2018 | { | |
2019 | long int i = longval (); | |
2020 | if (i != ($2)) | |
2021 | return 1; | |
2022 | fprintf (f, "%ld", i); | |
2023 | } | |
2024 | else | |
2025 | { | |
2026 | unsigned long int i = ulongval (); | |
2027 | if (i != ($2)) | |
2028 | return 1; | |
2029 | fprintf (f, "%lu", i); | |
2030 | } | |
2031 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2032 | on some platforms. */ | |
2033 | return ferror (f) || fclose (f) != 0; | |
2034 | ||
2035 | ; | |
2036 | return 0; | |
2037 | } | |
2038 | _ACEOF | |
2039 | if ac_fn_c_try_run "$LINENO"; then : | |
2040 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2041 | else | |
2042 | ac_retval=1 | |
2043 | fi | |
2044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2045 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2046 | rm -f conftest.val | |
2047 | ||
2048 | fi | |
2049 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2050 | return $ac_retval | |
2051 | ||
2052 | } # ac_fn_c_compute_int | |
2053 | ||
772a71a9 ILT |
2054 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
2055 | # ------------------------------------ | |
2056 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2057 | ac_fn_c_check_decl () | |
2058 | { | |
2059 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2060 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2061 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2063 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2064 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2065 | $as_echo_n "(cached) " >&6 | |
2066 | else | |
2067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2068 | /* end confdefs.h. */ | |
2069 | $4 | |
2070 | int | |
2071 | main () | |
2072 | { | |
2073 | #ifndef $as_decl_name | |
2074 | #ifdef __cplusplus | |
2075 | (void) $as_decl_use; | |
2076 | #else | |
2077 | (void) $as_decl_name; | |
2078 | #endif | |
2079 | #endif | |
2080 | ||
2081 | ; | |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
2085 | if ac_fn_c_try_compile "$LINENO"; then : | |
2086 | eval "$3=yes" | |
2087 | else | |
2088 | eval "$3=no" | |
2089 | fi | |
2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2091 | fi | |
2092 | eval ac_res=\$$3 | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2094 | $as_echo "$ac_res" >&6; } | |
2095 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2096 | ||
2097 | } # ac_fn_c_check_decl | |
eff02e4f ILT |
2098 | cat >config.log <<_ACEOF |
2099 | This file contains any messages produced by compilers while | |
2100 | running configure, to aid debugging if configure makes a mistake. | |
2101 | ||
2102 | It was created by package-unused $as_me version-unused, which was | |
2103 | generated by GNU Autoconf 2.64. Invocation command line was | |
2104 | ||
2105 | $ $0 $@ | |
2106 | ||
2107 | _ACEOF | |
2108 | exec 5>>config.log | |
2109 | { | |
2110 | cat <<_ASUNAME | |
2111 | ## --------- ## | |
2112 | ## Platform. ## | |
2113 | ## --------- ## | |
2114 | ||
2115 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2116 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2117 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2118 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2119 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2120 | ||
2121 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2122 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2123 | ||
2124 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2125 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2126 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2127 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2128 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2129 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2130 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2131 | ||
2132 | _ASUNAME | |
2133 | ||
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2135 | for as_dir in $PATH | |
2136 | do | |
2137 | IFS=$as_save_IFS | |
2138 | test -z "$as_dir" && as_dir=. | |
2139 | $as_echo "PATH: $as_dir" | |
2140 | done | |
2141 | IFS=$as_save_IFS | |
2142 | ||
2143 | } >&5 | |
2144 | ||
2145 | cat >&5 <<_ACEOF | |
2146 | ||
2147 | ||
2148 | ## ----------- ## | |
2149 | ## Core tests. ## | |
2150 | ## ----------- ## | |
2151 | ||
2152 | _ACEOF | |
2153 | ||
2154 | ||
2155 | # Keep a trace of the command line. | |
2156 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2157 | # Strip out --silent because we don't want to record it for future runs. | |
2158 | # Also quote any args containing shell meta-characters. | |
2159 | # Make two passes to allow for proper duplicate-argument suppression. | |
2160 | ac_configure_args= | |
2161 | ac_configure_args0= | |
2162 | ac_configure_args1= | |
2163 | ac_must_keep_next=false | |
2164 | for ac_pass in 1 2 | |
2165 | do | |
2166 | for ac_arg | |
2167 | do | |
2168 | case $ac_arg in | |
2169 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2171 | | -silent | --silent | --silen | --sile | --sil) | |
2172 | continue ;; | |
2173 | *\'*) | |
2174 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2175 | esac | |
2176 | case $ac_pass in | |
2177 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2178 | 2) | |
2179 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2180 | if test $ac_must_keep_next = true; then | |
2181 | ac_must_keep_next=false # Got value, back to normal. | |
2182 | else | |
2183 | case $ac_arg in | |
2184 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2185 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2186 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2187 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2188 | case "$ac_configure_args0 " in | |
2189 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2190 | esac | |
2191 | ;; | |
2192 | -* ) ac_must_keep_next=true ;; | |
2193 | esac | |
2194 | fi | |
2195 | as_fn_append ac_configure_args " '$ac_arg'" | |
2196 | ;; | |
2197 | esac | |
2198 | done | |
2199 | done | |
2200 | { ac_configure_args0=; unset ac_configure_args0;} | |
2201 | { ac_configure_args1=; unset ac_configure_args1;} | |
2202 | ||
2203 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2204 | # config.log. We remove comments because anyway the quotes in there | |
2205 | # would cause problems or look ugly. | |
2206 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2207 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2208 | trap 'exit_status=$? | |
2209 | # Save into config.log some information that might help in debugging. | |
2210 | { | |
2211 | echo | |
2212 | ||
2213 | cat <<\_ASBOX | |
2214 | ## ---------------- ## | |
2215 | ## Cache variables. ## | |
2216 | ## ---------------- ## | |
2217 | _ASBOX | |
2218 | echo | |
2219 | # The following way of writing the cache mishandles newlines in values, | |
2220 | ( | |
2221 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2222 | eval ac_val=\$$ac_var | |
2223 | case $ac_val in #( | |
2224 | *${as_nl}*) | |
2225 | case $ac_var in #( | |
2226 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2227 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2228 | esac | |
2229 | case $ac_var in #( | |
2230 | _ | IFS | as_nl) ;; #( | |
2231 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2232 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2233 | esac ;; | |
2234 | esac | |
2235 | done | |
2236 | (set) 2>&1 | | |
2237 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2238 | *${as_nl}ac_space=\ *) | |
2239 | sed -n \ | |
2240 | "s/'\''/'\''\\\\'\'''\''/g; | |
2241 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2242 | ;; #( | |
2243 | *) | |
2244 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2245 | ;; | |
2246 | esac | | |
2247 | sort | |
2248 | ) | |
2249 | echo | |
2250 | ||
2251 | cat <<\_ASBOX | |
2252 | ## ----------------- ## | |
2253 | ## Output variables. ## | |
2254 | ## ----------------- ## | |
2255 | _ASBOX | |
2256 | echo | |
2257 | for ac_var in $ac_subst_vars | |
2258 | do | |
2259 | eval ac_val=\$$ac_var | |
2260 | case $ac_val in | |
2261 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2262 | esac | |
2263 | $as_echo "$ac_var='\''$ac_val'\''" | |
2264 | done | sort | |
2265 | echo | |
2266 | ||
2267 | if test -n "$ac_subst_files"; then | |
2268 | cat <<\_ASBOX | |
2269 | ## ------------------- ## | |
2270 | ## File substitutions. ## | |
2271 | ## ------------------- ## | |
2272 | _ASBOX | |
2273 | echo | |
2274 | for ac_var in $ac_subst_files | |
2275 | do | |
2276 | eval ac_val=\$$ac_var | |
2277 | case $ac_val in | |
2278 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2279 | esac | |
2280 | $as_echo "$ac_var='\''$ac_val'\''" | |
2281 | done | sort | |
2282 | echo | |
2283 | fi | |
2284 | ||
2285 | if test -s confdefs.h; then | |
2286 | cat <<\_ASBOX | |
2287 | ## ----------- ## | |
2288 | ## confdefs.h. ## | |
2289 | ## ----------- ## | |
2290 | _ASBOX | |
2291 | echo | |
2292 | cat confdefs.h | |
2293 | echo | |
2294 | fi | |
2295 | test "$ac_signal" != 0 && | |
2296 | $as_echo "$as_me: caught signal $ac_signal" | |
2297 | $as_echo "$as_me: exit $exit_status" | |
2298 | } >&5 | |
2299 | rm -f core *.core core.conftest.* && | |
2300 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2301 | exit $exit_status | |
2302 | ' 0 | |
2303 | for ac_signal in 1 2 13 15; do | |
2304 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2305 | done | |
2306 | ac_signal=0 | |
2307 | ||
2308 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2309 | rm -f -r conftest* confdefs.h | |
2310 | ||
2311 | $as_echo "/* confdefs.h */" > confdefs.h | |
2312 | ||
2313 | # Predefined preprocessor variables. | |
2314 | ||
2315 | cat >>confdefs.h <<_ACEOF | |
2316 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2317 | _ACEOF | |
2318 | ||
2319 | cat >>confdefs.h <<_ACEOF | |
2320 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2321 | _ACEOF | |
2322 | ||
2323 | cat >>confdefs.h <<_ACEOF | |
2324 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2325 | _ACEOF | |
2326 | ||
2327 | cat >>confdefs.h <<_ACEOF | |
2328 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2329 | _ACEOF | |
2330 | ||
2331 | cat >>confdefs.h <<_ACEOF | |
2332 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2333 | _ACEOF | |
2334 | ||
2335 | cat >>confdefs.h <<_ACEOF | |
2336 | #define PACKAGE_URL "$PACKAGE_URL" | |
2337 | _ACEOF | |
2338 | ||
2339 | ||
2340 | # Let the site file select an alternate cache file if it wants to. | |
2341 | # Prefer an explicitly selected file to automatically selected ones. | |
2342 | ac_site_file1=NONE | |
2343 | ac_site_file2=NONE | |
2344 | if test -n "$CONFIG_SITE"; then | |
2345 | ac_site_file1=$CONFIG_SITE | |
2346 | elif test "x$prefix" != xNONE; then | |
2347 | ac_site_file1=$prefix/share/config.site | |
2348 | ac_site_file2=$prefix/etc/config.site | |
2349 | else | |
2350 | ac_site_file1=$ac_default_prefix/share/config.site | |
2351 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2352 | fi | |
2353 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2354 | do | |
2355 | test "x$ac_site_file" = xNONE && continue | |
2356 | if test -r "$ac_site_file"; then | |
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2358 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2359 | sed 's/^/| /' "$ac_site_file" >&5 | |
2360 | . "$ac_site_file" | |
2361 | fi | |
2362 | done | |
2363 | ||
2364 | if test -r "$cache_file"; then | |
2365 | # Some versions of bash will fail to source /dev/null (special | |
2366 | # files actually), so we avoid doing that. | |
2367 | if test -f "$cache_file"; then | |
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2369 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2370 | case $cache_file in | |
2371 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2372 | *) . "./$cache_file";; | |
2373 | esac | |
2374 | fi | |
2375 | else | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2377 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2378 | >$cache_file | |
2379 | fi | |
2380 | ||
2381 | # Check that the precious variables saved in the cache have kept the same | |
2382 | # value. | |
2383 | ac_cache_corrupted=false | |
2384 | for ac_var in $ac_precious_vars; do | |
2385 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2386 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2387 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2388 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2389 | case $ac_old_set,$ac_new_set in | |
2390 | set,) | |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2392 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2393 | ac_cache_corrupted=: ;; | |
2394 | ,set) | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2396 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2397 | ac_cache_corrupted=: ;; | |
2398 | ,);; | |
2399 | *) | |
2400 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2401 | # differences in whitespace do not lead to failure. | |
2402 | ac_old_val_w=`echo x $ac_old_val` | |
2403 | ac_new_val_w=`echo x $ac_new_val` | |
2404 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2406 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2407 | ac_cache_corrupted=: | |
2408 | else | |
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2410 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2411 | eval $ac_var=\$ac_old_val | |
2412 | fi | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2414 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2416 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2417 | fi;; | |
2418 | esac | |
2419 | # Pass precious variables to config.status. | |
2420 | if test "$ac_new_set" = set; then | |
2421 | case $ac_new_val in | |
2422 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2423 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2424 | esac | |
2425 | case " $ac_configure_args " in | |
2426 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2427 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2428 | esac | |
2429 | fi | |
2430 | done | |
2431 | if $ac_cache_corrupted; then | |
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2435 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2436 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2437 | fi | |
2438 | ## -------------------- ## | |
2439 | ## Main body of script. ## | |
2440 | ## -------------------- ## | |
2441 | ||
2442 | ac_ext=c | |
2443 | ac_cpp='$CPP $CPPFLAGS' | |
2444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2447 | ||
2448 | ||
2449 | ||
2450 | ||
2451 | ||
2452 | ||
2453 | ac_config_headers="$ac_config_headers config.h" | |
2454 | ||
2455 | ||
2456 | ac_aux_dir= | |
2457 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2458 | for ac_t in install-sh install.sh shtool; do | |
2459 | if test -f "$ac_dir/$ac_t"; then | |
2460 | ac_aux_dir=$ac_dir | |
2461 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2462 | break 2 | |
2463 | fi | |
2464 | done | |
2465 | done | |
2466 | if test -z "$ac_aux_dir"; then | |
2467 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2468 | fi | |
2469 | ||
2470 | # These three variables are undocumented and unsupported, | |
2471 | # and are intended to be withdrawn in a future Autoconf release. | |
2472 | # They can cause serious problems if a builder's source tree is in a directory | |
2473 | # whose full name contains unusual characters. | |
2474 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2475 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2476 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2477 | ||
2478 | ||
2479 | # Make sure we can run config.sub. | |
2480 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2481 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2482 | ||
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2484 | $as_echo_n "checking build system type... " >&6; } | |
2485 | if test "${ac_cv_build+set}" = set; then : | |
2486 | $as_echo_n "(cached) " >&6 | |
2487 | else | |
2488 | ac_build_alias=$build_alias | |
2489 | test "x$ac_build_alias" = x && | |
2490 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2491 | test "x$ac_build_alias" = x && | |
2492 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2493 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2494 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2495 | ||
2496 | fi | |
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2498 | $as_echo "$ac_cv_build" >&6; } | |
2499 | case $ac_cv_build in | |
2500 | *-*-*) ;; | |
2501 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2502 | esac | |
2503 | build=$ac_cv_build | |
2504 | ac_save_IFS=$IFS; IFS='-' | |
2505 | set x $ac_cv_build | |
2506 | shift | |
2507 | build_cpu=$1 | |
2508 | build_vendor=$2 | |
2509 | shift; shift | |
2510 | # Remember, the first character of IFS is used to create $*, | |
2511 | # except with old shells: | |
2512 | build_os=$* | |
2513 | IFS=$ac_save_IFS | |
2514 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2515 | ||
2516 | ||
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2518 | $as_echo_n "checking host system type... " >&6; } | |
2519 | if test "${ac_cv_host+set}" = set; then : | |
2520 | $as_echo_n "(cached) " >&6 | |
2521 | else | |
2522 | if test "x$host_alias" = x; then | |
2523 | ac_cv_host=$ac_cv_build | |
2524 | else | |
2525 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2526 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2527 | fi | |
2528 | ||
2529 | fi | |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2531 | $as_echo "$ac_cv_host" >&6; } | |
2532 | case $ac_cv_host in | |
2533 | *-*-*) ;; | |
2534 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2535 | esac | |
2536 | host=$ac_cv_host | |
2537 | ac_save_IFS=$IFS; IFS='-' | |
2538 | set x $ac_cv_host | |
2539 | shift | |
2540 | host_cpu=$1 | |
2541 | host_vendor=$2 | |
2542 | shift; shift | |
2543 | # Remember, the first character of IFS is used to create $*, | |
2544 | # except with old shells: | |
2545 | host_os=$* | |
2546 | IFS=$ac_save_IFS | |
2547 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2548 | ||
2549 | ||
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2551 | $as_echo_n "checking target system type... " >&6; } | |
2552 | if test "${ac_cv_target+set}" = set; then : | |
2553 | $as_echo_n "(cached) " >&6 | |
2554 | else | |
2555 | if test "x$target_alias" = x; then | |
2556 | ac_cv_target=$ac_cv_host | |
2557 | else | |
2558 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2559 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2560 | fi | |
2561 | ||
2562 | fi | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2564 | $as_echo "$ac_cv_target" >&6; } | |
2565 | case $ac_cv_target in | |
2566 | *-*-*) ;; | |
2567 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2568 | esac | |
2569 | target=$ac_cv_target | |
2570 | ac_save_IFS=$IFS; IFS='-' | |
2571 | set x $ac_cv_target | |
2572 | shift | |
2573 | target_cpu=$1 | |
2574 | target_vendor=$2 | |
2575 | shift; shift | |
2576 | # Remember, the first character of IFS is used to create $*, | |
2577 | # except with old shells: | |
2578 | target_os=$* | |
2579 | IFS=$ac_save_IFS | |
2580 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2581 | ||
2582 | ||
2583 | # The aliases save the names the user supplied, while $host etc. | |
2584 | # will get canonicalized. | |
2585 | test -n "$target_alias" && | |
2586 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2587 | NONENONEs,x,x, && | |
2588 | program_prefix=${target_alias}- | |
2589 | ||
2590 | target_alias=${target_alias-$host_alias} | |
2591 | ||
d4c059d5 ILT |
2592 | ac_ext=c |
2593 | ac_cpp='$CPP $CPPFLAGS' | |
2594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2597 | if test -n "$ac_tool_prefix"; then | |
2598 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2599 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2601 | $as_echo_n "checking for $ac_word... " >&6; } | |
2602 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2603 | $as_echo_n "(cached) " >&6 | |
2604 | else | |
2605 | if test -n "$CC"; then | |
2606 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2607 | else | |
2608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2609 | for as_dir in $PATH | |
2610 | do | |
2611 | IFS=$as_save_IFS | |
2612 | test -z "$as_dir" && as_dir=. | |
2613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2615 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2617 | break 2 | |
2618 | fi | |
2619 | done | |
2620 | done | |
2621 | IFS=$as_save_IFS | |
eff02e4f | 2622 | |
d4c059d5 ILT |
2623 | fi |
2624 | fi | |
2625 | CC=$ac_cv_prog_CC | |
2626 | if test -n "$CC"; then | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2628 | $as_echo "$CC" >&6; } | |
2629 | else | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2631 | $as_echo "no" >&6; } | |
2632 | fi | |
eff02e4f | 2633 | |
eff02e4f | 2634 | |
d4c059d5 ILT |
2635 | fi |
2636 | if test -z "$ac_cv_prog_CC"; then | |
2637 | ac_ct_CC=$CC | |
2638 | # Extract the first word of "gcc", so it can be a program name with args. | |
2639 | set dummy gcc; ac_word=$2 | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2641 | $as_echo_n "checking for $ac_word... " >&6; } | |
2642 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
eff02e4f ILT |
2643 | $as_echo_n "(cached) " >&6 |
2644 | else | |
d4c059d5 ILT |
2645 | if test -n "$ac_ct_CC"; then |
2646 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2647 | else | |
2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
eff02e4f ILT |
2649 | for as_dir in $PATH |
2650 | do | |
2651 | IFS=$as_save_IFS | |
2652 | test -z "$as_dir" && as_dir=. | |
d4c059d5 ILT |
2653 | for ac_exec_ext in '' $ac_executable_extensions; do |
2654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2655 | ac_cv_prog_ac_ct_CC="gcc" | |
2656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2657 | break 2 | |
2658 | fi | |
2659 | done | |
eff02e4f ILT |
2660 | done |
2661 | IFS=$as_save_IFS | |
2662 | ||
eff02e4f | 2663 | fi |
d4c059d5 ILT |
2664 | fi |
2665 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2666 | if test -n "$ac_ct_CC"; then | |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2668 | $as_echo "$ac_ct_CC" >&6; } | |
2669 | else | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2671 | $as_echo "no" >&6; } | |
2672 | fi | |
2673 | ||
2674 | if test "x$ac_ct_CC" = x; then | |
2675 | CC="" | |
eff02e4f | 2676 | else |
d4c059d5 ILT |
2677 | case $cross_compiling:$ac_tool_warned in |
2678 | yes:) | |
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2681 | ac_tool_warned=yes ;; | |
2682 | esac | |
2683 | CC=$ac_ct_CC | |
eff02e4f | 2684 | fi |
d4c059d5 ILT |
2685 | else |
2686 | CC="$ac_cv_prog_CC" | |
eff02e4f | 2687 | fi |
eff02e4f | 2688 | |
d4c059d5 ILT |
2689 | if test -z "$CC"; then |
2690 | if test -n "$ac_tool_prefix"; then | |
2691 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2692 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
eff02e4f ILT |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2694 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 2695 | if test "${ac_cv_prog_CC+set}" = set; then : |
eff02e4f ILT |
2696 | $as_echo_n "(cached) " >&6 |
2697 | else | |
d4c059d5 ILT |
2698 | if test -n "$CC"; then |
2699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
eff02e4f ILT |
2700 | else |
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2702 | for as_dir in $PATH | |
2703 | do | |
2704 | IFS=$as_save_IFS | |
2705 | test -z "$as_dir" && as_dir=. | |
2706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 2708 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
eff02e4f ILT |
2709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2710 | break 2 | |
2711 | fi | |
2712 | done | |
2713 | done | |
2714 | IFS=$as_save_IFS | |
2715 | ||
2716 | fi | |
2717 | fi | |
d4c059d5 ILT |
2718 | CC=$ac_cv_prog_CC |
2719 | if test -n "$CC"; then | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2721 | $as_echo "$CC" >&6; } | |
eff02e4f ILT |
2722 | else |
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2724 | $as_echo "no" >&6; } | |
2725 | fi | |
2726 | ||
2727 | ||
d4c059d5 | 2728 | fi |
eff02e4f | 2729 | fi |
d4c059d5 ILT |
2730 | if test -z "$CC"; then |
2731 | # Extract the first word of "cc", so it can be a program name with args. | |
2732 | set dummy cc; ac_word=$2 | |
eff02e4f ILT |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2734 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 2735 | if test "${ac_cv_prog_CC+set}" = set; then : |
eff02e4f ILT |
2736 | $as_echo_n "(cached) " >&6 |
2737 | else | |
d4c059d5 ILT |
2738 | if test -n "$CC"; then |
2739 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
eff02e4f | 2740 | else |
d4c059d5 | 2741 | ac_prog_rejected=no |
eff02e4f ILT |
2742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2743 | for as_dir in $PATH | |
2744 | do | |
2745 | IFS=$as_save_IFS | |
2746 | test -z "$as_dir" && as_dir=. | |
2747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 ILT |
2749 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2750 | ac_prog_rejected=yes | |
2751 | continue | |
2752 | fi | |
2753 | ac_cv_prog_CC="cc" | |
eff02e4f ILT |
2754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2755 | break 2 | |
2756 | fi | |
2757 | done | |
2758 | done | |
2759 | IFS=$as_save_IFS | |
2760 | ||
d4c059d5 ILT |
2761 | if test $ac_prog_rejected = yes; then |
2762 | # We found a bogon in the path, so make sure we never use it. | |
2763 | set dummy $ac_cv_prog_CC | |
2764 | shift | |
2765 | if test $# != 0; then | |
2766 | # We chose a different compiler from the bogus one. | |
2767 | # However, it has the same basename, so the bogon will be chosen | |
2768 | # first if we set CC to just the basename; use the full file name. | |
2769 | shift | |
2770 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2771 | fi | |
eff02e4f ILT |
2772 | fi |
2773 | fi | |
d4c059d5 ILT |
2774 | fi |
2775 | CC=$ac_cv_prog_CC | |
2776 | if test -n "$CC"; then | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2778 | $as_echo "$CC" >&6; } | |
eff02e4f ILT |
2779 | else |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2781 | $as_echo "no" >&6; } | |
2782 | fi | |
2783 | ||
eff02e4f ILT |
2784 | |
2785 | fi | |
d4c059d5 ILT |
2786 | if test -z "$CC"; then |
2787 | if test -n "$ac_tool_prefix"; then | |
2788 | for ac_prog in cl.exe | |
2789 | do | |
2790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2793 | $as_echo_n "checking for $ac_word... " >&6; } | |
2794 | if test "${ac_cv_prog_CC+set}" = set; then : | |
eff02e4f ILT |
2795 | $as_echo_n "(cached) " >&6 |
2796 | else | |
d4c059d5 ILT |
2797 | if test -n "$CC"; then |
2798 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2799 | else | |
2800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2801 | for as_dir in $PATH | |
eff02e4f ILT |
2802 | do |
2803 | IFS=$as_save_IFS | |
2804 | test -z "$as_dir" && as_dir=. | |
d4c059d5 ILT |
2805 | for ac_exec_ext in '' $ac_executable_extensions; do |
2806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2807 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2809 | break 2 | |
2810 | fi | |
2811 | done | |
eff02e4f ILT |
2812 | done |
2813 | IFS=$as_save_IFS | |
2814 | ||
2815 | fi | |
eff02e4f | 2816 | fi |
d4c059d5 ILT |
2817 | CC=$ac_cv_prog_CC |
2818 | if test -n "$CC"; then | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2820 | $as_echo "$CC" >&6; } | |
2821 | else | |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2823 | $as_echo "no" >&6; } | |
2824 | fi | |
eff02e4f | 2825 | |
eff02e4f | 2826 | |
d4c059d5 ILT |
2827 | test -n "$CC" && break |
2828 | done | |
2829 | fi | |
2830 | if test -z "$CC"; then | |
2831 | ac_ct_CC=$CC | |
2832 | for ac_prog in cl.exe | |
eff02e4f ILT |
2833 | do |
2834 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2835 | set dummy $ac_prog; ac_word=$2 | |
2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2837 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 2838 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
eff02e4f ILT |
2839 | $as_echo_n "(cached) " >&6 |
2840 | else | |
d4c059d5 ILT |
2841 | if test -n "$ac_ct_CC"; then |
2842 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
eff02e4f ILT |
2843 | else |
2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2845 | for as_dir in $PATH | |
2846 | do | |
2847 | IFS=$as_save_IFS | |
2848 | test -z "$as_dir" && as_dir=. | |
2849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 2851 | ac_cv_prog_ac_ct_CC="$ac_prog" |
eff02e4f ILT |
2852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2853 | break 2 | |
2854 | fi | |
2855 | done | |
2856 | done | |
2857 | IFS=$as_save_IFS | |
2858 | ||
2859 | fi | |
2860 | fi | |
d4c059d5 ILT |
2861 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2862 | if test -n "$ac_ct_CC"; then | |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2864 | $as_echo "$ac_ct_CC" >&6; } | |
eff02e4f ILT |
2865 | else |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2867 | $as_echo "no" >&6; } | |
2868 | fi | |
2869 | ||
2870 | ||
d4c059d5 | 2871 | test -n "$ac_ct_CC" && break |
eff02e4f ILT |
2872 | done |
2873 | ||
d4c059d5 ILT |
2874 | if test "x$ac_ct_CC" = x; then |
2875 | CC="" | |
2876 | else | |
2877 | case $cross_compiling:$ac_tool_warned in | |
2878 | yes:) | |
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2881 | ac_tool_warned=yes ;; | |
eff02e4f | 2882 | esac |
d4c059d5 | 2883 | CC=$ac_ct_CC |
eff02e4f ILT |
2884 | fi |
2885 | fi | |
2886 | ||
eff02e4f ILT |
2887 | fi |
2888 | ||
2889 | ||
d4c059d5 ILT |
2890 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2892 | as_fn_error "no acceptable C compiler found in \$PATH | |
2893 | See \`config.log' for more details." "$LINENO" 5; } | |
eff02e4f | 2894 | |
d4c059d5 ILT |
2895 | # Provide some information about the compiler. |
2896 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2897 | set X $ac_compile | |
2898 | ac_compiler=$2 | |
2899 | for ac_option in --version -v -V -qversion; do | |
2900 | { { ac_try="$ac_compiler $ac_option >&5" | |
2901 | case "(($ac_try" in | |
2902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2903 | *) ac_try_echo=$ac_try;; | |
2904 | esac | |
2905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2906 | $as_echo "$ac_try_echo"; } >&5 | |
2907 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2908 | ac_status=$? | |
2909 | if test -s conftest.err; then | |
2910 | sed '10a\ | |
2911 | ... rest of stderr output deleted ... | |
2912 | 10q' conftest.err >conftest.er1 | |
2913 | cat conftest.er1 >&5 | |
2914 | rm -f conftest.er1 conftest.err | |
2915 | fi | |
2916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2917 | test $ac_status = 0; } | |
2918 | done | |
eff02e4f | 2919 | |
d4c059d5 ILT |
2920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2921 | /* end confdefs.h. */ | |
eff02e4f | 2922 | |
d4c059d5 ILT |
2923 | int |
2924 | main () | |
2925 | { | |
eff02e4f | 2926 | |
d4c059d5 ILT |
2927 | ; |
2928 | return 0; | |
2929 | } | |
2930 | _ACEOF | |
2931 | ac_clean_files_save=$ac_clean_files | |
2932 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
2933 | # Try to create an executable without -o first, disregard a.out. | |
2934 | # It will help us diagnose broken compilers, and finding out an intuition | |
2935 | # of exeext. | |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2937 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2938 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
eff02e4f | 2939 | |
d4c059d5 ILT |
2940 | # The possible output files: |
2941 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
eff02e4f | 2942 | |
d4c059d5 ILT |
2943 | ac_rmfiles= |
2944 | for ac_file in $ac_files | |
2945 | do | |
2946 | case $ac_file in | |
2947 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2948 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2949 | esac | |
2950 | done | |
2951 | rm -f $ac_rmfiles | |
eff02e4f | 2952 | |
d4c059d5 ILT |
2953 | if { { ac_try="$ac_link_default" |
2954 | case "(($ac_try" in | |
2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2956 | *) ac_try_echo=$ac_try;; | |
2957 | esac | |
2958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2959 | $as_echo "$ac_try_echo"; } >&5 | |
2960 | (eval "$ac_link_default") 2>&5 | |
2961 | ac_status=$? | |
2962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2963 | test $ac_status = 0; }; then : | |
2964 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2965 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2966 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2967 | # so that the user can short-circuit this test for compilers unknown to | |
2968 | # Autoconf. | |
2969 | for ac_file in $ac_files '' | |
2970 | do | |
2971 | test -f "$ac_file" || continue | |
2972 | case $ac_file in | |
2973 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2974 | ;; | |
2975 | [ab].out ) | |
2976 | # We found the default executable, but exeext='' is most | |
2977 | # certainly right. | |
2978 | break;; | |
2979 | *.* ) | |
2980 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2981 | then :; else | |
2982 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2983 | fi | |
2984 | # We set ac_cv_exeext here because the later test for it is not | |
2985 | # safe: cross compilers may not add the suffix if given an `-o' | |
2986 | # argument, so we may need to know it at that point already. | |
2987 | # Even if this section looks crufty: it has the advantage of | |
2988 | # actually working. | |
2989 | break;; | |
2990 | * ) | |
2991 | break;; | |
2992 | esac | |
2993 | done | |
2994 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
eff02e4f | 2995 | |
eff02e4f | 2996 | else |
d4c059d5 | 2997 | ac_file='' |
eff02e4f | 2998 | fi |
d4c059d5 ILT |
2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3000 | $as_echo "$ac_file" >&6; } | |
3001 | if test -z "$ac_file"; then : | |
3002 | $as_echo "$as_me: failed program was:" >&5 | |
3003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
eff02e4f | 3004 | |
d4c059d5 ILT |
3005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3007 | { as_fn_set_status 77 | |
3008 | as_fn_error "C compiler cannot create executables | |
3009 | See \`config.log' for more details." "$LINENO" 5; }; } | |
eff02e4f | 3010 | fi |
d4c059d5 | 3011 | ac_exeext=$ac_cv_exeext |
eff02e4f | 3012 | |
d4c059d5 ILT |
3013 | # Check that the compiler produces executables we can run. If not, either |
3014 | # the compiler is broken, or we cross compile. | |
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3016 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3017 | # If not cross compiling, check that we can run a simple program. | |
3018 | if test "$cross_compiling" != yes; then | |
3019 | if { ac_try='./$ac_file' | |
3020 | { { case "(($ac_try" in | |
3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3022 | *) ac_try_echo=$ac_try;; | |
3023 | esac | |
3024 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3025 | $as_echo "$ac_try_echo"; } >&5 | |
3026 | (eval "$ac_try") 2>&5 | |
3027 | ac_status=$? | |
3028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3029 | test $ac_status = 0; }; }; then | |
3030 | cross_compiling=no | |
3031 | else | |
3032 | if test "$cross_compiling" = maybe; then | |
3033 | cross_compiling=yes | |
3034 | else | |
3035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3037 | as_fn_error "cannot run C compiled programs. | |
3038 | If you meant to cross compile, use \`--host'. | |
3039 | See \`config.log' for more details." "$LINENO" 5; } | |
3040 | fi | |
3041 | fi | |
eff02e4f | 3042 | fi |
d4c059d5 ILT |
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3044 | $as_echo "yes" >&6; } | |
eff02e4f | 3045 | |
d4c059d5 ILT |
3046 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
3047 | ac_clean_files=$ac_clean_files_save | |
3048 | # Check that the compiler produces executables we can run. If not, either | |
3049 | # the compiler is broken, or we cross compile. | |
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3051 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3053 | $as_echo "$cross_compiling" >&6; } | |
eff02e4f | 3054 | |
d4c059d5 ILT |
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3056 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3057 | if { { ac_try="$ac_link" | |
3058 | case "(($ac_try" in | |
3059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3060 | *) ac_try_echo=$ac_try;; | |
3061 | esac | |
3062 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3063 | $as_echo "$ac_try_echo"; } >&5 | |
3064 | (eval "$ac_link") 2>&5 | |
3065 | ac_status=$? | |
3066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3067 | test $ac_status = 0; }; then : | |
3068 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3069 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3070 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3071 | # `rm'. | |
3072 | for ac_file in conftest.exe conftest conftest.*; do | |
3073 | test -f "$ac_file" || continue | |
3074 | case $ac_file in | |
3075 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3076 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3077 | break;; | |
3078 | * ) break;; | |
3079 | esac | |
3080 | done | |
eff02e4f | 3081 | else |
d4c059d5 ILT |
3082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3084 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3085 | See \`config.log' for more details." "$LINENO" 5; } | |
eff02e4f | 3086 | fi |
d4c059d5 ILT |
3087 | rm -f conftest$ac_cv_exeext |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3089 | $as_echo "$ac_cv_exeext" >&6; } | |
eff02e4f | 3090 | |
d4c059d5 ILT |
3091 | rm -f conftest.$ac_ext |
3092 | EXEEXT=$ac_cv_exeext | |
3093 | ac_exeext=$EXEEXT | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3095 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3096 | if test "${ac_cv_objext+set}" = set; then : | |
eff02e4f ILT |
3097 | $as_echo_n "(cached) " >&6 |
3098 | else | |
d4c059d5 ILT |
3099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3100 | /* end confdefs.h. */ | |
eff02e4f | 3101 | |
d4c059d5 ILT |
3102 | int |
3103 | main () | |
3104 | { | |
eff02e4f | 3105 | |
d4c059d5 ILT |
3106 | ; |
3107 | return 0; | |
3108 | } | |
3109 | _ACEOF | |
3110 | rm -f conftest.o conftest.obj | |
3111 | if { { ac_try="$ac_compile" | |
3112 | case "(($ac_try" in | |
3113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3114 | *) ac_try_echo=$ac_try;; | |
eff02e4f | 3115 | esac |
d4c059d5 ILT |
3116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3117 | $as_echo "$ac_try_echo"; } >&5 | |
3118 | (eval "$ac_compile") 2>&5 | |
3119 | ac_status=$? | |
3120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3121 | test $ac_status = 0; }; then : | |
3122 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3123 | test -f "$ac_file" || continue; | |
3124 | case $ac_file in | |
3125 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3126 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3127 | break;; | |
3128 | esac | |
3129 | done | |
eff02e4f | 3130 | else |
d4c059d5 ILT |
3131 | $as_echo "$as_me: failed program was:" >&5 |
3132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
eff02e4f | 3133 | |
d4c059d5 ILT |
3134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3136 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3137 | See \`config.log' for more details." "$LINENO" 5; } | |
3138 | fi | |
3139 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3140 | fi | |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3142 | $as_echo "$ac_cv_objext" >&6; } | |
3143 | OBJEXT=$ac_cv_objext | |
3144 | ac_objext=$OBJEXT | |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3146 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3147 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
eff02e4f ILT |
3148 | $as_echo_n "(cached) " >&6 |
3149 | else | |
d4c059d5 ILT |
3150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3151 | /* end confdefs.h. */ | |
eff02e4f | 3152 | |
d4c059d5 ILT |
3153 | int |
3154 | main () | |
3155 | { | |
3156 | #ifndef __GNUC__ | |
3157 | choke me | |
3158 | #endif | |
3159 | ||
3160 | ; | |
3161 | return 0; | |
3162 | } | |
3163 | _ACEOF | |
3164 | if ac_fn_c_try_compile "$LINENO"; then : | |
3165 | ac_compiler_gnu=yes | |
eff02e4f | 3166 | else |
d4c059d5 | 3167 | ac_compiler_gnu=no |
eff02e4f | 3168 | fi |
d4c059d5 ILT |
3169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3170 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
eff02e4f | 3171 | |
eff02e4f | 3172 | fi |
d4c059d5 ILT |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3174 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3175 | if test $ac_compiler_gnu = yes; then | |
3176 | GCC=yes | |
eff02e4f | 3177 | else |
d4c059d5 ILT |
3178 | GCC= |
3179 | fi | |
3180 | ac_test_CFLAGS=${CFLAGS+set} | |
3181 | ac_save_CFLAGS=$CFLAGS | |
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3183 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3184 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3185 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 3186 | else |
d4c059d5 ILT |
3187 | ac_save_c_werror_flag=$ac_c_werror_flag |
3188 | ac_c_werror_flag=yes | |
3189 | ac_cv_prog_cc_g=no | |
3190 | CFLAGS="-g" | |
3191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3192 | /* end confdefs.h. */ | |
eff02e4f | 3193 | |
d4c059d5 ILT |
3194 | int |
3195 | main () | |
3196 | { | |
3197 | ||
3198 | ; | |
3199 | return 0; | |
3200 | } | |
3201 | _ACEOF | |
3202 | if ac_fn_c_try_compile "$LINENO"; then : | |
3203 | ac_cv_prog_cc_g=yes | |
eff02e4f | 3204 | else |
d4c059d5 ILT |
3205 | CFLAGS="" |
3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3207 | /* end confdefs.h. */ | |
eff02e4f | 3208 | |
d4c059d5 ILT |
3209 | int |
3210 | main () | |
3211 | { | |
3212 | ||
3213 | ; | |
3214 | return 0; | |
3215 | } | |
3216 | _ACEOF | |
3217 | if ac_fn_c_try_compile "$LINENO"; then : | |
eff02e4f | 3218 | |
eff02e4f | 3219 | else |
d4c059d5 ILT |
3220 | ac_c_werror_flag=$ac_save_c_werror_flag |
3221 | CFLAGS="-g" | |
3222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3223 | /* end confdefs.h. */ | |
3224 | ||
3225 | int | |
3226 | main () | |
3227 | { | |
eff02e4f | 3228 | |
d4c059d5 ILT |
3229 | ; |
3230 | return 0; | |
3231 | } | |
3232 | _ACEOF | |
3233 | if ac_fn_c_try_compile "$LINENO"; then : | |
3234 | ac_cv_prog_cc_g=yes | |
eff02e4f | 3235 | fi |
d4c059d5 | 3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eff02e4f | 3237 | fi |
d4c059d5 | 3238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eff02e4f | 3239 | fi |
d4c059d5 ILT |
3240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3241 | ac_c_werror_flag=$ac_save_c_werror_flag | |
eff02e4f | 3242 | fi |
d4c059d5 ILT |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3244 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3245 | if test "$ac_test_CFLAGS" = set; then | |
3246 | CFLAGS=$ac_save_CFLAGS | |
3247 | elif test $ac_cv_prog_cc_g = yes; then | |
3248 | if test "$GCC" = yes; then | |
3249 | CFLAGS="-g -O2" | |
3250 | else | |
3251 | CFLAGS="-g" | |
3252 | fi | |
eff02e4f | 3253 | else |
d4c059d5 ILT |
3254 | if test "$GCC" = yes; then |
3255 | CFLAGS="-O2" | |
3256 | else | |
3257 | CFLAGS= | |
eff02e4f | 3258 | fi |
eff02e4f | 3259 | fi |
d4c059d5 ILT |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3261 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3262 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3263 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 3264 | else |
d4c059d5 ILT |
3265 | ac_cv_prog_cc_c89=no |
3266 | ac_save_CC=$CC | |
3267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3268 | /* end confdefs.h. */ | |
3269 | #include <stdarg.h> | |
3270 | #include <stdio.h> | |
3271 | #include <sys/types.h> | |
3272 | #include <sys/stat.h> | |
3273 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3274 | struct buf { int x; }; | |
3275 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3276 | static char *e (p, i) | |
3277 | char **p; | |
3278 | int i; | |
3279 | { | |
3280 | return p[i]; | |
3281 | } | |
3282 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3283 | { | |
3284 | char *s; | |
3285 | va_list v; | |
3286 | va_start (v,p); | |
3287 | s = g (p, va_arg (v,int)); | |
3288 | va_end (v); | |
3289 | return s; | |
3290 | } | |
eff02e4f | 3291 | |
d4c059d5 ILT |
3292 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3293 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3294 | These don't provoke an error unfortunately, instead are silently treated | |
3295 | as 'x'. The following induces an error, until -std is added to get | |
3296 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3297 | array size at least. It's necessary to write '\x00'==0 to get something | |
3298 | that's true only with -std. */ | |
3299 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
eff02e4f | 3300 | |
d4c059d5 ILT |
3301 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3302 | inside strings and character constants. */ | |
3303 | #define FOO(x) 'x' | |
3304 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
eff02e4f | 3305 | |
d4c059d5 ILT |
3306 | int test (int i, double x); |
3307 | struct s1 {int (*f) (int a);}; | |
3308 | struct s2 {int (*f) (double a);}; | |
3309 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3310 | int argc; | |
3311 | char **argv; | |
3312 | int | |
3313 | main () | |
3314 | { | |
3315 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3316 | ; | |
3317 | return 0; | |
3318 | } | |
3319 | _ACEOF | |
3320 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3321 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3322 | do | |
3323 | CC="$ac_save_CC $ac_arg" | |
3324 | if ac_fn_c_try_compile "$LINENO"; then : | |
3325 | ac_cv_prog_cc_c89=$ac_arg | |
eff02e4f | 3326 | fi |
d4c059d5 ILT |
3327 | rm -f core conftest.err conftest.$ac_objext |
3328 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3329 | done | |
3330 | rm -f conftest.$ac_ext | |
3331 | CC=$ac_save_CC | |
eff02e4f ILT |
3332 | |
3333 | fi | |
d4c059d5 ILT |
3334 | # AC_CACHE_VAL |
3335 | case "x$ac_cv_prog_cc_c89" in | |
3336 | x) | |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3338 | $as_echo "none needed" >&6; } ;; | |
3339 | xno) | |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3341 | $as_echo "unsupported" >&6; } ;; | |
3342 | *) | |
3343 | CC="$CC $ac_cv_prog_cc_c89" | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3345 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
eff02e4f | 3346 | esac |
d4c059d5 | 3347 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
eff02e4f | 3348 | |
d4c059d5 | 3349 | fi |
eff02e4f | 3350 | |
d4c059d5 ILT |
3351 | ac_ext=c |
3352 | ac_cpp='$CPP $CPPFLAGS' | |
3353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
eff02e4f | 3356 | |
d4c059d5 ILT |
3357 | |
3358 | ac_ext=c | |
3359 | ac_cpp='$CPP $CPPFLAGS' | |
3360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3364 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3365 | # On Suns, sometimes $CPP names a directory. | |
3366 | if test -n "$CPP" && test -d "$CPP"; then | |
3367 | CPP= | |
3368 | fi | |
3369 | if test -z "$CPP"; then | |
3370 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3371 | $as_echo_n "(cached) " >&6 | |
3372 | else | |
3373 | # Double quotes because CPP needs to be expanded | |
3374 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3375 | do | |
3376 | ac_preproc_ok=false | |
3377 | for ac_c_preproc_warn_flag in '' yes | |
3378 | do | |
3379 | # Use a header file that comes with gcc, so configuring glibc | |
3380 | # with a fresh cross-compiler works. | |
3381 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3382 | # <limits.h> exists even on freestanding compilers. | |
3383 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3384 | # not just through cpp. "Syntax error" is here to catch this case. | |
3385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3386 | /* end confdefs.h. */ | |
3387 | #ifdef __STDC__ | |
3388 | # include <limits.h> | |
3389 | #else | |
3390 | # include <assert.h> | |
3391 | #endif | |
3392 | Syntax error | |
eff02e4f | 3393 | _ACEOF |
d4c059d5 | 3394 | if ac_fn_c_try_cpp "$LINENO"; then : |
eff02e4f | 3395 | |
d4c059d5 ILT |
3396 | else |
3397 | # Broken: fails on valid input. | |
3398 | continue | |
3399 | fi | |
3400 | rm -f conftest.err conftest.$ac_ext | |
3401 | ||
3402 | # OK, works on sane cases. Now check whether nonexistent headers | |
3403 | # can be detected and how. | |
3404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3405 | /* end confdefs.h. */ | |
3406 | #include <ac_nonexistent.h> | |
3407 | _ACEOF | |
3408 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3409 | # Broken: success on invalid input. | |
3410 | continue | |
3411 | else | |
3412 | # Passes both tests. | |
3413 | ac_preproc_ok=: | |
3414 | break | |
3415 | fi | |
3416 | rm -f conftest.err conftest.$ac_ext | |
eff02e4f | 3417 | |
eff02e4f | 3418 | done |
d4c059d5 ILT |
3419 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3420 | rm -f conftest.err conftest.$ac_ext | |
3421 | if $ac_preproc_ok; then : | |
3422 | break | |
3423 | fi | |
eff02e4f | 3424 | |
d4c059d5 ILT |
3425 | done |
3426 | ac_cv_prog_CPP=$CPP | |
3427 | ||
3428 | fi | |
3429 | CPP=$ac_cv_prog_CPP | |
3430 | else | |
3431 | ac_cv_prog_CPP=$CPP | |
3432 | fi | |
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3434 | $as_echo "$CPP" >&6; } | |
3435 | ac_preproc_ok=false | |
3436 | for ac_c_preproc_warn_flag in '' yes | |
eff02e4f | 3437 | do |
d4c059d5 ILT |
3438 | # Use a header file that comes with gcc, so configuring glibc |
3439 | # with a fresh cross-compiler works. | |
3440 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3441 | # <limits.h> exists even on freestanding compilers. | |
3442 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3443 | # not just through cpp. "Syntax error" is here to catch this case. | |
3444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3445 | /* end confdefs.h. */ | |
3446 | #ifdef __STDC__ | |
3447 | # include <limits.h> | |
3448 | #else | |
3449 | # include <assert.h> | |
3450 | #endif | |
3451 | Syntax error | |
3452 | _ACEOF | |
3453 | if ac_fn_c_try_cpp "$LINENO"; then : | |
eff02e4f ILT |
3454 | |
3455 | else | |
d4c059d5 ILT |
3456 | # Broken: fails on valid input. |
3457 | continue | |
eff02e4f | 3458 | fi |
d4c059d5 | 3459 | rm -f conftest.err conftest.$ac_ext |
eff02e4f | 3460 | |
d4c059d5 ILT |
3461 | # OK, works on sane cases. Now check whether nonexistent headers |
3462 | # can be detected and how. | |
3463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3464 | /* end confdefs.h. */ | |
3465 | #include <ac_nonexistent.h> | |
3466 | _ACEOF | |
3467 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3468 | # Broken: success on invalid input. | |
3469 | continue | |
3470 | else | |
3471 | # Passes both tests. | |
3472 | ac_preproc_ok=: | |
3473 | break | |
3474 | fi | |
3475 | rm -f conftest.err conftest.$ac_ext | |
3476 | ||
3477 | done | |
3478 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3479 | rm -f conftest.err conftest.$ac_ext | |
3480 | if $ac_preproc_ok; then : | |
3481 | ||
3482 | else | |
3483 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
eff02e4f | 3484 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d4c059d5 ILT |
3485 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
3486 | See \`config.log' for more details." "$LINENO" 5; } | |
eff02e4f | 3487 | fi |
eff02e4f | 3488 | |
d4c059d5 ILT |
3489 | ac_ext=c |
3490 | ac_cpp='$CPP $CPPFLAGS' | |
3491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3494 | ||
3495 | ||
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3497 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3498 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3499 | $as_echo_n "(cached) " >&6 | |
3500 | else | |
3501 | if test -z "$GREP"; then | |
3502 | ac_path_GREP_found=false | |
3503 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3505 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3506 | do | |
3507 | IFS=$as_save_IFS | |
3508 | test -z "$as_dir" && as_dir=. | |
3509 | for ac_prog in grep ggrep; do | |
3510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3511 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3512 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3513 | # Check for GNU ac_path_GREP and select it if it is found. | |
3514 | # Check for GNU $ac_path_GREP | |
3515 | case `"$ac_path_GREP" --version 2>&1` in | |
3516 | *GNU*) | |
3517 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3518 | *) | |
3519 | ac_count=0 | |
3520 | $as_echo_n 0123456789 >"conftest.in" | |
3521 | while : | |
3522 | do | |
3523 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3524 | mv "conftest.tmp" "conftest.in" | |
3525 | cp "conftest.in" "conftest.nl" | |
3526 | $as_echo 'GREP' >> "conftest.nl" | |
3527 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3528 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3529 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3530 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3531 | # Best one so far, save it but keep looking for a better one | |
3532 | ac_cv_path_GREP="$ac_path_GREP" | |
3533 | ac_path_GREP_max=$ac_count | |
eff02e4f | 3534 | fi |
d4c059d5 ILT |
3535 | # 10*(2^10) chars as input seems more than enough |
3536 | test $ac_count -gt 10 && break | |
3537 | done | |
3538 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3539 | esac | |
3540 | ||
3541 | $ac_path_GREP_found && break 3 | |
3542 | done | |
3543 | done | |
3544 | done | |
3545 | IFS=$as_save_IFS | |
3546 | if test -z "$ac_cv_path_GREP"; then | |
3547 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
eff02e4f | 3548 | fi |
d4c059d5 ILT |
3549 | else |
3550 | ac_cv_path_GREP=$GREP | |
eff02e4f | 3551 | fi |
eff02e4f | 3552 | |
d4c059d5 ILT |
3553 | fi |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3555 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3556 | GREP="$ac_cv_path_GREP" | |
eff02e4f | 3557 | |
d4c059d5 ILT |
3558 | |
3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3560 | $as_echo_n "checking for egrep... " >&6; } | |
3561 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3562 | $as_echo_n "(cached) " >&6 | |
3563 | else | |
3564 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3565 | then ac_cv_path_EGREP="$GREP -E" | |
3566 | else | |
3567 | if test -z "$EGREP"; then | |
3568 | ac_path_EGREP_found=false | |
3569 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3571 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3572 | do | |
3573 | IFS=$as_save_IFS | |
3574 | test -z "$as_dir" && as_dir=. | |
3575 | for ac_prog in egrep; do | |
3576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3577 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3578 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3579 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3580 | # Check for GNU $ac_path_EGREP | |
3581 | case `"$ac_path_EGREP" --version 2>&1` in | |
3582 | *GNU*) | |
3583 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3584 | *) | |
3585 | ac_count=0 | |
3586 | $as_echo_n 0123456789 >"conftest.in" | |
3587 | while : | |
3588 | do | |
3589 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3590 | mv "conftest.tmp" "conftest.in" | |
3591 | cp "conftest.in" "conftest.nl" | |
3592 | $as_echo 'EGREP' >> "conftest.nl" | |
3593 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3594 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3595 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3596 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3597 | # Best one so far, save it but keep looking for a better one | |
3598 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3599 | ac_path_EGREP_max=$ac_count | |
3600 | fi | |
3601 | # 10*(2^10) chars as input seems more than enough | |
3602 | test $ac_count -gt 10 && break | |
3603 | done | |
3604 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
eff02e4f | 3605 | esac |
d4c059d5 ILT |
3606 | |
3607 | $ac_path_EGREP_found && break 3 | |
3608 | done | |
3609 | done | |
3610 | done | |
3611 | IFS=$as_save_IFS | |
3612 | if test -z "$ac_cv_path_EGREP"; then | |
3613 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3614 | fi | |
eff02e4f | 3615 | else |
d4c059d5 ILT |
3616 | ac_cv_path_EGREP=$EGREP |
3617 | fi | |
3618 | ||
3619 | fi | |
3620 | fi | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3622 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3623 | EGREP="$ac_cv_path_EGREP" | |
3624 | ||
3625 | ||
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3627 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3628 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3629 | $as_echo_n "(cached) " >&6 | |
3630 | else | |
3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3632 | /* end confdefs.h. */ | |
3633 | #include <stdlib.h> | |
3634 | #include <stdarg.h> | |
3635 | #include <string.h> | |
3636 | #include <float.h> | |
3637 | ||
3638 | int | |
3639 | main () | |
3640 | { | |
3641 | ||
3642 | ; | |
3643 | return 0; | |
3644 | } | |
3645 | _ACEOF | |
3646 | if ac_fn_c_try_compile "$LINENO"; then : | |
3647 | ac_cv_header_stdc=yes | |
3648 | else | |
3649 | ac_cv_header_stdc=no | |
3650 | fi | |
3651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3652 | ||
3653 | if test $ac_cv_header_stdc = yes; then | |
3654 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3656 | /* end confdefs.h. */ | |
3657 | #include <string.h> | |
3658 | ||
3659 | _ACEOF | |
3660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3661 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3662 | ||
3663 | else | |
3664 | ac_cv_header_stdc=no | |
3665 | fi | |
3666 | rm -f conftest* | |
3667 | ||
3668 | fi | |
3669 | ||
3670 | if test $ac_cv_header_stdc = yes; then | |
3671 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3673 | /* end confdefs.h. */ | |
3674 | #include <stdlib.h> | |
3675 | ||
3676 | _ACEOF | |
3677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3678 | $EGREP "free" >/dev/null 2>&1; then : | |
3679 | ||
3680 | else | |
3681 | ac_cv_header_stdc=no | |
3682 | fi | |
3683 | rm -f conftest* | |
3684 | ||
3685 | fi | |
3686 | ||
3687 | if test $ac_cv_header_stdc = yes; then | |
3688 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3689 | if test "$cross_compiling" = yes; then : | |
3690 | : | |
3691 | else | |
3692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3693 | /* end confdefs.h. */ | |
3694 | #include <ctype.h> | |
3695 | #include <stdlib.h> | |
3696 | #if ((' ' & 0x0FF) == 0x020) | |
3697 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3698 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3699 | #else | |
3700 | # define ISLOWER(c) \ | |
3701 | (('a' <= (c) && (c) <= 'i') \ | |
3702 | || ('j' <= (c) && (c) <= 'r') \ | |
3703 | || ('s' <= (c) && (c) <= 'z')) | |
3704 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3705 | #endif | |
3706 | ||
3707 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3708 | int | |
3709 | main () | |
3710 | { | |
3711 | int i; | |
3712 | for (i = 0; i < 256; i++) | |
3713 | if (XOR (islower (i), ISLOWER (i)) | |
3714 | || toupper (i) != TOUPPER (i)) | |
3715 | return 2; | |
3716 | return 0; | |
3717 | } | |
3718 | _ACEOF | |
3719 | if ac_fn_c_try_run "$LINENO"; then : | |
3720 | ||
3721 | else | |
3722 | ac_cv_header_stdc=no | |
3723 | fi | |
3724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3725 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3726 | fi | |
3727 | ||
3728 | fi | |
3729 | fi | |
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3731 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3732 | if test $ac_cv_header_stdc = yes; then | |
3733 | ||
3734 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3735 | ||
3736 | fi | |
3737 | ||
3738 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3739 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3740 | inttypes.h stdint.h unistd.h | |
3741 | do : | |
3742 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3743 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3744 | " | |
3745 | eval as_val=\$$as_ac_Header | |
3746 | if test "x$as_val" = x""yes; then : | |
3747 | cat >>confdefs.h <<_ACEOF | |
3748 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3749 | _ACEOF | |
3750 | ||
3751 | fi | |
3752 | ||
3753 | done | |
3754 | ||
3755 | ||
3756 | ||
3757 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3758 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3759 | MINIX=yes | |
3760 | else | |
3761 | MINIX= | |
3762 | fi | |
3763 | ||
3764 | ||
3765 | if test "$MINIX" = yes; then | |
3766 | ||
3767 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3768 | ||
3769 | ||
3770 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3771 | ||
3772 | ||
3773 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3774 | ||
3775 | fi | |
3776 | ||
3777 | ||
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3779 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3780 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3781 | $as_echo_n "(cached) " >&6 | |
3782 | else | |
3783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3784 | /* end confdefs.h. */ | |
3785 | ||
3786 | # define __EXTENSIONS__ 1 | |
3787 | $ac_includes_default | |
3788 | int | |
3789 | main () | |
3790 | { | |
3791 | ||
3792 | ; | |
3793 | return 0; | |
3794 | } | |
3795 | _ACEOF | |
3796 | if ac_fn_c_try_compile "$LINENO"; then : | |
3797 | ac_cv_safe_to_define___extensions__=yes | |
3798 | else | |
3799 | ac_cv_safe_to_define___extensions__=no | |
3800 | fi | |
3801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3802 | fi | |
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3804 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3805 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3806 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3807 | ||
3808 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3809 | ||
3810 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3811 | ||
3812 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3813 | ||
3814 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3815 | ||
3816 | ||
3817 | ||
3818 | libtool_VERSION=1:0:0 | |
3819 | ||
3820 | ||
af710874 ILT |
3821 | # 1.11.1: Require that version of automake. |
3822 | # foreign: Don't require README, INSTALL, NEWS, etc. | |
3823 | # no-define: Don't define PACKAGE and VERSION. | |
3824 | # no-dependencies: Don't generate automatic dependencies. | |
3825 | # (because it breaks when using bootstrap-lean, since some of the | |
3826 | # headers are gone at "make install" time). | |
3827 | # -Wall: Issue all automake warnings. | |
3828 | # -Wno-portability: Don't warn about constructs supported by GNU make. | |
3829 | # (because GCC requires GNU make anyhow). | |
d4c059d5 ILT |
3830 | am__api_version='1.11' |
3831 | ||
3832 | # Find a good install program. We prefer a C program (faster), | |
3833 | # so one script is as good as another. But avoid the broken or | |
3834 | # incompatible versions: | |
3835 | # SysV /etc/install, /usr/sbin/install | |
3836 | # SunOS /usr/etc/install | |
3837 | # IRIX /sbin/install | |
3838 | # AIX /bin/install | |
3839 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3840 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3841 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3842 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3843 | # OS/2's system install, which has a completely different semantic | |
3844 | # ./install, which can be erroneously created by make from ./install.sh. | |
3845 | # Reject install programs that cannot install multiple files. | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3847 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3848 | if test -z "$INSTALL"; then | |
3849 | if test "${ac_cv_path_install+set}" = set; then : | |
3850 | $as_echo_n "(cached) " >&6 | |
3851 | else | |
3852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3853 | for as_dir in $PATH | |
3854 | do | |
3855 | IFS=$as_save_IFS | |
3856 | test -z "$as_dir" && as_dir=. | |
3857 | # Account for people who put trailing slashes in PATH elements. | |
3858 | case $as_dir/ in #(( | |
3859 | ./ | .// | /[cC]/* | \ | |
3860 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3861 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3862 | /usr/ucb/* ) ;; | |
3863 | *) | |
3864 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3865 | # Don't use installbsd from OSF since it installs stuff as root | |
3866 | # by default. | |
3867 | for ac_prog in ginstall scoinst install; do | |
3868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3869 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3870 | if test $ac_prog = install && | |
3871 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3872 | # AIX install. It has an incompatible calling convention. | |
3873 | : | |
3874 | elif test $ac_prog = install && | |
3875 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3876 | # program-specific install script used by HP pwplus--don't use. | |
3877 | : | |
3878 | else | |
3879 | rm -rf conftest.one conftest.two conftest.dir | |
3880 | echo one > conftest.one | |
3881 | echo two > conftest.two | |
3882 | mkdir conftest.dir | |
3883 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3884 | test -s conftest.one && test -s conftest.two && | |
3885 | test -s conftest.dir/conftest.one && | |
3886 | test -s conftest.dir/conftest.two | |
3887 | then | |
3888 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3889 | break 3 | |
3890 | fi | |
3891 | fi | |
3892 | fi | |
3893 | done | |
3894 | done | |
3895 | ;; | |
3896 | esac | |
3897 | ||
3898 | done | |
3899 | IFS=$as_save_IFS | |
3900 | ||
3901 | rm -rf conftest.one conftest.two conftest.dir | |
3902 | ||
3903 | fi | |
3904 | if test "${ac_cv_path_install+set}" = set; then | |
3905 | INSTALL=$ac_cv_path_install | |
3906 | else | |
3907 | # As a last resort, use the slow shell script. Don't cache a | |
3908 | # value for INSTALL within a source directory, because that will | |
3909 | # break other packages using the cache if that directory is | |
3910 | # removed, or if the value is a relative name. | |
3911 | INSTALL=$ac_install_sh | |
3912 | fi | |
3913 | fi | |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3915 | $as_echo "$INSTALL" >&6; } | |
3916 | ||
3917 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3918 | # It thinks the first close brace ends the variable substitution. | |
3919 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3920 | ||
3921 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3922 | ||
3923 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3924 | ||
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
3926 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
3927 | # Just in case | |
3928 | sleep 1 | |
3929 | echo timestamp > conftest.file | |
3930 | # Reject unsafe characters in $srcdir or the absolute working directory | |
3931 | # name. Accept space and tab only in the latter. | |
3932 | am_lf=' | |
3933 | ' | |
3934 | case `pwd` in | |
3935 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3936 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3937 | esac | |
3938 | case $srcdir in | |
3939 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3940 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3941 | esac | |
3942 | ||
3943 | # Do `set' in a subshell so we don't clobber the current shell's | |
3944 | # arguments. Must try -L first in case configure is actually a | |
3945 | # symlink; some systems play weird games with the mod time of symlinks | |
3946 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3947 | # directory). | |
3948 | if ( | |
3949 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3950 | if test "$*" = "X"; then | |
3951 | # -L didn't work. | |
3952 | set X `ls -t "$srcdir/configure" conftest.file` | |
3953 | fi | |
3954 | rm -f conftest.file | |
3955 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3956 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3957 | ||
3958 | # If neither matched, then we have a broken ls. This can happen | |
3959 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3960 | # broken ls alias from the environment. This has actually | |
3961 | # happened. Such a system could not be considered "sane". | |
3962 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
3963 | alias in your environment" "$LINENO" 5 | |
3964 | fi | |
3965 | ||
3966 | test "$2" = conftest.file | |
3967 | ) | |
3968 | then | |
3969 | # Ok. | |
3970 | : | |
3971 | else | |
3972 | as_fn_error "newly created file is older than distributed files! | |
3973 | Check your system clock" "$LINENO" 5 | |
3974 | fi | |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3976 | $as_echo "yes" >&6; } | |
3977 | test "$program_prefix" != NONE && | |
3978 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3979 | # Use a double $ so make ignores it. | |
3980 | test "$program_suffix" != NONE && | |
3981 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3982 | # Double any \ or $. | |
3983 | # By default was `s,x,x', remove it if useless. | |
3984 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3985 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3986 | ||
3987 | # expand $ac_aux_dir to an absolute path | |
3988 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3989 | ||
3990 | if test x"${MISSING+set}" != xset; then | |
3991 | case $am_aux_dir in | |
3992 | *\ * | *\ *) | |
3993 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3994 | *) | |
3995 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3996 | esac | |
3997 | fi | |
3998 | # Use eval to expand $SHELL | |
3999 | if eval "$MISSING --run true"; then | |
4000 | am_missing_run="$MISSING --run " | |
4001 | else | |
4002 | am_missing_run= | |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
4004 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
4005 | fi | |
4006 | ||
4007 | if test x"${install_sh}" != xset; then | |
4008 | case $am_aux_dir in | |
4009 | *\ * | *\ *) | |
4010 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4011 | *) | |
4012 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4013 | esac | |
4014 | fi | |
4015 | ||
4016 | # Installed binaries are usually stripped using `strip' when the user | |
4017 | # run `make install-strip'. However `strip' might not be the right | |
4018 | # tool to use in cross-compilation environments, therefore Automake | |
4019 | # will honor the `STRIP' environment variable to overrule this program. | |
4020 | if test "$cross_compiling" != no; then | |
4021 | if test -n "$ac_tool_prefix"; then | |
4022 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4023 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4025 | $as_echo_n "checking for $ac_word... " >&6; } | |
4026 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4027 | $as_echo_n "(cached) " >&6 | |
4028 | else | |
4029 | if test -n "$STRIP"; then | |
4030 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4031 | else | |
4032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4033 | for as_dir in $PATH | |
4034 | do | |
4035 | IFS=$as_save_IFS | |
4036 | test -z "$as_dir" && as_dir=. | |
4037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4039 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4041 | break 2 | |
4042 | fi | |
4043 | done | |
4044 | done | |
4045 | IFS=$as_save_IFS | |
4046 | ||
4047 | fi | |
4048 | fi | |
4049 | STRIP=$ac_cv_prog_STRIP | |
4050 | if test -n "$STRIP"; then | |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4052 | $as_echo "$STRIP" >&6; } | |
4053 | else | |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4055 | $as_echo "no" >&6; } | |
4056 | fi | |
4057 | ||
4058 | ||
4059 | fi | |
4060 | if test -z "$ac_cv_prog_STRIP"; then | |
4061 | ac_ct_STRIP=$STRIP | |
4062 | # Extract the first word of "strip", so it can be a program name with args. | |
4063 | set dummy strip; ac_word=$2 | |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4065 | $as_echo_n "checking for $ac_word... " >&6; } | |
4066 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4067 | $as_echo_n "(cached) " >&6 | |
4068 | else | |
4069 | if test -n "$ac_ct_STRIP"; then | |
4070 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4071 | else | |
4072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4073 | for as_dir in $PATH | |
4074 | do | |
4075 | IFS=$as_save_IFS | |
4076 | test -z "$as_dir" && as_dir=. | |
4077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4079 | ac_cv_prog_ac_ct_STRIP="strip" | |
4080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4081 | break 2 | |
4082 | fi | |
4083 | done | |
4084 | done | |
4085 | IFS=$as_save_IFS | |
4086 | ||
4087 | fi | |
4088 | fi | |
4089 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4090 | if test -n "$ac_ct_STRIP"; then | |
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4092 | $as_echo "$ac_ct_STRIP" >&6; } | |
4093 | else | |
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4095 | $as_echo "no" >&6; } | |
4096 | fi | |
4097 | ||
4098 | if test "x$ac_ct_STRIP" = x; then | |
4099 | STRIP=":" | |
4100 | else | |
4101 | case $cross_compiling:$ac_tool_warned in | |
4102 | yes:) | |
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4104 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4105 | ac_tool_warned=yes ;; | |
4106 | esac | |
4107 | STRIP=$ac_ct_STRIP | |
4108 | fi | |
4109 | else | |
4110 | STRIP="$ac_cv_prog_STRIP" | |
4111 | fi | |
4112 | ||
4113 | fi | |
4114 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
4115 | ||
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
4117 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4118 | if test -z "$MKDIR_P"; then | |
4119 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4120 | $as_echo_n "(cached) " >&6 | |
4121 | else | |
4122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4123 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4124 | do | |
4125 | IFS=$as_save_IFS | |
4126 | test -z "$as_dir" && as_dir=. | |
4127 | for ac_prog in mkdir gmkdir; do | |
4128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4129 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4130 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4131 | 'mkdir (GNU coreutils) '* | \ | |
4132 | 'mkdir (coreutils) '* | \ | |
4133 | 'mkdir (fileutils) '4.1*) | |
4134 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4135 | break 3;; | |
4136 | esac | |
4137 | done | |
4138 | done | |
4139 | done | |
4140 | IFS=$as_save_IFS | |
4141 | ||
4142 | fi | |
4143 | ||
4144 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4145 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4146 | else | |
4147 | # As a last resort, use the slow shell script. Don't cache a | |
4148 | # value for MKDIR_P within a source directory, because that will | |
4149 | # break other packages using the cache if that directory is | |
4150 | # removed, or if the value is a relative name. | |
4151 | test -d ./--version && rmdir ./--version | |
4152 | MKDIR_P="$ac_install_sh -d" | |
4153 | fi | |
4154 | fi | |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
4156 | $as_echo "$MKDIR_P" >&6; } | |
4157 | ||
4158 | mkdir_p="$MKDIR_P" | |
4159 | case $mkdir_p in | |
4160 | [\\/$]* | ?:[\\/]*) ;; | |
4161 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
4162 | esac | |
4163 | ||
4164 | for ac_prog in gawk mawk nawk awk | |
4165 | do | |
4166 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4167 | set dummy $ac_prog; ac_word=$2 | |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4169 | $as_echo_n "checking for $ac_word... " >&6; } | |
4170 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
4171 | $as_echo_n "(cached) " >&6 | |
4172 | else | |
4173 | if test -n "$AWK"; then | |
4174 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4175 | else | |
4176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4177 | for as_dir in $PATH | |
4178 | do | |
4179 | IFS=$as_save_IFS | |
4180 | test -z "$as_dir" && as_dir=. | |
4181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4183 | ac_cv_prog_AWK="$ac_prog" | |
4184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4185 | break 2 | |
4186 | fi | |
4187 | done | |
4188 | done | |
4189 | IFS=$as_save_IFS | |
4190 | ||
4191 | fi | |
4192 | fi | |
4193 | AWK=$ac_cv_prog_AWK | |
4194 | if test -n "$AWK"; then | |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4196 | $as_echo "$AWK" >&6; } | |
4197 | else | |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4199 | $as_echo "no" >&6; } | |
4200 | fi | |
4201 | ||
4202 | ||
4203 | test -n "$AWK" && break | |
4204 | done | |
4205 | ||
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4207 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4208 | set x ${MAKE-make} | |
4209 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4210 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4211 | $as_echo_n "(cached) " >&6 | |
4212 | else | |
4213 | cat >conftest.make <<\_ACEOF | |
4214 | SHELL = /bin/sh | |
4215 | all: | |
4216 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4217 | _ACEOF | |
4218 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4219 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4220 | *@@@%%%=?*=@@@%%%*) | |
4221 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4222 | *) | |
4223 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4224 | esac | |
4225 | rm -f conftest.make | |
4226 | fi | |
4227 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4229 | $as_echo "yes" >&6; } | |
4230 | SET_MAKE= | |
4231 | else | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4233 | $as_echo "no" >&6; } | |
4234 | SET_MAKE="MAKE=${MAKE-make}" | |
4235 | fi | |
4236 | ||
4237 | rm -rf .tst 2>/dev/null | |
4238 | mkdir .tst 2>/dev/null | |
4239 | if test -d .tst; then | |
4240 | am__leading_dot=. | |
4241 | else | |
4242 | am__leading_dot=_ | |
4243 | fi | |
4244 | rmdir .tst 2>/dev/null | |
4245 | ||
d4c059d5 ILT |
4246 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4247 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4248 | # is not polluted with repeated "-I." | |
4249 | am__isrc=' -I$(srcdir)' | |
4250 | # test to see if srcdir already configured | |
4251 | if test -f $srcdir/config.status; then | |
4252 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4253 | fi | |
4254 | fi | |
4255 | ||
4256 | # test whether we have cygpath | |
4257 | if test -z "$CYGPATH_W"; then | |
4258 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4259 | CYGPATH_W='cygpath -w' | |
4260 | else | |
4261 | CYGPATH_W=echo | |
4262 | fi | |
4263 | fi | |
4264 | ||
4265 | ||
4266 | # Define the identity of the package. | |
4267 | PACKAGE='libbacktrace' | |
4268 | VERSION='version-unused' | |
4269 | ||
4270 | ||
4271 | # Some tools Automake needs. | |
4272 | ||
4273 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4274 | ||
4275 | ||
4276 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4277 | ||
4278 | ||
4279 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4280 | ||
4281 | ||
4282 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4283 | ||
4284 | ||
4285 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4286 | ||
4287 | # We need awk for the "check" target. The system "awk" is bad on | |
4288 | # some platforms. | |
4289 | # Always define AMTAR for backward compatibility. | |
4290 | ||
4291 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4292 | ||
4293 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4294 | ||
4295 | ||
4296 | ||
4297 | ||
d4c059d5 ILT |
4298 | |
4299 | ||
4300 | ||
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4302 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4303 | # Check whether --enable-maintainer-mode was given. | |
4304 | if test "${enable_maintainer_mode+set}" = set; then : | |
4305 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4306 | else | |
4307 | USE_MAINTAINER_MODE=no | |
4308 | fi | |
4309 | ||
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4311 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4312 | if test $USE_MAINTAINER_MODE = yes; then | |
4313 | MAINTAINER_MODE_TRUE= | |
4314 | MAINTAINER_MODE_FALSE='#' | |
4315 | else | |
4316 | MAINTAINER_MODE_TRUE='#' | |
4317 | MAINTAINER_MODE_FALSE= | |
4318 | fi | |
4319 | ||
4320 | MAINT=$MAINTAINER_MODE_TRUE | |
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | # Check whether --with-target-subdir was given. | |
4326 | if test "${with_target_subdir+set}" = set; then : | |
4327 | withval=$with_target_subdir; | |
eff02e4f | 4328 | fi |
eff02e4f | 4329 | |
eff02e4f | 4330 | |
d4c059d5 ILT |
4331 | # We must force CC to /not/ be precious variables; otherwise |
4332 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
4333 | # As a side effect, we have to subst CFLAGS ourselves. | |
eff02e4f | 4334 | |
d4c059d5 ILT |
4335 | |
4336 | ac_ext=c | |
4337 | ac_cpp='$CPP $CPPFLAGS' | |
4338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4341 | if test -n "$ac_tool_prefix"; then | |
4342 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4343 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4345 | $as_echo_n "checking for $ac_word... " >&6; } | |
4346 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4347 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 4348 | else |
d4c059d5 ILT |
4349 | if test -n "$CC"; then |
4350 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4351 | else | |
4352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4353 | for as_dir in $PATH | |
4354 | do | |
4355 | IFS=$as_save_IFS | |
4356 | test -z "$as_dir" && as_dir=. | |
4357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4359 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4361 | break 2 | |
4362 | fi | |
4363 | done | |
4364 | done | |
4365 | IFS=$as_save_IFS | |
eff02e4f | 4366 | |
eff02e4f | 4367 | fi |
eff02e4f | 4368 | fi |
d4c059d5 ILT |
4369 | CC=$ac_cv_prog_CC |
4370 | if test -n "$CC"; then | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4372 | $as_echo "$CC" >&6; } | |
eff02e4f | 4373 | else |
d4c059d5 ILT |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4375 | $as_echo "no" >&6; } | |
4376 | fi | |
eff02e4f | 4377 | |
eff02e4f | 4378 | |
eff02e4f | 4379 | fi |
d4c059d5 ILT |
4380 | if test -z "$ac_cv_prog_CC"; then |
4381 | ac_ct_CC=$CC | |
4382 | # Extract the first word of "gcc", so it can be a program name with args. | |
4383 | set dummy gcc; ac_word=$2 | |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4385 | $as_echo_n "checking for $ac_word... " >&6; } | |
4386 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4387 | $as_echo_n "(cached) " >&6 | |
4388 | else | |
4389 | if test -n "$ac_ct_CC"; then | |
4390 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4391 | else | |
4392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4393 | for as_dir in $PATH | |
4394 | do | |
4395 | IFS=$as_save_IFS | |
4396 | test -z "$as_dir" && as_dir=. | |
4397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4399 | ac_cv_prog_ac_ct_CC="gcc" | |
4400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4401 | break 2 | |
4402 | fi | |
4403 | done | |
4404 | done | |
4405 | IFS=$as_save_IFS | |
eff02e4f ILT |
4406 | |
4407 | fi | |
eff02e4f | 4408 | fi |
d4c059d5 ILT |
4409 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4410 | if test -n "$ac_ct_CC"; then | |
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4412 | $as_echo "$ac_ct_CC" >&6; } | |
eff02e4f | 4413 | else |
d4c059d5 ILT |
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4415 | $as_echo "no" >&6; } | |
4416 | fi | |
eff02e4f | 4417 | |
d4c059d5 ILT |
4418 | if test "x$ac_ct_CC" = x; then |
4419 | CC="" | |
4420 | else | |
4421 | case $cross_compiling:$ac_tool_warned in | |
4422 | yes:) | |
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4424 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4425 | ac_tool_warned=yes ;; | |
4426 | esac | |
4427 | CC=$ac_ct_CC | |
4428 | fi | |
4429 | else | |
4430 | CC="$ac_cv_prog_CC" | |
4431 | fi | |
eff02e4f | 4432 | |
d4c059d5 ILT |
4433 | if test -z "$CC"; then |
4434 | if test -n "$ac_tool_prefix"; then | |
4435 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4436 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4438 | $as_echo_n "checking for $ac_word... " >&6; } | |
4439 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4440 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 4441 | else |
d4c059d5 ILT |
4442 | if test -n "$CC"; then |
4443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4444 | else | |
4445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4446 | for as_dir in $PATH | |
4447 | do | |
4448 | IFS=$as_save_IFS | |
4449 | test -z "$as_dir" && as_dir=. | |
4450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4452 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4454 | break 2 | |
4455 | fi | |
4456 | done | |
4457 | done | |
4458 | IFS=$as_save_IFS | |
eff02e4f | 4459 | |
d4c059d5 ILT |
4460 | fi |
4461 | fi | |
4462 | CC=$ac_cv_prog_CC | |
4463 | if test -n "$CC"; then | |
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4465 | $as_echo "$CC" >&6; } | |
4466 | else | |
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4468 | $as_echo "no" >&6; } | |
4469 | fi | |
eff02e4f | 4470 | |
eff02e4f | 4471 | |
d4c059d5 ILT |
4472 | fi |
4473 | fi | |
4474 | if test -z "$CC"; then | |
4475 | # Extract the first word of "cc", so it can be a program name with args. | |
4476 | set dummy cc; ac_word=$2 | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4478 | $as_echo_n "checking for $ac_word... " >&6; } | |
4479 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4480 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 4481 | else |
d4c059d5 ILT |
4482 | if test -n "$CC"; then |
4483 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4484 | else | |
4485 | ac_prog_rejected=no | |
4486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4487 | for as_dir in $PATH | |
4488 | do | |
4489 | IFS=$as_save_IFS | |
4490 | test -z "$as_dir" && as_dir=. | |
4491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4493 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4494 | ac_prog_rejected=yes | |
4495 | continue | |
4496 | fi | |
4497 | ac_cv_prog_CC="cc" | |
4498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4499 | break 2 | |
4500 | fi | |
4501 | done | |
4502 | done | |
4503 | IFS=$as_save_IFS | |
eff02e4f | 4504 | |
d4c059d5 ILT |
4505 | if test $ac_prog_rejected = yes; then |
4506 | # We found a bogon in the path, so make sure we never use it. | |
4507 | set dummy $ac_cv_prog_CC | |
4508 | shift | |
4509 | if test $# != 0; then | |
4510 | # We chose a different compiler from the bogus one. | |
4511 | # However, it has the same basename, so the bogon will be chosen | |
4512 | # first if we set CC to just the basename; use the full file name. | |
4513 | shift | |
4514 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4515 | fi | |
eff02e4f | 4516 | fi |
eff02e4f | 4517 | fi |
eff02e4f | 4518 | fi |
d4c059d5 ILT |
4519 | CC=$ac_cv_prog_CC |
4520 | if test -n "$CC"; then | |
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4522 | $as_echo "$CC" >&6; } | |
eff02e4f | 4523 | else |
d4c059d5 ILT |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4525 | $as_echo "no" >&6; } | |
eff02e4f | 4526 | fi |
d4c059d5 ILT |
4527 | |
4528 | ||
4529 | fi | |
4530 | if test -z "$CC"; then | |
4531 | if test -n "$ac_tool_prefix"; then | |
4532 | for ac_prog in cl.exe | |
4533 | do | |
4534 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4535 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4537 | $as_echo_n "checking for $ac_word... " >&6; } | |
4538 | if test "${ac_cv_prog_CC+set}" = set; then : | |
eff02e4f ILT |
4539 | $as_echo_n "(cached) " >&6 |
4540 | else | |
d4c059d5 ILT |
4541 | if test -n "$CC"; then |
4542 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4543 | else | |
4544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4545 | for as_dir in $PATH | |
4546 | do | |
4547 | IFS=$as_save_IFS | |
4548 | test -z "$as_dir" && as_dir=. | |
4549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4551 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4553 | break 2 | |
4554 | fi | |
4555 | done | |
4556 | done | |
4557 | IFS=$as_save_IFS | |
eff02e4f | 4558 | |
d4c059d5 ILT |
4559 | fi |
4560 | fi | |
4561 | CC=$ac_cv_prog_CC | |
4562 | if test -n "$CC"; then | |
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4564 | $as_echo "$CC" >&6; } | |
4565 | else | |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4567 | $as_echo "no" >&6; } | |
4568 | fi | |
eff02e4f | 4569 | |
eff02e4f | 4570 | |
d4c059d5 ILT |
4571 | test -n "$CC" && break |
4572 | done | |
eff02e4f | 4573 | fi |
d4c059d5 ILT |
4574 | if test -z "$CC"; then |
4575 | ac_ct_CC=$CC | |
4576 | for ac_prog in cl.exe | |
4577 | do | |
4578 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4579 | set dummy $ac_prog; ac_word=$2 | |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4581 | $as_echo_n "checking for $ac_word... " >&6; } | |
4582 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4583 | $as_echo_n "(cached) " >&6 | |
4584 | else | |
4585 | if test -n "$ac_ct_CC"; then | |
4586 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4587 | else | |
4588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4589 | for as_dir in $PATH | |
4590 | do | |
4591 | IFS=$as_save_IFS | |
4592 | test -z "$as_dir" && as_dir=. | |
4593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4595 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4597 | break 2 | |
4598 | fi | |
eff02e4f | 4599 | done |
d4c059d5 ILT |
4600 | done |
4601 | IFS=$as_save_IFS | |
eff02e4f ILT |
4602 | |
4603 | fi | |
d4c059d5 ILT |
4604 | fi |
4605 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4606 | if test -n "$ac_ct_CC"; then | |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4608 | $as_echo "$ac_ct_CC" >&6; } | |
4609 | else | |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4611 | $as_echo "no" >&6; } | |
eff02e4f ILT |
4612 | fi |
4613 | ||
eff02e4f | 4614 | |
d4c059d5 ILT |
4615 | test -n "$ac_ct_CC" && break |
4616 | done | |
eff02e4f | 4617 | |
d4c059d5 ILT |
4618 | if test "x$ac_ct_CC" = x; then |
4619 | CC="" | |
4620 | else | |
4621 | case $cross_compiling:$ac_tool_warned in | |
4622 | yes:) | |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4624 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4625 | ac_tool_warned=yes ;; | |
eff02e4f | 4626 | esac |
d4c059d5 ILT |
4627 | CC=$ac_ct_CC |
4628 | fi | |
eff02e4f ILT |
4629 | fi |
4630 | ||
d4c059d5 | 4631 | fi |
eff02e4f | 4632 | |
eff02e4f | 4633 | |
d4c059d5 ILT |
4634 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4636 | as_fn_error "no acceptable C compiler found in \$PATH | |
4637 | See \`config.log' for more details." "$LINENO" 5; } | |
4638 | ||
4639 | # Provide some information about the compiler. | |
4640 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4641 | set X $ac_compile | |
4642 | ac_compiler=$2 | |
4643 | for ac_option in --version -v -V -qversion; do | |
4644 | { { ac_try="$ac_compiler $ac_option >&5" | |
4645 | case "(($ac_try" in | |
4646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4647 | *) ac_try_echo=$ac_try;; | |
4648 | esac | |
4649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4650 | $as_echo "$ac_try_echo"; } >&5 | |
4651 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4652 | ac_status=$? | |
4653 | if test -s conftest.err; then | |
4654 | sed '10a\ | |
4655 | ... rest of stderr output deleted ... | |
4656 | 10q' conftest.err >conftest.er1 | |
4657 | cat conftest.er1 >&5 | |
4658 | rm -f conftest.er1 conftest.err | |
4659 | fi | |
4660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4661 | test $ac_status = 0; } | |
4662 | done | |
4663 | ||
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4665 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4666 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4667 | $as_echo_n "(cached) " >&6 | |
4668 | else | |
4669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4670 | /* end confdefs.h. */ | |
4671 | ||
4672 | int | |
4673 | main () | |
4674 | { | |
4675 | #ifndef __GNUC__ | |
4676 | choke me | |
4677 | #endif | |
4678 | ||
4679 | ; | |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
4683 | if ac_fn_c_try_compile "$LINENO"; then : | |
4684 | ac_compiler_gnu=yes | |
4685 | else | |
4686 | ac_compiler_gnu=no | |
eff02e4f | 4687 | fi |
d4c059d5 ILT |
4688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4689 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
eff02e4f | 4690 | |
eff02e4f | 4691 | fi |
d4c059d5 ILT |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4693 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4694 | if test $ac_compiler_gnu = yes; then | |
4695 | GCC=yes | |
eff02e4f | 4696 | else |
d4c059d5 | 4697 | GCC= |
eff02e4f | 4698 | fi |
d4c059d5 ILT |
4699 | ac_test_CFLAGS=${CFLAGS+set} |
4700 | ac_save_CFLAGS=$CFLAGS | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4702 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4703 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4704 | $as_echo_n "(cached) " >&6 | |
4705 | else | |
4706 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4707 | ac_c_werror_flag=yes | |
4708 | ac_cv_prog_cc_g=no | |
4709 | CFLAGS="-g" | |
4710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4711 | /* end confdefs.h. */ | |
eff02e4f | 4712 | |
d4c059d5 ILT |
4713 | int |
4714 | main () | |
4715 | { | |
eff02e4f | 4716 | |
d4c059d5 ILT |
4717 | ; |
4718 | return 0; | |
4719 | } | |
4720 | _ACEOF | |
4721 | if ac_fn_c_try_compile "$LINENO"; then : | |
4722 | ac_cv_prog_cc_g=yes | |
eff02e4f | 4723 | else |
d4c059d5 ILT |
4724 | CFLAGS="" |
4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4726 | /* end confdefs.h. */ | |
eff02e4f | 4727 | |
d4c059d5 ILT |
4728 | int |
4729 | main () | |
4730 | { | |
eff02e4f | 4731 | |
d4c059d5 ILT |
4732 | ; |
4733 | return 0; | |
4734 | } | |
4735 | _ACEOF | |
4736 | if ac_fn_c_try_compile "$LINENO"; then : | |
eff02e4f | 4737 | |
d4c059d5 ILT |
4738 | else |
4739 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4740 | CFLAGS="-g" | |
4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4742 | /* end confdefs.h. */ | |
eff02e4f | 4743 | |
d4c059d5 ILT |
4744 | int |
4745 | main () | |
4746 | { | |
4747 | ||
4748 | ; | |
4749 | return 0; | |
4750 | } | |
4751 | _ACEOF | |
4752 | if ac_fn_c_try_compile "$LINENO"; then : | |
4753 | ac_cv_prog_cc_g=yes | |
4754 | fi | |
4755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4756 | fi | |
4757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4758 | fi | |
4759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4760 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4761 | fi | |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4763 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4764 | if test "$ac_test_CFLAGS" = set; then | |
4765 | CFLAGS=$ac_save_CFLAGS | |
4766 | elif test $ac_cv_prog_cc_g = yes; then | |
4767 | if test "$GCC" = yes; then | |
4768 | CFLAGS="-g -O2" | |
4769 | else | |
4770 | CFLAGS="-g" | |
4771 | fi | |
eff02e4f | 4772 | else |
d4c059d5 ILT |
4773 | if test "$GCC" = yes; then |
4774 | CFLAGS="-O2" | |
4775 | else | |
4776 | CFLAGS= | |
4777 | fi | |
4778 | fi | |
4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4780 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4781 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4782 | $as_echo_n "(cached) " >&6 | |
4783 | else | |
4784 | ac_cv_prog_cc_c89=no | |
4785 | ac_save_CC=$CC | |
4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4787 | /* end confdefs.h. */ | |
4788 | #include <stdarg.h> | |
4789 | #include <stdio.h> | |
4790 | #include <sys/types.h> | |
4791 | #include <sys/stat.h> | |
4792 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4793 | struct buf { int x; }; | |
4794 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4795 | static char *e (p, i) | |
4796 | char **p; | |
4797 | int i; | |
4798 | { | |
4799 | return p[i]; | |
4800 | } | |
4801 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4802 | { | |
4803 | char *s; | |
4804 | va_list v; | |
4805 | va_start (v,p); | |
4806 | s = g (p, va_arg (v,int)); | |
4807 | va_end (v); | |
4808 | return s; | |
4809 | } | |
4810 | ||
4811 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4812 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4813 | These don't provoke an error unfortunately, instead are silently treated | |
4814 | as 'x'. The following induces an error, until -std is added to get | |
4815 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4816 | array size at least. It's necessary to write '\x00'==0 to get something | |
4817 | that's true only with -std. */ | |
4818 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4819 | ||
4820 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4821 | inside strings and character constants. */ | |
4822 | #define FOO(x) 'x' | |
4823 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4824 | ||
4825 | int test (int i, double x); | |
4826 | struct s1 {int (*f) (int a);}; | |
4827 | struct s2 {int (*f) (double a);}; | |
4828 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4829 | int argc; | |
4830 | char **argv; | |
4831 | int | |
4832 | main () | |
4833 | { | |
4834 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4835 | ; | |
4836 | return 0; | |
4837 | } | |
4838 | _ACEOF | |
4839 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4840 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4841 | do | |
4842 | CC="$ac_save_CC $ac_arg" | |
4843 | if ac_fn_c_try_compile "$LINENO"; then : | |
4844 | ac_cv_prog_cc_c89=$ac_arg | |
eff02e4f | 4845 | fi |
d4c059d5 ILT |
4846 | rm -f core conftest.err conftest.$ac_objext |
4847 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4848 | done | |
4849 | rm -f conftest.$ac_ext | |
4850 | CC=$ac_save_CC | |
eff02e4f ILT |
4851 | |
4852 | fi | |
d4c059d5 ILT |
4853 | # AC_CACHE_VAL |
4854 | case "x$ac_cv_prog_cc_c89" in | |
4855 | x) | |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4857 | $as_echo "none needed" >&6; } ;; | |
4858 | xno) | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4860 | $as_echo "unsupported" >&6; } ;; | |
4861 | *) | |
4862 | CC="$CC $ac_cv_prog_cc_c89" | |
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4864 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4865 | esac | |
4866 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
eff02e4f | 4867 | |
eff02e4f ILT |
4868 | fi |
4869 | ||
d4c059d5 ILT |
4870 | ac_ext=c |
4871 | ac_cpp='$CPP $CPPFLAGS' | |
4872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
eff02e4f ILT |
4875 | |
4876 | ||
4877 | ||
4878 | ||
4879 | ||
4880 | if test -n "$ac_tool_prefix"; then | |
4881 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4882 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4884 | $as_echo_n "checking for $ac_word... " >&6; } | |
4885 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4886 | $as_echo_n "(cached) " >&6 | |
4887 | else | |
4888 | if test -n "$RANLIB"; then | |
4889 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4890 | else | |
4891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4892 | for as_dir in $PATH | |
4893 | do | |
4894 | IFS=$as_save_IFS | |
4895 | test -z "$as_dir" && as_dir=. | |
4896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4897 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4898 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4900 | break 2 | |
4901 | fi | |
4902 | done | |
4903 | done | |
4904 | IFS=$as_save_IFS | |
4905 | ||
4906 | fi | |
4907 | fi | |
4908 | RANLIB=$ac_cv_prog_RANLIB | |
4909 | if test -n "$RANLIB"; then | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4911 | $as_echo "$RANLIB" >&6; } | |
4912 | else | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4914 | $as_echo "no" >&6; } | |
4915 | fi | |
4916 | ||
4917 | ||
4918 | fi | |
4919 | if test -z "$ac_cv_prog_RANLIB"; then | |
4920 | ac_ct_RANLIB=$RANLIB | |
4921 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4922 | set dummy ranlib; ac_word=$2 | |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4924 | $as_echo_n "checking for $ac_word... " >&6; } | |
4925 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
4927 | else | |
4928 | if test -n "$ac_ct_RANLIB"; then | |
4929 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4930 | else | |
4931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4932 | for as_dir in $PATH | |
4933 | do | |
4934 | IFS=$as_save_IFS | |
4935 | test -z "$as_dir" && as_dir=. | |
4936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4938 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4940 | break 2 | |
4941 | fi | |
4942 | done | |
4943 | done | |
4944 | IFS=$as_save_IFS | |
4945 | ||
4946 | fi | |
4947 | fi | |
4948 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4949 | if test -n "$ac_ct_RANLIB"; then | |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4951 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4952 | else | |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4954 | $as_echo "no" >&6; } | |
4955 | fi | |
4956 | ||
4957 | if test "x$ac_ct_RANLIB" = x; then | |
4958 | RANLIB=":" | |
4959 | else | |
4960 | case $cross_compiling:$ac_tool_warned in | |
4961 | yes:) | |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4964 | ac_tool_warned=yes ;; | |
4965 | esac | |
4966 | RANLIB=$ac_ct_RANLIB | |
4967 | fi | |
4968 | else | |
4969 | RANLIB="$ac_cv_prog_RANLIB" | |
4970 | fi | |
4971 | ||
4972 | ||
4973 | for ac_prog in gawk mawk nawk awk | |
4974 | do | |
4975 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4976 | set dummy $ac_prog; ac_word=$2 | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4978 | $as_echo_n "checking for $ac_word... " >&6; } | |
4979 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
4980 | $as_echo_n "(cached) " >&6 | |
4981 | else | |
4982 | if test -n "$AWK"; then | |
4983 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4984 | else | |
4985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4986 | for as_dir in $PATH | |
4987 | do | |
4988 | IFS=$as_save_IFS | |
4989 | test -z "$as_dir" && as_dir=. | |
4990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4992 | ac_cv_prog_AWK="$ac_prog" | |
4993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4994 | break 2 | |
4995 | fi | |
4996 | done | |
4997 | done | |
4998 | IFS=$as_save_IFS | |
4999 | ||
5000 | fi | |
5001 | fi | |
5002 | AWK=$ac_cv_prog_AWK | |
5003 | if test -n "$AWK"; then | |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5005 | $as_echo "$AWK" >&6; } | |
5006 | else | |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5008 | $as_echo "no" >&6; } | |
5009 | fi | |
5010 | ||
5011 | ||
5012 | test -n "$AWK" && break | |
5013 | done | |
5014 | ||
5015 | case "$AWK" in | |
5016 | "") as_fn_error "can't build without awk" "$LINENO" 5 ;; | |
5017 | esac | |
5018 | ||
5019 | case `pwd` in | |
5020 | *\ * | *\ *) | |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5022 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5023 | esac | |
5024 | ||
5025 | ||
5026 | ||
5027 | macro_version='2.2.7a' | |
5028 | macro_revision='1.3134' | |
5029 | ||
5030 | ||
5031 | ||
5032 | ||
5033 | ||
5034 | ||
5035 | ||
5036 | ||
5037 | ||
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ltmain="$ac_aux_dir/ltmain.sh" | |
5043 | ||
5044 | # Backslashify metacharacters that are still active within | |
5045 | # double-quoted strings. | |
5046 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5047 | ||
5048 | # Same as above, but do not quote variable references. | |
5049 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5050 | ||
5051 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5052 | # double_quote_subst'ed string. | |
5053 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5054 | ||
5055 | # Sed substitution to delay expansion of an escaped single quote. | |
5056 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5057 | ||
5058 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5059 | no_glob_subst='s/\*/\\\*/g' | |
5060 | ||
5061 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5062 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5063 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5064 | ||
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5066 | $as_echo_n "checking how to print strings... " >&6; } | |
5067 | # Test print first, because it will be a builtin if present. | |
5068 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5069 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5070 | ECHO='print -r --' | |
5071 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5072 | ECHO='printf %s\n' | |
5073 | else | |
5074 | # Use this function as a fallback that always works. | |
5075 | func_fallback_echo () | |
5076 | { | |
5077 | eval 'cat <<_LTECHO_EOF | |
5078 | $1 | |
5079 | _LTECHO_EOF' | |
5080 | } | |
5081 | ECHO='func_fallback_echo' | |
5082 | fi | |
5083 | ||
5084 | # func_echo_all arg... | |
5085 | # Invoke $ECHO with all args, space-separated. | |
5086 | func_echo_all () | |
5087 | { | |
5088 | $ECHO "" | |
5089 | } | |
5090 | ||
5091 | case "$ECHO" in | |
5092 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5093 | $as_echo "printf" >&6; } ;; | |
5094 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5095 | $as_echo "print -r" >&6; } ;; | |
5096 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5097 | $as_echo "cat" >&6; } ;; | |
5098 | esac | |
5099 | ||
5100 | ||
5101 | ||
5102 | ||
5103 | ||
5104 | ||
5105 | ||
5106 | ||
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | ||
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
d4c059d5 ILT |
5114 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
5115 | if test "${ac_cv_path_SED+set}" = set; then : | |
eff02e4f ILT |
5116 | $as_echo_n "(cached) " >&6 |
5117 | else | |
d4c059d5 ILT |
5118 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5119 | for ac_i in 1 2 3 4 5 6 7; do | |
5120 | ac_script="$ac_script$as_nl$ac_script" | |
5121 | done | |
5122 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5123 | { ac_script=; unset ac_script;} | |
5124 | if test -z "$SED"; then | |
5125 | ac_path_SED_found=false | |
eff02e4f ILT |
5126 | # Loop through the user's path and test for each of PROGNAME-LIST |
5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d4c059d5 | 5128 | for as_dir in $PATH |
eff02e4f ILT |
5129 | do |
5130 | IFS=$as_save_IFS | |
5131 | test -z "$as_dir" && as_dir=. | |
d4c059d5 | 5132 | for ac_prog in sed gsed; do |
eff02e4f | 5133 | for ac_exec_ext in '' $ac_executable_extensions; do |
d4c059d5 ILT |
5134 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5135 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5136 | # Check for GNU ac_path_SED and select it if it is found. | |
5137 | # Check for GNU $ac_path_SED | |
5138 | case `"$ac_path_SED" --version 2>&1` in | |
eff02e4f | 5139 | *GNU*) |
d4c059d5 | 5140 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
eff02e4f ILT |
5141 | *) |
5142 | ac_count=0 | |
5143 | $as_echo_n 0123456789 >"conftest.in" | |
5144 | while : | |
5145 | do | |
5146 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5147 | mv "conftest.tmp" "conftest.in" | |
5148 | cp "conftest.in" "conftest.nl" | |
d4c059d5 ILT |
5149 | $as_echo '' >> "conftest.nl" |
5150 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
eff02e4f ILT |
5151 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5152 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
d4c059d5 | 5153 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
eff02e4f | 5154 | # Best one so far, save it but keep looking for a better one |
d4c059d5 ILT |
5155 | ac_cv_path_SED="$ac_path_SED" |
5156 | ac_path_SED_max=$ac_count | |
eff02e4f ILT |
5157 | fi |
5158 | # 10*(2^10) chars as input seems more than enough | |
5159 | test $ac_count -gt 10 && break | |
5160 | done | |
5161 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5162 | esac | |
5163 | ||
d4c059d5 | 5164 | $ac_path_SED_found && break 3 |
eff02e4f ILT |
5165 | done |
5166 | done | |
5167 | done | |
5168 | IFS=$as_save_IFS | |
d4c059d5 ILT |
5169 | if test -z "$ac_cv_path_SED"; then |
5170 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
eff02e4f ILT |
5171 | fi |
5172 | else | |
d4c059d5 | 5173 | ac_cv_path_SED=$SED |
eff02e4f ILT |
5174 | fi |
5175 | ||
eff02e4f | 5176 | fi |
d4c059d5 ILT |
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5178 | $as_echo "$ac_cv_path_SED" >&6; } | |
5179 | SED="$ac_cv_path_SED" | |
5180 | rm -f conftest.sed | |
5181 | ||
5182 | test -z "$SED" && SED=sed | |
5183 | Xsed="$SED -e 1s/^X//" | |
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
eff02e4f ILT |
5193 | |
5194 | ||
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5196 | $as_echo_n "checking for fgrep... " >&6; } | |
5197 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5198 | $as_echo_n "(cached) " >&6 | |
5199 | else | |
5200 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5201 | then ac_cv_path_FGREP="$GREP -F" | |
5202 | else | |
5203 | if test -z "$FGREP"; then | |
5204 | ac_path_FGREP_found=false | |
5205 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5207 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5208 | do | |
5209 | IFS=$as_save_IFS | |
5210 | test -z "$as_dir" && as_dir=. | |
5211 | for ac_prog in fgrep; do | |
5212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5214 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5215 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5216 | # Check for GNU $ac_path_FGREP | |
5217 | case `"$ac_path_FGREP" --version 2>&1` in | |
5218 | *GNU*) | |
5219 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5220 | *) | |
5221 | ac_count=0 | |
5222 | $as_echo_n 0123456789 >"conftest.in" | |
5223 | while : | |
5224 | do | |
5225 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5226 | mv "conftest.tmp" "conftest.in" | |
5227 | cp "conftest.in" "conftest.nl" | |
5228 | $as_echo 'FGREP' >> "conftest.nl" | |
5229 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5230 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5231 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5232 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5233 | # Best one so far, save it but keep looking for a better one | |
5234 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5235 | ac_path_FGREP_max=$ac_count | |
5236 | fi | |
5237 | # 10*(2^10) chars as input seems more than enough | |
5238 | test $ac_count -gt 10 && break | |
5239 | done | |
5240 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5241 | esac | |
5242 | ||
5243 | $ac_path_FGREP_found && break 3 | |
5244 | done | |
5245 | done | |
5246 | done | |
5247 | IFS=$as_save_IFS | |
5248 | if test -z "$ac_cv_path_FGREP"; then | |
5249 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5250 | fi | |
5251 | else | |
5252 | ac_cv_path_FGREP=$FGREP | |
5253 | fi | |
5254 | ||
5255 | fi | |
5256 | fi | |
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5258 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5259 | FGREP="$ac_cv_path_FGREP" | |
5260 | ||
5261 | ||
5262 | test -z "$GREP" && GREP=grep | |
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | # Check whether --with-gnu-ld was given. | |
5283 | if test "${with_gnu_ld+set}" = set; then : | |
5284 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5285 | else | |
5286 | with_gnu_ld=no | |
5287 | fi | |
5288 | ||
5289 | ac_prog=ld | |
5290 | if test "$GCC" = yes; then | |
5291 | # Check if gcc -print-prog-name=ld gives a path. | |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5293 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5294 | case $host in | |
5295 | *-*-mingw*) | |
5296 | # gcc leaves a trailing carriage return which upsets mingw | |
5297 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5298 | *) | |
5299 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5300 | esac | |
5301 | case $ac_prog in | |
5302 | # Accept absolute paths. | |
5303 | [\\/]* | ?:[\\/]*) | |
5304 | re_direlt='/[^/][^/]*/\.\./' | |
5305 | # Canonicalize the pathname of ld | |
5306 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5307 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5308 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5309 | done | |
5310 | test -z "$LD" && LD="$ac_prog" | |
5311 | ;; | |
5312 | "") | |
5313 | # If it fails, then pretend we aren't using GCC. | |
5314 | ac_prog=ld | |
5315 | ;; | |
5316 | *) | |
5317 | # If it is relative, then search for the first ld in PATH. | |
5318 | with_gnu_ld=unknown | |
5319 | ;; | |
5320 | esac | |
5321 | elif test "$with_gnu_ld" = yes; then | |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5323 | $as_echo_n "checking for GNU ld... " >&6; } | |
5324 | else | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5326 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5327 | fi | |
5328 | if test "${lt_cv_path_LD+set}" = set; then : | |
5329 | $as_echo_n "(cached) " >&6 | |
5330 | else | |
5331 | if test -z "$LD"; then | |
5332 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5333 | for ac_dir in $PATH; do | |
5334 | IFS="$lt_save_ifs" | |
5335 | test -z "$ac_dir" && ac_dir=. | |
5336 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5337 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5338 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5339 | # but apparently some variants of GNU ld only accept -v. | |
5340 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5341 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5342 | *GNU* | *'with BFD'*) | |
5343 | test "$with_gnu_ld" != no && break | |
5344 | ;; | |
5345 | *) | |
5346 | test "$with_gnu_ld" != yes && break | |
5347 | ;; | |
5348 | esac | |
5349 | fi | |
5350 | done | |
5351 | IFS="$lt_save_ifs" | |
5352 | else | |
5353 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5354 | fi | |
5355 | fi | |
5356 | ||
5357 | LD="$lt_cv_path_LD" | |
5358 | if test -n "$LD"; then | |
5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5360 | $as_echo "$LD" >&6; } | |
5361 | else | |
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5363 | $as_echo "no" >&6; } | |
5364 | fi | |
5365 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5367 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5368 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5369 | $as_echo_n "(cached) " >&6 | |
5370 | else | |
5371 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5372 | case `$LD -v 2>&1 </dev/null` in | |
5373 | *GNU* | *'with BFD'*) | |
5374 | lt_cv_prog_gnu_ld=yes | |
5375 | ;; | |
5376 | *) | |
5377 | lt_cv_prog_gnu_ld=no | |
5378 | ;; | |
5379 | esac | |
5380 | fi | |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5382 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5383 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5394 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5395 | if test "${lt_cv_path_NM+set}" = set; then : | |
5396 | $as_echo_n "(cached) " >&6 | |
5397 | else | |
5398 | if test -n "$NM"; then | |
5399 | # Let the user override the test. | |
5400 | lt_cv_path_NM="$NM" | |
5401 | else | |
5402 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5403 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5404 | lt_nm_to_check="$lt_nm_to_check nm" | |
5405 | fi | |
5406 | for lt_tmp_nm in $lt_nm_to_check; do | |
5407 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5408 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5409 | IFS="$lt_save_ifs" | |
5410 | test -z "$ac_dir" && ac_dir=. | |
5411 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5412 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5413 | # Check to see if the nm accepts a BSD-compat flag. | |
5414 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5415 | # nm: unknown option "B" ignored | |
5416 | # Tru64's nm complains that /dev/null is an invalid object file | |
5417 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5418 | */dev/null* | *'Invalid file or object type'*) | |
5419 | lt_cv_path_NM="$tmp_nm -B" | |
5420 | break | |
5421 | ;; | |
5422 | *) | |
5423 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5424 | */dev/null*) | |
5425 | lt_cv_path_NM="$tmp_nm -p" | |
5426 | break | |
5427 | ;; | |
5428 | *) | |
5429 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5430 | continue # so that we can try to find one that supports BSD flags | |
5431 | ;; | |
5432 | esac | |
5433 | ;; | |
5434 | esac | |
5435 | fi | |
5436 | done | |
5437 | IFS="$lt_save_ifs" | |
5438 | done | |
5439 | : ${lt_cv_path_NM=no} | |
5440 | fi | |
5441 | fi | |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5443 | $as_echo "$lt_cv_path_NM" >&6; } | |
5444 | if test "$lt_cv_path_NM" != "no"; then | |
5445 | NM="$lt_cv_path_NM" | |
5446 | else | |
5447 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5448 | if test -n "$DUMPBIN"; then : | |
5449 | # Let the user override the test. | |
5450 | else | |
5451 | if test -n "$ac_tool_prefix"; then | |
5452 | for ac_prog in dumpbin "link -dump" | |
5453 | do | |
5454 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5455 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5457 | $as_echo_n "checking for $ac_word... " >&6; } | |
5458 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5459 | $as_echo_n "(cached) " >&6 | |
5460 | else | |
5461 | if test -n "$DUMPBIN"; then | |
5462 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5463 | else | |
5464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5465 | for as_dir in $PATH | |
5466 | do | |
5467 | IFS=$as_save_IFS | |
5468 | test -z "$as_dir" && as_dir=. | |
5469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5471 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5473 | break 2 | |
5474 | fi | |
5475 | done | |
5476 | done | |
5477 | IFS=$as_save_IFS | |
5478 | ||
5479 | fi | |
5480 | fi | |
5481 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5482 | if test -n "$DUMPBIN"; then | |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5484 | $as_echo "$DUMPBIN" >&6; } | |
5485 | else | |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5487 | $as_echo "no" >&6; } | |
5488 | fi | |
5489 | ||
5490 | ||
5491 | test -n "$DUMPBIN" && break | |
5492 | done | |
5493 | fi | |
5494 | if test -z "$DUMPBIN"; then | |
5495 | ac_ct_DUMPBIN=$DUMPBIN | |
5496 | for ac_prog in dumpbin "link -dump" | |
5497 | do | |
5498 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5499 | set dummy $ac_prog; ac_word=$2 | |
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5501 | $as_echo_n "checking for $ac_word... " >&6; } | |
5502 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5503 | $as_echo_n "(cached) " >&6 | |
5504 | else | |
5505 | if test -n "$ac_ct_DUMPBIN"; then | |
5506 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5507 | else | |
5508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5509 | for as_dir in $PATH | |
5510 | do | |
5511 | IFS=$as_save_IFS | |
5512 | test -z "$as_dir" && as_dir=. | |
5513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5515 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5517 | break 2 | |
5518 | fi | |
5519 | done | |
5520 | done | |
5521 | IFS=$as_save_IFS | |
5522 | ||
5523 | fi | |
5524 | fi | |
5525 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5526 | if test -n "$ac_ct_DUMPBIN"; then | |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5528 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5529 | else | |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5531 | $as_echo "no" >&6; } | |
5532 | fi | |
5533 | ||
5534 | ||
5535 | test -n "$ac_ct_DUMPBIN" && break | |
5536 | done | |
5537 | ||
5538 | if test "x$ac_ct_DUMPBIN" = x; then | |
5539 | DUMPBIN=":" | |
5540 | else | |
5541 | case $cross_compiling:$ac_tool_warned in | |
5542 | yes:) | |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5544 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5545 | ac_tool_warned=yes ;; | |
5546 | esac | |
5547 | DUMPBIN=$ac_ct_DUMPBIN | |
5548 | fi | |
5549 | fi | |
5550 | ||
5551 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5552 | *COFF*) | |
5553 | DUMPBIN="$DUMPBIN -symbols" | |
5554 | ;; | |
5555 | *) | |
5556 | DUMPBIN=: | |
5557 | ;; | |
5558 | esac | |
5559 | fi | |
5560 | ||
5561 | if test "$DUMPBIN" != ":"; then | |
5562 | NM="$DUMPBIN" | |
5563 | fi | |
5564 | fi | |
5565 | test -z "$NM" && NM=nm | |
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | ||
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5573 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5574 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5575 | $as_echo_n "(cached) " >&6 | |
5576 | else | |
5577 | lt_cv_nm_interface="BSD nm" | |
5578 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5579 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5580 | (eval "$ac_compile" 2>conftest.err) | |
5581 | cat conftest.err >&5 | |
5582 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5583 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5584 | cat conftest.err >&5 | |
5585 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5586 | cat conftest.out >&5 | |
5587 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5588 | lt_cv_nm_interface="MS dumpbin" | |
5589 | fi | |
5590 | rm -f conftest* | |
5591 | fi | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5593 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5594 | ||
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5596 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5597 | LN_S=$as_ln_s | |
5598 | if test "$LN_S" = "ln -s"; then | |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5600 | $as_echo "yes" >&6; } | |
5601 | else | |
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5603 | $as_echo "no, using $LN_S" >&6; } | |
5604 | fi | |
5605 | ||
5606 | # find the maximum length of command line arguments | |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5608 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5609 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5610 | $as_echo_n "(cached) " >&6 | |
5611 | else | |
5612 | i=0 | |
5613 | teststring="ABCD" | |
5614 | ||
5615 | case $build_os in | |
5616 | msdosdjgpp*) | |
5617 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5618 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5619 | # during glob expansion). Even if it were fixed, the result of this | |
5620 | # check would be larger than it should be. | |
5621 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5622 | ;; | |
5623 | ||
5624 | gnu*) | |
5625 | # Under GNU Hurd, this test is not required because there is | |
5626 | # no limit to the length of command line arguments. | |
5627 | # Libtool will interpret -1 as no limit whatsoever | |
5628 | lt_cv_sys_max_cmd_len=-1; | |
5629 | ;; | |
5630 | ||
5631 | cygwin* | mingw* | cegcc*) | |
5632 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5633 | # about 5 minutes as the teststring grows exponentially. | |
5634 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5635 | # you end up with a "frozen" computer, even though with patience | |
5636 | # the test eventually succeeds (with a max line length of 256k). | |
5637 | # Instead, let's just punt: use the minimum linelength reported by | |
5638 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5639 | lt_cv_sys_max_cmd_len=8192; | |
5640 | ;; | |
5641 | ||
5642 | mint*) | |
5643 | # On MiNT this can take a long time and run out of memory. | |
5644 | lt_cv_sys_max_cmd_len=8192; | |
5645 | ;; | |
5646 | ||
5647 | amigaos*) | |
5648 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5649 | # So we just punt and use a minimum line length of 8192. | |
5650 | lt_cv_sys_max_cmd_len=8192; | |
5651 | ;; | |
5652 | ||
5653 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5654 | # This has been around since 386BSD, at least. Likely further. | |
5655 | if test -x /sbin/sysctl; then | |
5656 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5657 | elif test -x /usr/sbin/sysctl; then | |
5658 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5659 | else | |
5660 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5661 | fi | |
5662 | # And add a safety zone | |
5663 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5664 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5665 | ;; | |
5666 | ||
5667 | interix*) | |
5668 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5669 | lt_cv_sys_max_cmd_len=196608 | |
5670 | ;; | |
5671 | ||
5672 | osf*) | |
5673 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5674 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5675 | # nice to cause kernel panics so lets avoid the loop below. | |
5676 | # First set a reasonable default. | |
5677 | lt_cv_sys_max_cmd_len=16384 | |
5678 | # | |
5679 | if test -x /sbin/sysconfig; then | |
5680 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5681 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5682 | esac | |
5683 | fi | |
5684 | ;; | |
5685 | sco3.2v5*) | |
5686 | lt_cv_sys_max_cmd_len=102400 | |
5687 | ;; | |
5688 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5689 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5690 | if test -n "$kargmax"; then | |
5691 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5692 | else | |
5693 | lt_cv_sys_max_cmd_len=32768 | |
5694 | fi | |
5695 | ;; | |
5696 | *) | |
5697 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5698 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5699 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5700 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5701 | else | |
5702 | # Make teststring a little bigger before we do anything with it. | |
5703 | # a 1K string should be a reasonable start. | |
5704 | for i in 1 2 3 4 5 6 7 8 ; do | |
5705 | teststring=$teststring$teststring | |
5706 | done | |
5707 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5708 | # If test is not a shell built-in, we'll probably end up computing a | |
5709 | # maximum length that is only half of the actual maximum length, but | |
5710 | # we can't tell. | |
5711 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
5712 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5713 | test $i != 17 # 1/2 MB should be enough | |
5714 | do | |
5715 | i=`expr $i + 1` | |
5716 | teststring=$teststring$teststring | |
5717 | done | |
5718 | # Only check the string length outside the loop. | |
5719 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5720 | teststring= | |
5721 | # Add a significant safety factor because C++ compilers can tack on | |
5722 | # massive amounts of additional arguments before passing them to the | |
5723 | # linker. It appears as though 1/2 is a usable value. | |
5724 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5725 | fi | |
5726 | ;; | |
5727 | esac | |
5728 | ||
5729 | fi | |
5730 | ||
5731 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5733 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5734 | else | |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5736 | $as_echo "none" >&6; } | |
5737 | fi | |
5738 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | : ${CP="cp -f"} | |
5746 | : ${MV="mv -f"} | |
5747 | : ${RM="rm -f"} | |
5748 | ||
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5750 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5751 | # Try some XSI features | |
5752 | xsi_shell=no | |
5753 | ( _lt_dummy="a/b/c" | |
5754 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5755 | = c,a/b,, \ | |
5756 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5757 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5758 | && xsi_shell=yes | |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5760 | $as_echo "$xsi_shell" >&6; } | |
5761 | ||
5762 | ||
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5764 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5765 | lt_shell_append=no | |
5766 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5767 | >/dev/null 2>&1 \ | |
5768 | && lt_shell_append=yes | |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5770 | $as_echo "$lt_shell_append" >&6; } | |
5771 | ||
5772 | ||
5773 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5774 | lt_unset=unset | |
5775 | else | |
5776 | lt_unset=false | |
5777 | fi | |
5778 | ||
5779 | ||
5780 | ||
5781 | ||
5782 | ||
5783 | # test EBCDIC or ASCII | |
5784 | case `echo X|tr X '\101'` in | |
5785 | A) # ASCII based system | |
5786 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5787 | lt_SP2NL='tr \040 \012' | |
5788 | lt_NL2SP='tr \015\012 \040\040' | |
5789 | ;; | |
5790 | *) # EBCDIC based system | |
5791 | lt_SP2NL='tr \100 \n' | |
5792 | lt_NL2SP='tr \r\n \100\100' | |
5793 | ;; | |
5794 | esac | |
5795 | ||
5796 | ||
5797 | ||
5798 | ||
5799 | ||
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5805 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5806 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
5808 | else | |
5809 | lt_cv_ld_reload_flag='-r' | |
5810 | fi | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5812 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5813 | reload_flag=$lt_cv_ld_reload_flag | |
5814 | case $reload_flag in | |
5815 | "" | " "*) ;; | |
5816 | *) reload_flag=" $reload_flag" ;; | |
5817 | esac | |
5818 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5819 | case $host_os in | |
5820 | darwin*) | |
5821 | if test "$GCC" = yes; then | |
5822 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5823 | else | |
5824 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5825 | fi | |
5826 | ;; | |
5827 | esac | |
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | ||
5837 | if test -n "$ac_tool_prefix"; then | |
5838 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5839 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5841 | $as_echo_n "checking for $ac_word... " >&6; } | |
5842 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5843 | $as_echo_n "(cached) " >&6 | |
5844 | else | |
5845 | if test -n "$OBJDUMP"; then | |
5846 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5847 | else | |
5848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5849 | for as_dir in $PATH | |
5850 | do | |
5851 | IFS=$as_save_IFS | |
5852 | test -z "$as_dir" && as_dir=. | |
5853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5855 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5857 | break 2 | |
5858 | fi | |
5859 | done | |
5860 | done | |
5861 | IFS=$as_save_IFS | |
5862 | ||
5863 | fi | |
5864 | fi | |
5865 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5866 | if test -n "$OBJDUMP"; then | |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5868 | $as_echo "$OBJDUMP" >&6; } | |
5869 | else | |
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5871 | $as_echo "no" >&6; } | |
5872 | fi | |
5873 | ||
5874 | ||
5875 | fi | |
5876 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5877 | ac_ct_OBJDUMP=$OBJDUMP | |
5878 | # Extract the first word of "objdump", so it can be a program name with args. | |
5879 | set dummy objdump; ac_word=$2 | |
5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5881 | $as_echo_n "checking for $ac_word... " >&6; } | |
5882 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5883 | $as_echo_n "(cached) " >&6 | |
5884 | else | |
5885 | if test -n "$ac_ct_OBJDUMP"; then | |
5886 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5887 | else | |
5888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5889 | for as_dir in $PATH | |
5890 | do | |
5891 | IFS=$as_save_IFS | |
5892 | test -z "$as_dir" && as_dir=. | |
5893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5895 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5897 | break 2 | |
5898 | fi | |
5899 | done | |
5900 | done | |
5901 | IFS=$as_save_IFS | |
5902 | ||
5903 | fi | |
5904 | fi | |
5905 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5906 | if test -n "$ac_ct_OBJDUMP"; then | |
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5908 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5909 | else | |
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5911 | $as_echo "no" >&6; } | |
5912 | fi | |
5913 | ||
5914 | if test "x$ac_ct_OBJDUMP" = x; then | |
5915 | OBJDUMP="false" | |
5916 | else | |
5917 | case $cross_compiling:$ac_tool_warned in | |
5918 | yes:) | |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5920 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5921 | ac_tool_warned=yes ;; | |
5922 | esac | |
5923 | OBJDUMP=$ac_ct_OBJDUMP | |
5924 | fi | |
5925 | else | |
5926 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5927 | fi | |
5928 | ||
5929 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5930 | ||
5931 | ||
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5940 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5941 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5942 | $as_echo_n "(cached) " >&6 | |
5943 | else | |
5944 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5945 | lt_cv_file_magic_test_file= | |
5946 | lt_cv_deplibs_check_method='unknown' | |
5947 | # Need to set the preceding variable on all platforms that support | |
5948 | # interlibrary dependencies. | |
5949 | # 'none' -- dependencies not supported. | |
5950 | # `unknown' -- same as none, but documents that we really don't know. | |
5951 | # 'pass_all' -- all dependencies passed with no checks. | |
5952 | # 'test_compile' -- check by making test program. | |
5953 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5954 | # which responds to the $file_magic_cmd with a given extended regex. | |
5955 | # If you have `file' or equivalent on your system and you're not sure | |
5956 | # whether `pass_all' will *always* work, you probably want this one. | |
5957 | ||
5958 | case $host_os in | |
5959 | aix[4-9]*) | |
5960 | lt_cv_deplibs_check_method=pass_all | |
5961 | ;; | |
5962 | ||
5963 | beos*) | |
5964 | lt_cv_deplibs_check_method=pass_all | |
5965 | ;; | |
5966 | ||
5967 | bsdi[45]*) | |
5968 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5969 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5970 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5971 | ;; | |
5972 | ||
5973 | cygwin*) | |
5974 | # func_win32_libid is a shell function defined in ltmain.sh | |
5975 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5976 | lt_cv_file_magic_cmd='func_win32_libid' | |
5977 | ;; | |
5978 | ||
5979 | mingw* | pw32*) | |
5980 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5981 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5982 | # unless we find 'file', for example because we are cross-compiling. | |
5983 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5984 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5985 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5986 | lt_cv_file_magic_cmd='func_win32_libid' | |
5987 | else | |
5988 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5989 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5990 | fi | |
5991 | ;; | |
5992 | ||
5993 | cegcc*) | |
5994 | # use the weaker test based on 'objdump'. See mingw*. | |
5995 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5996 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5997 | ;; | |
5998 | ||
5999 | darwin* | rhapsody*) | |
6000 | lt_cv_deplibs_check_method=pass_all | |
6001 | ;; | |
6002 | ||
6003 | freebsd* | dragonfly*) | |
6004 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6005 | case $host_cpu in | |
6006 | i*86 ) | |
6007 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6008 | # Let's accept both of them until this is cleared up. | |
6009 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6010 | lt_cv_file_magic_cmd=/usr/bin/file | |
6011 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6012 | ;; | |
6013 | esac | |
6014 | else | |
6015 | lt_cv_deplibs_check_method=pass_all | |
6016 | fi | |
6017 | ;; | |
6018 | ||
6019 | gnu*) | |
6020 | lt_cv_deplibs_check_method=pass_all | |
6021 | ;; | |
6022 | ||
6023 | haiku*) | |
6024 | lt_cv_deplibs_check_method=pass_all | |
6025 | ;; | |
6026 | ||
6027 | hpux10.20* | hpux11*) | |
6028 | lt_cv_file_magic_cmd=/usr/bin/file | |
6029 | case $host_cpu in | |
6030 | ia64*) | |
6031 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6032 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6033 | ;; | |
6034 | hppa*64*) | |
6035 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6036 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6037 | ;; | |
6038 | *) | |
6039 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6040 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6041 | ;; | |
6042 | esac | |
6043 | ;; | |
6044 | ||
6045 | interix[3-9]*) | |
6046 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6047 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6048 | ;; | |
6049 | ||
6050 | irix5* | irix6* | nonstopux*) | |
6051 | case $LD in | |
6052 | *-32|*"-32 ") libmagic=32-bit;; | |
6053 | *-n32|*"-n32 ") libmagic=N32;; | |
6054 | *-64|*"-64 ") libmagic=64-bit;; | |
6055 | *) libmagic=never-match;; | |
6056 | esac | |
6057 | lt_cv_deplibs_check_method=pass_all | |
6058 | ;; | |
6059 | ||
6060 | # This must be Linux ELF. | |
6061 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6062 | lt_cv_deplibs_check_method=pass_all | |
6063 | ;; | |
6064 | ||
6065 | netbsd*) | |
6066 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6067 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6068 | else | |
6069 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6070 | fi | |
6071 | ;; | |
6072 | ||
6073 | newos6*) | |
6074 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6075 | lt_cv_file_magic_cmd=/usr/bin/file | |
6076 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6077 | ;; | |
6078 | ||
6079 | *nto* | *qnx*) | |
6080 | lt_cv_deplibs_check_method=pass_all | |
6081 | ;; | |
6082 | ||
6083 | openbsd*) | |
6084 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6085 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6086 | else | |
6087 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6088 | fi | |
6089 | ;; | |
6090 | ||
6091 | osf3* | osf4* | osf5*) | |
6092 | lt_cv_deplibs_check_method=pass_all | |
6093 | ;; | |
6094 | ||
6095 | rdos*) | |
6096 | lt_cv_deplibs_check_method=pass_all | |
6097 | ;; | |
6098 | ||
6099 | solaris*) | |
6100 | lt_cv_deplibs_check_method=pass_all | |
6101 | ;; | |
6102 | ||
6103 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6104 | lt_cv_deplibs_check_method=pass_all | |
6105 | ;; | |
6106 | ||
6107 | sysv4 | sysv4.3*) | |
6108 | case $host_vendor in | |
6109 | motorola) | |
6110 | 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]' | |
6111 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6112 | ;; | |
6113 | ncr) | |
6114 | lt_cv_deplibs_check_method=pass_all | |
6115 | ;; | |
6116 | sequent) | |
6117 | lt_cv_file_magic_cmd='/bin/file' | |
6118 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6119 | ;; | |
6120 | sni) | |
6121 | lt_cv_file_magic_cmd='/bin/file' | |
6122 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6123 | lt_cv_file_magic_test_file=/lib/libc.so | |
6124 | ;; | |
6125 | siemens) | |
6126 | lt_cv_deplibs_check_method=pass_all | |
6127 | ;; | |
6128 | pc) | |
6129 | lt_cv_deplibs_check_method=pass_all | |
6130 | ;; | |
6131 | esac | |
6132 | ;; | |
6133 | ||
6134 | tpf*) | |
6135 | lt_cv_deplibs_check_method=pass_all | |
6136 | ;; | |
6137 | esac | |
6138 | ||
6139 | fi | |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6141 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6142 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6143 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6144 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6145 | ||
6146 | ||
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | ||
6155 | ||
6156 | ||
6157 | if test -n "$ac_tool_prefix"; then | |
6158 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6159 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6161 | $as_echo_n "checking for $ac_word... " >&6; } | |
6162 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6163 | $as_echo_n "(cached) " >&6 | |
6164 | else | |
6165 | if test -n "$AR"; then | |
6166 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6167 | else | |
6168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6169 | for as_dir in $PATH | |
6170 | do | |
6171 | IFS=$as_save_IFS | |
6172 | test -z "$as_dir" && as_dir=. | |
6173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6175 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6177 | break 2 | |
6178 | fi | |
6179 | done | |
6180 | done | |
6181 | IFS=$as_save_IFS | |
6182 | ||
6183 | fi | |
6184 | fi | |
6185 | AR=$ac_cv_prog_AR | |
6186 | if test -n "$AR"; then | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6188 | $as_echo "$AR" >&6; } | |
6189 | else | |
6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6191 | $as_echo "no" >&6; } | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | fi | |
6196 | if test -z "$ac_cv_prog_AR"; then | |
6197 | ac_ct_AR=$AR | |
6198 | # Extract the first word of "ar", so it can be a program name with args. | |
6199 | set dummy ar; ac_word=$2 | |
6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6201 | $as_echo_n "checking for $ac_word... " >&6; } | |
6202 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6203 | $as_echo_n "(cached) " >&6 | |
6204 | else | |
6205 | if test -n "$ac_ct_AR"; then | |
6206 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6207 | else | |
6208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6209 | for as_dir in $PATH | |
6210 | do | |
6211 | IFS=$as_save_IFS | |
6212 | test -z "$as_dir" && as_dir=. | |
6213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6215 | ac_cv_prog_ac_ct_AR="ar" | |
6216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6217 | break 2 | |
6218 | fi | |
6219 | done | |
6220 | done | |
6221 | IFS=$as_save_IFS | |
6222 | ||
6223 | fi | |
6224 | fi | |
6225 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6226 | if test -n "$ac_ct_AR"; then | |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6228 | $as_echo "$ac_ct_AR" >&6; } | |
6229 | else | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6231 | $as_echo "no" >&6; } | |
6232 | fi | |
6233 | ||
6234 | if test "x$ac_ct_AR" = x; then | |
6235 | AR="false" | |
6236 | else | |
6237 | case $cross_compiling:$ac_tool_warned in | |
6238 | yes:) | |
6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6241 | ac_tool_warned=yes ;; | |
6242 | esac | |
6243 | AR=$ac_ct_AR | |
6244 | fi | |
6245 | else | |
6246 | AR="$ac_cv_prog_AR" | |
6247 | fi | |
6248 | ||
6249 | test -z "$AR" && AR=ar | |
6250 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6251 | ||
6252 | ||
6253 | ||
6254 | ||
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
6260 | ||
6261 | ||
6262 | if test -n "$ac_tool_prefix"; then | |
6263 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6264 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6266 | $as_echo_n "checking for $ac_word... " >&6; } | |
6267 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6268 | $as_echo_n "(cached) " >&6 | |
6269 | else | |
6270 | if test -n "$STRIP"; then | |
6271 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6272 | else | |
6273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6274 | for as_dir in $PATH | |
6275 | do | |
6276 | IFS=$as_save_IFS | |
6277 | test -z "$as_dir" && as_dir=. | |
6278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6280 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6282 | break 2 | |
6283 | fi | |
6284 | done | |
6285 | done | |
6286 | IFS=$as_save_IFS | |
6287 | ||
6288 | fi | |
6289 | fi | |
6290 | STRIP=$ac_cv_prog_STRIP | |
6291 | if test -n "$STRIP"; then | |
6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6293 | $as_echo "$STRIP" >&6; } | |
6294 | else | |
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6296 | $as_echo "no" >&6; } | |
6297 | fi | |
6298 | ||
6299 | ||
6300 | fi | |
6301 | if test -z "$ac_cv_prog_STRIP"; then | |
6302 | ac_ct_STRIP=$STRIP | |
6303 | # Extract the first word of "strip", so it can be a program name with args. | |
6304 | set dummy strip; ac_word=$2 | |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6306 | $as_echo_n "checking for $ac_word... " >&6; } | |
6307 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6308 | $as_echo_n "(cached) " >&6 | |
6309 | else | |
6310 | if test -n "$ac_ct_STRIP"; then | |
6311 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6312 | else | |
6313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6314 | for as_dir in $PATH | |
6315 | do | |
6316 | IFS=$as_save_IFS | |
6317 | test -z "$as_dir" && as_dir=. | |
6318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6320 | ac_cv_prog_ac_ct_STRIP="strip" | |
6321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6322 | break 2 | |
6323 | fi | |
6324 | done | |
6325 | done | |
6326 | IFS=$as_save_IFS | |
6327 | ||
6328 | fi | |
6329 | fi | |
6330 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6331 | if test -n "$ac_ct_STRIP"; then | |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6333 | $as_echo "$ac_ct_STRIP" >&6; } | |
6334 | else | |
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6336 | $as_echo "no" >&6; } | |
6337 | fi | |
6338 | ||
6339 | if test "x$ac_ct_STRIP" = x; then | |
6340 | STRIP=":" | |
6341 | else | |
6342 | case $cross_compiling:$ac_tool_warned in | |
6343 | yes:) | |
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6346 | ac_tool_warned=yes ;; | |
6347 | esac | |
6348 | STRIP=$ac_ct_STRIP | |
6349 | fi | |
6350 | else | |
6351 | STRIP="$ac_cv_prog_STRIP" | |
6352 | fi | |
6353 | ||
6354 | test -z "$STRIP" && STRIP=: | |
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | if test -n "$ac_tool_prefix"; then | |
6362 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6363 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6365 | $as_echo_n "checking for $ac_word... " >&6; } | |
6366 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6367 | $as_echo_n "(cached) " >&6 | |
6368 | else | |
6369 | if test -n "$RANLIB"; then | |
6370 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6371 | else | |
6372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6373 | for as_dir in $PATH | |
6374 | do | |
6375 | IFS=$as_save_IFS | |
6376 | test -z "$as_dir" && as_dir=. | |
6377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6379 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6381 | break 2 | |
6382 | fi | |
6383 | done | |
6384 | done | |
6385 | IFS=$as_save_IFS | |
6386 | ||
6387 | fi | |
6388 | fi | |
6389 | RANLIB=$ac_cv_prog_RANLIB | |
6390 | if test -n "$RANLIB"; then | |
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6392 | $as_echo "$RANLIB" >&6; } | |
6393 | else | |
6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6395 | $as_echo "no" >&6; } | |
6396 | fi | |
6397 | ||
6398 | ||
6399 | fi | |
6400 | if test -z "$ac_cv_prog_RANLIB"; then | |
6401 | ac_ct_RANLIB=$RANLIB | |
6402 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6403 | set dummy ranlib; ac_word=$2 | |
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6405 | $as_echo_n "checking for $ac_word... " >&6; } | |
6406 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6407 | $as_echo_n "(cached) " >&6 | |
6408 | else | |
6409 | if test -n "$ac_ct_RANLIB"; then | |
6410 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6411 | else | |
6412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6413 | for as_dir in $PATH | |
6414 | do | |
6415 | IFS=$as_save_IFS | |
6416 | test -z "$as_dir" && as_dir=. | |
6417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6419 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6421 | break 2 | |
6422 | fi | |
6423 | done | |
6424 | done | |
6425 | IFS=$as_save_IFS | |
6426 | ||
6427 | fi | |
6428 | fi | |
6429 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6430 | if test -n "$ac_ct_RANLIB"; then | |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6432 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6433 | else | |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6435 | $as_echo "no" >&6; } | |
6436 | fi | |
6437 | ||
6438 | if test "x$ac_ct_RANLIB" = x; then | |
6439 | RANLIB=":" | |
6440 | else | |
6441 | case $cross_compiling:$ac_tool_warned in | |
6442 | yes:) | |
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6444 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6445 | ac_tool_warned=yes ;; | |
6446 | esac | |
6447 | RANLIB=$ac_ct_RANLIB | |
6448 | fi | |
6449 | else | |
6450 | RANLIB="$ac_cv_prog_RANLIB" | |
6451 | fi | |
6452 | ||
6453 | test -z "$RANLIB" && RANLIB=: | |
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | # Determine commands to create old-style static archives. | |
6461 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6462 | old_postinstall_cmds='chmod 644 $oldlib' | |
6463 | old_postuninstall_cmds= | |
6464 | ||
6465 | if test -n "$RANLIB"; then | |
6466 | case $host_os in | |
6467 | openbsd*) | |
6468 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6469 | ;; | |
6470 | *) | |
6471 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6472 | ;; | |
6473 | esac | |
6474 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6475 | fi | |
6476 | ||
6477 | case $host_os in | |
6478 | darwin*) | |
6479 | lock_old_archive_extraction=yes ;; | |
6480 | *) | |
6481 | lock_old_archive_extraction=no ;; | |
6482 | esac | |
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | # If no C compiler was specified, use CC. | |
6523 | LTCC=${LTCC-"$CC"} | |
6524 | ||
6525 | # If no C compiler flags were specified, use CFLAGS. | |
6526 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6527 | ||
6528 | # Allow CC to be a program name with arguments. | |
6529 | compiler=$CC | |
6530 | ||
6531 | ||
6532 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6534 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6535 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6536 | $as_echo_n "(cached) " >&6 | |
6537 | else | |
6538 | ||
6539 | # These are sane defaults that work on at least a few old systems. | |
6540 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6541 | ||
6542 | # Character class describing NM global symbol codes. | |
6543 | symcode='[BCDEGRST]' | |
6544 | ||
6545 | # Regexp to match symbols that can be accessed directly from C. | |
6546 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6547 | ||
6548 | # Define system-specific variables. | |
6549 | case $host_os in | |
6550 | aix*) | |
6551 | symcode='[BCDT]' | |
6552 | ;; | |
6553 | cygwin* | mingw* | pw32* | cegcc*) | |
6554 | symcode='[ABCDGISTW]' | |
6555 | ;; | |
6556 | hpux*) | |
6557 | if test "$host_cpu" = ia64; then | |
6558 | symcode='[ABCDEGRST]' | |
6559 | fi | |
6560 | ;; | |
6561 | irix* | nonstopux*) | |
6562 | symcode='[BCDEGRST]' | |
6563 | ;; | |
6564 | osf*) | |
6565 | symcode='[BCDEGQRST]' | |
6566 | ;; | |
6567 | solaris*) | |
6568 | symcode='[BDRT]' | |
6569 | ;; | |
6570 | sco3.2v5*) | |
6571 | symcode='[DT]' | |
6572 | ;; | |
6573 | sysv4.2uw2*) | |
6574 | symcode='[DT]' | |
6575 | ;; | |
6576 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6577 | symcode='[ABDT]' | |
6578 | ;; | |
6579 | sysv4) | |
6580 | symcode='[DFNSTU]' | |
6581 | ;; | |
6582 | esac | |
6583 | ||
6584 | # If we're using GNU nm, then use its standard symbol codes. | |
6585 | case `$NM -V 2>&1` in | |
6586 | *GNU* | *'with BFD'*) | |
6587 | symcode='[ABCDGIRSTW]' ;; | |
6588 | esac | |
6589 | ||
6590 | # Transform an extracted symbol line into a proper C declaration. | |
6591 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6592 | # so use this general approach. | |
6593 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6594 | ||
6595 | # Transform an extracted symbol line into symbol name and symbol address | |
6596 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6597 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
6598 | ||
6599 | # Handle CRLF in mingw tool chain | |
6600 | opt_cr= | |
6601 | case $build_os in | |
6602 | mingw*) | |
6603 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6604 | ;; | |
6605 | esac | |
6606 | ||
6607 | # Try without a prefix underscore, then with it. | |
6608 | for ac_symprfx in "" "_"; do | |
6609 | ||
6610 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6611 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6612 | ||
6613 | # Write the raw and C identifiers. | |
6614 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6615 | # Fake it for dumpbin and say T for any non-static function | |
6616 | # and D for any global variable. | |
6617 | # Also find C++ and __fastcall symbols from MSVC++, | |
6618 | # which start with @ or ?. | |
6619 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6620 | " {last_section=section; section=\$ 3};"\ | |
6621 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6622 | " \$ 0!~/External *\|/{next};"\ | |
6623 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6624 | " {if(hide[section]) next};"\ | |
6625 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6626 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6627 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6628 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6629 | " ' prfx=^$ac_symprfx" | |
6630 | else | |
6631 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6632 | fi | |
6633 | ||
6634 | # Check to see that the pipe works correctly. | |
6635 | pipe_works=no | |
6636 | ||
6637 | rm -f conftest* | |
6638 | cat > conftest.$ac_ext <<_LT_EOF | |
6639 | #ifdef __cplusplus | |
6640 | extern "C" { | |
6641 | #endif | |
6642 | char nm_test_var; | |
6643 | void nm_test_func(void); | |
6644 | void nm_test_func(void){} | |
6645 | #ifdef __cplusplus | |
6646 | } | |
6647 | #endif | |
6648 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6649 | _LT_EOF | |
6650 | ||
6651 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6652 | (eval $ac_compile) 2>&5 | |
6653 | ac_status=$? | |
6654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6655 | test $ac_status = 0; }; then | |
6656 | # Now try to grab the symbols. | |
6657 | nlist=conftest.nm | |
6658 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6659 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6660 | ac_status=$? | |
6661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6662 | test $ac_status = 0; } && test -s "$nlist"; then | |
6663 | # Try sorting and uniquifying the output. | |
6664 | if sort "$nlist" | uniq > "$nlist"T; then | |
6665 | mv -f "$nlist"T "$nlist" | |
6666 | else | |
6667 | rm -f "$nlist"T | |
6668 | fi | |
6669 | ||
6670 | # Make sure that we snagged all the symbols we need. | |
6671 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6672 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6673 | cat <<_LT_EOF > conftest.$ac_ext | |
6674 | #ifdef __cplusplus | |
6675 | extern "C" { | |
6676 | #endif | |
6677 | ||
6678 | _LT_EOF | |
6679 | # Now generate the symbol file. | |
6680 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6681 | ||
6682 | cat <<_LT_EOF >> conftest.$ac_ext | |
6683 | ||
6684 | /* The mapping between symbol names and symbols. */ | |
6685 | const struct { | |
6686 | const char *name; | |
6687 | void *address; | |
6688 | } | |
6689 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6690 | { | |
6691 | { "@PROGRAM@", (void *) 0 }, | |
6692 | _LT_EOF | |
6693 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6694 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6695 | {0, (void *) 0} | |
6696 | }; | |
6697 | ||
6698 | /* This works around a problem in FreeBSD linker */ | |
6699 | #ifdef FREEBSD_WORKAROUND | |
6700 | static const void *lt_preloaded_setup() { | |
6701 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6702 | } | |
6703 | #endif | |
6704 | ||
6705 | #ifdef __cplusplus | |
6706 | } | |
6707 | #endif | |
6708 | _LT_EOF | |
6709 | # Now try linking the two files. | |
6710 | mv conftest.$ac_objext conftstm.$ac_objext | |
6711 | lt_save_LIBS="$LIBS" | |
6712 | lt_save_CFLAGS="$CFLAGS" | |
6713 | LIBS="conftstm.$ac_objext" | |
6714 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6715 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6716 | (eval $ac_link) 2>&5 | |
6717 | ac_status=$? | |
6718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6719 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6720 | pipe_works=yes | |
6721 | fi | |
6722 | LIBS="$lt_save_LIBS" | |
6723 | CFLAGS="$lt_save_CFLAGS" | |
6724 | else | |
6725 | echo "cannot find nm_test_func in $nlist" >&5 | |
6726 | fi | |
6727 | else | |
6728 | echo "cannot find nm_test_var in $nlist" >&5 | |
6729 | fi | |
6730 | else | |
6731 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6732 | fi | |
6733 | else | |
6734 | echo "$progname: failed program was:" >&5 | |
6735 | cat conftest.$ac_ext >&5 | |
6736 | fi | |
6737 | rm -rf conftest* conftst* | |
6738 | ||
6739 | # Do not use the global_symbol_pipe unless it works. | |
6740 | if test "$pipe_works" = yes; then | |
6741 | break | |
6742 | else | |
6743 | lt_cv_sys_global_symbol_pipe= | |
6744 | fi | |
6745 | done | |
6746 | ||
6747 | fi | |
6748 | ||
6749 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6750 | lt_cv_sys_global_symbol_to_cdecl= | |
6751 | fi | |
6752 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6754 | $as_echo "failed" >&6; } | |
6755 | else | |
6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6757 | $as_echo "ok" >&6; } | |
6758 | fi | |
6759 | ||
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | ||
6769 | ||
6770 | ||
6771 | ||
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | ||
6777 | ||
6778 | ||
eff02e4f ILT |
6779 | |
6780 | ||
6781 | # Check whether --enable-libtool-lock was given. | |
6782 | if test "${enable_libtool_lock+set}" = set; then : | |
6783 | enableval=$enable_libtool_lock; | |
6784 | fi | |
6785 | ||
6786 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6787 | ||
6788 | # Some flags need to be propagated to the compiler or linker for good | |
6789 | # libtool support. | |
6790 | case $host in | |
6791 | ia64-*-hpux*) | |
6792 | # Find out which ABI we are using. | |
6793 | echo 'int i;' > conftest.$ac_ext | |
6794 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6795 | (eval $ac_compile) 2>&5 | |
6796 | ac_status=$? | |
6797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6798 | test $ac_status = 0; }; then | |
6799 | case `/usr/bin/file conftest.$ac_objext` in | |
6800 | *ELF-32*) | |
6801 | HPUX_IA64_MODE="32" | |
6802 | ;; | |
6803 | *ELF-64*) | |
6804 | HPUX_IA64_MODE="64" | |
6805 | ;; | |
6806 | esac | |
6807 | fi | |
6808 | rm -rf conftest* | |
6809 | ;; | |
6810 | *-*-irix6*) | |
6811 | # Find out which ABI we are using. | |
6812 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6813 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6814 | (eval $ac_compile) 2>&5 | |
6815 | ac_status=$? | |
6816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6817 | test $ac_status = 0; }; then | |
6818 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6819 | case `/usr/bin/file conftest.$ac_objext` in | |
6820 | *32-bit*) | |
6821 | LD="${LD-ld} -melf32bsmip" | |
6822 | ;; | |
6823 | *N32*) | |
6824 | LD="${LD-ld} -melf32bmipn32" | |
6825 | ;; | |
6826 | *64-bit*) | |
6827 | LD="${LD-ld} -melf64bmip" | |
6828 | ;; | |
6829 | esac | |
6830 | else | |
6831 | case `/usr/bin/file conftest.$ac_objext` in | |
6832 | *32-bit*) | |
6833 | LD="${LD-ld} -32" | |
6834 | ;; | |
6835 | *N32*) | |
6836 | LD="${LD-ld} -n32" | |
6837 | ;; | |
6838 | *64-bit*) | |
6839 | LD="${LD-ld} -64" | |
6840 | ;; | |
6841 | esac | |
6842 | fi | |
6843 | fi | |
6844 | rm -rf conftest* | |
6845 | ;; | |
6846 | ||
3cbe17f7 | 6847 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
eff02e4f ILT |
6848 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6849 | # Find out which ABI we are using. | |
6850 | echo 'int i;' > conftest.$ac_ext | |
6851 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6852 | (eval $ac_compile) 2>&5 | |
6853 | ac_status=$? | |
6854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6855 | test $ac_status = 0; }; then | |
6856 | case `/usr/bin/file conftest.o` in | |
6857 | *32-bit*) | |
6858 | case $host in | |
6859 | x86_64-*kfreebsd*-gnu) | |
6860 | LD="${LD-ld} -m elf_i386_fbsd" | |
6861 | ;; | |
6862 | x86_64-*linux*) | |
6863 | case `/usr/bin/file conftest.o` in | |
6864 | *x86-64*) | |
6865 | LD="${LD-ld} -m elf32_x86_64" | |
6866 | ;; | |
6867 | *) | |
6868 | LD="${LD-ld} -m elf_i386" | |
6869 | ;; | |
6870 | esac | |
6871 | ;; | |
3cbe17f7 AM |
6872 | powerpc64le-*linux*) |
6873 | LD="${LD-ld} -m elf32lppclinux" | |
6874 | ;; | |
6875 | powerpc64-*linux*) | |
eff02e4f ILT |
6876 | LD="${LD-ld} -m elf32ppclinux" |
6877 | ;; | |
6878 | s390x-*linux*) | |
6879 | LD="${LD-ld} -m elf_s390" | |
6880 | ;; | |
6881 | sparc64-*linux*) | |
6882 | LD="${LD-ld} -m elf32_sparc" | |
6883 | ;; | |
6884 | esac | |
6885 | ;; | |
6886 | *64-bit*) | |
6887 | case $host in | |
6888 | x86_64-*kfreebsd*-gnu) | |
6889 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6890 | ;; | |
6891 | x86_64-*linux*) | |
6892 | LD="${LD-ld} -m elf_x86_64" | |
6893 | ;; | |
3cbe17f7 AM |
6894 | powerpcle-*linux*) |
6895 | LD="${LD-ld} -m elf64lppc" | |
6896 | ;; | |
6897 | powerpc-*linux*) | |
eff02e4f ILT |
6898 | LD="${LD-ld} -m elf64ppc" |
6899 | ;; | |
6900 | s390*-*linux*|s390*-*tpf*) | |
6901 | LD="${LD-ld} -m elf64_s390" | |
6902 | ;; | |
6903 | sparc*-*linux*) | |
6904 | LD="${LD-ld} -m elf64_sparc" | |
6905 | ;; | |
6906 | esac | |
6907 | ;; | |
6908 | esac | |
6909 | fi | |
6910 | rm -rf conftest* | |
6911 | ;; | |
6912 | ||
6913 | *-*-sco3.2v5*) | |
6914 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6915 | SAVE_CFLAGS="$CFLAGS" | |
6916 | CFLAGS="$CFLAGS -belf" | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6918 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6919 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6920 | $as_echo_n "(cached) " >&6 | |
6921 | else | |
6922 | ac_ext=c | |
6923 | ac_cpp='$CPP $CPPFLAGS' | |
6924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6927 | ||
6928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6929 | /* end confdefs.h. */ | |
6930 | ||
6931 | int | |
6932 | main () | |
6933 | { | |
6934 | ||
6935 | ; | |
6936 | return 0; | |
6937 | } | |
6938 | _ACEOF | |
6939 | if ac_fn_c_try_link "$LINENO"; then : | |
6940 | lt_cv_cc_needs_belf=yes | |
6941 | else | |
6942 | lt_cv_cc_needs_belf=no | |
6943 | fi | |
6944 | rm -f core conftest.err conftest.$ac_objext \ | |
6945 | conftest$ac_exeext conftest.$ac_ext | |
6946 | ac_ext=c | |
6947 | ac_cpp='$CPP $CPPFLAGS' | |
6948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6951 | ||
6952 | fi | |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6954 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6955 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6956 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6957 | CFLAGS="$SAVE_CFLAGS" | |
6958 | fi | |
6959 | ;; | |
6960 | sparc*-*solaris*) | |
6961 | # Find out which ABI we are using. | |
6962 | echo 'int i;' > conftest.$ac_ext | |
6963 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6964 | (eval $ac_compile) 2>&5 | |
6965 | ac_status=$? | |
6966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6967 | test $ac_status = 0; }; then | |
6968 | case `/usr/bin/file conftest.o` in | |
6969 | *64-bit*) | |
6970 | case $lt_cv_prog_gnu_ld in | |
6971 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6972 | *) | |
6973 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6974 | LD="${LD-ld} -64" | |
6975 | fi | |
6976 | ;; | |
6977 | esac | |
6978 | ;; | |
6979 | esac | |
6980 | fi | |
6981 | rm -rf conftest* | |
6982 | ;; | |
6983 | esac | |
6984 | ||
6985 | need_locks="$enable_libtool_lock" | |
6986 | ||
6987 | ||
6988 | case $host_os in | |
6989 | rhapsody* | darwin*) | |
6990 | if test -n "$ac_tool_prefix"; then | |
6991 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6992 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6994 | $as_echo_n "checking for $ac_word... " >&6; } | |
6995 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6996 | $as_echo_n "(cached) " >&6 | |
6997 | else | |
6998 | if test -n "$DSYMUTIL"; then | |
6999 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7000 | else | |
7001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7002 | for as_dir in $PATH | |
7003 | do | |
7004 | IFS=$as_save_IFS | |
7005 | test -z "$as_dir" && as_dir=. | |
7006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7008 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7010 | break 2 | |
7011 | fi | |
7012 | done | |
7013 | done | |
7014 | IFS=$as_save_IFS | |
7015 | ||
7016 | fi | |
7017 | fi | |
7018 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7019 | if test -n "$DSYMUTIL"; then | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7021 | $as_echo "$DSYMUTIL" >&6; } | |
7022 | else | |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7024 | $as_echo "no" >&6; } | |
7025 | fi | |
7026 | ||
7027 | ||
7028 | fi | |
7029 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7030 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7031 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7032 | set dummy dsymutil; ac_word=$2 | |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7034 | $as_echo_n "checking for $ac_word... " >&6; } | |
7035 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7036 | $as_echo_n "(cached) " >&6 | |
7037 | else | |
d4c059d5 ILT |
7038 | if test -n "$ac_ct_DSYMUTIL"; then |
7039 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
eff02e4f ILT |
7040 | else |
7041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7042 | for as_dir in $PATH | |
7043 | do | |
7044 | IFS=$as_save_IFS | |
7045 | test -z "$as_dir" && as_dir=. | |
7046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7048 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
eff02e4f ILT |
7049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7050 | break 2 | |
7051 | fi | |
7052 | done | |
7053 | done | |
7054 | IFS=$as_save_IFS | |
7055 | ||
7056 | fi | |
7057 | fi | |
d4c059d5 ILT |
7058 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7059 | if test -n "$ac_ct_DSYMUTIL"; then | |
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7061 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
eff02e4f ILT |
7062 | else |
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7064 | $as_echo "no" >&6; } | |
7065 | fi | |
7066 | ||
d4c059d5 ILT |
7067 | if test "x$ac_ct_DSYMUTIL" = x; then |
7068 | DSYMUTIL=":" | |
eff02e4f ILT |
7069 | else |
7070 | case $cross_compiling:$ac_tool_warned in | |
7071 | yes:) | |
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7073 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7074 | ac_tool_warned=yes ;; | |
7075 | esac | |
d4c059d5 | 7076 | DSYMUTIL=$ac_ct_DSYMUTIL |
eff02e4f ILT |
7077 | fi |
7078 | else | |
d4c059d5 | 7079 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
eff02e4f ILT |
7080 | fi |
7081 | ||
7082 | if test -n "$ac_tool_prefix"; then | |
d4c059d5 ILT |
7083 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7084 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
eff02e4f ILT |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7086 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7087 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
eff02e4f ILT |
7088 | $as_echo_n "(cached) " >&6 |
7089 | else | |
d4c059d5 ILT |
7090 | if test -n "$NMEDIT"; then |
7091 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
eff02e4f ILT |
7092 | else |
7093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7094 | for as_dir in $PATH | |
7095 | do | |
7096 | IFS=$as_save_IFS | |
7097 | test -z "$as_dir" && as_dir=. | |
7098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7100 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
eff02e4f ILT |
7101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7102 | break 2 | |
7103 | fi | |
7104 | done | |
7105 | done | |
7106 | IFS=$as_save_IFS | |
7107 | ||
7108 | fi | |
7109 | fi | |
d4c059d5 ILT |
7110 | NMEDIT=$ac_cv_prog_NMEDIT |
7111 | if test -n "$NMEDIT"; then | |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7113 | $as_echo "$NMEDIT" >&6; } | |
eff02e4f ILT |
7114 | else |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7116 | $as_echo "no" >&6; } | |
7117 | fi | |
7118 | ||
7119 | ||
7120 | fi | |
d4c059d5 ILT |
7121 | if test -z "$ac_cv_prog_NMEDIT"; then |
7122 | ac_ct_NMEDIT=$NMEDIT | |
7123 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7124 | set dummy nmedit; ac_word=$2 | |
eff02e4f ILT |
7125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7126 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7127 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
eff02e4f ILT |
7128 | $as_echo_n "(cached) " >&6 |
7129 | else | |
d4c059d5 ILT |
7130 | if test -n "$ac_ct_NMEDIT"; then |
7131 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
eff02e4f ILT |
7132 | else |
7133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7134 | for as_dir in $PATH | |
7135 | do | |
7136 | IFS=$as_save_IFS | |
7137 | test -z "$as_dir" && as_dir=. | |
7138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7140 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
eff02e4f ILT |
7141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7142 | break 2 | |
7143 | fi | |
7144 | done | |
7145 | done | |
7146 | IFS=$as_save_IFS | |
7147 | ||
7148 | fi | |
7149 | fi | |
d4c059d5 ILT |
7150 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7151 | if test -n "$ac_ct_NMEDIT"; then | |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7153 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
eff02e4f ILT |
7154 | else |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7156 | $as_echo "no" >&6; } | |
7157 | fi | |
7158 | ||
d4c059d5 ILT |
7159 | if test "x$ac_ct_NMEDIT" = x; then |
7160 | NMEDIT=":" | |
eff02e4f ILT |
7161 | else |
7162 | case $cross_compiling:$ac_tool_warned in | |
7163 | yes:) | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7165 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7166 | ac_tool_warned=yes ;; | |
7167 | esac | |
d4c059d5 | 7168 | NMEDIT=$ac_ct_NMEDIT |
eff02e4f ILT |
7169 | fi |
7170 | else | |
d4c059d5 | 7171 | NMEDIT="$ac_cv_prog_NMEDIT" |
eff02e4f ILT |
7172 | fi |
7173 | ||
7174 | if test -n "$ac_tool_prefix"; then | |
d4c059d5 ILT |
7175 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7176 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
eff02e4f ILT |
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7178 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7179 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
eff02e4f ILT |
7180 | $as_echo_n "(cached) " >&6 |
7181 | else | |
d4c059d5 ILT |
7182 | if test -n "$LIPO"; then |
7183 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
eff02e4f ILT |
7184 | else |
7185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7186 | for as_dir in $PATH | |
7187 | do | |
7188 | IFS=$as_save_IFS | |
7189 | test -z "$as_dir" && as_dir=. | |
7190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7192 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
eff02e4f ILT |
7193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7194 | break 2 | |
7195 | fi | |
7196 | done | |
7197 | done | |
7198 | IFS=$as_save_IFS | |
7199 | ||
7200 | fi | |
7201 | fi | |
d4c059d5 ILT |
7202 | LIPO=$ac_cv_prog_LIPO |
7203 | if test -n "$LIPO"; then | |
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7205 | $as_echo "$LIPO" >&6; } | |
eff02e4f ILT |
7206 | else |
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7208 | $as_echo "no" >&6; } | |
7209 | fi | |
7210 | ||
7211 | ||
7212 | fi | |
d4c059d5 ILT |
7213 | if test -z "$ac_cv_prog_LIPO"; then |
7214 | ac_ct_LIPO=$LIPO | |
7215 | # Extract the first word of "lipo", so it can be a program name with args. | |
7216 | set dummy lipo; ac_word=$2 | |
eff02e4f ILT |
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7218 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7219 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
eff02e4f ILT |
7220 | $as_echo_n "(cached) " >&6 |
7221 | else | |
d4c059d5 ILT |
7222 | if test -n "$ac_ct_LIPO"; then |
7223 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
eff02e4f ILT |
7224 | else |
7225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7226 | for as_dir in $PATH | |
7227 | do | |
7228 | IFS=$as_save_IFS | |
7229 | test -z "$as_dir" && as_dir=. | |
7230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7232 | ac_cv_prog_ac_ct_LIPO="lipo" |
eff02e4f ILT |
7233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7234 | break 2 | |
7235 | fi | |
7236 | done | |
7237 | done | |
7238 | IFS=$as_save_IFS | |
7239 | ||
7240 | fi | |
7241 | fi | |
d4c059d5 ILT |
7242 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7243 | if test -n "$ac_ct_LIPO"; then | |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7245 | $as_echo "$ac_ct_LIPO" >&6; } | |
eff02e4f ILT |
7246 | else |
7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7248 | $as_echo "no" >&6; } | |
7249 | fi | |
7250 | ||
d4c059d5 ILT |
7251 | if test "x$ac_ct_LIPO" = x; then |
7252 | LIPO=":" | |
eff02e4f ILT |
7253 | else |
7254 | case $cross_compiling:$ac_tool_warned in | |
7255 | yes:) | |
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7258 | ac_tool_warned=yes ;; | |
7259 | esac | |
d4c059d5 | 7260 | LIPO=$ac_ct_LIPO |
eff02e4f ILT |
7261 | fi |
7262 | else | |
d4c059d5 | 7263 | LIPO="$ac_cv_prog_LIPO" |
eff02e4f ILT |
7264 | fi |
7265 | ||
d4c059d5 ILT |
7266 | if test -n "$ac_tool_prefix"; then |
7267 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7268 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7270 | $as_echo_n "checking for $ac_word... " >&6; } | |
7271 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
eff02e4f ILT |
7272 | $as_echo_n "(cached) " >&6 |
7273 | else | |
d4c059d5 ILT |
7274 | if test -n "$OTOOL"; then |
7275 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
eff02e4f | 7276 | else |
d4c059d5 ILT |
7277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7278 | for as_dir in $PATH | |
7279 | do | |
7280 | IFS=$as_save_IFS | |
7281 | test -z "$as_dir" && as_dir=. | |
7282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7284 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7286 | break 2 | |
7287 | fi | |
7288 | done | |
7289 | done | |
7290 | IFS=$as_save_IFS | |
eff02e4f | 7291 | |
eff02e4f | 7292 | fi |
eff02e4f | 7293 | fi |
d4c059d5 ILT |
7294 | OTOOL=$ac_cv_prog_OTOOL |
7295 | if test -n "$OTOOL"; then | |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7297 | $as_echo "$OTOOL" >&6; } | |
7298 | else | |
7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7300 | $as_echo "no" >&6; } | |
eff02e4f | 7301 | fi |
eff02e4f | 7302 | |
d4c059d5 | 7303 | |
eff02e4f | 7304 | fi |
d4c059d5 ILT |
7305 | if test -z "$ac_cv_prog_OTOOL"; then |
7306 | ac_ct_OTOOL=$OTOOL | |
7307 | # Extract the first word of "otool", so it can be a program name with args. | |
7308 | set dummy otool; ac_word=$2 | |
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7310 | $as_echo_n "checking for $ac_word... " >&6; } | |
7311 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
eff02e4f ILT |
7312 | $as_echo_n "(cached) " >&6 |
7313 | else | |
d4c059d5 ILT |
7314 | if test -n "$ac_ct_OTOOL"; then |
7315 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7316 | else | |
7317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7318 | for as_dir in $PATH | |
eff02e4f | 7319 | do |
d4c059d5 ILT |
7320 | IFS=$as_save_IFS |
7321 | test -z "$as_dir" && as_dir=. | |
7322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7324 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7326 | break 2 | |
7327 | fi | |
7328 | done | |
7329 | done | |
7330 | IFS=$as_save_IFS | |
eff02e4f | 7331 | |
d4c059d5 ILT |
7332 | fi |
7333 | fi | |
7334 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7335 | if test -n "$ac_ct_OTOOL"; then | |
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7337 | $as_echo "$ac_ct_OTOOL" >&6; } | |
eff02e4f | 7338 | else |
d4c059d5 ILT |
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7340 | $as_echo "no" >&6; } | |
eff02e4f | 7341 | fi |
eff02e4f | 7342 | |
d4c059d5 ILT |
7343 | if test "x$ac_ct_OTOOL" = x; then |
7344 | OTOOL=":" | |
7345 | else | |
7346 | case $cross_compiling:$ac_tool_warned in | |
7347 | yes:) | |
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7349 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7350 | ac_tool_warned=yes ;; | |
7351 | esac | |
7352 | OTOOL=$ac_ct_OTOOL | |
7353 | fi | |
eff02e4f | 7354 | else |
d4c059d5 | 7355 | OTOOL="$ac_cv_prog_OTOOL" |
eff02e4f | 7356 | fi |
eff02e4f | 7357 | |
d4c059d5 ILT |
7358 | if test -n "$ac_tool_prefix"; then |
7359 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7360 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7362 | $as_echo_n "checking for $ac_word... " >&6; } | |
7363 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7364 | $as_echo_n "(cached) " >&6 | |
7365 | else | |
7366 | if test -n "$OTOOL64"; then | |
7367 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7368 | else | |
7369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7370 | for as_dir in $PATH | |
7371 | do | |
7372 | IFS=$as_save_IFS | |
7373 | test -z "$as_dir" && as_dir=. | |
7374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7376 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7378 | break 2 | |
7379 | fi | |
eff02e4f | 7380 | done |
d4c059d5 ILT |
7381 | done |
7382 | IFS=$as_save_IFS | |
7383 | ||
7384 | fi | |
7385 | fi | |
7386 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7387 | if test -n "$OTOOL64"; then | |
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7389 | $as_echo "$OTOOL64" >&6; } | |
7390 | else | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7392 | $as_echo "no" >&6; } | |
eff02e4f ILT |
7393 | fi |
7394 | ||
eff02e4f ILT |
7395 | |
7396 | fi | |
d4c059d5 ILT |
7397 | if test -z "$ac_cv_prog_OTOOL64"; then |
7398 | ac_ct_OTOOL64=$OTOOL64 | |
7399 | # Extract the first word of "otool64", so it can be a program name with args. | |
7400 | set dummy otool64; ac_word=$2 | |
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7402 | $as_echo_n "checking for $ac_word... " >&6; } | |
7403 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7404 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 7405 | else |
d4c059d5 ILT |
7406 | if test -n "$ac_ct_OTOOL64"; then |
7407 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7408 | else | |
7409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7410 | for as_dir in $PATH | |
eff02e4f | 7411 | do |
d4c059d5 ILT |
7412 | IFS=$as_save_IFS |
7413 | test -z "$as_dir" && as_dir=. | |
7414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7416 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7418 | break 2 | |
7419 | fi | |
7420 | done | |
7421 | done | |
7422 | IFS=$as_save_IFS | |
eff02e4f | 7423 | |
d4c059d5 ILT |
7424 | fi |
7425 | fi | |
7426 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7427 | if test -n "$ac_ct_OTOOL64"; then | |
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7429 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
eff02e4f | 7430 | else |
d4c059d5 ILT |
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7432 | $as_echo "no" >&6; } | |
eff02e4f | 7433 | fi |
eff02e4f | 7434 | |
d4c059d5 ILT |
7435 | if test "x$ac_ct_OTOOL64" = x; then |
7436 | OTOOL64=":" | |
7437 | else | |
7438 | case $cross_compiling:$ac_tool_warned in | |
7439 | yes:) | |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7442 | ac_tool_warned=yes ;; | |
7443 | esac | |
7444 | OTOOL64=$ac_ct_OTOOL64 | |
7445 | fi | |
eff02e4f | 7446 | else |
d4c059d5 | 7447 | OTOOL64="$ac_cv_prog_OTOOL64" |
eff02e4f | 7448 | fi |
eff02e4f | 7449 | |
eff02e4f | 7450 | |
eff02e4f | 7451 | |
eff02e4f ILT |
7452 | |
7453 | ||
eff02e4f | 7454 | |
eff02e4f | 7455 | |
eff02e4f | 7456 | |
eff02e4f | 7457 | |
eff02e4f | 7458 | |
eff02e4f | 7459 | |
eff02e4f | 7460 | |
eff02e4f | 7461 | |
eff02e4f | 7462 | |
eff02e4f | 7463 | |
eff02e4f | 7464 | |
d4c059d5 ILT |
7465 | |
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
7474 | ||
7475 | ||
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7477 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7478 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7479 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 7480 | else |
d4c059d5 ILT |
7481 | lt_cv_apple_cc_single_mod=no |
7482 | if test -z "${LT_MULTI_MODULE}"; then | |
7483 | # By default we will add the -single_module flag. You can override | |
7484 | # by either setting the environment variable LT_MULTI_MODULE | |
7485 | # non-empty at configure time, or by adding -multi_module to the | |
7486 | # link flags. | |
7487 | rm -rf libconftest.dylib* | |
7488 | echo "int foo(void){return 1;}" > conftest.c | |
7489 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7490 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7491 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7492 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7493 | _lt_result=$? | |
7494 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7495 | lt_cv_apple_cc_single_mod=yes | |
7496 | else | |
7497 | cat conftest.err >&5 | |
7498 | fi | |
7499 | rm -rf libconftest.dylib* | |
7500 | rm -f conftest.* | |
7501 | fi | |
7502 | fi | |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7504 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7506 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7507 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7508 | $as_echo_n "(cached) " >&6 | |
7509 | else | |
7510 | lt_cv_ld_exported_symbols_list=no | |
7511 | save_LDFLAGS=$LDFLAGS | |
7512 | echo "_main" > conftest.sym | |
7513 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eff02e4f | 7515 | /* end confdefs.h. */ |
eff02e4f | 7516 | |
eff02e4f ILT |
7517 | int |
7518 | main () | |
7519 | { | |
d4c059d5 ILT |
7520 | |
7521 | ; | |
eff02e4f ILT |
7522 | return 0; |
7523 | } | |
7524 | _ACEOF | |
d4c059d5 ILT |
7525 | if ac_fn_c_try_link "$LINENO"; then : |
7526 | lt_cv_ld_exported_symbols_list=yes | |
eff02e4f | 7527 | else |
d4c059d5 | 7528 | lt_cv_ld_exported_symbols_list=no |
eff02e4f | 7529 | fi |
d4c059d5 ILT |
7530 | rm -f core conftest.err conftest.$ac_objext \ |
7531 | conftest$ac_exeext conftest.$ac_ext | |
7532 | LDFLAGS="$save_LDFLAGS" | |
eff02e4f ILT |
7533 | |
7534 | fi | |
d4c059d5 ILT |
7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7536 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7538 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7539 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7540 | $as_echo_n "(cached) " >&6 | |
7541 | else | |
7542 | lt_cv_ld_force_load=no | |
7543 | cat > conftest.c << _LT_EOF | |
7544 | int forced_loaded() { return 2;} | |
7545 | _LT_EOF | |
7546 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7547 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7548 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7549 | $AR cru libconftest.a conftest.o 2>&5 | |
7550 | cat > conftest.c << _LT_EOF | |
7551 | int main() { return 0;} | |
7552 | _LT_EOF | |
7553 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7554 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7555 | _lt_result=$? | |
7556 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7557 | lt_cv_ld_force_load=yes | |
7558 | else | |
7559 | cat conftest.err >&5 | |
7560 | fi | |
7561 | rm -f conftest.err libconftest.a conftest conftest.c | |
7562 | rm -rf conftest.dSYM | |
eff02e4f ILT |
7563 | |
7564 | fi | |
d4c059d5 ILT |
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7566 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7567 | case $host_os in | |
7568 | rhapsody* | darwin1.[012]) | |
7569 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7570 | darwin1.*) | |
7571 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7572 | darwin*) # darwin 5.x on | |
7573 | # if running on 10.5 or later, the deployment target defaults | |
7574 | # to the OS version, if on x86, and 10.4, the deployment | |
7575 | # target defaults to 10.4. Don't you love it? | |
7576 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7577 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7578 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7579 | 10.[012]*) | |
7580 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7581 | 10.*) | |
7582 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7583 | esac | |
7584 | ;; | |
7585 | esac | |
7586 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7587 | _lt_dar_single_mod='$single_module' | |
7588 | fi | |
7589 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7590 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7591 | else | |
7592 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7593 | fi | |
7594 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7595 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7596 | else | |
7597 | _lt_dsymutil= | |
7598 | fi | |
7599 | ;; | |
7600 | esac | |
eff02e4f ILT |
7601 | |
7602 | for ac_header in dlfcn.h | |
7603 | do : | |
7604 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7605 | " | |
7606 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7607 | cat >>confdefs.h <<_ACEOF | |
7608 | #define HAVE_DLFCN_H 1 | |
7609 | _ACEOF | |
7610 | ||
7611 | fi | |
7612 | ||
7613 | done | |
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | # Set options | |
7620 | # Check whether --enable-shared was given. | |
7621 | if test "${enable_shared+set}" = set; then : | |
7622 | enableval=$enable_shared; p=${PACKAGE-default} | |
7623 | case $enableval in | |
7624 | yes) enable_shared=yes ;; | |
7625 | no) enable_shared=no ;; | |
7626 | *) | |
7627 | enable_shared=no | |
7628 | # Look at the argument we got. We use all the common list separators. | |
7629 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7630 | for pkg in $enableval; do | |
7631 | IFS="$lt_save_ifs" | |
7632 | if test "X$pkg" = "X$p"; then | |
7633 | enable_shared=yes | |
7634 | fi | |
7635 | done | |
7636 | IFS="$lt_save_ifs" | |
7637 | ;; | |
7638 | esac | |
7639 | else | |
7640 | enable_shared=no | |
7641 | fi | |
7642 | ||
7643 | ||
7644 | ||
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | ||
7652 | enable_dlopen=no | |
7653 | ||
7654 | ||
7655 | enable_win32_dll=no | |
7656 | ||
7657 | ||
7658 | ||
7659 | # Check whether --enable-static was given. | |
7660 | if test "${enable_static+set}" = set; then : | |
7661 | enableval=$enable_static; p=${PACKAGE-default} | |
7662 | case $enableval in | |
7663 | yes) enable_static=yes ;; | |
7664 | no) enable_static=no ;; | |
7665 | *) | |
7666 | enable_static=no | |
7667 | # Look at the argument we got. We use all the common list separators. | |
7668 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7669 | for pkg in $enableval; do | |
7670 | IFS="$lt_save_ifs" | |
7671 | if test "X$pkg" = "X$p"; then | |
7672 | enable_static=yes | |
7673 | fi | |
7674 | done | |
7675 | IFS="$lt_save_ifs" | |
7676 | ;; | |
7677 | esac | |
7678 | else | |
7679 | enable_static=yes | |
7680 | fi | |
7681 | ||
7682 | ||
7683 | ||
7684 | ||
7685 | ||
7686 | ||
7687 | ||
7688 | ||
7689 | ||
7690 | ||
7691 | # Check whether --with-pic was given. | |
7692 | if test "${with_pic+set}" = set; then : | |
7693 | withval=$with_pic; pic_mode="$withval" | |
7694 | else | |
7695 | pic_mode=default | |
7696 | fi | |
7697 | ||
7698 | ||
7699 | test -z "$pic_mode" && pic_mode=default | |
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | # Check whether --enable-fast-install was given. | |
7708 | if test "${enable_fast_install+set}" = set; then : | |
7709 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7710 | case $enableval in | |
7711 | yes) enable_fast_install=yes ;; | |
7712 | no) enable_fast_install=no ;; | |
7713 | *) | |
7714 | enable_fast_install=no | |
7715 | # Look at the argument we got. We use all the common list separators. | |
7716 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7717 | for pkg in $enableval; do | |
7718 | IFS="$lt_save_ifs" | |
7719 | if test "X$pkg" = "X$p"; then | |
7720 | enable_fast_install=yes | |
7721 | fi | |
7722 | done | |
7723 | IFS="$lt_save_ifs" | |
7724 | ;; | |
7725 | esac | |
7726 | else | |
7727 | enable_fast_install=yes | |
7728 | fi | |
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | ||
7734 | ||
7735 | ||
7736 | ||
7737 | ||
7738 | ||
7739 | ||
7740 | # This can be used to rebuild libtool when needed | |
7741 | LIBTOOL_DEPS="$ltmain" | |
7742 | ||
7743 | # Always use our own libtool. | |
7744 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | test -z "$LN_S" && LN_S="ln -s" | |
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
7786 | if test -n "${ZSH_VERSION+set}" ; then | |
7787 | setopt NO_GLOB_SUBST | |
7788 | fi | |
7789 | ||
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7791 | $as_echo_n "checking for objdir... " >&6; } | |
7792 | if test "${lt_cv_objdir+set}" = set; then : | |
7793 | $as_echo_n "(cached) " >&6 | |
7794 | else | |
7795 | rm -f .libs 2>/dev/null | |
7796 | mkdir .libs 2>/dev/null | |
7797 | if test -d .libs; then | |
7798 | lt_cv_objdir=.libs | |
7799 | else | |
7800 | # MS-DOS does not allow filenames that begin with a dot. | |
7801 | lt_cv_objdir=_libs | |
7802 | fi | |
7803 | rmdir .libs 2>/dev/null | |
7804 | fi | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7806 | $as_echo "$lt_cv_objdir" >&6; } | |
7807 | objdir=$lt_cv_objdir | |
7808 | ||
7809 | ||
7810 | ||
7811 | ||
7812 | ||
7813 | cat >>confdefs.h <<_ACEOF | |
7814 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7815 | _ACEOF | |
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | case $host_os in | |
7821 | aix3*) | |
7822 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7823 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7824 | # vanish in a puff of smoke. | |
7825 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7826 | COLLECT_NAMES= | |
7827 | export COLLECT_NAMES | |
7828 | fi | |
7829 | ;; | |
7830 | esac | |
7831 | ||
7832 | # Global variables: | |
7833 | ofile=libtool | |
7834 | can_build_shared=yes | |
7835 | ||
7836 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7837 | # which needs '.lib'). | |
7838 | libext=a | |
7839 | ||
7840 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7841 | ||
7842 | old_CC="$CC" | |
7843 | old_CFLAGS="$CFLAGS" | |
7844 | ||
7845 | # Set sane defaults for various variables | |
7846 | test -z "$CC" && CC=cc | |
7847 | test -z "$LTCC" && LTCC=$CC | |
7848 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7849 | test -z "$LD" && LD=ld | |
7850 | test -z "$ac_objext" && ac_objext=o | |
7851 | ||
7852 | for cc_temp in $compiler""; do | |
7853 | case $cc_temp in | |
7854 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7855 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7856 | \-*) ;; | |
7857 | *) break;; | |
7858 | esac | |
7859 | done | |
7860 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7861 | ||
7862 | ||
7863 | # Only perform the check for file, if the check method requires it | |
7864 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7865 | case $deplibs_check_method in | |
7866 | file_magic*) | |
7867 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7869 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7870 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7871 | $as_echo_n "(cached) " >&6 | |
7872 | else | |
7873 | case $MAGIC_CMD in | |
7874 | [\\/*] | ?:[\\/]*) | |
7875 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7876 | ;; | |
7877 | *) | |
7878 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7879 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7880 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7881 | for ac_dir in $ac_dummy; do | |
7882 | IFS="$lt_save_ifs" | |
7883 | test -z "$ac_dir" && ac_dir=. | |
7884 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7885 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7886 | if test -n "$file_magic_test_file"; then | |
7887 | case $deplibs_check_method in | |
7888 | "file_magic "*) | |
7889 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7890 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7891 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7892 | $EGREP "$file_magic_regex" > /dev/null; then | |
7893 | : | |
7894 | else | |
7895 | cat <<_LT_EOF 1>&2 | |
7896 | ||
7897 | *** Warning: the command libtool uses to detect shared libraries, | |
7898 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7899 | *** The result is that libtool may fail to recognize shared libraries | |
7900 | *** as such. This will affect the creation of libtool libraries that | |
7901 | *** depend on shared libraries, but programs linked with such libtool | |
7902 | *** libraries will work regardless of this problem. Nevertheless, you | |
7903 | *** may want to report the problem to your system manager and/or to | |
7904 | *** bug-libtool@gnu.org | |
7905 | ||
7906 | _LT_EOF | |
7907 | fi ;; | |
7908 | esac | |
7909 | fi | |
7910 | break | |
7911 | fi | |
7912 | done | |
7913 | IFS="$lt_save_ifs" | |
7914 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7915 | ;; | |
7916 | esac | |
7917 | fi | |
7918 | ||
7919 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7920 | if test -n "$MAGIC_CMD"; then | |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7922 | $as_echo "$MAGIC_CMD" >&6; } | |
7923 | else | |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7925 | $as_echo "no" >&6; } | |
7926 | fi | |
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7933 | if test -n "$ac_tool_prefix"; then | |
7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7935 | $as_echo_n "checking for file... " >&6; } | |
7936 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7937 | $as_echo_n "(cached) " >&6 | |
7938 | else | |
7939 | case $MAGIC_CMD in | |
7940 | [\\/*] | ?:[\\/]*) | |
7941 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7942 | ;; | |
7943 | *) | |
7944 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7945 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7946 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7947 | for ac_dir in $ac_dummy; do | |
7948 | IFS="$lt_save_ifs" | |
7949 | test -z "$ac_dir" && ac_dir=. | |
7950 | if test -f $ac_dir/file; then | |
7951 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7952 | if test -n "$file_magic_test_file"; then | |
7953 | case $deplibs_check_method in | |
7954 | "file_magic "*) | |
7955 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7956 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7957 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7958 | $EGREP "$file_magic_regex" > /dev/null; then | |
7959 | : | |
7960 | else | |
7961 | cat <<_LT_EOF 1>&2 | |
7962 | ||
7963 | *** Warning: the command libtool uses to detect shared libraries, | |
7964 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7965 | *** The result is that libtool may fail to recognize shared libraries | |
7966 | *** as such. This will affect the creation of libtool libraries that | |
7967 | *** depend on shared libraries, but programs linked with such libtool | |
7968 | *** libraries will work regardless of this problem. Nevertheless, you | |
7969 | *** may want to report the problem to your system manager and/or to | |
7970 | *** bug-libtool@gnu.org | |
7971 | ||
7972 | _LT_EOF | |
7973 | fi ;; | |
7974 | esac | |
7975 | fi | |
7976 | break | |
7977 | fi | |
7978 | done | |
7979 | IFS="$lt_save_ifs" | |
7980 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7981 | ;; | |
7982 | esac | |
7983 | fi | |
7984 | ||
7985 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7986 | if test -n "$MAGIC_CMD"; then | |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7988 | $as_echo "$MAGIC_CMD" >&6; } | |
7989 | else | |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7991 | $as_echo "no" >&6; } | |
7992 | fi | |
7993 | ||
7994 | ||
7995 | else | |
7996 | MAGIC_CMD=: | |
7997 | fi | |
7998 | fi | |
7999 | ||
8000 | fi | |
8001 | ;; | |
8002 | esac | |
8003 | ||
8004 | # Use C for the default configuration in the libtool script | |
8005 | ||
8006 | lt_save_CC="$CC" | |
8007 | ac_ext=c | |
8008 | ac_cpp='$CPP $CPPFLAGS' | |
8009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8012 | ||
8013 | ||
8014 | # Source file extension for C test sources. | |
8015 | ac_ext=c | |
8016 | ||
8017 | # Object file extension for compiled C test sources. | |
8018 | objext=o | |
8019 | objext=$objext | |
8020 | ||
8021 | # Code to be used in simple compile tests | |
8022 | lt_simple_compile_test_code="int some_variable = 0;" | |
8023 | ||
8024 | # Code to be used in simple link tests | |
8025 | lt_simple_link_test_code='int main(){return(0);}' | |
8026 | ||
8027 | ||
8028 | ||
8029 | ||
8030 | ||
8031 | ||
8032 | ||
8033 | # If no C compiler was specified, use CC. | |
8034 | LTCC=${LTCC-"$CC"} | |
8035 | ||
8036 | # If no C compiler flags were specified, use CFLAGS. | |
8037 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8038 | ||
8039 | # Allow CC to be a program name with arguments. | |
8040 | compiler=$CC | |
8041 | ||
8042 | # Save the default compiler, since it gets overwritten when the other | |
8043 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8044 | compiler_DEFAULT=$CC | |
8045 | ||
8046 | # save warnings/boilerplate of simple test code | |
8047 | ac_outfile=conftest.$ac_objext | |
8048 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8049 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8050 | _lt_compiler_boilerplate=`cat conftest.err` | |
8051 | $RM conftest* | |
8052 | ||
8053 | ac_outfile=conftest.$ac_objext | |
8054 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8055 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8056 | _lt_linker_boilerplate=`cat conftest.err` | |
8057 | $RM -r conftest* | |
8058 | ||
8059 | ||
8060 | ## CAVEAT EMPTOR: | |
8061 | ## There is no encapsulation within the following macros, do not change | |
8062 | ## the running order or otherwise move them around unless you know exactly | |
8063 | ## what you are doing... | |
8064 | if test -n "$compiler"; then | |
8065 | ||
8066 | lt_prog_compiler_no_builtin_flag= | |
8067 | ||
8068 | if test "$GCC" = yes; then | |
8069 | case $cc_basename in | |
8070 | nvcc*) | |
8071 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8072 | *) | |
8073 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8074 | esac | |
8075 | ||
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8077 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8078 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8079 | $as_echo_n "(cached) " >&6 | |
8080 | else | |
8081 | lt_cv_prog_compiler_rtti_exceptions=no | |
8082 | ac_outfile=conftest.$ac_objext | |
8083 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8084 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8085 | # Insert the option either (1) after the last *FLAGS variable, or | |
8086 | # (2) before a word containing "conftest.", or (3) at the end. | |
8087 | # Note that $ac_compile itself does not contain backslashes and begins | |
8088 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8089 | # The option is referenced via a variable to avoid confusing sed. | |
8090 | lt_compile=`echo "$ac_compile" | $SED \ | |
8091 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8092 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8093 | -e 's:$: $lt_compiler_flag:'` | |
8094 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8095 | (eval "$lt_compile" 2>conftest.err) | |
8096 | ac_status=$? | |
8097 | cat conftest.err >&5 | |
8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8099 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8100 | # The compiler can only warn and ignore the option if not recognized | |
8101 | # So say no if there are warnings other than the usual output. | |
8102 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8103 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8104 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8105 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8106 | fi | |
8107 | fi | |
8108 | $RM conftest* | |
8109 | ||
8110 | fi | |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8112 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8113 | ||
8114 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8115 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8116 | else | |
8117 | : | |
8118 | fi | |
8119 | ||
8120 | fi | |
8121 | ||
8122 | ||
8123 | ||
8124 | ||
8125 | ||
8126 | ||
8127 | lt_prog_compiler_wl= | |
8128 | lt_prog_compiler_pic= | |
8129 | lt_prog_compiler_static= | |
8130 | ||
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8132 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8133 | ||
8134 | if test "$GCC" = yes; then | |
8135 | lt_prog_compiler_wl='-Wl,' | |
8136 | lt_prog_compiler_static='-static' | |
8137 | ||
8138 | case $host_os in | |
8139 | aix*) | |
8140 | # All AIX code is PIC. | |
8141 | if test "$host_cpu" = ia64; then | |
8142 | # AIX 5 now supports IA64 processor | |
8143 | lt_prog_compiler_static='-Bstatic' | |
8144 | fi | |
772a71a9 | 8145 | lt_prog_compiler_pic='-fPIC' |
eff02e4f ILT |
8146 | ;; |
8147 | ||
8148 | amigaos*) | |
8149 | case $host_cpu in | |
8150 | powerpc) | |
8151 | # see comment about AmigaOS4 .so support | |
8152 | lt_prog_compiler_pic='-fPIC' | |
8153 | ;; | |
8154 | m68k) | |
8155 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8156 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8157 | # like `-m68040'. | |
8158 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8159 | ;; | |
8160 | esac | |
8161 | ;; | |
8162 | ||
8163 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8164 | # PIC is the default for these OSes. | |
8165 | ;; | |
8166 | ||
8167 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8168 | # This hack is so that the source file can tell whether it is being | |
8169 | # built for inclusion in a dll (and should export symbols for example). | |
8170 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8171 | # (--disable-auto-import) libraries | |
8172 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8173 | ;; | |
8174 | ||
8175 | darwin* | rhapsody*) | |
8176 | # PIC is the default on this platform | |
8177 | # Common symbols not allowed in MH_DYLIB files | |
8178 | lt_prog_compiler_pic='-fno-common' | |
8179 | ;; | |
8180 | ||
8181 | haiku*) | |
8182 | # PIC is the default for Haiku. | |
8183 | # The "-static" flag exists, but is broken. | |
8184 | lt_prog_compiler_static= | |
8185 | ;; | |
8186 | ||
8187 | hpux*) | |
8188 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8189 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8190 | # sets the default TLS model and affects inlining. | |
8191 | case $host_cpu in | |
8192 | hppa*64*) | |
8193 | # +Z the default | |
8194 | ;; | |
8195 | *) | |
8196 | lt_prog_compiler_pic='-fPIC' | |
8197 | ;; | |
8198 | esac | |
8199 | ;; | |
8200 | ||
8201 | interix[3-9]*) | |
8202 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8203 | # Instead, we relocate shared libraries at runtime. | |
8204 | ;; | |
8205 | ||
8206 | msdosdjgpp*) | |
8207 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8208 | # on systems that don't support them. | |
8209 | lt_prog_compiler_can_build_shared=no | |
8210 | enable_shared=no | |
8211 | ;; | |
8212 | ||
8213 | *nto* | *qnx*) | |
8214 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8215 | # it will coredump. | |
8216 | lt_prog_compiler_pic='-fPIC -shared' | |
8217 | ;; | |
8218 | ||
8219 | sysv4*MP*) | |
8220 | if test -d /usr/nec; then | |
8221 | lt_prog_compiler_pic=-Kconform_pic | |
8222 | fi | |
8223 | ;; | |
8224 | ||
8225 | *) | |
8226 | lt_prog_compiler_pic='-fPIC' | |
8227 | ;; | |
8228 | esac | |
8229 | ||
8230 | case $cc_basename in | |
8231 | nvcc*) # Cuda Compiler Driver 2.2 | |
8232 | lt_prog_compiler_wl='-Xlinker ' | |
8233 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8234 | ;; | |
8235 | esac | |
8236 | else | |
8237 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8238 | case $host_os in | |
8239 | aix*) | |
8240 | lt_prog_compiler_wl='-Wl,' | |
8241 | if test "$host_cpu" = ia64; then | |
8242 | # AIX 5 now supports IA64 processor | |
8243 | lt_prog_compiler_static='-Bstatic' | |
8244 | else | |
8245 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8246 | fi | |
8247 | ;; | |
8248 | ||
8249 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8250 | # This hack is so that the source file can tell whether it is being | |
8251 | # built for inclusion in a dll (and should export symbols for example). | |
8252 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8253 | ;; | |
8254 | ||
8255 | hpux9* | hpux10* | hpux11*) | |
8256 | lt_prog_compiler_wl='-Wl,' | |
8257 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8258 | # not for PA HP-UX. | |
8259 | case $host_cpu in | |
8260 | hppa*64*|ia64*) | |
8261 | # +Z the default | |
8262 | ;; | |
8263 | *) | |
8264 | lt_prog_compiler_pic='+Z' | |
8265 | ;; | |
8266 | esac | |
8267 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8268 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8269 | ;; | |
8270 | ||
8271 | irix5* | irix6* | nonstopux*) | |
8272 | lt_prog_compiler_wl='-Wl,' | |
8273 | # PIC (with -KPIC) is the default. | |
8274 | lt_prog_compiler_static='-non_shared' | |
8275 | ;; | |
8276 | ||
8277 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8278 | case $cc_basename in | |
8279 | # old Intel for x86_64 which still supported -KPIC. | |
8280 | ecc*) | |
8281 | lt_prog_compiler_wl='-Wl,' | |
8282 | lt_prog_compiler_pic='-KPIC' | |
8283 | lt_prog_compiler_static='-static' | |
8284 | ;; | |
8285 | # icc used to be incompatible with GCC. | |
8286 | # ICC 10 doesn't accept -KPIC any more. | |
8287 | icc* | ifort*) | |
8288 | lt_prog_compiler_wl='-Wl,' | |
8289 | lt_prog_compiler_pic='-fPIC' | |
8290 | lt_prog_compiler_static='-static' | |
8291 | ;; | |
8292 | # Lahey Fortran 8.1. | |
8293 | lf95*) | |
8294 | lt_prog_compiler_wl='-Wl,' | |
8295 | lt_prog_compiler_pic='--shared' | |
8296 | lt_prog_compiler_static='--static' | |
8297 | ;; | |
8298 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8299 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8300 | # which looks to be a dead project) | |
8301 | lt_prog_compiler_wl='-Wl,' | |
8302 | lt_prog_compiler_pic='-fpic' | |
8303 | lt_prog_compiler_static='-Bstatic' | |
8304 | ;; | |
8305 | ccc*) | |
8306 | lt_prog_compiler_wl='-Wl,' | |
8307 | # All Alpha code is PIC. | |
8308 | lt_prog_compiler_static='-non_shared' | |
8309 | ;; | |
8310 | xl* | bgxl* | bgf* | mpixl*) | |
8311 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8312 | lt_prog_compiler_wl='-Wl,' | |
8313 | lt_prog_compiler_pic='-qpic' | |
8314 | lt_prog_compiler_static='-qstaticlink' | |
8315 | ;; | |
8316 | *) | |
8317 | case `$CC -V 2>&1 | sed 5q` in | |
8318 | *Sun\ F* | *Sun*Fortran*) | |
8319 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8320 | lt_prog_compiler_pic='-KPIC' | |
8321 | lt_prog_compiler_static='-Bstatic' | |
8322 | lt_prog_compiler_wl='' | |
8323 | ;; | |
8324 | *Sun\ C*) | |
8325 | # Sun C 5.9 | |
8326 | lt_prog_compiler_pic='-KPIC' | |
8327 | lt_prog_compiler_static='-Bstatic' | |
8328 | lt_prog_compiler_wl='-Wl,' | |
8329 | ;; | |
8330 | esac | |
8331 | ;; | |
8332 | esac | |
8333 | ;; | |
8334 | ||
8335 | newsos6) | |
8336 | lt_prog_compiler_pic='-KPIC' | |
8337 | lt_prog_compiler_static='-Bstatic' | |
8338 | ;; | |
8339 | ||
8340 | *nto* | *qnx*) | |
8341 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8342 | # it will coredump. | |
8343 | lt_prog_compiler_pic='-fPIC -shared' | |
8344 | ;; | |
8345 | ||
8346 | osf3* | osf4* | osf5*) | |
8347 | lt_prog_compiler_wl='-Wl,' | |
8348 | # All OSF/1 code is PIC. | |
8349 | lt_prog_compiler_static='-non_shared' | |
8350 | ;; | |
8351 | ||
8352 | rdos*) | |
8353 | lt_prog_compiler_static='-non_shared' | |
8354 | ;; | |
8355 | ||
8356 | solaris*) | |
8357 | lt_prog_compiler_pic='-KPIC' | |
8358 | lt_prog_compiler_static='-Bstatic' | |
8359 | case $cc_basename in | |
8360 | f77* | f90* | f95*) | |
8361 | lt_prog_compiler_wl='-Qoption ld ';; | |
8362 | *) | |
8363 | lt_prog_compiler_wl='-Wl,';; | |
8364 | esac | |
8365 | ;; | |
8366 | ||
8367 | sunos4*) | |
8368 | lt_prog_compiler_wl='-Qoption ld ' | |
8369 | lt_prog_compiler_pic='-PIC' | |
8370 | lt_prog_compiler_static='-Bstatic' | |
8371 | ;; | |
8372 | ||
8373 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8374 | lt_prog_compiler_wl='-Wl,' | |
8375 | lt_prog_compiler_pic='-KPIC' | |
8376 | lt_prog_compiler_static='-Bstatic' | |
8377 | ;; | |
8378 | ||
8379 | sysv4*MP*) | |
8380 | if test -d /usr/nec ;then | |
8381 | lt_prog_compiler_pic='-Kconform_pic' | |
8382 | lt_prog_compiler_static='-Bstatic' | |
8383 | fi | |
8384 | ;; | |
8385 | ||
8386 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8387 | lt_prog_compiler_wl='-Wl,' | |
8388 | lt_prog_compiler_pic='-KPIC' | |
8389 | lt_prog_compiler_static='-Bstatic' | |
8390 | ;; | |
8391 | ||
8392 | unicos*) | |
8393 | lt_prog_compiler_wl='-Wl,' | |
8394 | lt_prog_compiler_can_build_shared=no | |
8395 | ;; | |
8396 | ||
8397 | uts4*) | |
8398 | lt_prog_compiler_pic='-pic' | |
8399 | lt_prog_compiler_static='-Bstatic' | |
8400 | ;; | |
8401 | ||
8402 | *) | |
8403 | lt_prog_compiler_can_build_shared=no | |
8404 | ;; | |
8405 | esac | |
8406 | fi | |
8407 | ||
8408 | case $host_os in | |
8409 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8410 | *djgpp*) | |
8411 | lt_prog_compiler_pic= | |
8412 | ;; | |
8413 | *) | |
8414 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8415 | ;; | |
8416 | esac | |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8418 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | # | |
8426 | # Check to make sure the PIC flag actually works. | |
8427 | # | |
8428 | if test -n "$lt_prog_compiler_pic"; then | |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8430 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8431 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8432 | $as_echo_n "(cached) " >&6 | |
8433 | else | |
8434 | lt_cv_prog_compiler_pic_works=no | |
8435 | ac_outfile=conftest.$ac_objext | |
8436 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8437 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8438 | # Insert the option either (1) after the last *FLAGS variable, or | |
8439 | # (2) before a word containing "conftest.", or (3) at the end. | |
8440 | # Note that $ac_compile itself does not contain backslashes and begins | |
8441 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8442 | # The option is referenced via a variable to avoid confusing sed. | |
8443 | lt_compile=`echo "$ac_compile" | $SED \ | |
8444 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8445 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8446 | -e 's:$: $lt_compiler_flag:'` | |
8447 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8448 | (eval "$lt_compile" 2>conftest.err) | |
8449 | ac_status=$? | |
8450 | cat conftest.err >&5 | |
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8452 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8453 | # The compiler can only warn and ignore the option if not recognized | |
8454 | # So say no if there are warnings other than the usual output. | |
8455 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8456 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8457 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8458 | lt_cv_prog_compiler_pic_works=yes | |
8459 | fi | |
8460 | fi | |
8461 | $RM conftest* | |
8462 | ||
8463 | fi | |
8464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8465 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8466 | ||
8467 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8468 | case $lt_prog_compiler_pic in | |
8469 | "" | " "*) ;; | |
8470 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8471 | esac | |
8472 | else | |
8473 | lt_prog_compiler_pic= | |
8474 | lt_prog_compiler_can_build_shared=no | |
8475 | fi | |
8476 | ||
8477 | fi | |
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | # | |
8485 | # Check to make sure the static flag actually works. | |
8486 | # | |
8487 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8489 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8490 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8491 | $as_echo_n "(cached) " >&6 | |
8492 | else | |
8493 | lt_cv_prog_compiler_static_works=no | |
8494 | save_LDFLAGS="$LDFLAGS" | |
8495 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8496 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8497 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8498 | # The linker can only warn and ignore the option if not recognized | |
8499 | # So say no if there are warnings | |
8500 | if test -s conftest.err; then | |
8501 | # Append any errors to the config.log. | |
8502 | cat conftest.err 1>&5 | |
8503 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8504 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8505 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8506 | lt_cv_prog_compiler_static_works=yes | |
8507 | fi | |
8508 | else | |
8509 | lt_cv_prog_compiler_static_works=yes | |
8510 | fi | |
8511 | fi | |
8512 | $RM -r conftest* | |
8513 | LDFLAGS="$save_LDFLAGS" | |
8514 | ||
8515 | fi | |
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8517 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8518 | ||
8519 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8520 | : | |
8521 | else | |
8522 | lt_prog_compiler_static= | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8532 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8533 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8534 | $as_echo_n "(cached) " >&6 | |
8535 | else | |
8536 | lt_cv_prog_compiler_c_o=no | |
8537 | $RM -r conftest 2>/dev/null | |
8538 | mkdir conftest | |
8539 | cd conftest | |
8540 | mkdir out | |
8541 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8542 | ||
8543 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8544 | # Insert the option either (1) after the last *FLAGS variable, or | |
8545 | # (2) before a word containing "conftest.", or (3) at the end. | |
8546 | # Note that $ac_compile itself does not contain backslashes and begins | |
8547 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8548 | lt_compile=`echo "$ac_compile" | $SED \ | |
8549 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8550 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8551 | -e 's:$: $lt_compiler_flag:'` | |
8552 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8553 | (eval "$lt_compile" 2>out/conftest.err) | |
8554 | ac_status=$? | |
8555 | cat out/conftest.err >&5 | |
8556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8557 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8558 | then | |
8559 | # The compiler can only warn and ignore the option if not recognized | |
8560 | # So say no if there are warnings | |
8561 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8562 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8563 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8564 | lt_cv_prog_compiler_c_o=yes | |
8565 | fi | |
8566 | fi | |
8567 | chmod u+w . 2>&5 | |
8568 | $RM conftest* | |
8569 | # SGI C++ compiler will create directory out/ii_files/ for | |
8570 | # template instantiation | |
8571 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8572 | $RM out/* && rmdir out | |
8573 | cd .. | |
8574 | $RM -r conftest | |
8575 | $RM conftest* | |
8576 | ||
8577 | fi | |
8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8579 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8587 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8588 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8589 | $as_echo_n "(cached) " >&6 | |
8590 | else | |
8591 | lt_cv_prog_compiler_c_o=no | |
8592 | $RM -r conftest 2>/dev/null | |
8593 | mkdir conftest | |
8594 | cd conftest | |
8595 | mkdir out | |
8596 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8597 | ||
8598 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8599 | # Insert the option either (1) after the last *FLAGS variable, or | |
8600 | # (2) before a word containing "conftest.", or (3) at the end. | |
8601 | # Note that $ac_compile itself does not contain backslashes and begins | |
8602 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8603 | lt_compile=`echo "$ac_compile" | $SED \ | |
8604 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8605 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8606 | -e 's:$: $lt_compiler_flag:'` | |
8607 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8608 | (eval "$lt_compile" 2>out/conftest.err) | |
8609 | ac_status=$? | |
8610 | cat out/conftest.err >&5 | |
8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8612 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8613 | then | |
8614 | # The compiler can only warn and ignore the option if not recognized | |
8615 | # So say no if there are warnings | |
8616 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8617 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8618 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8619 | lt_cv_prog_compiler_c_o=yes | |
8620 | fi | |
8621 | fi | |
8622 | chmod u+w . 2>&5 | |
8623 | $RM conftest* | |
8624 | # SGI C++ compiler will create directory out/ii_files/ for | |
8625 | # template instantiation | |
8626 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8627 | $RM out/* && rmdir out | |
8628 | cd .. | |
8629 | $RM -r conftest | |
8630 | $RM conftest* | |
8631 | ||
8632 | fi | |
8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8634 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | hard_links="nottested" | |
8640 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8641 | # do not overwrite the value of need_locks provided by the user | |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8643 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8644 | hard_links=yes | |
8645 | $RM conftest* | |
8646 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8647 | touch conftest.a | |
8648 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8649 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8651 | $as_echo "$hard_links" >&6; } | |
8652 | if test "$hard_links" = no; then | |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8654 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8655 | need_locks=warn | |
8656 | fi | |
8657 | else | |
8658 | need_locks=no | |
8659 | fi | |
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8667 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8668 | ||
8669 | runpath_var= | |
8670 | allow_undefined_flag= | |
8671 | always_export_symbols=no | |
8672 | archive_cmds= | |
8673 | archive_expsym_cmds= | |
8674 | compiler_needs_object=no | |
8675 | enable_shared_with_static_runtimes=no | |
8676 | export_dynamic_flag_spec= | |
8677 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8678 | hardcode_automatic=no | |
8679 | hardcode_direct=no | |
8680 | hardcode_direct_absolute=no | |
8681 | hardcode_libdir_flag_spec= | |
8682 | hardcode_libdir_flag_spec_ld= | |
8683 | hardcode_libdir_separator= | |
8684 | hardcode_minus_L=no | |
8685 | hardcode_shlibpath_var=unsupported | |
8686 | inherit_rpath=no | |
8687 | link_all_deplibs=unknown | |
8688 | module_cmds= | |
8689 | module_expsym_cmds= | |
8690 | old_archive_from_new_cmds= | |
8691 | old_archive_from_expsyms_cmds= | |
8692 | thread_safe_flag_spec= | |
8693 | whole_archive_flag_spec= | |
8694 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8695 | # included in the symbol list | |
8696 | include_expsyms= | |
8697 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8698 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8699 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8700 | # as well as any symbol that contains `d'. | |
8701 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8702 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8703 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8704 | # the symbol is explicitly referenced. Since portable code cannot | |
8705 | # rely on this symbol name, it's probably fine to never include it in | |
8706 | # preloaded symbol tables. | |
8707 | # Exclude shared library initialization/finalization symbols. | |
8708 | extract_expsyms_cmds= | |
8709 | ||
8710 | case $host_os in | |
8711 | cygwin* | mingw* | pw32* | cegcc*) | |
8712 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8713 | # When not using gcc, we currently assume that we are using | |
8714 | # Microsoft Visual C++. | |
8715 | if test "$GCC" != yes; then | |
8716 | with_gnu_ld=no | |
8717 | fi | |
8718 | ;; | |
8719 | interix*) | |
8720 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8721 | with_gnu_ld=yes | |
8722 | ;; | |
8723 | openbsd*) | |
8724 | with_gnu_ld=no | |
8725 | ;; | |
8726 | esac | |
8727 | ||
8728 | ld_shlibs=yes | |
8729 | ||
8730 | # On some targets, GNU ld is compatible enough with the native linker | |
8731 | # that we're better off using the native interface for both. | |
8732 | lt_use_gnu_ld_interface=no | |
8733 | if test "$with_gnu_ld" = yes; then | |
8734 | case $host_os in | |
8735 | aix*) | |
8736 | # The AIX port of GNU ld has always aspired to compatibility | |
8737 | # with the native linker. However, as the warning in the GNU ld | |
8738 | # block says, versions before 2.19.5* couldn't really create working | |
8739 | # shared libraries, regardless of the interface used. | |
8740 | case `$LD -v 2>&1` in | |
8741 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8742 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8743 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8744 | *) | |
8745 | lt_use_gnu_ld_interface=yes | |
8746 | ;; | |
8747 | esac | |
8748 | ;; | |
8749 | *) | |
8750 | lt_use_gnu_ld_interface=yes | |
8751 | ;; | |
8752 | esac | |
8753 | fi | |
8754 | ||
8755 | if test "$lt_use_gnu_ld_interface" = yes; then | |
8756 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8757 | wlarc='${wl}' | |
8758 | ||
8759 | # Set some defaults for GNU ld with shared library support. These | |
8760 | # are reset later if shared libraries are not supported. Putting them | |
8761 | # here allows them to be overridden if necessary. | |
8762 | runpath_var=LD_RUN_PATH | |
8763 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8764 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8765 | # ancient GNU ld didn't support --whole-archive et. al. | |
8766 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8767 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8768 | else | |
8769 | whole_archive_flag_spec= | |
8770 | fi | |
8771 | supports_anon_versioning=no | |
8772 | case `$LD -v 2>&1` in | |
8773 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
8774 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8775 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8776 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8777 | *\ 2.11.*) ;; # other 2.11 versions | |
8778 | *) supports_anon_versioning=yes ;; | |
8779 | esac | |
8780 | ||
8781 | # See if GNU ld supports shared libraries. | |
8782 | case $host_os in | |
8783 | aix[3-9]*) | |
8784 | # On AIX/PPC, the GNU linker is very broken | |
8785 | if test "$host_cpu" != ia64; then | |
8786 | ld_shlibs=no | |
8787 | cat <<_LT_EOF 1>&2 | |
8788 | ||
8789 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8790 | *** to be unable to reliably create shared libraries on AIX. | |
8791 | *** Therefore, libtool is disabling shared libraries support. If you | |
8792 | *** really care for shared libraries, you may want to install binutils | |
8793 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8794 | *** You will then need to restart the configuration process. | |
8795 | ||
8796 | _LT_EOF | |
8797 | fi | |
8798 | ;; | |
8799 | ||
8800 | amigaos*) | |
8801 | case $host_cpu in | |
8802 | powerpc) | |
8803 | # see comment about AmigaOS4 .so support | |
8804 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8805 | archive_expsym_cmds='' | |
8806 | ;; | |
8807 | m68k) | |
8808 | 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)' | |
8809 | hardcode_libdir_flag_spec='-L$libdir' | |
8810 | hardcode_minus_L=yes | |
8811 | ;; | |
8812 | esac | |
8813 | ;; | |
8814 | ||
8815 | beos*) | |
8816 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8817 | allow_undefined_flag=unsupported | |
8818 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8819 | # support --undefined. This deserves some investigation. FIXME | |
8820 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8821 | else | |
8822 | ld_shlibs=no | |
8823 | fi | |
8824 | ;; | |
8825 | ||
8826 | cygwin* | mingw* | pw32* | cegcc*) | |
8827 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8828 | # as there is no search path for DLLs. | |
8829 | hardcode_libdir_flag_spec='-L$libdir' | |
8830 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8831 | allow_undefined_flag=unsupported | |
8832 | always_export_symbols=no | |
8833 | enable_shared_with_static_runtimes=yes | |
8834 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8835 | ||
8836 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8837 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8838 | # If the export-symbols file already is a .def file (1st line | |
8839 | # is EXPORTS), use it as is; otherwise, prepend... | |
8840 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8841 | cp $export_symbols $output_objdir/$soname.def; | |
8842 | else | |
8843 | echo EXPORTS > $output_objdir/$soname.def; | |
8844 | cat $export_symbols >> $output_objdir/$soname.def; | |
8845 | fi~ | |
8846 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8847 | else | |
8848 | ld_shlibs=no | |
8849 | fi | |
8850 | ;; | |
8851 | ||
8852 | haiku*) | |
8853 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8854 | link_all_deplibs=yes | |
8855 | ;; | |
8856 | ||
8857 | interix[3-9]*) | |
8858 | hardcode_direct=no | |
8859 | hardcode_shlibpath_var=no | |
8860 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8861 | export_dynamic_flag_spec='${wl}-E' | |
8862 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8863 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8864 | # default) and relocated if they conflict, which is a slow very memory | |
8865 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8866 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8867 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8868 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8869 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8870 | ;; | |
8871 | ||
8872 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8873 | tmp_diet=no | |
8874 | if test "$host_os" = linux-dietlibc; then | |
8875 | case $cc_basename in | |
8876 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8877 | esac | |
8878 | fi | |
8879 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8880 | && test "$tmp_diet" = no | |
8881 | then | |
8882 | tmp_addflag= | |
8883 | tmp_sharedflag='-shared' | |
8884 | case $cc_basename,$host_cpu in | |
8885 | pgcc*) # Portland Group C compiler | |
8886 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8887 | tmp_addflag=' $pic_flag' | |
8888 | ;; | |
8889 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8890 | # Portland Group f77 and f90 compilers | |
8891 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8892 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8893 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8894 | tmp_addflag=' -i_dynamic' ;; | |
8895 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8896 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8897 | ifc* | ifort*) # Intel Fortran compiler | |
8898 | tmp_addflag=' -nofor_main' ;; | |
8899 | lf95*) # Lahey Fortran 8.1 | |
8900 | whole_archive_flag_spec= | |
8901 | tmp_sharedflag='--shared' ;; | |
8902 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8903 | tmp_sharedflag='-qmkshrobj' | |
8904 | tmp_addflag= ;; | |
8905 | nvcc*) # Cuda Compiler Driver 2.2 | |
8906 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8907 | compiler_needs_object=yes | |
8908 | ;; | |
8909 | esac | |
8910 | case `$CC -V 2>&1 | sed 5q` in | |
8911 | *Sun\ C*) # Sun C 5.9 | |
8912 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8913 | compiler_needs_object=yes | |
8914 | tmp_sharedflag='-G' ;; | |
8915 | *Sun\ F*) # Sun Fortran 8.3 | |
8916 | tmp_sharedflag='-G' ;; | |
8917 | esac | |
8918 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8919 | ||
8920 | if test "x$supports_anon_versioning" = xyes; then | |
8921 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8922 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8923 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8924 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8925 | fi | |
8926 | ||
8927 | case $cc_basename in | |
8928 | xlf* | bgf* | bgxlf* | mpixlf*) | |
8929 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8930 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8931 | hardcode_libdir_flag_spec= | |
8932 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8933 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8934 | if test "x$supports_anon_versioning" = xyes; then | |
8935 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8936 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8937 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8938 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8939 | fi | |
8940 | ;; | |
8941 | esac | |
8942 | else | |
8943 | ld_shlibs=no | |
8944 | fi | |
8945 | ;; | |
8946 | ||
8947 | netbsd*) | |
8948 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8949 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8950 | wlarc= | |
8951 | else | |
8952 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8953 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8954 | fi | |
8955 | ;; | |
8956 | ||
8957 | solaris*) | |
8958 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8959 | ld_shlibs=no | |
8960 | cat <<_LT_EOF 1>&2 | |
8961 | ||
8962 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8963 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8964 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8965 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8966 | *** your PATH or compiler configuration so that the native linker is | |
8967 | *** used, and then restart. | |
8968 | ||
8969 | _LT_EOF | |
8970 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8971 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8972 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8973 | else | |
8974 | ld_shlibs=no | |
8975 | fi | |
8976 | ;; | |
8977 | ||
8978 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8979 | case `$LD -v 2>&1` in | |
8980 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8981 | ld_shlibs=no | |
8982 | cat <<_LT_EOF 1>&2 | |
8983 | ||
8984 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8985 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8986 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8987 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8988 | *** your PATH or compiler configuration so that the native linker is | |
8989 | *** used, and then restart. | |
8990 | ||
8991 | _LT_EOF | |
8992 | ;; | |
8993 | *) | |
8994 | # For security reasons, it is highly recommended that you always | |
8995 | # use absolute paths for naming shared libraries, and exclude the | |
8996 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8997 | # requires that you compile everything twice, which is a pain. | |
8998 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8999 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9000 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9001 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9002 | else | |
9003 | ld_shlibs=no | |
9004 | fi | |
9005 | ;; | |
9006 | esac | |
9007 | ;; | |
9008 | ||
9009 | sunos4*) | |
9010 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9011 | wlarc= | |
9012 | hardcode_direct=yes | |
9013 | hardcode_shlibpath_var=no | |
9014 | ;; | |
9015 | ||
9016 | *) | |
9017 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9018 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9019 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9020 | else | |
9021 | ld_shlibs=no | |
9022 | fi | |
9023 | ;; | |
9024 | esac | |
9025 | ||
9026 | if test "$ld_shlibs" = no; then | |
9027 | runpath_var= | |
9028 | hardcode_libdir_flag_spec= | |
9029 | export_dynamic_flag_spec= | |
9030 | whole_archive_flag_spec= | |
9031 | fi | |
9032 | else | |
9033 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9034 | case $host_os in | |
9035 | aix3*) | |
9036 | allow_undefined_flag=unsupported | |
9037 | always_export_symbols=yes | |
9038 | 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' | |
9039 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9040 | # are no directories specified by -L. | |
9041 | hardcode_minus_L=yes | |
9042 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9043 | # Neither direct hardcoding nor static linking is supported with a | |
9044 | # broken collect2. | |
9045 | hardcode_direct=unsupported | |
9046 | fi | |
9047 | ;; | |
9048 | ||
9049 | aix[4-9]*) | |
9050 | if test "$host_cpu" = ia64; then | |
9051 | # On IA64, the linker does run time linking by default, so we don't | |
9052 | # have to do anything special. | |
9053 | aix_use_runtimelinking=no | |
9054 | exp_sym_flag='-Bexport' | |
9055 | no_entry_flag="" | |
9056 | else | |
9057 | # If we're using GNU nm, then we don't want the "-C" option. | |
9058 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9059 | # Also, AIX nm treats weak defined symbols like other global | |
9060 | # defined symbols, whereas GNU nm marks them as "W". | |
9061 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9062 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9063 | else | |
9064 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9065 | fi | |
9066 | aix_use_runtimelinking=no | |
9067 | ||
9068 | # Test if we are trying to use run time linking or normal | |
9069 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9070 | # need to do runtime linking. | |
9071 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9072 | for ld_flag in $LDFLAGS; do | |
9073 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9074 | aix_use_runtimelinking=yes | |
9075 | break | |
9076 | fi | |
9077 | done | |
9078 | ;; | |
9079 | esac | |
9080 | ||
9081 | exp_sym_flag='-bexport' | |
9082 | no_entry_flag='-bnoentry' | |
9083 | fi | |
9084 | ||
9085 | # When large executables or shared objects are built, AIX ld can | |
9086 | # have problems creating the table of contents. If linking a library | |
9087 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9088 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9089 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9090 | ||
9091 | archive_cmds='' | |
9092 | hardcode_direct=yes | |
9093 | hardcode_direct_absolute=yes | |
9094 | hardcode_libdir_separator=':' | |
9095 | link_all_deplibs=yes | |
9096 | file_list_spec='${wl}-f,' | |
9097 | ||
9098 | if test "$GCC" = yes; then | |
9099 | case $host_os in aix4.[012]|aix4.[012].*) | |
9100 | # We only want to do this on AIX 4.2 and lower, the check | |
9101 | # below for broken collect2 doesn't work under 4.3+ | |
9102 | collect2name=`${CC} -print-prog-name=collect2` | |
9103 | if test -f "$collect2name" && | |
9104 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9105 | then | |
9106 | # We have reworked collect2 | |
9107 | : | |
9108 | else | |
9109 | # We have old collect2 | |
9110 | hardcode_direct=unsupported | |
9111 | # It fails to find uninstalled libraries when the uninstalled | |
9112 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9113 | # to unsupported forces relinking | |
9114 | hardcode_minus_L=yes | |
9115 | hardcode_libdir_flag_spec='-L$libdir' | |
9116 | hardcode_libdir_separator= | |
9117 | fi | |
9118 | ;; | |
9119 | esac | |
9120 | shared_flag='-shared' | |
9121 | if test "$aix_use_runtimelinking" = yes; then | |
9122 | shared_flag="$shared_flag "'${wl}-G' | |
9123 | fi | |
9124 | else | |
9125 | # not using gcc | |
9126 | if test "$host_cpu" = ia64; then | |
9127 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9128 | # chokes on -Wl,-G. The following line is correct: | |
9129 | shared_flag='-G' | |
9130 | else | |
9131 | if test "$aix_use_runtimelinking" = yes; then | |
9132 | shared_flag='${wl}-G' | |
9133 | else | |
9134 | shared_flag='${wl}-bM:SRE' | |
9135 | fi | |
9136 | fi | |
9137 | fi | |
9138 | ||
9139 | export_dynamic_flag_spec='${wl}-bexpall' | |
9140 | # It seems that -bexpall does not export symbols beginning with | |
9141 | # underscore (_), so it is better to generate a list of symbols to export. | |
9142 | always_export_symbols=yes | |
9143 | if test "$aix_use_runtimelinking" = yes; then | |
9144 | # Warning - without using the other runtime loading flags (-brtl), | |
9145 | # -berok will link without error, but may produce a broken library. | |
9146 | allow_undefined_flag='-berok' | |
9147 | # Determine the default libpath from the value encoded in an | |
9148 | # empty executable. | |
9149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9150 | /* end confdefs.h. */ | |
9151 | ||
9152 | int | |
9153 | main () | |
9154 | { | |
9155 | ||
9156 | ; | |
9157 | return 0; | |
9158 | } | |
9159 | _ACEOF | |
9160 | if ac_fn_c_try_link "$LINENO"; then : | |
9161 | ||
9162 | lt_aix_libpath_sed=' | |
9163 | /Import File Strings/,/^$/ { | |
9164 | /^0/ { | |
9165 | s/^0 *\(.*\)$/\1/ | |
9166 | p | |
9167 | } | |
9168 | }' | |
9169 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9170 | # Check for a 64-bit object if we didn't find anything. | |
9171 | if test -z "$aix_libpath"; then | |
9172 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9173 | fi | |
9174 | fi | |
9175 | rm -f core conftest.err conftest.$ac_objext \ | |
9176 | conftest$ac_exeext conftest.$ac_ext | |
9177 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9178 | ||
9179 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9180 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9181 | else | |
9182 | if test "$host_cpu" = ia64; then | |
9183 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9184 | allow_undefined_flag="-z nodefs" | |
9185 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
9186 | else | |
9187 | # Determine the default libpath from the value encoded in an | |
9188 | # empty executable. | |
9189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9190 | /* end confdefs.h. */ | |
9191 | ||
9192 | int | |
9193 | main () | |
9194 | { | |
9195 | ||
9196 | ; | |
9197 | return 0; | |
9198 | } | |
9199 | _ACEOF | |
9200 | if ac_fn_c_try_link "$LINENO"; then : | |
9201 | ||
9202 | lt_aix_libpath_sed=' | |
9203 | /Import File Strings/,/^$/ { | |
9204 | /^0/ { | |
9205 | s/^0 *\(.*\)$/\1/ | |
9206 | p | |
9207 | } | |
9208 | }' | |
9209 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9210 | # Check for a 64-bit object if we didn't find anything. | |
9211 | if test -z "$aix_libpath"; then | |
9212 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9213 | fi | |
9214 | fi | |
9215 | rm -f core conftest.err conftest.$ac_objext \ | |
9216 | conftest$ac_exeext conftest.$ac_ext | |
9217 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9218 | ||
9219 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9220 | # Warning - without using the other run time loading flags, | |
9221 | # -berok will link without error, but may produce a broken library. | |
9222 | no_undefined_flag=' ${wl}-bernotok' | |
9223 | allow_undefined_flag=' ${wl}-berok' | |
9224 | if test "$with_gnu_ld" = yes; then | |
9225 | # We only use this code for GNU lds that support --whole-archive. | |
9226 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9227 | else | |
9228 | # Exported symbols can be pulled into shared objects from archives | |
9229 | whole_archive_flag_spec='$convenience' | |
9230 | fi | |
9231 | archive_cmds_need_lc=yes | |
9232 | # This is similar to how AIX traditionally builds its shared libraries. | |
9233 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9234 | fi | |
9235 | fi | |
9236 | ;; | |
9237 | ||
9238 | amigaos*) | |
9239 | case $host_cpu in | |
9240 | powerpc) | |
9241 | # see comment about AmigaOS4 .so support | |
9242 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9243 | archive_expsym_cmds='' | |
9244 | ;; | |
9245 | m68k) | |
9246 | 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)' | |
9247 | hardcode_libdir_flag_spec='-L$libdir' | |
9248 | hardcode_minus_L=yes | |
9249 | ;; | |
9250 | esac | |
9251 | ;; | |
9252 | ||
9253 | bsdi[45]*) | |
9254 | export_dynamic_flag_spec=-rdynamic | |
9255 | ;; | |
9256 | ||
9257 | cygwin* | mingw* | pw32* | cegcc*) | |
9258 | # When not using gcc, we currently assume that we are using | |
9259 | # Microsoft Visual C++. | |
9260 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9261 | # no search path for DLLs. | |
9262 | hardcode_libdir_flag_spec=' ' | |
9263 | allow_undefined_flag=unsupported | |
9264 | # Tell ltmain to make .lib files, not .a files. | |
9265 | libext=lib | |
9266 | # Tell ltmain to make .dll files, not .so files. | |
9267 | shrext_cmds=".dll" | |
9268 | # FIXME: Setting linknames here is a bad hack. | |
9269 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9270 | # The linker will automatically build a .lib file if we build a DLL. | |
9271 | old_archive_from_new_cmds='true' | |
9272 | # FIXME: Should let the user specify the lib program. | |
9273 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9274 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9275 | enable_shared_with_static_runtimes=yes | |
9276 | ;; | |
9277 | ||
9278 | darwin* | rhapsody*) | |
9279 | ||
9280 | ||
9281 | archive_cmds_need_lc=no | |
9282 | hardcode_direct=no | |
9283 | hardcode_automatic=yes | |
9284 | hardcode_shlibpath_var=unsupported | |
9285 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9286 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9287 | else | |
9288 | whole_archive_flag_spec='' | |
9289 | fi | |
9290 | link_all_deplibs=yes | |
9291 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9292 | case $cc_basename in | |
9293 | ifort*) _lt_dar_can_shared=yes ;; | |
9294 | *) _lt_dar_can_shared=$GCC ;; | |
9295 | esac | |
9296 | if test "$_lt_dar_can_shared" = "yes"; then | |
9297 | output_verbose_link_cmd=func_echo_all | |
9298 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9299 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9300 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9301 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9302 | ||
9303 | else | |
9304 | ld_shlibs=no | |
9305 | fi | |
9306 | ||
9307 | ;; | |
9308 | ||
9309 | dgux*) | |
9310 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9311 | hardcode_libdir_flag_spec='-L$libdir' | |
9312 | hardcode_shlibpath_var=no | |
9313 | ;; | |
9314 | ||
9315 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9316 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9317 | # does not break anything, and helps significantly (at the cost of a little | |
9318 | # extra space). | |
9319 | freebsd2.2*) | |
9320 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9321 | hardcode_libdir_flag_spec='-R$libdir' | |
9322 | hardcode_direct=yes | |
9323 | hardcode_shlibpath_var=no | |
9324 | ;; | |
9325 | ||
9326 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9327 | freebsd2.*) | |
9328 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9329 | hardcode_direct=yes | |
9330 | hardcode_minus_L=yes | |
9331 | hardcode_shlibpath_var=no | |
9332 | ;; | |
9333 | ||
9334 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9335 | freebsd* | dragonfly*) | |
9336 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9337 | hardcode_libdir_flag_spec='-R$libdir' | |
9338 | hardcode_direct=yes | |
9339 | hardcode_shlibpath_var=no | |
9340 | ;; | |
9341 | ||
9342 | hpux9*) | |
9343 | if test "$GCC" = yes; then | |
9344 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9345 | else | |
9346 | 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' | |
9347 | fi | |
9348 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9349 | hardcode_libdir_separator=: | |
9350 | hardcode_direct=yes | |
9351 | ||
9352 | # hardcode_minus_L: Not really in the search PATH, | |
9353 | # but as the default location of the library. | |
9354 | hardcode_minus_L=yes | |
9355 | export_dynamic_flag_spec='${wl}-E' | |
9356 | ;; | |
9357 | ||
9358 | hpux10*) | |
9359 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9360 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9361 | else | |
9362 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9363 | fi | |
9364 | if test "$with_gnu_ld" = no; then | |
9365 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9366 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9367 | hardcode_libdir_separator=: | |
9368 | hardcode_direct=yes | |
9369 | hardcode_direct_absolute=yes | |
9370 | export_dynamic_flag_spec='${wl}-E' | |
9371 | # hardcode_minus_L: Not really in the search PATH, | |
9372 | # but as the default location of the library. | |
9373 | hardcode_minus_L=yes | |
9374 | fi | |
9375 | ;; | |
9376 | ||
9377 | hpux11*) | |
9378 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9379 | case $host_cpu in | |
9380 | hppa*64*) | |
9381 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9382 | ;; | |
9383 | ia64*) | |
9384 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9385 | ;; | |
9386 | *) | |
9387 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9388 | ;; | |
9389 | esac | |
9390 | else | |
9391 | case $host_cpu in | |
9392 | hppa*64*) | |
9393 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9394 | ;; | |
9395 | ia64*) | |
9396 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9397 | ;; | |
9398 | *) | |
9399 | ||
9400 | # Older versions of the 11.00 compiler do not understand -b yet | |
9401 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9403 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9404 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9405 | $as_echo_n "(cached) " >&6 | |
9406 | else | |
9407 | lt_cv_prog_compiler__b=no | |
9408 | save_LDFLAGS="$LDFLAGS" | |
9409 | LDFLAGS="$LDFLAGS -b" | |
9410 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9411 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9412 | # The linker can only warn and ignore the option if not recognized | |
9413 | # So say no if there are warnings | |
9414 | if test -s conftest.err; then | |
9415 | # Append any errors to the config.log. | |
9416 | cat conftest.err 1>&5 | |
9417 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9418 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9419 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9420 | lt_cv_prog_compiler__b=yes | |
9421 | fi | |
9422 | else | |
9423 | lt_cv_prog_compiler__b=yes | |
9424 | fi | |
9425 | fi | |
9426 | $RM -r conftest* | |
9427 | LDFLAGS="$save_LDFLAGS" | |
9428 | ||
9429 | fi | |
9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9431 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9432 | ||
9433 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9434 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9435 | else | |
9436 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9437 | fi | |
9438 | ||
9439 | ;; | |
9440 | esac | |
9441 | fi | |
9442 | if test "$with_gnu_ld" = no; then | |
9443 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9444 | hardcode_libdir_separator=: | |
9445 | ||
9446 | case $host_cpu in | |
9447 | hppa*64*|ia64*) | |
9448 | hardcode_direct=no | |
9449 | hardcode_shlibpath_var=no | |
9450 | ;; | |
9451 | *) | |
9452 | hardcode_direct=yes | |
9453 | hardcode_direct_absolute=yes | |
9454 | export_dynamic_flag_spec='${wl}-E' | |
9455 | ||
9456 | # hardcode_minus_L: Not really in the search PATH, | |
9457 | # but as the default location of the library. | |
9458 | hardcode_minus_L=yes | |
9459 | ;; | |
9460 | esac | |
9461 | fi | |
9462 | ;; | |
9463 | ||
9464 | irix5* | irix6* | nonstopux*) | |
9465 | if test "$GCC" = yes; then | |
9466 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9467 | # Try to use the -exported_symbol ld option, if it does not | |
9468 | # work, assume that -exports_file does not work either and | |
9469 | # implicitly export all symbols. | |
9470 | save_LDFLAGS="$LDFLAGS" | |
9471 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9473 | /* end confdefs.h. */ | |
9474 | int foo(void) {} | |
9475 | _ACEOF | |
9476 | if ac_fn_c_try_link "$LINENO"; then : | |
9477 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9478 | ||
9479 | fi | |
9480 | rm -f core conftest.err conftest.$ac_objext \ | |
9481 | conftest$ac_exeext conftest.$ac_ext | |
9482 | LDFLAGS="$save_LDFLAGS" | |
9483 | else | |
9484 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9485 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9486 | fi | |
9487 | archive_cmds_need_lc='no' | |
9488 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9489 | hardcode_libdir_separator=: | |
9490 | inherit_rpath=yes | |
9491 | link_all_deplibs=yes | |
9492 | ;; | |
9493 | ||
9494 | netbsd*) | |
9495 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9496 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9497 | else | |
9498 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9499 | fi | |
9500 | hardcode_libdir_flag_spec='-R$libdir' | |
9501 | hardcode_direct=yes | |
9502 | hardcode_shlibpath_var=no | |
9503 | ;; | |
9504 | ||
9505 | newsos6) | |
9506 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9507 | hardcode_direct=yes | |
9508 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9509 | hardcode_libdir_separator=: | |
9510 | hardcode_shlibpath_var=no | |
9511 | ;; | |
9512 | ||
9513 | *nto* | *qnx*) | |
9514 | ;; | |
9515 | ||
9516 | openbsd*) | |
9517 | if test -f /usr/libexec/ld.so; then | |
9518 | hardcode_direct=yes | |
9519 | hardcode_shlibpath_var=no | |
9520 | hardcode_direct_absolute=yes | |
9521 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9522 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9523 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9524 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9525 | export_dynamic_flag_spec='${wl}-E' | |
9526 | else | |
9527 | case $host_os in | |
9528 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9529 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9530 | hardcode_libdir_flag_spec='-R$libdir' | |
9531 | ;; | |
9532 | *) | |
9533 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9534 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9535 | ;; | |
9536 | esac | |
9537 | fi | |
9538 | else | |
9539 | ld_shlibs=no | |
9540 | fi | |
9541 | ;; | |
9542 | ||
9543 | os2*) | |
9544 | hardcode_libdir_flag_spec='-L$libdir' | |
9545 | hardcode_minus_L=yes | |
9546 | allow_undefined_flag=unsupported | |
9547 | 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' | |
9548 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9549 | ;; | |
9550 | ||
9551 | osf3*) | |
9552 | if test "$GCC" = yes; then | |
9553 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9554 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9555 | else | |
9556 | allow_undefined_flag=' -expect_unresolved \*' | |
9557 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9558 | fi | |
9559 | archive_cmds_need_lc='no' | |
9560 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9561 | hardcode_libdir_separator=: | |
9562 | ;; | |
9563 | ||
9564 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9565 | if test "$GCC" = yes; then | |
9566 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9567 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9568 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9569 | else | |
9570 | allow_undefined_flag=' -expect_unresolved \*' | |
9571 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9572 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9573 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
9574 | ||
9575 | # Both c and cxx compiler support -rpath directly | |
9576 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9577 | fi | |
9578 | archive_cmds_need_lc='no' | |
9579 | hardcode_libdir_separator=: | |
9580 | ;; | |
9581 | ||
9582 | solaris*) | |
9583 | no_undefined_flag=' -z defs' | |
9584 | if test "$GCC" = yes; then | |
9585 | wlarc='${wl}' | |
9586 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9587 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9588 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9589 | else | |
9590 | case `$CC -V 2>&1` in | |
9591 | *"Compilers 5.0"*) | |
9592 | wlarc='' | |
9593 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9594 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9595 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9596 | ;; | |
9597 | *) | |
9598 | wlarc='${wl}' | |
9599 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9600 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9601 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9602 | ;; | |
9603 | esac | |
9604 | fi | |
9605 | hardcode_libdir_flag_spec='-R$libdir' | |
9606 | hardcode_shlibpath_var=no | |
9607 | case $host_os in | |
9608 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9609 | *) | |
9610 | # The compiler driver will combine and reorder linker options, | |
9611 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9612 | # but is careful enough not to reorder. | |
9613 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9614 | if test "$GCC" = yes; then | |
9615 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9616 | else | |
9617 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9618 | fi | |
9619 | ;; | |
9620 | esac | |
9621 | link_all_deplibs=yes | |
9622 | ;; | |
9623 | ||
9624 | sunos4*) | |
9625 | if test "x$host_vendor" = xsequent; then | |
9626 | # Use $CC to link under sequent, because it throws in some extra .o | |
9627 | # files that make .init and .fini sections work. | |
9628 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9629 | else | |
9630 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9631 | fi | |
9632 | hardcode_libdir_flag_spec='-L$libdir' | |
9633 | hardcode_direct=yes | |
9634 | hardcode_minus_L=yes | |
9635 | hardcode_shlibpath_var=no | |
9636 | ;; | |
9637 | ||
9638 | sysv4) | |
9639 | case $host_vendor in | |
9640 | sni) | |
9641 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9642 | hardcode_direct=yes # is this really true??? | |
9643 | ;; | |
9644 | siemens) | |
9645 | ## LD is ld it makes a PLAMLIB | |
9646 | ## CC just makes a GrossModule. | |
9647 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9648 | reload_cmds='$CC -r -o $output$reload_objs' | |
9649 | hardcode_direct=no | |
9650 | ;; | |
9651 | motorola) | |
9652 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9653 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9654 | ;; | |
9655 | esac | |
9656 | runpath_var='LD_RUN_PATH' | |
9657 | hardcode_shlibpath_var=no | |
9658 | ;; | |
9659 | ||
9660 | sysv4.3*) | |
9661 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9662 | hardcode_shlibpath_var=no | |
9663 | export_dynamic_flag_spec='-Bexport' | |
9664 | ;; | |
9665 | ||
9666 | sysv4*MP*) | |
9667 | if test -d /usr/nec; then | |
9668 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9669 | hardcode_shlibpath_var=no | |
9670 | runpath_var=LD_RUN_PATH | |
9671 | hardcode_runpath_var=yes | |
9672 | ld_shlibs=yes | |
9673 | fi | |
9674 | ;; | |
9675 | ||
9676 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9677 | no_undefined_flag='${wl}-z,text' | |
9678 | archive_cmds_need_lc=no | |
9679 | hardcode_shlibpath_var=no | |
9680 | runpath_var='LD_RUN_PATH' | |
9681 | ||
9682 | if test "$GCC" = yes; then | |
9683 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9684 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9685 | else | |
9686 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9687 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9688 | fi | |
9689 | ;; | |
9690 | ||
9691 | sysv5* | sco3.2v5* | sco5v6*) | |
9692 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9693 | # link with -lc, and that would cause any symbols used from libc to | |
9694 | # always be unresolved, which means just about no library would | |
9695 | # ever link correctly. If we're not using GNU ld we use -z text | |
9696 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9697 | # as -z defs. | |
9698 | no_undefined_flag='${wl}-z,text' | |
9699 | allow_undefined_flag='${wl}-z,nodefs' | |
9700 | archive_cmds_need_lc=no | |
9701 | hardcode_shlibpath_var=no | |
9702 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9703 | hardcode_libdir_separator=':' | |
9704 | link_all_deplibs=yes | |
9705 | export_dynamic_flag_spec='${wl}-Bexport' | |
9706 | runpath_var='LD_RUN_PATH' | |
9707 | ||
9708 | if test "$GCC" = yes; then | |
9709 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9710 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9711 | else | |
9712 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9713 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9714 | fi | |
9715 | ;; | |
9716 | ||
9717 | uts4*) | |
9718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9719 | hardcode_libdir_flag_spec='-L$libdir' | |
9720 | hardcode_shlibpath_var=no | |
9721 | ;; | |
9722 | ||
9723 | *) | |
9724 | ld_shlibs=no | |
9725 | ;; | |
9726 | esac | |
9727 | ||
9728 | if test x$host_vendor = xsni; then | |
9729 | case $host in | |
9730 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9731 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9732 | ;; | |
9733 | esac | |
9734 | fi | |
9735 | fi | |
9736 | ||
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9738 | $as_echo "$ld_shlibs" >&6; } | |
9739 | test "$ld_shlibs" = no && can_build_shared=no | |
9740 | ||
9741 | with_gnu_ld=$with_gnu_ld | |
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | # | |
9758 | # Do we need to explicitly link libc? | |
9759 | # | |
9760 | case "x$archive_cmds_need_lc" in | |
9761 | x|xyes) | |
9762 | # Assume -lc should be added | |
9763 | archive_cmds_need_lc=yes | |
9764 | ||
9765 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9766 | case $archive_cmds in | |
9767 | *'~'*) | |
9768 | # FIXME: we may have to deal with multi-command sequences. | |
9769 | ;; | |
9770 | '$CC '*) | |
9771 | # Test whether the compiler implicitly links with -lc since on some | |
9772 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9773 | # to ld, don't add -lc before -lgcc. | |
9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9775 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9776 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9777 | $as_echo_n "(cached) " >&6 | |
9778 | else | |
9779 | $RM conftest* | |
9780 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9781 | ||
9782 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9783 | (eval $ac_compile) 2>&5 | |
9784 | ac_status=$? | |
9785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9786 | test $ac_status = 0; } 2>conftest.err; then | |
9787 | soname=conftest | |
9788 | lib=conftest | |
9789 | libobjs=conftest.$ac_objext | |
9790 | deplibs= | |
9791 | wl=$lt_prog_compiler_wl | |
9792 | pic_flag=$lt_prog_compiler_pic | |
9793 | compiler_flags=-v | |
9794 | linker_flags=-v | |
9795 | verstring= | |
9796 | output_objdir=. | |
9797 | libname=conftest | |
9798 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9799 | allow_undefined_flag= | |
9800 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9801 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9802 | ac_status=$? | |
9803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9804 | test $ac_status = 0; } | |
9805 | then | |
9806 | lt_cv_archive_cmds_need_lc=no | |
9807 | else | |
9808 | lt_cv_archive_cmds_need_lc=yes | |
9809 | fi | |
9810 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9811 | else | |
9812 | cat conftest.err 1>&5 | |
9813 | fi | |
9814 | $RM conftest* | |
9815 | ||
9816 | fi | |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9818 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9819 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9820 | ;; | |
9821 | esac | |
9822 | fi | |
9823 | ;; | |
9824 | esac | |
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
9983 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9984 | ||
9985 | if test "$GCC" = yes; then | |
9986 | case $host_os in | |
9987 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9988 | *) lt_awk_arg="/^libraries:/" ;; | |
9989 | esac | |
9990 | case $host_os in | |
9991 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9992 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9993 | esac | |
9994 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9995 | case $lt_search_path_spec in | |
9996 | *\;*) | |
9997 | # if the path contains ";" then we assume it to be the separator | |
9998 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9999 | # assumed that no part of a normal pathname contains ";" but that should | |
10000 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10001 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10002 | ;; | |
10003 | *) | |
10004 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10005 | ;; | |
10006 | esac | |
10007 | # Ok, now we have the path, separated by spaces, we can step through it | |
10008 | # and add multilib dir if necessary. | |
10009 | lt_tmp_lt_search_path_spec= | |
10010 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10011 | for lt_sys_path in $lt_search_path_spec; do | |
10012 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10013 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10014 | else | |
10015 | test -d "$lt_sys_path" && \ | |
10016 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10017 | fi | |
10018 | done | |
10019 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10020 | BEGIN {RS=" "; FS="/|\n";} { | |
10021 | lt_foo=""; | |
10022 | lt_count=0; | |
10023 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10024 | if ($lt_i != "" && $lt_i != ".") { | |
10025 | if ($lt_i == "..") { | |
10026 | lt_count++; | |
10027 | } else { | |
10028 | if (lt_count == 0) { | |
10029 | lt_foo="/" $lt_i lt_foo; | |
10030 | } else { | |
10031 | lt_count--; | |
10032 | } | |
10033 | } | |
10034 | } | |
10035 | } | |
10036 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10037 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10038 | }'` | |
10039 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10040 | # for these hosts. | |
10041 | case $host_os in | |
10042 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10043 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10044 | esac | |
10045 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10046 | else | |
10047 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10048 | fi | |
10049 | library_names_spec= | |
10050 | libname_spec='lib$name' | |
10051 | soname_spec= | |
10052 | shrext_cmds=".so" | |
10053 | postinstall_cmds= | |
10054 | postuninstall_cmds= | |
10055 | finish_cmds= | |
10056 | finish_eval= | |
10057 | shlibpath_var= | |
10058 | shlibpath_overrides_runpath=unknown | |
10059 | version_type=none | |
10060 | dynamic_linker="$host_os ld.so" | |
10061 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10062 | need_lib_prefix=unknown | |
10063 | hardcode_into_libs=no | |
10064 | ||
10065 | # when you set need_version to no, make sure it does not cause -set_version | |
10066 | # flags to be left without arguments | |
10067 | need_version=unknown | |
10068 | ||
10069 | case $host_os in | |
10070 | aix3*) | |
10071 | version_type=linux | |
10072 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10073 | shlibpath_var=LIBPATH | |
10074 | ||
10075 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10076 | soname_spec='${libname}${release}${shared_ext}$major' | |
10077 | ;; | |
10078 | ||
10079 | aix[4-9]*) | |
10080 | version_type=linux | |
10081 | need_lib_prefix=no | |
10082 | need_version=no | |
10083 | hardcode_into_libs=yes | |
10084 | if test "$host_cpu" = ia64; then | |
10085 | # AIX 5 supports IA64 | |
10086 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10087 | shlibpath_var=LD_LIBRARY_PATH | |
10088 | else | |
10089 | # With GCC up to 2.95.x, collect2 would create an import file | |
10090 | # for dependence libraries. The import file would start with | |
10091 | # the line `#! .'. This would cause the generated library to | |
10092 | # depend on `.', always an invalid library. This was fixed in | |
10093 | # development snapshots of GCC prior to 3.0. | |
10094 | case $host_os in | |
10095 | aix4 | aix4.[01] | aix4.[01].*) | |
10096 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10097 | echo ' yes ' | |
10098 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10099 | : | |
10100 | else | |
10101 | can_build_shared=no | |
10102 | fi | |
10103 | ;; | |
10104 | esac | |
10105 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10106 | # soname into executable. Probably we can add versioning support to | |
10107 | # collect2, so additional links can be useful in future. | |
10108 | if test "$aix_use_runtimelinking" = yes; then | |
10109 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10110 | # instead of lib<name>.a to let people know that these are not | |
10111 | # typical AIX shared libraries. | |
10112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10113 | else | |
10114 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10115 | # and later when we are not doing run time linking. | |
10116 | library_names_spec='${libname}${release}.a $libname.a' | |
10117 | soname_spec='${libname}${release}${shared_ext}$major' | |
10118 | fi | |
10119 | shlibpath_var=LIBPATH | |
10120 | fi | |
10121 | ;; | |
10122 | ||
10123 | amigaos*) | |
10124 | case $host_cpu in | |
10125 | powerpc) | |
10126 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10127 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10129 | ;; | |
10130 | m68k) | |
10131 | library_names_spec='$libname.ixlibrary $libname.a' | |
10132 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10133 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
10134 | ;; | |
10135 | esac | |
10136 | ;; | |
10137 | ||
10138 | beos*) | |
10139 | library_names_spec='${libname}${shared_ext}' | |
10140 | dynamic_linker="$host_os ld.so" | |
10141 | shlibpath_var=LIBRARY_PATH | |
10142 | ;; | |
10143 | ||
10144 | bsdi[45]*) | |
10145 | version_type=linux | |
10146 | need_version=no | |
10147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10148 | soname_spec='${libname}${release}${shared_ext}$major' | |
10149 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10150 | shlibpath_var=LD_LIBRARY_PATH | |
10151 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10152 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10153 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10154 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10155 | # libtool to hard-code these into programs | |
10156 | ;; | |
10157 | ||
10158 | cygwin* | mingw* | pw32* | cegcc*) | |
10159 | version_type=windows | |
10160 | shrext_cmds=".dll" | |
10161 | need_version=no | |
10162 | need_lib_prefix=no | |
10163 | ||
10164 | case $GCC,$host_os in | |
10165 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10166 | library_names_spec='$libname.dll.a' | |
10167 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10168 | postinstall_cmds='base_file=`basename \${file}`~ | |
10169 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10170 | dldir=$destdir/`dirname \$dlpath`~ | |
10171 | test -d \$dldir || mkdir -p \$dldir~ | |
10172 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10173 | chmod a+x \$dldir/$dlname~ | |
10174 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10175 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10176 | fi' | |
10177 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10178 | dlpath=$dir/\$dldll~ | |
10179 | $RM \$dlpath' | |
10180 | shlibpath_overrides_runpath=yes | |
10181 | ||
10182 | case $host_os in | |
10183 | cygwin*) | |
10184 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10185 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10186 | ||
10187 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10188 | ;; | |
10189 | mingw* | cegcc*) | |
10190 | # MinGW DLLs use traditional 'lib' prefix | |
10191 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10192 | ;; | |
10193 | pw32*) | |
10194 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10195 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10196 | ;; | |
10197 | esac | |
10198 | ;; | |
10199 | ||
10200 | *) | |
10201 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10202 | ;; | |
10203 | esac | |
10204 | dynamic_linker='Win32 ld.exe' | |
10205 | # FIXME: first we should search . and the directory the executable is in | |
10206 | shlibpath_var=PATH | |
10207 | ;; | |
10208 | ||
10209 | darwin* | rhapsody*) | |
10210 | dynamic_linker="$host_os dyld" | |
10211 | version_type=darwin | |
10212 | need_lib_prefix=no | |
10213 | need_version=no | |
10214 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10215 | soname_spec='${libname}${release}${major}$shared_ext' | |
10216 | shlibpath_overrides_runpath=yes | |
10217 | shlibpath_var=DYLD_LIBRARY_PATH | |
10218 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10219 | ||
10220 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10221 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10222 | ;; | |
10223 | ||
10224 | dgux*) | |
10225 | version_type=linux | |
10226 | need_lib_prefix=no | |
10227 | need_version=no | |
10228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10229 | soname_spec='${libname}${release}${shared_ext}$major' | |
10230 | shlibpath_var=LD_LIBRARY_PATH | |
10231 | ;; | |
10232 | ||
10233 | freebsd* | dragonfly*) | |
10234 | # DragonFly does not have aout. When/if they implement a new | |
10235 | # versioning mechanism, adjust this. | |
10236 | if test -x /usr/bin/objformat; then | |
10237 | objformat=`/usr/bin/objformat` | |
10238 | else | |
10239 | case $host_os in | |
10240 | freebsd[23].*) objformat=aout ;; | |
10241 | *) objformat=elf ;; | |
10242 | esac | |
10243 | fi | |
10244 | version_type=freebsd-$objformat | |
10245 | case $version_type in | |
10246 | freebsd-elf*) | |
10247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10248 | need_version=no | |
10249 | need_lib_prefix=no | |
10250 | ;; | |
10251 | freebsd-*) | |
10252 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10253 | need_version=yes | |
10254 | ;; | |
10255 | esac | |
10256 | shlibpath_var=LD_LIBRARY_PATH | |
10257 | case $host_os in | |
10258 | freebsd2.*) | |
10259 | shlibpath_overrides_runpath=yes | |
10260 | ;; | |
10261 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10262 | shlibpath_overrides_runpath=yes | |
10263 | hardcode_into_libs=yes | |
10264 | ;; | |
10265 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10266 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10267 | shlibpath_overrides_runpath=no | |
10268 | hardcode_into_libs=yes | |
10269 | ;; | |
10270 | *) # from 4.6 on, and DragonFly | |
10271 | shlibpath_overrides_runpath=yes | |
10272 | hardcode_into_libs=yes | |
10273 | ;; | |
10274 | esac | |
10275 | ;; | |
10276 | ||
10277 | gnu*) | |
10278 | version_type=linux | |
10279 | need_lib_prefix=no | |
10280 | need_version=no | |
10281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10282 | soname_spec='${libname}${release}${shared_ext}$major' | |
10283 | shlibpath_var=LD_LIBRARY_PATH | |
10284 | hardcode_into_libs=yes | |
10285 | ;; | |
10286 | ||
10287 | haiku*) | |
10288 | version_type=linux | |
10289 | need_lib_prefix=no | |
10290 | need_version=no | |
10291 | dynamic_linker="$host_os runtime_loader" | |
10292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10293 | soname_spec='${libname}${release}${shared_ext}$major' | |
10294 | shlibpath_var=LIBRARY_PATH | |
10295 | shlibpath_overrides_runpath=yes | |
10296 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10297 | hardcode_into_libs=yes | |
10298 | ;; | |
10299 | ||
10300 | hpux9* | hpux10* | hpux11*) | |
10301 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10302 | # link against other versions. | |
10303 | version_type=sunos | |
10304 | need_lib_prefix=no | |
10305 | need_version=no | |
10306 | case $host_cpu in | |
10307 | ia64*) | |
10308 | shrext_cmds='.so' | |
10309 | hardcode_into_libs=yes | |
10310 | dynamic_linker="$host_os dld.so" | |
10311 | shlibpath_var=LD_LIBRARY_PATH | |
10312 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10314 | soname_spec='${libname}${release}${shared_ext}$major' | |
10315 | if test "X$HPUX_IA64_MODE" = X32; then | |
10316 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10317 | else | |
10318 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10319 | fi | |
10320 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10321 | ;; | |
10322 | hppa*64*) | |
10323 | shrext_cmds='.sl' | |
10324 | hardcode_into_libs=yes | |
10325 | dynamic_linker="$host_os dld.sl" | |
10326 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10327 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10329 | soname_spec='${libname}${release}${shared_ext}$major' | |
10330 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10331 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10332 | ;; | |
10333 | *) | |
10334 | shrext_cmds='.sl' | |
10335 | dynamic_linker="$host_os dld.sl" | |
10336 | shlibpath_var=SHLIB_PATH | |
10337 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10339 | soname_spec='${libname}${release}${shared_ext}$major' | |
10340 | ;; | |
10341 | esac | |
10342 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10343 | postinstall_cmds='chmod 555 $lib' | |
10344 | # or fails outright, so override atomically: | |
10345 | install_override_mode=555 | |
10346 | ;; | |
10347 | ||
10348 | interix[3-9]*) | |
10349 | version_type=linux | |
10350 | need_lib_prefix=no | |
10351 | need_version=no | |
10352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10353 | soname_spec='${libname}${release}${shared_ext}$major' | |
10354 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10355 | shlibpath_var=LD_LIBRARY_PATH | |
10356 | shlibpath_overrides_runpath=no | |
10357 | hardcode_into_libs=yes | |
10358 | ;; | |
10359 | ||
10360 | irix5* | irix6* | nonstopux*) | |
10361 | case $host_os in | |
10362 | nonstopux*) version_type=nonstopux ;; | |
10363 | *) | |
10364 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10365 | version_type=linux | |
10366 | else | |
10367 | version_type=irix | |
10368 | fi ;; | |
10369 | esac | |
10370 | need_lib_prefix=no | |
10371 | need_version=no | |
10372 | soname_spec='${libname}${release}${shared_ext}$major' | |
10373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10374 | case $host_os in | |
10375 | irix5* | nonstopux*) | |
10376 | libsuff= shlibsuff= | |
10377 | ;; | |
10378 | *) | |
10379 | case $LD in # libtool.m4 will add one of these switches to LD | |
10380 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10381 | libsuff= shlibsuff= libmagic=32-bit;; | |
10382 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10383 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10384 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10385 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10386 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10387 | esac | |
10388 | ;; | |
10389 | esac | |
10390 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10391 | shlibpath_overrides_runpath=no | |
10392 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10393 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10394 | hardcode_into_libs=yes | |
10395 | ;; | |
10396 | ||
10397 | # No shared lib support for Linux oldld, aout, or coff. | |
10398 | linux*oldld* | linux*aout* | linux*coff*) | |
10399 | dynamic_linker=no | |
10400 | ;; | |
10401 | ||
10402 | # This must be Linux ELF. | |
10403 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10404 | version_type=linux | |
10405 | need_lib_prefix=no | |
10406 | need_version=no | |
10407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10408 | soname_spec='${libname}${release}${shared_ext}$major' | |
10409 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10410 | shlibpath_var=LD_LIBRARY_PATH | |
10411 | shlibpath_overrides_runpath=no | |
10412 | ||
10413 | # Some binutils ld are patched to set DT_RUNPATH | |
10414 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
10415 | $as_echo_n "(cached) " >&6 | |
10416 | else | |
10417 | lt_cv_shlibpath_overrides_runpath=no | |
10418 | save_LDFLAGS=$LDFLAGS | |
10419 | save_libdir=$libdir | |
10420 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10421 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10423 | /* end confdefs.h. */ | |
10424 | ||
10425 | int | |
10426 | main () | |
10427 | { | |
10428 | ||
10429 | ; | |
10430 | return 0; | |
10431 | } | |
10432 | _ACEOF | |
10433 | if ac_fn_c_try_link "$LINENO"; then : | |
10434 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10435 | lt_cv_shlibpath_overrides_runpath=yes | |
10436 | fi | |
10437 | fi | |
10438 | rm -f core conftest.err conftest.$ac_objext \ | |
10439 | conftest$ac_exeext conftest.$ac_ext | |
10440 | LDFLAGS=$save_LDFLAGS | |
10441 | libdir=$save_libdir | |
10442 | ||
10443 | fi | |
10444 | ||
10445 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10446 | ||
10447 | # This implies no fast_install, which is unacceptable. | |
10448 | # Some rework will be needed to allow for fast_install | |
10449 | # before this can be enabled. | |
10450 | hardcode_into_libs=yes | |
10451 | ||
10452 | # Append ld.so.conf contents to the search path | |
10453 | if test -f /etc/ld.so.conf; then | |
10454 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
10455 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10456 | fi | |
10457 | ||
10458 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10459 | # powerpc, because MkLinux only supported shared libraries with the | |
10460 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10461 | # most powerpc-linux boxes support dynamic linking these days and | |
10462 | # people can always --disable-shared, the test was removed, and we | |
10463 | # assume the GNU/Linux dynamic linker is in use. | |
10464 | dynamic_linker='GNU/Linux ld.so' | |
10465 | ;; | |
10466 | ||
10467 | netbsd*) | |
10468 | version_type=sunos | |
10469 | need_lib_prefix=no | |
10470 | need_version=no | |
10471 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10473 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10474 | dynamic_linker='NetBSD (a.out) ld.so' | |
10475 | else | |
10476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10477 | soname_spec='${libname}${release}${shared_ext}$major' | |
10478 | dynamic_linker='NetBSD ld.elf_so' | |
10479 | fi | |
10480 | shlibpath_var=LD_LIBRARY_PATH | |
10481 | shlibpath_overrides_runpath=yes | |
10482 | hardcode_into_libs=yes | |
10483 | ;; | |
10484 | ||
10485 | newsos6) | |
10486 | version_type=linux | |
10487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10488 | shlibpath_var=LD_LIBRARY_PATH | |
10489 | shlibpath_overrides_runpath=yes | |
10490 | ;; | |
10491 | ||
10492 | *nto* | *qnx*) | |
10493 | version_type=qnx | |
10494 | need_lib_prefix=no | |
10495 | need_version=no | |
10496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10497 | soname_spec='${libname}${release}${shared_ext}$major' | |
10498 | shlibpath_var=LD_LIBRARY_PATH | |
10499 | shlibpath_overrides_runpath=no | |
10500 | hardcode_into_libs=yes | |
10501 | dynamic_linker='ldqnx.so' | |
10502 | ;; | |
10503 | ||
10504 | openbsd*) | |
10505 | version_type=sunos | |
10506 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10507 | need_lib_prefix=no | |
10508 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10509 | case $host_os in | |
10510 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10511 | *) need_version=no ;; | |
10512 | esac | |
10513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10514 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10515 | shlibpath_var=LD_LIBRARY_PATH | |
10516 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10517 | case $host_os in | |
10518 | openbsd2.[89] | openbsd2.[89].*) | |
10519 | shlibpath_overrides_runpath=no | |
10520 | ;; | |
10521 | *) | |
10522 | shlibpath_overrides_runpath=yes | |
10523 | ;; | |
10524 | esac | |
10525 | else | |
10526 | shlibpath_overrides_runpath=yes | |
10527 | fi | |
10528 | ;; | |
10529 | ||
10530 | os2*) | |
10531 | libname_spec='$name' | |
10532 | shrext_cmds=".dll" | |
10533 | need_lib_prefix=no | |
10534 | library_names_spec='$libname${shared_ext} $libname.a' | |
10535 | dynamic_linker='OS/2 ld.exe' | |
10536 | shlibpath_var=LIBPATH | |
10537 | ;; | |
10538 | ||
10539 | osf3* | osf4* | osf5*) | |
10540 | version_type=osf | |
10541 | need_lib_prefix=no | |
10542 | need_version=no | |
10543 | soname_spec='${libname}${release}${shared_ext}$major' | |
10544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10545 | shlibpath_var=LD_LIBRARY_PATH | |
10546 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10547 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10548 | ;; | |
10549 | ||
10550 | rdos*) | |
10551 | dynamic_linker=no | |
10552 | ;; | |
10553 | ||
10554 | solaris*) | |
10555 | version_type=linux | |
10556 | need_lib_prefix=no | |
10557 | need_version=no | |
10558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10559 | soname_spec='${libname}${release}${shared_ext}$major' | |
10560 | shlibpath_var=LD_LIBRARY_PATH | |
10561 | shlibpath_overrides_runpath=yes | |
10562 | hardcode_into_libs=yes | |
10563 | # ldd complains unless libraries are executable | |
10564 | postinstall_cmds='chmod +x $lib' | |
10565 | ;; | |
10566 | ||
10567 | sunos4*) | |
10568 | version_type=sunos | |
10569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10570 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10571 | shlibpath_var=LD_LIBRARY_PATH | |
10572 | shlibpath_overrides_runpath=yes | |
10573 | if test "$with_gnu_ld" = yes; then | |
10574 | need_lib_prefix=no | |
10575 | fi | |
10576 | need_version=yes | |
10577 | ;; | |
10578 | ||
10579 | sysv4 | sysv4.3*) | |
10580 | version_type=linux | |
10581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10582 | soname_spec='${libname}${release}${shared_ext}$major' | |
10583 | shlibpath_var=LD_LIBRARY_PATH | |
10584 | case $host_vendor in | |
10585 | sni) | |
10586 | shlibpath_overrides_runpath=no | |
10587 | need_lib_prefix=no | |
10588 | runpath_var=LD_RUN_PATH | |
10589 | ;; | |
10590 | siemens) | |
10591 | need_lib_prefix=no | |
10592 | ;; | |
10593 | motorola) | |
10594 | need_lib_prefix=no | |
10595 | need_version=no | |
10596 | shlibpath_overrides_runpath=no | |
10597 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10598 | ;; | |
10599 | esac | |
10600 | ;; | |
10601 | ||
10602 | sysv4*MP*) | |
10603 | if test -d /usr/nec ;then | |
10604 | version_type=linux | |
10605 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10606 | soname_spec='$libname${shared_ext}.$major' | |
10607 | shlibpath_var=LD_LIBRARY_PATH | |
10608 | fi | |
10609 | ;; | |
10610 | ||
10611 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10612 | version_type=freebsd-elf | |
10613 | need_lib_prefix=no | |
10614 | need_version=no | |
10615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10616 | soname_spec='${libname}${release}${shared_ext}$major' | |
10617 | shlibpath_var=LD_LIBRARY_PATH | |
10618 | shlibpath_overrides_runpath=yes | |
10619 | hardcode_into_libs=yes | |
10620 | if test "$with_gnu_ld" = yes; then | |
10621 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10622 | else | |
10623 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10624 | case $host_os in | |
10625 | sco3.2v5*) | |
10626 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10627 | ;; | |
10628 | esac | |
10629 | fi | |
10630 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10631 | ;; | |
10632 | ||
10633 | tpf*) | |
10634 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10635 | version_type=linux | |
10636 | need_lib_prefix=no | |
10637 | need_version=no | |
10638 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10639 | shlibpath_var=LD_LIBRARY_PATH | |
10640 | shlibpath_overrides_runpath=no | |
10641 | hardcode_into_libs=yes | |
10642 | ;; | |
10643 | ||
10644 | uts4*) | |
10645 | version_type=linux | |
10646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10647 | soname_spec='${libname}${release}${shared_ext}$major' | |
10648 | shlibpath_var=LD_LIBRARY_PATH | |
10649 | ;; | |
10650 | ||
10651 | *) | |
10652 | dynamic_linker=no | |
10653 | ;; | |
10654 | esac | |
10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10656 | $as_echo "$dynamic_linker" >&6; } | |
10657 | test "$dynamic_linker" = no && can_build_shared=no | |
10658 | ||
10659 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10660 | if test "$GCC" = yes; then | |
10661 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10662 | fi | |
10663 | ||
10664 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10665 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10666 | fi | |
10667 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10668 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10669 | fi | |
10670 | ||
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | ||
10686 | ||
10687 | ||
10688 | ||
10689 | ||
10690 | ||
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10763 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10764 | hardcode_action= | |
10765 | if test -n "$hardcode_libdir_flag_spec" || | |
10766 | test -n "$runpath_var" || | |
10767 | test "X$hardcode_automatic" = "Xyes" ; then | |
10768 | ||
10769 | # We can hardcode non-existent directories. | |
10770 | if test "$hardcode_direct" != no && | |
10771 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10772 | # have to relink, otherwise we might link with an installed library | |
10773 | # when we should be linking with a yet-to-be-installed one | |
10774 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10775 | test "$hardcode_minus_L" != no; then | |
10776 | # Linking always hardcodes the temporary library directory. | |
10777 | hardcode_action=relink | |
10778 | else | |
10779 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10780 | hardcode_action=immediate | |
10781 | fi | |
10782 | else | |
10783 | # We cannot hardcode anything, or else we can only hardcode existing | |
10784 | # directories. | |
10785 | hardcode_action=unsupported | |
10786 | fi | |
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
10788 | $as_echo "$hardcode_action" >&6; } | |
10789 | ||
10790 | if test "$hardcode_action" = relink || | |
10791 | test "$inherit_rpath" = yes; then | |
10792 | # Fast installation is not supported | |
10793 | enable_fast_install=no | |
10794 | elif test "$shlibpath_overrides_runpath" = yes || | |
10795 | test "$enable_shared" = no; then | |
10796 | # Fast installation is not necessary | |
10797 | enable_fast_install=needless | |
10798 | fi | |
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | if test "x$enable_dlopen" != xyes; then | |
10806 | enable_dlopen=unknown | |
10807 | enable_dlopen_self=unknown | |
10808 | enable_dlopen_self_static=unknown | |
10809 | else | |
10810 | lt_cv_dlopen=no | |
10811 | lt_cv_dlopen_libs= | |
10812 | ||
10813 | case $host_os in | |
10814 | beos*) | |
10815 | lt_cv_dlopen="load_add_on" | |
10816 | lt_cv_dlopen_libs= | |
10817 | lt_cv_dlopen_self=yes | |
10818 | ;; | |
10819 | ||
10820 | mingw* | pw32* | cegcc*) | |
10821 | lt_cv_dlopen="LoadLibrary" | |
10822 | lt_cv_dlopen_libs= | |
10823 | ;; | |
10824 | ||
10825 | cygwin*) | |
10826 | lt_cv_dlopen="dlopen" | |
10827 | lt_cv_dlopen_libs= | |
10828 | ;; | |
10829 | ||
10830 | darwin*) | |
10831 | # if libdl is installed we need to link against it | |
10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10833 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10834 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10835 | $as_echo_n "(cached) " >&6 | |
10836 | else | |
10837 | ac_check_lib_save_LIBS=$LIBS | |
10838 | LIBS="-ldl $LIBS" | |
10839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10840 | /* end confdefs.h. */ | |
10841 | ||
10842 | /* Override any GCC internal prototype to avoid an error. | |
10843 | Use char because int might match the return type of a GCC | |
10844 | builtin and then its argument prototype would still apply. */ | |
10845 | #ifdef __cplusplus | |
10846 | extern "C" | |
10847 | #endif | |
10848 | char dlopen (); | |
10849 | int | |
10850 | main () | |
10851 | { | |
10852 | return dlopen (); | |
10853 | ; | |
10854 | return 0; | |
10855 | } | |
10856 | _ACEOF | |
10857 | if ac_fn_c_try_link "$LINENO"; then : | |
10858 | ac_cv_lib_dl_dlopen=yes | |
10859 | else | |
10860 | ac_cv_lib_dl_dlopen=no | |
10861 | fi | |
10862 | rm -f core conftest.err conftest.$ac_objext \ | |
10863 | conftest$ac_exeext conftest.$ac_ext | |
10864 | LIBS=$ac_check_lib_save_LIBS | |
10865 | fi | |
10866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10867 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10868 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10869 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10870 | else | |
10871 | ||
10872 | lt_cv_dlopen="dyld" | |
10873 | lt_cv_dlopen_libs= | |
10874 | lt_cv_dlopen_self=yes | |
10875 | ||
10876 | fi | |
10877 | ||
10878 | ;; | |
10879 | ||
10880 | *) | |
10881 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10882 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10883 | lt_cv_dlopen="shl_load" | |
10884 | else | |
10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10886 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10887 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10888 | $as_echo_n "(cached) " >&6 | |
10889 | else | |
10890 | ac_check_lib_save_LIBS=$LIBS | |
10891 | LIBS="-ldld $LIBS" | |
10892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10893 | /* end confdefs.h. */ | |
10894 | ||
10895 | /* Override any GCC internal prototype to avoid an error. | |
10896 | Use char because int might match the return type of a GCC | |
10897 | builtin and then its argument prototype would still apply. */ | |
10898 | #ifdef __cplusplus | |
10899 | extern "C" | |
10900 | #endif | |
10901 | char shl_load (); | |
10902 | int | |
10903 | main () | |
10904 | { | |
10905 | return shl_load (); | |
10906 | ; | |
10907 | return 0; | |
10908 | } | |
10909 | _ACEOF | |
10910 | if ac_fn_c_try_link "$LINENO"; then : | |
10911 | ac_cv_lib_dld_shl_load=yes | |
10912 | else | |
10913 | ac_cv_lib_dld_shl_load=no | |
10914 | fi | |
10915 | rm -f core conftest.err conftest.$ac_objext \ | |
10916 | conftest$ac_exeext conftest.$ac_ext | |
10917 | LIBS=$ac_check_lib_save_LIBS | |
10918 | fi | |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10920 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10921 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10922 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10923 | else | |
10924 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10925 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
10926 | lt_cv_dlopen="dlopen" | |
10927 | else | |
10928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10929 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10930 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10931 | $as_echo_n "(cached) " >&6 | |
10932 | else | |
10933 | ac_check_lib_save_LIBS=$LIBS | |
10934 | LIBS="-ldl $LIBS" | |
10935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10936 | /* end confdefs.h. */ | |
10937 | ||
10938 | /* Override any GCC internal prototype to avoid an error. | |
10939 | Use char because int might match the return type of a GCC | |
10940 | builtin and then its argument prototype would still apply. */ | |
10941 | #ifdef __cplusplus | |
10942 | extern "C" | |
10943 | #endif | |
10944 | char dlopen (); | |
10945 | int | |
10946 | main () | |
10947 | { | |
10948 | return dlopen (); | |
10949 | ; | |
10950 | return 0; | |
10951 | } | |
10952 | _ACEOF | |
10953 | if ac_fn_c_try_link "$LINENO"; then : | |
10954 | ac_cv_lib_dl_dlopen=yes | |
10955 | else | |
10956 | ac_cv_lib_dl_dlopen=no | |
10957 | fi | |
10958 | rm -f core conftest.err conftest.$ac_objext \ | |
10959 | conftest$ac_exeext conftest.$ac_ext | |
10960 | LIBS=$ac_check_lib_save_LIBS | |
10961 | fi | |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10963 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10964 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10965 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10966 | else | |
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
10968 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10969 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10970 | $as_echo_n "(cached) " >&6 | |
10971 | else | |
10972 | ac_check_lib_save_LIBS=$LIBS | |
10973 | LIBS="-lsvld $LIBS" | |
10974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10975 | /* end confdefs.h. */ | |
10976 | ||
10977 | /* Override any GCC internal prototype to avoid an error. | |
10978 | Use char because int might match the return type of a GCC | |
10979 | builtin and then its argument prototype would still apply. */ | |
10980 | #ifdef __cplusplus | |
10981 | extern "C" | |
10982 | #endif | |
10983 | char dlopen (); | |
10984 | int | |
10985 | main () | |
10986 | { | |
10987 | return dlopen (); | |
10988 | ; | |
10989 | return 0; | |
10990 | } | |
10991 | _ACEOF | |
10992 | if ac_fn_c_try_link "$LINENO"; then : | |
10993 | ac_cv_lib_svld_dlopen=yes | |
10994 | else | |
10995 | ac_cv_lib_svld_dlopen=no | |
10996 | fi | |
10997 | rm -f core conftest.err conftest.$ac_objext \ | |
10998 | conftest$ac_exeext conftest.$ac_ext | |
10999 | LIBS=$ac_check_lib_save_LIBS | |
11000 | fi | |
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11002 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11003 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
11004 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11005 | else | |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11007 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11008 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11009 | $as_echo_n "(cached) " >&6 | |
11010 | else | |
11011 | ac_check_lib_save_LIBS=$LIBS | |
11012 | LIBS="-ldld $LIBS" | |
11013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11014 | /* end confdefs.h. */ | |
11015 | ||
11016 | /* Override any GCC internal prototype to avoid an error. | |
11017 | Use char because int might match the return type of a GCC | |
11018 | builtin and then its argument prototype would still apply. */ | |
11019 | #ifdef __cplusplus | |
11020 | extern "C" | |
11021 | #endif | |
11022 | char dld_link (); | |
11023 | int | |
11024 | main () | |
11025 | { | |
11026 | return dld_link (); | |
11027 | ; | |
11028 | return 0; | |
11029 | } | |
11030 | _ACEOF | |
11031 | if ac_fn_c_try_link "$LINENO"; then : | |
11032 | ac_cv_lib_dld_dld_link=yes | |
11033 | else | |
11034 | ac_cv_lib_dld_dld_link=no | |
11035 | fi | |
11036 | rm -f core conftest.err conftest.$ac_objext \ | |
11037 | conftest$ac_exeext conftest.$ac_ext | |
11038 | LIBS=$ac_check_lib_save_LIBS | |
11039 | fi | |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11041 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11042 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
11043 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11044 | fi | |
11045 | ||
11046 | ||
11047 | fi | |
11048 | ||
11049 | ||
11050 | fi | |
11051 | ||
11052 | ||
11053 | fi | |
11054 | ||
11055 | ||
11056 | fi | |
11057 | ||
11058 | ||
11059 | fi | |
11060 | ||
11061 | ;; | |
11062 | esac | |
11063 | ||
11064 | if test "x$lt_cv_dlopen" != xno; then | |
11065 | enable_dlopen=yes | |
11066 | else | |
11067 | enable_dlopen=no | |
11068 | fi | |
11069 | ||
11070 | case $lt_cv_dlopen in | |
11071 | dlopen) | |
11072 | save_CPPFLAGS="$CPPFLAGS" | |
11073 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11074 | ||
11075 | save_LDFLAGS="$LDFLAGS" | |
11076 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11077 | ||
11078 | save_LIBS="$LIBS" | |
11079 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11080 | ||
11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11082 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11083 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11084 | $as_echo_n "(cached) " >&6 | |
11085 | else | |
11086 | if test "$cross_compiling" = yes; then : | |
11087 | lt_cv_dlopen_self=cross | |
11088 | else | |
11089 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11090 | lt_status=$lt_dlunknown | |
11091 | cat > conftest.$ac_ext <<_LT_EOF | |
459260ec | 11092 | #line 11092 "configure" |
eff02e4f ILT |
11093 | #include "confdefs.h" |
11094 | ||
11095 | #if HAVE_DLFCN_H | |
11096 | #include <dlfcn.h> | |
11097 | #endif | |
11098 | ||
11099 | #include <stdio.h> | |
11100 | ||
11101 | #ifdef RTLD_GLOBAL | |
11102 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11103 | #else | |
11104 | # ifdef DL_GLOBAL | |
11105 | # define LT_DLGLOBAL DL_GLOBAL | |
11106 | # else | |
11107 | # define LT_DLGLOBAL 0 | |
11108 | # endif | |
11109 | #endif | |
11110 | ||
11111 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11112 | find out it does not work in some platform. */ | |
11113 | #ifndef LT_DLLAZY_OR_NOW | |
11114 | # ifdef RTLD_LAZY | |
11115 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11116 | # else | |
11117 | # ifdef DL_LAZY | |
11118 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11119 | # else | |
11120 | # ifdef RTLD_NOW | |
11121 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11122 | # else | |
11123 | # ifdef DL_NOW | |
11124 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11125 | # else | |
11126 | # define LT_DLLAZY_OR_NOW 0 | |
11127 | # endif | |
11128 | # endif | |
11129 | # endif | |
11130 | # endif | |
11131 | #endif | |
11132 | ||
11133 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11134 | correspondingly for the symbols needed. */ | |
11135 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11136 | void fnord () __attribute__((visibility("default"))); | |
11137 | #endif | |
11138 | ||
11139 | void fnord () { int i=42; } | |
11140 | int main () | |
11141 | { | |
11142 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11143 | int status = $lt_dlunknown; | |
11144 | ||
11145 | if (self) | |
11146 | { | |
11147 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11148 | else | |
11149 | { | |
11150 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11151 | else puts (dlerror ()); | |
11152 | } | |
11153 | /* dlclose (self); */ | |
11154 | } | |
11155 | else | |
11156 | puts (dlerror ()); | |
11157 | ||
11158 | return status; | |
11159 | } | |
11160 | _LT_EOF | |
11161 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11162 | (eval $ac_link) 2>&5 | |
11163 | ac_status=$? | |
11164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11165 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11166 | (./conftest; exit; ) >&5 2>/dev/null | |
11167 | lt_status=$? | |
11168 | case x$lt_status in | |
11169 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11170 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11171 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11172 | esac | |
11173 | else : | |
11174 | # compilation failed | |
11175 | lt_cv_dlopen_self=no | |
11176 | fi | |
11177 | fi | |
11178 | rm -fr conftest* | |
11179 | ||
11180 | ||
11181 | fi | |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11183 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11184 | ||
11185 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11186 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11188 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11189 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11190 | $as_echo_n "(cached) " >&6 | |
11191 | else | |
11192 | if test "$cross_compiling" = yes; then : | |
11193 | lt_cv_dlopen_self_static=cross | |
11194 | else | |
11195 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11196 | lt_status=$lt_dlunknown | |
11197 | cat > conftest.$ac_ext <<_LT_EOF | |
459260ec | 11198 | #line 11198 "configure" |
eff02e4f ILT |
11199 | #include "confdefs.h" |
11200 | ||
11201 | #if HAVE_DLFCN_H | |
11202 | #include <dlfcn.h> | |
11203 | #endif | |
11204 | ||
11205 | #include <stdio.h> | |
11206 | ||
11207 | #ifdef RTLD_GLOBAL | |
11208 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11209 | #else | |
11210 | # ifdef DL_GLOBAL | |
11211 | # define LT_DLGLOBAL DL_GLOBAL | |
11212 | # else | |
11213 | # define LT_DLGLOBAL 0 | |
11214 | # endif | |
11215 | #endif | |
11216 | ||
11217 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11218 | find out it does not work in some platform. */ | |
11219 | #ifndef LT_DLLAZY_OR_NOW | |
11220 | # ifdef RTLD_LAZY | |
11221 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11222 | # else | |
11223 | # ifdef DL_LAZY | |
11224 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11225 | # else | |
11226 | # ifdef RTLD_NOW | |
11227 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11228 | # else | |
11229 | # ifdef DL_NOW | |
11230 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11231 | # else | |
11232 | # define LT_DLLAZY_OR_NOW 0 | |
11233 | # endif | |
11234 | # endif | |
11235 | # endif | |
11236 | # endif | |
11237 | #endif | |
11238 | ||
11239 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11240 | correspondingly for the symbols needed. */ | |
11241 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11242 | void fnord () __attribute__((visibility("default"))); | |
11243 | #endif | |
11244 | ||
11245 | void fnord () { int i=42; } | |
11246 | int main () | |
11247 | { | |
11248 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11249 | int status = $lt_dlunknown; | |
11250 | ||
11251 | if (self) | |
11252 | { | |
11253 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11254 | else | |
11255 | { | |
11256 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11257 | else puts (dlerror ()); | |
11258 | } | |
11259 | /* dlclose (self); */ | |
11260 | } | |
11261 | else | |
11262 | puts (dlerror ()); | |
11263 | ||
11264 | return status; | |
11265 | } | |
11266 | _LT_EOF | |
11267 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11268 | (eval $ac_link) 2>&5 | |
11269 | ac_status=$? | |
11270 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11271 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11272 | (./conftest; exit; ) >&5 2>/dev/null | |
11273 | lt_status=$? | |
11274 | case x$lt_status in | |
11275 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11276 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11277 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11278 | esac | |
11279 | else : | |
11280 | # compilation failed | |
11281 | lt_cv_dlopen_self_static=no | |
11282 | fi | |
11283 | fi | |
11284 | rm -fr conftest* | |
11285 | ||
11286 | ||
11287 | fi | |
11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11289 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11290 | fi | |
11291 | ||
11292 | CPPFLAGS="$save_CPPFLAGS" | |
11293 | LDFLAGS="$save_LDFLAGS" | |
11294 | LIBS="$save_LIBS" | |
11295 | ;; | |
11296 | esac | |
11297 | ||
11298 | case $lt_cv_dlopen_self in | |
11299 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11300 | *) enable_dlopen_self=unknown ;; | |
11301 | esac | |
11302 | ||
11303 | case $lt_cv_dlopen_self_static in | |
11304 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11305 | *) enable_dlopen_self_static=unknown ;; | |
11306 | esac | |
11307 | fi | |
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | ||
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
11325 | striplib= | |
11326 | old_striplib= | |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11328 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11329 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11330 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11331 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11333 | $as_echo "yes" >&6; } | |
11334 | else | |
11335 | # FIXME - insert some real tests, host_os isn't really good enough | |
11336 | case $host_os in | |
11337 | darwin*) | |
11338 | if test -n "$STRIP" ; then | |
11339 | striplib="$STRIP -x" | |
11340 | old_striplib="$STRIP -S" | |
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11342 | $as_echo "yes" >&6; } | |
11343 | else | |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11345 | $as_echo "no" >&6; } | |
11346 | fi | |
11347 | ;; | |
11348 | *) | |
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11350 | $as_echo "no" >&6; } | |
11351 | ;; | |
11352 | esac | |
11353 | fi | |
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | # Report which library types will actually be built | |
11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11368 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11370 | $as_echo "$can_build_shared" >&6; } | |
11371 | ||
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11373 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11374 | test "$can_build_shared" = "no" && enable_shared=no | |
11375 | ||
11376 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11377 | # are all built from PIC. | |
11378 | case $host_os in | |
11379 | aix3*) | |
11380 | test "$enable_shared" = yes && enable_static=no | |
11381 | if test -n "$RANLIB"; then | |
11382 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11383 | postinstall_cmds='$RANLIB $lib' | |
11384 | fi | |
11385 | ;; | |
11386 | ||
11387 | aix[4-9]*) | |
11388 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11389 | test "$enable_shared" = yes && enable_static=no | |
11390 | fi | |
11391 | ;; | |
11392 | esac | |
11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11394 | $as_echo "$enable_shared" >&6; } | |
11395 | ||
11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11397 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11398 | # Make sure either enable_shared or enable_static is yes. | |
11399 | test "$enable_shared" = yes || enable_static=yes | |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11401 | $as_echo "$enable_static" >&6; } | |
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | fi | |
11407 | ac_ext=c | |
11408 | ac_cpp='$CPP $CPPFLAGS' | |
11409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11412 | ||
11413 | CC="$lt_save_CC" | |
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ac_config_commands="$ac_config_commands libtool" | |
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | # Only expand once: | |
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | backtrace_supported=yes | |
11438 | ||
11439 | if test -n "${with_target_subdir}"; then | |
11440 | # We are compiling a GCC library. We can assume that the unwind | |
11441 | # library exists. | |
11442 | # Default to --enable-multilib | |
11443 | # Check whether --enable-multilib was given. | |
11444 | if test "${enable_multilib+set}" = set; then : | |
11445 | enableval=$enable_multilib; case "$enableval" in | |
11446 | yes) multilib=yes ;; | |
11447 | no) multilib=no ;; | |
11448 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; | |
11449 | esac | |
11450 | else | |
11451 | multilib=yes | |
11452 | fi | |
11453 | ||
11454 | ||
11455 | # We may get other options which we leave undocumented: | |
11456 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
11457 | # See config-ml.in if you want the gory details. | |
11458 | ||
11459 | if test "$srcdir" = "."; then | |
11460 | if test "$with_target_subdir" != "."; then | |
11461 | multi_basedir="$srcdir/$with_multisrctop../.." | |
11462 | else | |
11463 | multi_basedir="$srcdir/$with_multisrctop.." | |
11464 | fi | |
11465 | else | |
11466 | multi_basedir="$srcdir/.." | |
11467 | fi | |
11468 | ||
11469 | ||
11470 | # Even if the default multilib is not a cross compilation, | |
11471 | # it may be that some of the other multilibs are. | |
11472 | if test $cross_compiling = no && test $multilib = yes \ | |
11473 | && test "x${with_multisubdir}" != x ; then | |
11474 | cross_compiling=maybe | |
11475 | fi | |
11476 | ||
11477 | ac_config_commands="$ac_config_commands default-1" | |
11478 | ||
11479 | BACKTRACE_FILE="backtrace.lo simple.lo" | |
11480 | else | |
11481 | ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" | |
11482 | if test "x$ac_cv_header_unwind_h" = x""yes; then : | |
11483 | ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace" | |
11484 | if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then : | |
11485 | BACKTRACE_FILE="backtrace.lo simple.lo" | |
11486 | else | |
11487 | BACKTRACE_FILE="nounwind.lo" | |
11488 | backtrace_supported=no | |
11489 | fi | |
11490 | ||
11491 | else | |
11492 | BACKTRACE_FILE="nounwind.lo" | |
11493 | backtrace_supported=no | |
11494 | fi | |
11495 | ||
11496 | ||
11497 | fi | |
11498 | ||
11499 | ||
56195009 | 11500 | EXTRA_FLAGS= |
32061319 | 11501 | if test -n "${with_target_subdir}"; then |
36a58fb3 | 11502 | EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@" |
32061319 ILT |
11503 | else |
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5 | |
11505 | $as_echo_n "checking for -funwind-tables option... " >&6; } | |
11506 | if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then : | |
11507 | $as_echo_n "(cached) " >&6 | |
11508 | else | |
11509 | CFLAGS_hold="$CFLAGS" | |
11510 | CFLAGS="$CFLAGS -funwind-tables" | |
11511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11512 | /* end confdefs.h. */ | |
11513 | static int f() { return 0; } | |
11514 | int | |
11515 | main () | |
11516 | { | |
11517 | return f(); | |
11518 | ; | |
11519 | return 0; | |
11520 | } | |
11521 | _ACEOF | |
11522 | if ac_fn_c_try_compile "$LINENO"; then : | |
11523 | libbacktrace_cv_c_unwind_tables=yes | |
11524 | else | |
11525 | libbacktrace_cv_c_unwind_tables=no | |
11526 | fi | |
11527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11528 | CFLAGS="$CFLAGS_hold" | |
11529 | fi | |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5 | |
11531 | $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; } | |
36a58fb3 JJ |
11532 | if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then |
11533 | EXTRA_FLAGS=-funwind-tables | |
11534 | fi | |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5 | |
11536 | $as_echo_n "checking for -frandom-seed=string option... " >&6; } | |
11537 | if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then : | |
11538 | $as_echo_n "(cached) " >&6 | |
11539 | else | |
11540 | CFLAGS_hold="$CFLAGS" | |
11541 | CFLAGS="$CFLAGS -frandom-seed=conftest.lo" | |
11542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11543 | /* end confdefs.h. */ | |
11544 | ||
11545 | int | |
11546 | main () | |
11547 | { | |
11548 | return 0; | |
11549 | ; | |
11550 | return 0; | |
11551 | } | |
11552 | _ACEOF | |
11553 | if ac_fn_c_try_compile "$LINENO"; then : | |
11554 | libbacktrace_cv_c_random_seed_string=yes | |
11555 | else | |
11556 | libbacktrace_cv_c_random_seed_string=no | |
11557 | fi | |
11558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11559 | CFLAGS="$CFLAGS_hold" | |
11560 | fi | |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 | |
11562 | $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } | |
11563 | if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then | |
11564 | EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" | |
11565 | fi | |
56195009 UB |
11566 | fi |
11567 | ||
11568 | ||
eff02e4f ILT |
11569 | WARN_FLAGS= |
11570 | save_CFLAGS="$CFLAGS" | |
11571 | for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ | |
11572 | -Wmissing-prototypes -Wold-style-definition \ | |
11573 | -Wmissing-format-attribute -Wcast-qual; do | |
11574 | # Do the check with the no- prefix removed since gcc silently | |
11575 | # accepts any -Wno-* option on purpose | |
11576 | case $real_option in | |
11577 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
11578 | *) option=$real_option ;; | |
11579 | esac | |
11580 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
11581 | ||
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
11583 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
11584 | if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : | |
11585 | $as_echo_n "(cached) " >&6 | |
11586 | else | |
11587 | CFLAGS="$option" | |
11588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11589 | /* end confdefs.h. */ | |
11590 | ||
11591 | int | |
11592 | main () | |
11593 | { | |
11594 | ||
11595 | ; | |
11596 | return 0; | |
11597 | } | |
11598 | _ACEOF | |
11599 | if ac_fn_c_try_compile "$LINENO"; then : | |
11600 | eval "$as_acx_Woption=yes" | |
11601 | else | |
11602 | eval "$as_acx_Woption=no" | |
11603 | fi | |
11604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11605 | ||
11606 | fi | |
11607 | eval ac_res=\$$as_acx_Woption | |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11609 | $as_echo "$ac_res" >&6; } | |
11610 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
11611 | WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" | |
11612 | fi | |
11613 | done | |
11614 | CFLAGS="$save_CFLAGS" | |
11615 | ||
11616 | ||
73c3ed27 | 11617 | if test -n "${with_target_subdir}"; then |
eff02e4f ILT |
11618 | WARN_FLAGS="$WARN_FLAGS -Werror" |
11619 | fi | |
11620 | ||
11621 | ||
11622 | ||
64b89453 | 11623 | if test -n "${with_target_subdir}"; then |
eff02e4f ILT |
11624 | |
11625 | ||
11626 | # Check whether --with-system-libunwind was given. | |
11627 | if test "${with_system_libunwind+set}" = set; then : | |
11628 | withval=$with_system_libunwind; | |
11629 | fi | |
11630 | ||
11631 | # If system-libunwind was not specifically set, pick a default setting. | |
11632 | if test x$with_system_libunwind = x; then | |
11633 | case ${target} in | |
11634 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
11635 | *) with_system_libunwind=no ;; | |
11636 | esac | |
11637 | fi | |
11638 | # Based on system-libunwind and target, do we have ipinfo? | |
11639 | if test x$with_system_libunwind = xyes; then | |
11640 | case ${target} in | |
11641 | ia64-*-*) have_unwind_getipinfo=no ;; | |
11642 | *) have_unwind_getipinfo=yes ;; | |
11643 | esac | |
11644 | else | |
11645 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
11646 | ||
11647 | case ${target} in | |
11648 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
11649 | *) have_unwind_getipinfo=yes ;; | |
11650 | esac | |
11651 | ||
11652 | fi | |
11653 | ||
11654 | if test x$have_unwind_getipinfo = xyes; then | |
11655 | ||
11656 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
11657 | ||
11658 | fi | |
11659 | ||
64b89453 | 11660 | else |
385710cf JH |
11661 | ac_save_CFFLAGS="$CFLAGS" |
11662 | CFLAGS="$CFLAGS -Werror-implicit-function-declaration" | |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5 | |
11664 | $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; } | |
11665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11666 | /* end confdefs.h. */ | |
11667 | #include "unwind.h" | |
11668 | struct _Unwind_Context *context; | |
11669 | int ip_before_insn = 0; | |
11670 | int | |
11671 | main () | |
11672 | { | |
11673 | return _Unwind_GetIPInfo (context, &ip_before_insn); | |
11674 | ; | |
11675 | return 0; | |
11676 | } | |
11677 | _ACEOF | |
11678 | if ac_fn_c_try_compile "$LINENO"; then : | |
64b89453 ILT |
11679 | have_unwind_getipinfo=yes |
11680 | else | |
11681 | have_unwind_getipinfo=no | |
11682 | fi | |
385710cf JH |
11683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11684 | CFLAGS="$ac_save_CFLAGS" | |
11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5 | |
11686 | $as_echo "$have_unwind_getipinfo" >&6; } | |
64b89453 ILT |
11687 | if test "$have_unwind_getipinfo" = "yes"; then |
11688 | ||
11689 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
11690 | ||
11691 | fi | |
11692 | fi | |
eff02e4f ILT |
11693 | |
11694 | # When building as a target library, shared libraries may want to link | |
11695 | # this in. We don't want to provide another shared library to | |
11696 | # complicate dependencies. Instead, we just compile with -fPIC. | |
11697 | PIC_FLAG= | |
11698 | if test -n "${with_target_subdir}"; then | |
11699 | PIC_FLAG=-fPIC | |
11700 | fi | |
459260ec DM |
11701 | # Similarly, use -fPIC with --enable-host-shared: |
11702 | # Check whether --enable-host-shared was given. | |
11703 | if test "${enable_host_shared+set}" = set; then : | |
11704 | enableval=$enable_host_shared; PIC_FLAG=-fPIC | |
11705 | fi | |
11706 | ||
eff02e4f ILT |
11707 | |
11708 | ||
11709 | # Test for __sync support. | |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 | |
11711 | $as_echo_n "checking __sync extensions... " >&6; } | |
11712 | if test "${libbacktrace_cv_sys_sync+set}" = set; then : | |
11713 | $as_echo_n "(cached) " >&6 | |
11714 | else | |
11715 | if test -n "${with_target_subdir}"; then | |
11716 | libbacktrace_cv_sys_sync=yes | |
11717 | else | |
11718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11719 | /* end confdefs.h. */ | |
11720 | int i; | |
11721 | int | |
11722 | main () | |
11723 | { | |
11724 | __sync_bool_compare_and_swap (&i, i, i); | |
11725 | __sync_lock_test_and_set (&i, 1); | |
11726 | __sync_lock_release (&i); | |
11727 | ; | |
11728 | return 0; | |
11729 | } | |
11730 | _ACEOF | |
11731 | if ac_fn_c_try_link "$LINENO"; then : | |
11732 | libbacktrace_cv_sys_sync=yes | |
11733 | else | |
11734 | libbacktrace_cv_sys_sync=no | |
11735 | fi | |
11736 | rm -f core conftest.err conftest.$ac_objext \ | |
11737 | conftest$ac_exeext conftest.$ac_ext | |
11738 | fi | |
11739 | fi | |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5 | |
11741 | $as_echo "$libbacktrace_cv_sys_sync" >&6; } | |
11742 | BACKTRACE_SUPPORTS_THREADS=0 | |
11743 | if test "$libbacktrace_cv_sys_sync" = "yes"; then | |
11744 | BACKTRACE_SUPPORTS_THREADS=1 | |
11745 | ||
11746 | $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h | |
11747 | ||
11748 | fi | |
11749 | ||
11750 | ||
11751 | # The library needs to be able to read the executable itself. Compile | |
11752 | # a file to determine the executable format. The awk script | |
11753 | # filetype.awk prints out the file type. | |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 | |
11755 | $as_echo_n "checking output filetype... " >&6; } | |
11756 | if test "${libbacktrace_cv_sys_filetype+set}" = set; then : | |
11757 | $as_echo_n "(cached) " >&6 | |
11758 | else | |
11759 | filetype= | |
11760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11761 | /* end confdefs.h. */ | |
11762 | int i; | |
11763 | int | |
11764 | main () | |
11765 | { | |
11766 | int j; | |
11767 | ; | |
11768 | return 0; | |
11769 | } | |
11770 | _ACEOF | |
11771 | if ac_fn_c_try_compile "$LINENO"; then : | |
11772 | filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext` | |
11773 | else | |
11774 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11775 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11776 | as_fn_error "compiler failed | |
11777 | See \`config.log' for more details." "$LINENO" 5; } | |
11778 | fi | |
11779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11780 | libbacktrace_cv_sys_filetype=$filetype | |
11781 | fi | |
11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5 | |
11783 | $as_echo "$libbacktrace_cv_sys_filetype" >&6; } | |
11784 | ||
11785 | # Match the file type to decide what files to compile. | |
11786 | FORMAT_FILE= | |
11787 | case "$libbacktrace_cv_sys_filetype" in | |
11788 | elf*) FORMAT_FILE="elf.lo" ;; | |
11789 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 | |
11790 | $as_echo "$as_me: WARNING: could not determine output file type" >&2;} | |
11791 | FORMAT_FILE="unknown.lo" | |
11792 | backtrace_supported=no | |
11793 | ;; | |
11794 | esac | |
11795 | ||
11796 | ||
11797 | # ELF defines. | |
11798 | elfsize= | |
11799 | case "$libbacktrace_cv_sys_filetype" in | |
11800 | elf32) elfsize=32 ;; | |
11801 | elf64) elfsize=64 ;; | |
11802 | esac | |
11803 | ||
11804 | cat >>confdefs.h <<_ACEOF | |
11805 | #define BACKTRACE_ELF_SIZE $elfsize | |
11806 | _ACEOF | |
11807 | ||
11808 | ||
11809 | BACKTRACE_SUPPORTED=0 | |
11810 | if test "$backtrace_supported" = "yes"; then | |
11811 | BACKTRACE_SUPPORTED=1 | |
11812 | fi | |
11813 | ||
11814 | ||
76850556 RO |
11815 | |
11816 | ||
11817 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
11818 | ||
11819 | acx_cv_header_stdint=stddef.h | |
11820 | acx_cv_header_stdint_kind="(already complete)" | |
11821 | for i in stdint.h $inttype_headers; do | |
11822 | unset ac_cv_type_uintptr_t | |
11823 | unset ac_cv_type_uintmax_t | |
11824 | unset ac_cv_type_int_least32_t | |
11825 | unset ac_cv_type_int_fast32_t | |
11826 | unset ac_cv_type_uint64_t | |
11827 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
11828 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
11829 | #include <$i> | |
11830 | " | |
11831 | if test "x$ac_cv_type_uintmax_t" = x""yes; then : | |
11832 | acx_cv_header_stdint=$i | |
11833 | else | |
11834 | continue | |
11835 | fi | |
11836 | ||
11837 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
11838 | #include <$i> | |
11839 | " | |
11840 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
11841 | ||
11842 | else | |
11843 | acx_cv_header_stdint_kind="(mostly complete)" | |
11844 | fi | |
11845 | ||
11846 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
11847 | #include <$i> | |
11848 | " | |
11849 | if test "x$ac_cv_type_int_least32_t" = x""yes; then : | |
11850 | ||
11851 | else | |
11852 | acx_cv_header_stdint_kind="(mostly complete)" | |
11853 | fi | |
11854 | ||
11855 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
11856 | #include <$i> | |
11857 | " | |
11858 | if test "x$ac_cv_type_int_fast32_t" = x""yes; then : | |
11859 | ||
11860 | else | |
11861 | acx_cv_header_stdint_kind="(mostly complete)" | |
11862 | fi | |
11863 | ||
11864 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
11865 | #include <$i> | |
11866 | " | |
11867 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
11868 | ||
11869 | else | |
11870 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
11871 | fi | |
11872 | ||
11873 | break | |
11874 | done | |
11875 | if test "$acx_cv_header_stdint" = stddef.h; then | |
11876 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
11877 | for i in stdint.h $inttype_headers; do | |
11878 | unset ac_cv_type_uintptr_t | |
11879 | unset ac_cv_type_uint32_t | |
11880 | unset ac_cv_type_uint64_t | |
11881 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
11882 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
11883 | #include <$i> | |
11884 | " | |
11885 | if test "x$ac_cv_type_uint32_t" = x""yes; then : | |
11886 | acx_cv_header_stdint=$i | |
11887 | else | |
11888 | continue | |
11889 | fi | |
11890 | ||
11891 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
11892 | #include <$i> | |
11893 | " | |
11894 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
11895 | ||
11896 | fi | |
11897 | ||
11898 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
11899 | #include <$i> | |
11900 | " | |
11901 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
11902 | ||
11903 | fi | |
11904 | ||
11905 | break | |
11906 | done | |
11907 | fi | |
11908 | if test "$acx_cv_header_stdint" = stddef.h; then | |
11909 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
11910 | for i in sys/types.h $inttype_headers; do | |
11911 | unset ac_cv_type_u_int32_t | |
11912 | unset ac_cv_type_u_int64_t | |
11913 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
11914 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
11915 | #include <$i> | |
11916 | " | |
11917 | if test "x$ac_cv_type_u_int32_t" = x""yes; then : | |
11918 | acx_cv_header_stdint=$i | |
11919 | else | |
11920 | continue | |
11921 | fi | |
11922 | ||
11923 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
11924 | #include <$i> | |
11925 | " | |
11926 | if test "x$ac_cv_type_u_int64_t" = x""yes; then : | |
11927 | ||
11928 | fi | |
11929 | ||
11930 | break | |
11931 | done | |
11932 | fi | |
11933 | if test "$acx_cv_header_stdint" = stddef.h; then | |
11934 | acx_cv_header_stdint_kind="(using manual detection)" | |
11935 | fi | |
11936 | ||
11937 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
11938 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
11939 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
11940 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
11941 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
11942 | ||
11943 | # ----------------- Summarize what we found so far | |
11944 | ||
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 | |
11946 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
11947 | ||
11948 | case `$as_basename -- gstdint.h || | |
11949 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
11950 | Xgstdint.h : 'X\(//\)$' \| \ | |
11951 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
11952 | $as_echo X/gstdint.h | | |
11953 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
11954 | s//\1/ | |
11955 | q | |
11956 | } | |
11957 | /^X\/\(\/\/\)$/{ | |
11958 | s//\1/ | |
11959 | q | |
11960 | } | |
11961 | /^X\/\(\/\).*/{ | |
11962 | s//\1/ | |
11963 | q | |
11964 | } | |
11965 | s/.*/./; q'` in | |
11966 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
11967 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
11968 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
11969 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
11970 | *) ;; | |
11971 | esac | |
11972 | ||
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
11974 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
11975 | ||
11976 | # ----------------- done included file, check C basic types -------- | |
11977 | ||
11978 | # Lacking an uintptr_t? Test size of void * | |
11979 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
11980 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
11981 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11982 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11983 | # This bug is HP SR number 8606223364. | |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
11985 | $as_echo_n "checking size of void *... " >&6; } | |
11986 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
11987 | $as_echo_n "(cached) " >&6 | |
11988 | else | |
11989 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
11990 | ||
11991 | else | |
11992 | if test "$ac_cv_type_void_p" = yes; then | |
11993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11994 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11995 | { as_fn_set_status 77 | |
11996 | as_fn_error "cannot compute sizeof (void *) | |
11997 | See \`config.log' for more details." "$LINENO" 5; }; } | |
11998 | else | |
11999 | ac_cv_sizeof_void_p=0 | |
12000 | fi | |
12001 | fi | |
12002 | ||
12003 | fi | |
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
12005 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
12006 | ||
12007 | ||
12008 | ||
12009 | cat >>confdefs.h <<_ACEOF | |
12010 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12011 | _ACEOF | |
12012 | ||
12013 | ;; | |
12014 | esac | |
12015 | ||
12016 | # Lacking an uint64_t? Test size of long | |
12017 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
12018 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
12019 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12020 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12021 | # This bug is HP SR number 8606223364. | |
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12023 | $as_echo_n "checking size of long... " >&6; } | |
12024 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
12025 | $as_echo_n "(cached) " >&6 | |
12026 | else | |
12027 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12028 | ||
12029 | else | |
12030 | if test "$ac_cv_type_long" = yes; then | |
12031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12033 | { as_fn_set_status 77 | |
12034 | as_fn_error "cannot compute sizeof (long) | |
12035 | See \`config.log' for more details." "$LINENO" 5; }; } | |
12036 | else | |
12037 | ac_cv_sizeof_long=0 | |
12038 | fi | |
12039 | fi | |
12040 | ||
12041 | fi | |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12043 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
12044 | ||
12045 | ||
12046 | ||
12047 | cat >>confdefs.h <<_ACEOF | |
12048 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12049 | _ACEOF | |
12050 | ||
12051 | ;; | |
12052 | esac | |
12053 | ||
12054 | if test $acx_cv_header_stdint = stddef.h; then | |
12055 | # Lacking a good header? Test size of everything and deduce all types. | |
12056 | # The cast to long int works around a bug in the HP C Compiler | |
12057 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12058 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12059 | # This bug is HP SR number 8606223364. | |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12061 | $as_echo_n "checking size of int... " >&6; } | |
12062 | if test "${ac_cv_sizeof_int+set}" = set; then : | |
12063 | $as_echo_n "(cached) " >&6 | |
12064 | else | |
12065 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
12066 | ||
12067 | else | |
12068 | if test "$ac_cv_type_int" = yes; then | |
12069 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12070 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12071 | { as_fn_set_status 77 | |
12072 | as_fn_error "cannot compute sizeof (int) | |
12073 | See \`config.log' for more details." "$LINENO" 5; }; } | |
12074 | else | |
12075 | ac_cv_sizeof_int=0 | |
12076 | fi | |
12077 | fi | |
12078 | ||
12079 | fi | |
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
12081 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
12082 | ||
12083 | ||
12084 | ||
12085 | cat >>confdefs.h <<_ACEOF | |
12086 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12087 | _ACEOF | |
12088 | ||
12089 | ||
12090 | # The cast to long int works around a bug in the HP C Compiler | |
12091 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12092 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12093 | # This bug is HP SR number 8606223364. | |
12094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12095 | $as_echo_n "checking size of short... " >&6; } | |
12096 | if test "${ac_cv_sizeof_short+set}" = set; then : | |
12097 | $as_echo_n "(cached) " >&6 | |
12098 | else | |
12099 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
12100 | ||
12101 | else | |
12102 | if test "$ac_cv_type_short" = yes; then | |
12103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12104 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12105 | { as_fn_set_status 77 | |
12106 | as_fn_error "cannot compute sizeof (short) | |
12107 | See \`config.log' for more details." "$LINENO" 5; }; } | |
12108 | else | |
12109 | ac_cv_sizeof_short=0 | |
12110 | fi | |
12111 | fi | |
12112 | ||
12113 | fi | |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
12115 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
12116 | ||
12117 | ||
12118 | ||
12119 | cat >>confdefs.h <<_ACEOF | |
12120 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12121 | _ACEOF | |
12122 | ||
12123 | ||
12124 | # The cast to long int works around a bug in the HP C Compiler | |
12125 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12126 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12127 | # This bug is HP SR number 8606223364. | |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
12129 | $as_echo_n "checking size of char... " >&6; } | |
12130 | if test "${ac_cv_sizeof_char+set}" = set; then : | |
12131 | $as_echo_n "(cached) " >&6 | |
12132 | else | |
12133 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
12134 | ||
12135 | else | |
12136 | if test "$ac_cv_type_char" = yes; then | |
12137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12139 | { as_fn_set_status 77 | |
12140 | as_fn_error "cannot compute sizeof (char) | |
12141 | See \`config.log' for more details." "$LINENO" 5; }; } | |
12142 | else | |
12143 | ac_cv_sizeof_char=0 | |
12144 | fi | |
12145 | fi | |
12146 | ||
12147 | fi | |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
12149 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
12150 | ||
12151 | ||
12152 | ||
12153 | cat >>confdefs.h <<_ACEOF | |
12154 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
12155 | _ACEOF | |
12156 | ||
12157 | ||
12158 | ||
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
12160 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
12161 | case "$ac_cv_sizeof_char" in | |
12162 | 1) acx_cv_type_int8_t=char ;; | |
12163 | *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 | |
12164 | esac | |
12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
12166 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
12167 | ||
12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
12169 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
12170 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
12171 | 2:*) acx_cv_type_int16_t=int ;; | |
12172 | *:2) acx_cv_type_int16_t=short ;; | |
12173 | *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 | |
12174 | esac | |
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
12176 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
12177 | ||
12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
12179 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
12180 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
12181 | 4:*) acx_cv_type_int32_t=int ;; | |
12182 | *:4) acx_cv_type_int32_t=long ;; | |
12183 | *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 | |
12184 | esac | |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
12186 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
12187 | fi | |
12188 | ||
12189 | # These tests are here to make the output prettier | |
12190 | ||
12191 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
12192 | case "$ac_cv_sizeof_long" in | |
12193 | 8) acx_cv_type_int64_t=long ;; | |
12194 | esac | |
12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
12196 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
12198 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
12199 | fi | |
12200 | ||
12201 | # Now we can use the above types | |
12202 | ||
12203 | if test "$ac_cv_type_uintptr_t" != yes; then | |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
12205 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
12206 | case $ac_cv_sizeof_void_p in | |
12207 | 2) acx_cv_type_intptr_t=int16_t ;; | |
12208 | 4) acx_cv_type_intptr_t=int32_t ;; | |
12209 | 8) acx_cv_type_intptr_t=int64_t ;; | |
12210 | *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 | |
12211 | esac | |
12212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
12213 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
12214 | fi | |
12215 | ||
12216 | # ----------------- done all checks, emit header ------------- | |
12217 | ac_config_commands="$ac_config_commands gstdint.h" | |
12218 | ||
12219 | ||
12220 | ||
12221 | ||
eff02e4f ILT |
12222 | for ac_header in sys/mman.h |
12223 | do : | |
12224 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
12225 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
12226 | cat >>confdefs.h <<_ACEOF | |
12227 | #define HAVE_SYS_MMAN_H 1 | |
12228 | _ACEOF | |
12229 | ||
12230 | fi | |
12231 | ||
12232 | done | |
12233 | ||
12234 | if test "$ac_cv_header_sys_mman_h" = "no"; then | |
12235 | have_mmap=no | |
12236 | else | |
12237 | if test -n "${with_target_subdir}"; then | |
12238 | # When built as a GCC target library, we can't do a link test. We | |
12239 | # simply assume that if we have mman.h, we have mmap. | |
12240 | have_mmap=yes | |
12241 | else | |
12242 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
12243 | if test "x$ac_cv_func_mmap" = x""yes; then : | |
12244 | have_mmap=yes | |
12245 | else | |
12246 | have_mmap=no | |
12247 | fi | |
12248 | ||
12249 | fi | |
12250 | fi | |
12251 | if test "$have_mmap" = "no"; then | |
12252 | VIEW_FILE=read.lo | |
12253 | ALLOC_FILE=alloc.lo | |
12254 | else | |
12255 | VIEW_FILE=mmapio.lo | |
12256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12257 | /* end confdefs.h. */ | |
12258 | ||
12259 | #include <sys/mman.h> | |
12260 | #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | |
12261 | #error no MAP_ANONYMOUS | |
12262 | #endif | |
12263 | ||
12264 | _ACEOF | |
12265 | if ac_fn_c_try_cpp "$LINENO"; then : | |
12266 | ALLOC_FILE=mmap.lo | |
12267 | else | |
12268 | ALLOC_FILE=alloc.lo | |
12269 | fi | |
12270 | rm -f conftest.err conftest.$ac_ext | |
12271 | fi | |
12272 | ||
12273 | ||
12274 | ||
12275 | BACKTRACE_USES_MALLOC=0 | |
12276 | if test "$ALLOC_FILE" = "alloc.lo"; then | |
12277 | BACKTRACE_USES_MALLOC=1 | |
12278 | fi | |
12279 | ||
12280 | ||
e561a992 ILT |
12281 | # Check for dl_iterate_phdr. |
12282 | for ac_header in link.h | |
12283 | do : | |
12284 | ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" | |
12285 | if test "x$ac_cv_header_link_h" = x""yes; then : | |
12286 | cat >>confdefs.h <<_ACEOF | |
12287 | #define HAVE_LINK_H 1 | |
12288 | _ACEOF | |
12289 | ||
12290 | fi | |
12291 | ||
12292 | done | |
12293 | ||
12294 | if test "$ac_cv_header_link_h" = "no"; then | |
12295 | have_dl_iterate_phdr=no | |
12296 | else | |
12297 | if test -n "${with_target_subdir}"; then | |
12298 | # When built as a GCC target library, we can't do a link test. | |
12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12300 | /* end confdefs.h. */ | |
12301 | #include <link.h> | |
12302 | ||
12303 | _ACEOF | |
12304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12305 | $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : | |
12306 | have_dl_iterate_phdr=yes | |
12307 | else | |
12308 | have_dl_iterate_phdr=no | |
12309 | fi | |
12310 | rm -f conftest* | |
12311 | ||
5551b12c ILT |
12312 | case "${host}" in |
12313 | *-*-solaris2.10*) | |
12314 | # Avoid dl_iterate_phdr on Solaris 10, where it is in the | |
12315 | # header file but is only in -ldl. | |
12316 | have_dl_iterate_phdr=no ;; | |
12317 | esac | |
e561a992 ILT |
12318 | else |
12319 | ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" | |
12320 | if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then : | |
12321 | have_dl_iterate_phdr=yes | |
12322 | else | |
12323 | have_dl_iterate_phdr=no | |
12324 | fi | |
12325 | ||
12326 | fi | |
12327 | fi | |
12328 | if test "$have_dl_iterate_phdr" = "yes"; then | |
12329 | ||
12330 | $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h | |
12331 | ||
12332 | fi | |
12333 | ||
3319ef17 ILT |
12334 | # Check for the fcntl function. |
12335 | if test -n "${with_target_subdir}"; then | |
12336 | case "${host}" in | |
12337 | *-*-mingw*) have_fcntl=no ;; | |
12338 | *) have_fcntl=yes ;; | |
12339 | esac | |
12340 | else | |
12341 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
12342 | if test "x$ac_cv_func_fcntl" = x""yes; then : | |
12343 | have_fcntl=yes | |
12344 | else | |
12345 | have_fcntl=no | |
12346 | fi | |
12347 | ||
12348 | fi | |
12349 | if test "$have_fcntl" = "yes"; then | |
12350 | ||
12351 | $as_echo "#define HAVE_FCNTL 1" >>confdefs.h | |
12352 | ||
12353 | fi | |
12354 | ||
772a71a9 ILT |
12355 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" |
12356 | if test "x$ac_cv_have_decl_strnlen" = x""yes; then : | |
12357 | ac_have_decl=1 | |
12358 | else | |
12359 | ac_have_decl=0 | |
12360 | fi | |
12361 | ||
12362 | cat >>confdefs.h <<_ACEOF | |
12363 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
12364 | _ACEOF | |
12365 | ||
12366 | ||
33521509 ILT |
12367 | # Check for getexecname function. |
12368 | if test -n "${with_target_subdir}"; then | |
12369 | case "${host}" in | |
12370 | *-*-solaris2*) have_getexecname=yes ;; | |
12371 | *) have_getexecname=no ;; | |
12372 | esac | |
12373 | else | |
12374 | ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" | |
12375 | if test "x$ac_cv_func_getexecname" = x""yes; then : | |
12376 | have_getexecname=yes | |
12377 | else | |
12378 | have_getexecname=no | |
12379 | fi | |
12380 | ||
12381 | fi | |
12382 | if test "$have_getexecname" = "yes"; then | |
12383 | ||
12384 | $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h | |
12385 | ||
12386 | fi | |
12387 | ||
eff02e4f ILT |
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5 |
12389 | $as_echo_n "checking whether tests can run... " >&6; } | |
12390 | if test "${libbacktrace_cv_sys_native+set}" = set; then : | |
12391 | $as_echo_n "(cached) " >&6 | |
12392 | else | |
12393 | if test "$cross_compiling" = yes; then : | |
12394 | libbacktrace_cv_sys_native=no | |
12395 | else | |
12396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12397 | /* end confdefs.h. */ | |
12398 | ||
12399 | int | |
12400 | main () | |
12401 | { | |
12402 | return 0; | |
12403 | ; | |
12404 | return 0; | |
12405 | } | |
12406 | _ACEOF | |
12407 | if ac_fn_c_try_run "$LINENO"; then : | |
12408 | libbacktrace_cv_sys_native=yes | |
12409 | else | |
12410 | libbacktrace_cv_sys_native=no | |
12411 | fi | |
12412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12413 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12414 | fi | |
12415 | ||
12416 | fi | |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5 | |
12418 | $as_echo "$libbacktrace_cv_sys_native" >&6; } | |
12419 | if test "$libbacktrace_cv_sys_native" = "yes"; then | |
12420 | NATIVE_TRUE= | |
12421 | NATIVE_FALSE='#' | |
12422 | else | |
12423 | NATIVE_TRUE='#' | |
12424 | NATIVE_FALSE= | |
12425 | fi | |
12426 | ||
12427 | ||
12428 | if test "${multilib}" = "yes"; then | |
12429 | multilib_arg="--enable-multilib" | |
12430 | else | |
12431 | multilib_arg= | |
12432 | fi | |
12433 | ||
12434 | ac_config_files="$ac_config_files Makefile backtrace-supported.h" | |
12435 | ||
12436 | ||
12437 | # We need multilib support, but only if configuring for the target. | |
12438 | ac_config_commands="$ac_config_commands default" | |
12439 | ||
12440 | ||
12441 | cat >confcache <<\_ACEOF | |
12442 | # This file is a shell script that caches the results of configure | |
12443 | # tests run on this system so they can be shared between configure | |
12444 | # scripts and configure runs, see configure's option --config-cache. | |
12445 | # It is not useful on other systems. If it contains results you don't | |
12446 | # want to keep, you may remove or edit it. | |
12447 | # | |
12448 | # config.status only pays attention to the cache file if you give it | |
12449 | # the --recheck option to rerun configure. | |
12450 | # | |
12451 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12452 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12453 | # following values. | |
12454 | ||
12455 | _ACEOF | |
12456 | ||
12457 | # The following way of writing the cache mishandles newlines in values, | |
12458 | # but we know of no workaround that is simple, portable, and efficient. | |
12459 | # So, we kill variables containing newlines. | |
12460 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12461 | # and sets the high bit in the cache file unless we assign to the vars. | |
12462 | ( | |
12463 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12464 | eval ac_val=\$$ac_var | |
12465 | case $ac_val in #( | |
12466 | *${as_nl}*) | |
12467 | case $ac_var in #( | |
12468 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
12469 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12470 | esac | |
12471 | case $ac_var in #( | |
12472 | _ | IFS | as_nl) ;; #( | |
12473 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12474 | *) { eval $ac_var=; unset $ac_var;} ;; | |
12475 | esac ;; | |
12476 | esac | |
12477 | done | |
12478 | ||
12479 | (set) 2>&1 | | |
12480 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12481 | *${as_nl}ac_space=\ *) | |
12482 | # `set' does not quote correctly, so add quotes: double-quote | |
12483 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
12484 | sed -n \ | |
12485 | "s/'/'\\\\''/g; | |
12486 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12487 | ;; #( | |
12488 | *) | |
12489 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12490 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12491 | ;; | |
12492 | esac | | |
12493 | sort | |
12494 | ) | | |
12495 | sed ' | |
12496 | /^ac_cv_env_/b end | |
12497 | t clear | |
12498 | :clear | |
12499 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12500 | t end | |
12501 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12502 | :end' >>confcache | |
12503 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12504 | if test -w "$cache_file"; then | |
12505 | test "x$cache_file" != "x/dev/null" && | |
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
12507 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
12508 | cat confcache >$cache_file | |
12509 | else | |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
12511 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
12512 | fi | |
12513 | fi | |
12514 | rm -f confcache | |
12515 | ||
12516 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12517 | # Let make expand exec_prefix. | |
12518 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12519 | ||
12520 | DEFS=-DHAVE_CONFIG_H | |
12521 | ||
12522 | ac_libobjs= | |
12523 | ac_ltlibobjs= | |
12524 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12525 | # 1. Remove the extension, and $U if already installed. | |
12526 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12527 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12528 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12529 | # will be set to the directory where LIBOBJS objects are built. | |
12530 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12531 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
12532 | done | |
12533 | LIBOBJS=$ac_libobjs | |
12534 | ||
12535 | LTLIBOBJS=$ac_ltlibobjs | |
12536 | ||
12537 | ||
12538 | if test -n "$EXEEXT"; then | |
12539 | am__EXEEXT_TRUE= | |
12540 | am__EXEEXT_FALSE='#' | |
12541 | else | |
12542 | am__EXEEXT_TRUE='#' | |
12543 | am__EXEEXT_FALSE= | |
12544 | fi | |
12545 | ||
12546 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12547 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
12548 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12549 | fi | |
eff02e4f ILT |
12550 | if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then |
12551 | as_fn_error "conditional \"NATIVE\" was never defined. | |
12552 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12553 | fi | |
12554 | ||
12555 | : ${CONFIG_STATUS=./config.status} | |
12556 | ac_write_fail=0 | |
12557 | ac_clean_files_save=$ac_clean_files | |
12558 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
12560 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12561 | as_write_fail=0 | |
12562 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
12563 | #! $SHELL | |
12564 | # Generated by $as_me. | |
12565 | # Run this file to recreate the current configuration. | |
12566 | # Compiler output produced by configure, useful for debugging | |
12567 | # configure, is in config.log if it exists. | |
12568 | ||
12569 | debug=false | |
12570 | ac_cs_recheck=false | |
12571 | ac_cs_silent=false | |
12572 | ||
12573 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12574 | export SHELL | |
12575 | _ASEOF | |
12576 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12577 | ## -------------------- ## | |
12578 | ## M4sh Initialization. ## | |
12579 | ## -------------------- ## | |
12580 | ||
12581 | # Be more Bourne compatible | |
12582 | DUALCASE=1; export DUALCASE # for MKS sh | |
12583 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
12584 | emulate sh | |
12585 | NULLCMD=: | |
12586 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12587 | # is contrary to our usage. Disable this feature. | |
12588 | alias -g '${1+"$@"}'='"$@"' | |
12589 | setopt NO_GLOB_SUBST | |
12590 | else | |
12591 | case `(set -o) 2>/dev/null` in #( | |
12592 | *posix*) : | |
12593 | set -o posix ;; #( | |
12594 | *) : | |
12595 | ;; | |
12596 | esac | |
12597 | fi | |
12598 | ||
12599 | ||
12600 | as_nl=' | |
12601 | ' | |
12602 | export as_nl | |
12603 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12604 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12605 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12606 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12607 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12608 | # but without wasting forks for bash or zsh. | |
12609 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12610 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12611 | as_echo='print -r --' | |
12612 | as_echo_n='print -rn --' | |
12613 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12614 | as_echo='printf %s\n' | |
12615 | as_echo_n='printf %s' | |
12616 | else | |
12617 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12618 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12619 | as_echo_n='/usr/ucb/echo -n' | |
12620 | else | |
12621 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12622 | as_echo_n_body='eval | |
12623 | arg=$1; | |
12624 | case $arg in #( | |
12625 | *"$as_nl"*) | |
12626 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12627 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12628 | esac; | |
12629 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12630 | ' | |
12631 | export as_echo_n_body | |
12632 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12633 | fi | |
12634 | export as_echo_body | |
12635 | as_echo='sh -c $as_echo_body as_echo' | |
12636 | fi | |
12637 | ||
12638 | # The user is always right. | |
12639 | if test "${PATH_SEPARATOR+set}" != set; then | |
12640 | PATH_SEPARATOR=: | |
12641 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12642 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12643 | PATH_SEPARATOR=';' | |
12644 | } | |
12645 | fi | |
12646 | ||
12647 | ||
12648 | # IFS | |
12649 | # We need space, tab and new line, in precisely that order. Quoting is | |
12650 | # there to prevent editors from complaining about space-tab. | |
12651 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12652 | # splitting by setting IFS to empty value.) | |
12653 | IFS=" "" $as_nl" | |
12654 | ||
12655 | # Find who we are. Look in the path if we contain no directory separator. | |
12656 | case $0 in #(( | |
12657 | *[\\/]* ) as_myself=$0 ;; | |
12658 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12659 | for as_dir in $PATH | |
12660 | do | |
12661 | IFS=$as_save_IFS | |
12662 | test -z "$as_dir" && as_dir=. | |
12663 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12664 | done | |
12665 | IFS=$as_save_IFS | |
12666 | ||
12667 | ;; | |
12668 | esac | |
12669 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12670 | # in which case we are not to be found in the path. | |
12671 | if test "x$as_myself" = x; then | |
12672 | as_myself=$0 | |
12673 | fi | |
12674 | if test ! -f "$as_myself"; then | |
12675 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12676 | exit 1 | |
12677 | fi | |
12678 | ||
12679 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12680 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12681 | # suppresses any "Segmentation fault" message there. '((' could | |
12682 | # trigger a bug in pdksh 5.2.14. | |
12683 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12684 | do eval test x\${$as_var+set} = xset \ | |
12685 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12686 | done | |
12687 | PS1='$ ' | |
12688 | PS2='> ' | |
12689 | PS4='+ ' | |
12690 | ||
12691 | # NLS nuisances. | |
12692 | LC_ALL=C | |
12693 | export LC_ALL | |
12694 | LANGUAGE=C | |
12695 | export LANGUAGE | |
12696 | ||
12697 | # CDPATH. | |
12698 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12699 | ||
12700 | ||
12701 | # as_fn_error ERROR [LINENO LOG_FD] | |
12702 | # --------------------------------- | |
12703 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12704 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12705 | # script with status $?, using 1 if that was 0. | |
12706 | as_fn_error () | |
12707 | { | |
12708 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
12709 | if test "$3"; then | |
12710 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12711 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
12712 | fi | |
12713 | $as_echo "$as_me: error: $1" >&2 | |
12714 | as_fn_exit $as_status | |
12715 | } # as_fn_error | |
12716 | ||
12717 | ||
12718 | # as_fn_set_status STATUS | |
12719 | # ----------------------- | |
12720 | # Set $? to STATUS, without forking. | |
12721 | as_fn_set_status () | |
12722 | { | |
12723 | return $1 | |
12724 | } # as_fn_set_status | |
12725 | ||
12726 | # as_fn_exit STATUS | |
12727 | # ----------------- | |
12728 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12729 | as_fn_exit () | |
12730 | { | |
12731 | set +e | |
12732 | as_fn_set_status $1 | |
12733 | exit $1 | |
12734 | } # as_fn_exit | |
12735 | ||
12736 | # as_fn_unset VAR | |
12737 | # --------------- | |
12738 | # Portably unset VAR. | |
12739 | as_fn_unset () | |
12740 | { | |
12741 | { eval $1=; unset $1;} | |
12742 | } | |
12743 | as_unset=as_fn_unset | |
12744 | # as_fn_append VAR VALUE | |
12745 | # ---------------------- | |
12746 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12747 | # advantage of any shell optimizations that allow amortized linear growth over | |
12748 | # repeated appends, instead of the typical quadratic growth present in naive | |
12749 | # implementations. | |
12750 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12751 | eval 'as_fn_append () | |
12752 | { | |
12753 | eval $1+=\$2 | |
12754 | }' | |
12755 | else | |
12756 | as_fn_append () | |
12757 | { | |
12758 | eval $1=\$$1\$2 | |
12759 | } | |
12760 | fi # as_fn_append | |
12761 | ||
12762 | # as_fn_arith ARG... | |
12763 | # ------------------ | |
12764 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12765 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12766 | # must be portable across $(()) and expr. | |
12767 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12768 | eval 'as_fn_arith () | |
12769 | { | |
12770 | as_val=$(( $* )) | |
12771 | }' | |
12772 | else | |
12773 | as_fn_arith () | |
12774 | { | |
12775 | as_val=`expr "$@" || test $? -eq 1` | |
12776 | } | |
12777 | fi # as_fn_arith | |
12778 | ||
12779 | ||
12780 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12781 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12782 | as_expr=expr | |
12783 | else | |
12784 | as_expr=false | |
12785 | fi | |
12786 | ||
12787 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12788 | as_basename=basename | |
12789 | else | |
12790 | as_basename=false | |
12791 | fi | |
12792 | ||
12793 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12794 | as_dirname=dirname | |
12795 | else | |
12796 | as_dirname=false | |
12797 | fi | |
12798 | ||
12799 | as_me=`$as_basename -- "$0" || | |
12800 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12801 | X"$0" : 'X\(//\)$' \| \ | |
12802 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12803 | $as_echo X/"$0" | | |
12804 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12805 | s//\1/ | |
12806 | q | |
12807 | } | |
12808 | /^X\/\(\/\/\)$/{ | |
12809 | s//\1/ | |
12810 | q | |
12811 | } | |
12812 | /^X\/\(\/\).*/{ | |
12813 | s//\1/ | |
12814 | q | |
12815 | } | |
12816 | s/.*/./; q'` | |
12817 | ||
12818 | # Avoid depending upon Character Ranges. | |
12819 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12820 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12821 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12822 | as_cr_digits='0123456789' | |
12823 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12824 | ||
12825 | ECHO_C= ECHO_N= ECHO_T= | |
12826 | case `echo -n x` in #((((( | |
12827 | -n*) | |
12828 | case `echo 'xy\c'` in | |
12829 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12830 | xy) ECHO_C='\c';; | |
12831 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12832 | ECHO_T=' ';; | |
12833 | esac;; | |
12834 | *) | |
12835 | ECHO_N='-n';; | |
12836 | esac | |
12837 | ||
12838 | rm -f conf$$ conf$$.exe conf$$.file | |
12839 | if test -d conf$$.dir; then | |
12840 | rm -f conf$$.dir/conf$$.file | |
12841 | else | |
12842 | rm -f conf$$.dir | |
12843 | mkdir conf$$.dir 2>/dev/null | |
12844 | fi | |
12845 | if (echo >conf$$.file) 2>/dev/null; then | |
12846 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12847 | as_ln_s='ln -s' | |
12848 | # ... but there are two gotchas: | |
12849 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12850 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12851 | # In both cases, we have to default to `cp -p'. | |
12852 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12853 | as_ln_s='cp -p' | |
12854 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12855 | as_ln_s=ln | |
12856 | else | |
12857 | as_ln_s='cp -p' | |
12858 | fi | |
12859 | else | |
12860 | as_ln_s='cp -p' | |
12861 | fi | |
12862 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12863 | rmdir conf$$.dir 2>/dev/null | |
12864 | ||
12865 | ||
12866 | # as_fn_mkdir_p | |
12867 | # ------------- | |
12868 | # Create "$as_dir" as a directory, including parents if necessary. | |
12869 | as_fn_mkdir_p () | |
12870 | { | |
12871 | ||
12872 | case $as_dir in #( | |
12873 | -*) as_dir=./$as_dir;; | |
12874 | esac | |
12875 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12876 | as_dirs= | |
12877 | while :; do | |
12878 | case $as_dir in #( | |
12879 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12880 | *) as_qdir=$as_dir;; | |
12881 | esac | |
12882 | as_dirs="'$as_qdir' $as_dirs" | |
12883 | as_dir=`$as_dirname -- "$as_dir" || | |
12884 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12885 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12886 | X"$as_dir" : 'X\(//\)$' \| \ | |
12887 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12888 | $as_echo X"$as_dir" | | |
12889 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12890 | s//\1/ | |
12891 | q | |
12892 | } | |
12893 | /^X\(\/\/\)[^/].*/{ | |
12894 | s//\1/ | |
12895 | q | |
12896 | } | |
12897 | /^X\(\/\/\)$/{ | |
12898 | s//\1/ | |
12899 | q | |
12900 | } | |
12901 | /^X\(\/\).*/{ | |
12902 | s//\1/ | |
12903 | q | |
12904 | } | |
12905 | s/.*/./; q'` | |
12906 | test -d "$as_dir" && break | |
12907 | done | |
12908 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12909 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
12910 | ||
12911 | ||
12912 | } # as_fn_mkdir_p | |
12913 | if mkdir -p . 2>/dev/null; then | |
12914 | as_mkdir_p='mkdir -p "$as_dir"' | |
12915 | else | |
12916 | test -d ./-p && rmdir ./-p | |
12917 | as_mkdir_p=false | |
12918 | fi | |
12919 | ||
12920 | if test -x / >/dev/null 2>&1; then | |
12921 | as_test_x='test -x' | |
12922 | else | |
12923 | if ls -dL / >/dev/null 2>&1; then | |
12924 | as_ls_L_option=L | |
12925 | else | |
12926 | as_ls_L_option= | |
12927 | fi | |
12928 | as_test_x=' | |
12929 | eval sh -c '\'' | |
12930 | if test -d "$1"; then | |
12931 | test -d "$1/."; | |
12932 | else | |
12933 | case $1 in #( | |
12934 | -*)set "./$1";; | |
12935 | esac; | |
12936 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12937 | ???[sx]*):;;*)false;;esac;fi | |
12938 | '\'' sh | |
12939 | ' | |
12940 | fi | |
12941 | as_executable_p=$as_test_x | |
12942 | ||
12943 | # Sed expression to map a string onto a valid CPP name. | |
12944 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12945 | ||
12946 | # Sed expression to map a string onto a valid variable name. | |
12947 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12948 | ||
12949 | ||
12950 | exec 6>&1 | |
12951 | ## ----------------------------------- ## | |
12952 | ## Main body of $CONFIG_STATUS script. ## | |
12953 | ## ----------------------------------- ## | |
12954 | _ASEOF | |
12955 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
12956 | ||
12957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12958 | # Save the log message, to keep $0 and so on meaningful, and to | |
12959 | # report actual input values of CONFIG_FILES etc. instead of their | |
12960 | # values after options handling. | |
12961 | ac_log=" | |
12962 | This file was extended by package-unused $as_me version-unused, which was | |
12963 | generated by GNU Autoconf 2.64. Invocation command line was | |
12964 | ||
12965 | CONFIG_FILES = $CONFIG_FILES | |
12966 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12967 | CONFIG_LINKS = $CONFIG_LINKS | |
12968 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12969 | $ $0 $@ | |
12970 | ||
12971 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12972 | " | |
12973 | ||
12974 | _ACEOF | |
12975 | ||
12976 | case $ac_config_files in *" | |
12977 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12978 | esac | |
12979 | ||
12980 | case $ac_config_headers in *" | |
12981 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12982 | esac | |
12983 | ||
12984 | ||
12985 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12986 | # Files that config.status was made for. | |
12987 | config_files="$ac_config_files" | |
12988 | config_headers="$ac_config_headers" | |
12989 | config_commands="$ac_config_commands" | |
12990 | ||
12991 | _ACEOF | |
12992 | ||
12993 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12994 | ac_cs_usage="\ | |
12995 | \`$as_me' instantiates files and other configuration actions | |
12996 | from templates according to the current configuration. Unless the files | |
12997 | and actions are specified as TAGs, all are instantiated by default. | |
12998 | ||
12999 | Usage: $0 [OPTION]... [TAG]... | |
13000 | ||
13001 | -h, --help print this help, then exit | |
13002 | -V, --version print version number and configuration settings, then exit | |
13003 | -q, --quiet, --silent | |
13004 | do not print progress messages | |
13005 | -d, --debug don't remove temporary files | |
13006 | --recheck update $as_me by reconfiguring in the same conditions | |
13007 | --file=FILE[:TEMPLATE] | |
13008 | instantiate the configuration file FILE | |
13009 | --header=FILE[:TEMPLATE] | |
13010 | instantiate the configuration header FILE | |
13011 | ||
13012 | Configuration files: | |
13013 | $config_files | |
13014 | ||
13015 | Configuration headers: | |
13016 | $config_headers | |
13017 | ||
13018 | Configuration commands: | |
13019 | $config_commands | |
13020 | ||
13021 | Report bugs to the package provider." | |
13022 | ||
13023 | _ACEOF | |
13024 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13025 | ac_cs_version="\\ | |
13026 | package-unused config.status version-unused | |
13027 | configured by $0, generated by GNU Autoconf 2.64, | |
13028 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
13029 | ||
13030 | Copyright (C) 2009 Free Software Foundation, Inc. | |
13031 | This config.status script is free software; the Free Software Foundation | |
13032 | gives unlimited permission to copy, distribute and modify it." | |
13033 | ||
13034 | ac_pwd='$ac_pwd' | |
13035 | srcdir='$srcdir' | |
13036 | INSTALL='$INSTALL' | |
13037 | MKDIR_P='$MKDIR_P' | |
13038 | AWK='$AWK' | |
13039 | test -n "\$AWK" || AWK=awk | |
13040 | _ACEOF | |
13041 | ||
13042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13043 | # The default lists apply if the user does not specify any file. | |
13044 | ac_need_defaults=: | |
13045 | while test $# != 0 | |
13046 | do | |
13047 | case $1 in | |
13048 | --*=*) | |
13049 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13050 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13051 | ac_shift=: | |
13052 | ;; | |
13053 | *) | |
13054 | ac_option=$1 | |
13055 | ac_optarg=$2 | |
13056 | ac_shift=shift | |
13057 | ;; | |
13058 | esac | |
13059 | ||
13060 | case $ac_option in | |
13061 | # Handling of the options. | |
13062 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13063 | ac_cs_recheck=: ;; | |
13064 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13065 | $as_echo "$ac_cs_version"; exit ;; | |
13066 | --debug | --debu | --deb | --de | --d | -d ) | |
13067 | debug=: ;; | |
13068 | --file | --fil | --fi | --f ) | |
13069 | $ac_shift | |
13070 | case $ac_optarg in | |
13071 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13072 | esac | |
13073 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13074 | ac_need_defaults=false;; | |
13075 | --header | --heade | --head | --hea ) | |
13076 | $ac_shift | |
13077 | case $ac_optarg in | |
13078 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13079 | esac | |
13080 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13081 | ac_need_defaults=false;; | |
13082 | --he | --h) | |
13083 | # Conflict between --help and --header | |
13084 | as_fn_error "ambiguous option: \`$1' | |
13085 | Try \`$0 --help' for more information.";; | |
13086 | --help | --hel | -h ) | |
13087 | $as_echo "$ac_cs_usage"; exit ;; | |
13088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13089 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13090 | ac_cs_silent=: ;; | |
13091 | ||
13092 | # This is an error. | |
13093 | -*) as_fn_error "unrecognized option: \`$1' | |
13094 | Try \`$0 --help' for more information." ;; | |
13095 | ||
13096 | *) as_fn_append ac_config_targets " $1" | |
13097 | ac_need_defaults=false ;; | |
13098 | ||
13099 | esac | |
13100 | shift | |
13101 | done | |
13102 | ||
13103 | ac_configure_extra_args= | |
13104 | ||
13105 | if $ac_cs_silent; then | |
13106 | exec 6>/dev/null | |
13107 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13108 | fi | |
13109 | ||
13110 | _ACEOF | |
13111 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13112 | if \$ac_cs_recheck; then | |
13113 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13114 | shift | |
13115 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13116 | CONFIG_SHELL='$SHELL' | |
13117 | export CONFIG_SHELL | |
13118 | exec "\$@" | |
13119 | fi | |
13120 | ||
13121 | _ACEOF | |
13122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13123 | exec 5>>config.log | |
13124 | { | |
13125 | echo | |
13126 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13127 | ## Running $as_me. ## | |
13128 | _ASBOX | |
13129 | $as_echo "$ac_log" | |
13130 | } >&5 | |
13131 | ||
13132 | _ACEOF | |
13133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13134 | # | |
13135 | # INIT-COMMANDS | |
13136 | # | |
eff02e4f ILT |
13137 | |
13138 | ||
13139 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13140 | # if CDPATH is set. | |
13141 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13142 | ||
13143 | sed_quote_subst='$sed_quote_subst' | |
13144 | double_quote_subst='$double_quote_subst' | |
13145 | delay_variable_subst='$delay_variable_subst' | |
13146 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
13147 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13148 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13149 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13150 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13151 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
13152 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
13153 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13154 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13155 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13156 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13157 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13158 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13159 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13160 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13161 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13162 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13163 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13164 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13165 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13166 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13167 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13168 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13169 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13170 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13171 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13172 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13173 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13174 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13175 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13176 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13177 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13178 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13179 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13180 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13181 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13182 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13183 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13184 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13185 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13186 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13187 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13188 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13189 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13190 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13191 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13192 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
13193 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
13194 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13195 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
13196 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13197 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13198 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13199 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13200 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13201 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13202 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13203 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13204 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13205 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13206 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13207 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13208 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13209 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13210 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13211 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13212 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13213 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13214 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13215 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13216 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13217 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13218 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13219 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13220 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13221 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13222 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13223 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13224 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13225 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13226 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
13227 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13228 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13229 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13230 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13231 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13232 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13233 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13234 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13235 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
13236 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13237 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13238 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13239 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13240 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13241 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13242 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13243 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13244 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13245 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13246 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13247 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13248 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13249 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13250 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13251 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13252 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13253 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13254 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13255 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13256 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13257 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13258 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13259 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13260 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13261 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13262 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13263 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13264 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13265 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
13266 | ||
13267 | LTCC='$LTCC' | |
13268 | LTCFLAGS='$LTCFLAGS' | |
13269 | compiler='$compiler_DEFAULT' | |
13270 | ||
13271 | # A function that is used when there is no print builtin or printf. | |
13272 | func_fallback_echo () | |
13273 | { | |
13274 | eval 'cat <<_LTECHO_EOF | |
13275 | \$1 | |
13276 | _LTECHO_EOF' | |
13277 | } | |
13278 | ||
13279 | # Quote evaled strings. | |
13280 | for var in SHELL \ | |
13281 | ECHO \ | |
13282 | SED \ | |
13283 | GREP \ | |
13284 | EGREP \ | |
13285 | FGREP \ | |
13286 | LD \ | |
13287 | NM \ | |
13288 | LN_S \ | |
13289 | lt_SP2NL \ | |
13290 | lt_NL2SP \ | |
13291 | reload_flag \ | |
13292 | OBJDUMP \ | |
13293 | deplibs_check_method \ | |
13294 | file_magic_cmd \ | |
13295 | AR \ | |
13296 | AR_FLAGS \ | |
13297 | STRIP \ | |
13298 | RANLIB \ | |
13299 | CC \ | |
13300 | CFLAGS \ | |
13301 | compiler \ | |
13302 | lt_cv_sys_global_symbol_pipe \ | |
13303 | lt_cv_sys_global_symbol_to_cdecl \ | |
13304 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13305 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
13306 | lt_prog_compiler_no_builtin_flag \ | |
13307 | lt_prog_compiler_wl \ | |
13308 | lt_prog_compiler_pic \ | |
13309 | lt_prog_compiler_static \ | |
13310 | lt_cv_prog_compiler_c_o \ | |
13311 | need_locks \ | |
13312 | DSYMUTIL \ | |
13313 | NMEDIT \ | |
13314 | LIPO \ | |
13315 | OTOOL \ | |
13316 | OTOOL64 \ | |
13317 | shrext_cmds \ | |
13318 | export_dynamic_flag_spec \ | |
13319 | whole_archive_flag_spec \ | |
13320 | compiler_needs_object \ | |
13321 | with_gnu_ld \ | |
13322 | allow_undefined_flag \ | |
13323 | no_undefined_flag \ | |
13324 | hardcode_libdir_flag_spec \ | |
13325 | hardcode_libdir_flag_spec_ld \ | |
13326 | hardcode_libdir_separator \ | |
13327 | fix_srcfile_path \ | |
13328 | exclude_expsyms \ | |
13329 | include_expsyms \ | |
13330 | file_list_spec \ | |
13331 | variables_saved_for_relink \ | |
13332 | libname_spec \ | |
13333 | library_names_spec \ | |
13334 | soname_spec \ | |
13335 | install_override_mode \ | |
13336 | finish_eval \ | |
13337 | old_striplib \ | |
13338 | striplib; do | |
13339 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13340 | *[\\\\\\\`\\"\\\$]*) | |
13341 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13342 | ;; | |
13343 | *) | |
13344 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13345 | ;; | |
13346 | esac | |
13347 | done | |
13348 | ||
13349 | # Double-quote double-evaled strings. | |
13350 | for var in reload_cmds \ | |
13351 | old_postinstall_cmds \ | |
13352 | old_postuninstall_cmds \ | |
13353 | old_archive_cmds \ | |
13354 | extract_expsyms_cmds \ | |
13355 | old_archive_from_new_cmds \ | |
13356 | old_archive_from_expsyms_cmds \ | |
13357 | archive_cmds \ | |
13358 | archive_expsym_cmds \ | |
13359 | module_cmds \ | |
13360 | module_expsym_cmds \ | |
13361 | export_symbols_cmds \ | |
13362 | prelink_cmds \ | |
13363 | postinstall_cmds \ | |
13364 | postuninstall_cmds \ | |
13365 | finish_cmds \ | |
13366 | sys_lib_search_path_spec \ | |
13367 | sys_lib_dlsearch_path_spec; do | |
13368 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13369 | *[\\\\\\\`\\"\\\$]*) | |
13370 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13371 | ;; | |
13372 | *) | |
13373 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13374 | ;; | |
13375 | esac | |
13376 | done | |
13377 | ||
13378 | ac_aux_dir='$ac_aux_dir' | |
13379 | xsi_shell='$xsi_shell' | |
13380 | lt_shell_append='$lt_shell_append' | |
13381 | ||
13382 | # See if we are running on zsh, and set the options which allow our | |
13383 | # commands through without removal of \ escapes INIT. | |
13384 | if test -n "\${ZSH_VERSION+set}" ; then | |
13385 | setopt NO_GLOB_SUBST | |
13386 | fi | |
13387 | ||
13388 | ||
13389 | PACKAGE='$PACKAGE' | |
13390 | VERSION='$VERSION' | |
13391 | TIMESTAMP='$TIMESTAMP' | |
13392 | RM='$RM' | |
13393 | ofile='$ofile' | |
13394 | ||
13395 | ||
13396 | ||
13397 | ||
13398 | srcdir="$srcdir" | |
13399 | host="$host" | |
13400 | target="$target" | |
13401 | with_multisubdir="$with_multisubdir" | |
13402 | with_multisrctop="$with_multisrctop" | |
13403 | with_target_subdir="$with_target_subdir" | |
13404 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
13405 | multi_basedir="$multi_basedir" | |
13406 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
13407 | CC="$CC" | |
13408 | CXX="$CXX" | |
13409 | GFORTRAN="$GFORTRAN" | |
13410 | GCJ="$GCJ" | |
13411 | ||
76850556 RO |
13412 | GCC="$GCC" |
13413 | CC="$CC" | |
13414 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
13415 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
13416 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
13417 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
13418 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
13419 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
13420 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
13421 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
13422 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
13423 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
13424 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
13425 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
13426 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
13427 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
13428 | ||
13429 | ||
eff02e4f ILT |
13430 | # Variables needed in config.status (file generation) which aren't already |
13431 | # passed by autoconf. | |
13432 | SUBDIRS="$SUBDIRS" | |
13433 | ||
13434 | ||
13435 | _ACEOF | |
13436 | ||
13437 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13438 | ||
13439 | # Handling of arguments. | |
13440 | for ac_config_target in $ac_config_targets | |
13441 | do | |
13442 | case $ac_config_target in | |
13443 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
eff02e4f ILT |
13444 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
13445 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
76850556 | 13446 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
eff02e4f ILT |
13447 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13448 | "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;; | |
13449 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
13450 | ||
13451 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
13452 | esac | |
13453 | done | |
13454 | ||
13455 | ||
13456 | # If the user did not use the arguments to specify the items to instantiate, | |
13457 | # then the envvar interface is used. Set only those that are not. | |
13458 | # We use the long form for the default assignment because of an extremely | |
13459 | # bizarre bug on SunOS 4.1.3. | |
13460 | if $ac_need_defaults; then | |
13461 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13462 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13463 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13464 | fi | |
13465 | ||
13466 | # Have a temporary directory for convenience. Make it in the build tree | |
13467 | # simply because there is no reason against having it here, and in addition, | |
13468 | # creating and moving files from /tmp can sometimes cause problems. | |
13469 | # Hook for its removal unless debugging. | |
13470 | # Note that there is a small window in which the directory will not be cleaned: | |
13471 | # after its creation but before its name has been assigned to `$tmp'. | |
13472 | $debug || | |
13473 | { | |
13474 | tmp= | |
13475 | trap 'exit_status=$? | |
13476 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13477 | ' 0 | |
13478 | trap 'as_fn_exit 1' 1 2 13 15 | |
13479 | } | |
13480 | # Create a (secure) tmp directory for tmp files. | |
13481 | ||
13482 | { | |
13483 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
13484 | test -n "$tmp" && test -d "$tmp" | |
13485 | } || | |
13486 | { | |
13487 | tmp=./conf$$-$RANDOM | |
13488 | (umask 077 && mkdir "$tmp") | |
13489 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
13490 | ||
13491 | # Set up the scripts for CONFIG_FILES section. | |
13492 | # No need to generate them if there are no CONFIG_FILES. | |
13493 | # This happens for instance with `./config.status config.h'. | |
13494 | if test -n "$CONFIG_FILES"; then | |
13495 | ||
13496 | ||
13497 | ac_cr=`echo X | tr X '\015'` | |
13498 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13499 | # But we know of no other shell where ac_cr would be empty at this | |
13500 | # point, so we can use a bashism as a fallback. | |
13501 | if test "x$ac_cr" = x; then | |
13502 | eval ac_cr=\$\'\\r\' | |
13503 | fi | |
13504 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13505 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13506 | ac_cs_awk_cr='\r' | |
13507 | else | |
13508 | ac_cs_awk_cr=$ac_cr | |
13509 | fi | |
13510 | ||
13511 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
13512 | _ACEOF | |
13513 | ||
13514 | ||
13515 | { | |
13516 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13517 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13518 | echo "_ACEOF" | |
13519 | } >conf$$subs.sh || | |
13520 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13521 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
13522 | ac_delim='%!_!# ' | |
13523 | for ac_last_try in false false false false false :; do | |
13524 | . ./conf$$subs.sh || | |
13525 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13526 | ||
13527 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13528 | if test $ac_delim_n = $ac_delim_num; then | |
13529 | break | |
13530 | elif $ac_last_try; then | |
13531 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13532 | else | |
13533 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13534 | fi | |
13535 | done | |
13536 | rm -f conf$$subs.sh | |
13537 | ||
13538 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13539 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13540 | _ACEOF | |
13541 | sed -n ' | |
13542 | h | |
13543 | s/^/S["/; s/!.*/"]=/ | |
13544 | p | |
13545 | g | |
13546 | s/^[^!]*!// | |
13547 | :repl | |
13548 | t repl | |
13549 | s/'"$ac_delim"'$// | |
13550 | t delim | |
13551 | :nl | |
13552 | h | |
13553 | s/\(.\{148\}\).*/\1/ | |
13554 | t more1 | |
13555 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13556 | p | |
13557 | n | |
13558 | b repl | |
13559 | :more1 | |
13560 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13561 | p | |
13562 | g | |
13563 | s/.\{148\}// | |
13564 | t nl | |
13565 | :delim | |
13566 | h | |
13567 | s/\(.\{148\}\).*/\1/ | |
13568 | t more2 | |
13569 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13570 | p | |
13571 | b | |
13572 | :more2 | |
13573 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13574 | p | |
13575 | g | |
13576 | s/.\{148\}// | |
13577 | t delim | |
13578 | ' <conf$$subs.awk | sed ' | |
13579 | /^[^""]/{ | |
13580 | N | |
13581 | s/\n// | |
13582 | } | |
13583 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13584 | rm -f conf$$subs.awk | |
13585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13586 | _ACAWK | |
13587 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13588 | for (key in S) S_is_set[key] = 1 | |
13589 | FS = "\a" | |
13590 | ||
13591 | } | |
13592 | { | |
13593 | line = $ 0 | |
13594 | nfields = split(line, field, "@") | |
13595 | substed = 0 | |
13596 | len = length(field[1]) | |
13597 | for (i = 2; i < nfields; i++) { | |
13598 | key = field[i] | |
13599 | keylen = length(key) | |
13600 | if (S_is_set[key]) { | |
13601 | value = S[key] | |
13602 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13603 | len += length(value) + length(field[++i]) | |
13604 | substed = 1 | |
13605 | } else | |
13606 | len += 1 + keylen | |
13607 | } | |
13608 | ||
13609 | print line | |
13610 | } | |
13611 | ||
13612 | _ACAWK | |
13613 | _ACEOF | |
13614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13615 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13616 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13617 | else | |
13618 | cat | |
13619 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13620 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
13621 | _ACEOF | |
13622 | ||
13623 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
13624 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13625 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13626 | # (actually we leave an empty line to preserve line numbers). | |
13627 | if test "x$srcdir" = x.; then | |
13628 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13629 | s/:*\$(srcdir):*/:/ | |
13630 | s/:*\${srcdir}:*/:/ | |
13631 | s/:*@srcdir@:*/:/ | |
13632 | s/^\([^=]*=[ ]*\):*/\1/ | |
13633 | s/:*$// | |
13634 | s/^[^=]*=[ ]*$// | |
13635 | }' | |
13636 | fi | |
13637 | ||
13638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13639 | fi # test -n "$CONFIG_FILES" | |
13640 | ||
13641 | # Set up the scripts for CONFIG_HEADERS section. | |
13642 | # No need to generate them if there are no CONFIG_HEADERS. | |
13643 | # This happens for instance with `./config.status Makefile'. | |
13644 | if test -n "$CONFIG_HEADERS"; then | |
13645 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13646 | BEGIN { | |
13647 | _ACEOF | |
13648 | ||
13649 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13650 | # here-document in config.status, that substitutes the proper values into | |
13651 | # config.h.in to produce config.h. | |
13652 | ||
13653 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13654 | # handling of long lines. | |
13655 | ac_delim='%!_!# ' | |
13656 | for ac_last_try in false false :; do | |
13657 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13658 | if test -z "$ac_t"; then | |
13659 | break | |
13660 | elif $ac_last_try; then | |
13661 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
13662 | else | |
13663 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13664 | fi | |
13665 | done | |
13666 | ||
13667 | # For the awk script, D is an array of macro values keyed by name, | |
13668 | # likewise P contains macro parameters if any. Preserve backslash | |
13669 | # newline sequences. | |
13670 | ||
13671 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13672 | sed -n ' | |
13673 | s/.\{148\}/&'"$ac_delim"'/g | |
13674 | t rset | |
13675 | :rset | |
13676 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13677 | t def | |
13678 | d | |
13679 | :def | |
13680 | s/\\$// | |
13681 | t bsnl | |
13682 | s/["\\]/\\&/g | |
13683 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13684 | D["\1"]=" \3"/p | |
13685 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13686 | d | |
13687 | :bsnl | |
13688 | s/["\\]/\\&/g | |
13689 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13690 | D["\1"]=" \3\\\\\\n"\\/p | |
13691 | t cont | |
13692 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13693 | t cont | |
13694 | d | |
13695 | :cont | |
13696 | n | |
13697 | s/.\{148\}/&'"$ac_delim"'/g | |
13698 | t clear | |
13699 | :clear | |
13700 | s/\\$// | |
13701 | t bsnlc | |
13702 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13703 | d | |
13704 | :bsnlc | |
13705 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13706 | b cont | |
13707 | ' <confdefs.h | sed ' | |
13708 | s/'"$ac_delim"'/"\\\ | |
13709 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13710 | ||
13711 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13712 | for (key in D) D_is_set[key] = 1 | |
13713 | FS = "\a" | |
13714 | } | |
13715 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13716 | line = \$ 0 | |
13717 | split(line, arg, " ") | |
13718 | if (arg[1] == "#") { | |
13719 | defundef = arg[2] | |
13720 | mac1 = arg[3] | |
13721 | } else { | |
13722 | defundef = substr(arg[1], 2) | |
13723 | mac1 = arg[2] | |
13724 | } | |
13725 | split(mac1, mac2, "(") #) | |
13726 | macro = mac2[1] | |
13727 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13728 | if (D_is_set[macro]) { | |
13729 | # Preserve the white space surrounding the "#". | |
13730 | print prefix "define", macro P[macro] D[macro] | |
13731 | next | |
13732 | } else { | |
13733 | # Replace #undef with comments. This is necessary, for example, | |
13734 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13735 | # on some systems where configure will not decide to define it. | |
13736 | if (defundef == "undef") { | |
13737 | print "/*", prefix defundef, macro, "*/" | |
13738 | next | |
13739 | } | |
13740 | } | |
13741 | } | |
13742 | { print } | |
13743 | _ACAWK | |
13744 | _ACEOF | |
13745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13746 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
13747 | fi # test -n "$CONFIG_HEADERS" | |
13748 | ||
13749 | ||
13750 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13751 | shift | |
13752 | for ac_tag | |
13753 | do | |
13754 | case $ac_tag in | |
13755 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13756 | esac | |
13757 | case $ac_mode$ac_tag in | |
13758 | :[FHL]*:*);; | |
13759 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
13760 | :[FH]-) ac_tag=-:-;; | |
13761 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13762 | esac | |
13763 | ac_save_IFS=$IFS | |
13764 | IFS=: | |
13765 | set x $ac_tag | |
13766 | IFS=$ac_save_IFS | |
13767 | shift | |
13768 | ac_file=$1 | |
13769 | shift | |
13770 | ||
13771 | case $ac_mode in | |
13772 | :L) ac_source=$1;; | |
13773 | :[FH]) | |
13774 | ac_file_inputs= | |
13775 | for ac_f | |
13776 | do | |
13777 | case $ac_f in | |
13778 | -) ac_f="$tmp/stdin";; | |
13779 | *) # Look for the file first in the build tree, then in the source tree | |
13780 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13781 | # because $ac_f cannot contain `:'. | |
13782 | test -f "$ac_f" || | |
13783 | case $ac_f in | |
13784 | [\\/$]*) false;; | |
13785 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13786 | esac || | |
13787 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
13788 | esac | |
13789 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13790 | as_fn_append ac_file_inputs " '$ac_f'" | |
13791 | done | |
13792 | ||
13793 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13794 | # use $as_me), people would be surprised to read: | |
13795 | # /* config.h. Generated by config.status. */ | |
13796 | configure_input='Generated from '` | |
13797 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13798 | `' by configure.' | |
13799 | if test x"$ac_file" != x-; then | |
13800 | configure_input="$ac_file. $configure_input" | |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13802 | $as_echo "$as_me: creating $ac_file" >&6;} | |
13803 | fi | |
13804 | # Neutralize special characters interpreted by sed in replacement strings. | |
13805 | case $configure_input in #( | |
13806 | *\&* | *\|* | *\\* ) | |
13807 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13808 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13809 | *) ac_sed_conf_input=$configure_input;; | |
13810 | esac | |
13811 | ||
13812 | case $ac_tag in | |
13813 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13814 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
13815 | esac | |
13816 | ;; | |
13817 | esac | |
13818 | ||
13819 | ac_dir=`$as_dirname -- "$ac_file" || | |
13820 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13821 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13822 | X"$ac_file" : 'X\(//\)$' \| \ | |
13823 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13824 | $as_echo X"$ac_file" | | |
13825 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13826 | s//\1/ | |
13827 | q | |
13828 | } | |
13829 | /^X\(\/\/\)[^/].*/{ | |
13830 | s//\1/ | |
13831 | q | |
13832 | } | |
13833 | /^X\(\/\/\)$/{ | |
13834 | s//\1/ | |
13835 | q | |
13836 | } | |
13837 | /^X\(\/\).*/{ | |
13838 | s//\1/ | |
13839 | q | |
13840 | } | |
13841 | s/.*/./; q'` | |
13842 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13843 | ac_builddir=. | |
13844 | ||
13845 | case "$ac_dir" in | |
13846 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13847 | *) | |
13848 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13849 | # A ".." for each directory in $ac_dir_suffix. | |
13850 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13851 | case $ac_top_builddir_sub in | |
13852 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13853 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13854 | esac ;; | |
13855 | esac | |
13856 | ac_abs_top_builddir=$ac_pwd | |
13857 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13858 | # for backward compatibility: | |
13859 | ac_top_builddir=$ac_top_build_prefix | |
13860 | ||
13861 | case $srcdir in | |
13862 | .) # We are building in place. | |
13863 | ac_srcdir=. | |
13864 | ac_top_srcdir=$ac_top_builddir_sub | |
13865 | ac_abs_top_srcdir=$ac_pwd ;; | |
13866 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13867 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13868 | ac_top_srcdir=$srcdir | |
13869 | ac_abs_top_srcdir=$srcdir ;; | |
13870 | *) # Relative name. | |
13871 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13872 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13873 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13874 | esac | |
13875 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13876 | ||
13877 | ||
13878 | case $ac_mode in | |
13879 | :F) | |
13880 | # | |
13881 | # CONFIG_FILE | |
13882 | # | |
13883 | ||
13884 | case $INSTALL in | |
13885 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13886 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13887 | esac | |
13888 | ac_MKDIR_P=$MKDIR_P | |
13889 | case $MKDIR_P in | |
13890 | [\\/$]* | ?:[\\/]* ) ;; | |
13891 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13892 | esac | |
13893 | _ACEOF | |
13894 | ||
13895 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13896 | # If the template does not know about datarootdir, expand it. | |
13897 | # FIXME: This hack should be removed a few years after 2.60. | |
13898 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13899 | ac_sed_dataroot=' | |
13900 | /datarootdir/ { | |
13901 | p | |
13902 | q | |
13903 | } | |
13904 | /@datadir@/p | |
13905 | /@docdir@/p | |
13906 | /@infodir@/p | |
13907 | /@localedir@/p | |
13908 | /@mandir@/p' | |
13909 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13910 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13911 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13913 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13914 | _ACEOF | |
13915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13916 | ac_datarootdir_hack=' | |
13917 | s&@datadir@&$datadir&g | |
13918 | s&@docdir@&$docdir&g | |
13919 | s&@infodir@&$infodir&g | |
13920 | s&@localedir@&$localedir&g | |
13921 | s&@mandir@&$mandir&g | |
13922 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13923 | esac | |
13924 | _ACEOF | |
13925 | ||
13926 | # Neutralize VPATH when `$srcdir' = `.'. | |
13927 | # Shell code in configure.ac might set extrasub. | |
13928 | # FIXME: do we really want to maintain this feature? | |
13929 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13930 | ac_sed_extra="$ac_vpsub | |
13931 | $extrasub | |
13932 | _ACEOF | |
13933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13934 | :t | |
13935 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13936 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13937 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13938 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13939 | s&@srcdir@&$ac_srcdir&;t t | |
13940 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13941 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13942 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13943 | s&@builddir@&$ac_builddir&;t t | |
13944 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13945 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13946 | s&@INSTALL@&$ac_INSTALL&;t t | |
13947 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13948 | $ac_datarootdir_hack | |
13949 | " | |
13950 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13951 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13952 | ||
13953 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13954 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13955 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13957 | which seems to be undefined. Please make sure it is defined." >&5 | |
13958 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13959 | which seems to be undefined. Please make sure it is defined." >&2;} | |
13960 | ||
13961 | rm -f "$tmp/stdin" | |
13962 | case $ac_file in | |
13963 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
13964 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13965 | esac \ | |
13966 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13967 | ;; | |
13968 | :H) | |
13969 | # | |
13970 | # CONFIG_HEADER | |
13971 | # | |
13972 | if test x"$ac_file" != x-; then | |
13973 | { | |
13974 | $as_echo "/* $configure_input */" \ | |
13975 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13976 | } >"$tmp/config.h" \ | |
13977 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13978 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
13980 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13981 | else | |
13982 | rm -f "$ac_file" | |
13983 | mv "$tmp/config.h" "$ac_file" \ | |
13984 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13985 | fi | |
13986 | else | |
13987 | $as_echo "/* $configure_input */" \ | |
13988 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13989 | || as_fn_error "could not create -" "$LINENO" 5 | |
13990 | fi | |
13991 | # Compute "$ac_file"'s index in $config_headers. | |
13992 | _am_arg="$ac_file" | |
13993 | _am_stamp_count=1 | |
13994 | for _am_header in $config_headers :; do | |
13995 | case $_am_header in | |
13996 | $_am_arg | $_am_arg:* ) | |
13997 | break ;; | |
13998 | * ) | |
13999 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14000 | esac | |
14001 | done | |
14002 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14003 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14004 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14005 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14006 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14007 | $as_echo X"$_am_arg" | | |
14008 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14009 | s//\1/ | |
14010 | q | |
14011 | } | |
14012 | /^X\(\/\/\)[^/].*/{ | |
14013 | s//\1/ | |
14014 | q | |
14015 | } | |
14016 | /^X\(\/\/\)$/{ | |
14017 | s//\1/ | |
14018 | q | |
14019 | } | |
14020 | /^X\(\/\).*/{ | |
14021 | s//\1/ | |
14022 | q | |
14023 | } | |
14024 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14025 | ;; | |
14026 | ||
14027 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
14028 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14029 | ;; | |
14030 | esac | |
14031 | ||
14032 | ||
14033 | case $ac_file$ac_mode in | |
eff02e4f ILT |
14034 | "libtool":C) |
14035 | ||
14036 | # See if we are running on zsh, and set the options which allow our | |
14037 | # commands through without removal of \ escapes. | |
14038 | if test -n "${ZSH_VERSION+set}" ; then | |
14039 | setopt NO_GLOB_SUBST | |
14040 | fi | |
14041 | ||
14042 | cfgfile="${ofile}T" | |
14043 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14044 | $RM "$cfgfile" | |
14045 | ||
14046 | cat <<_LT_EOF >> "$cfgfile" | |
14047 | #! $SHELL | |
14048 | ||
14049 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14050 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14051 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14052 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14053 | # | |
14054 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
14055 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
14056 | # Written by Gordon Matzigkeit, 1996 | |
14057 | # | |
14058 | # This file is part of GNU Libtool. | |
14059 | # | |
14060 | # GNU Libtool is free software; you can redistribute it and/or | |
14061 | # modify it under the terms of the GNU General Public License as | |
14062 | # published by the Free Software Foundation; either version 2 of | |
14063 | # the License, or (at your option) any later version. | |
14064 | # | |
14065 | # As a special exception to the GNU General Public License, | |
14066 | # if you distribute this file as part of a program or library that | |
14067 | # is built using GNU Libtool, you may include this file under the | |
14068 | # same distribution terms that you use for the rest of that program. | |
14069 | # | |
14070 | # GNU Libtool is distributed in the hope that it will be useful, | |
14071 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14072 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14073 | # GNU General Public License for more details. | |
14074 | # | |
14075 | # You should have received a copy of the GNU General Public License | |
14076 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14077 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14078 | # obtained by writing to the Free Software Foundation, Inc., | |
14079 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
14080 | ||
14081 | ||
14082 | # The names of the tagged configurations supported by this script. | |
14083 | available_tags="" | |
14084 | ||
14085 | # ### BEGIN LIBTOOL CONFIG | |
14086 | ||
14087 | # Which release of libtool.m4 was used? | |
14088 | macro_version=$macro_version | |
14089 | macro_revision=$macro_revision | |
14090 | ||
14091 | # Whether or not to build shared libraries. | |
14092 | build_libtool_libs=$enable_shared | |
14093 | ||
14094 | # Whether or not to build static libraries. | |
14095 | build_old_libs=$enable_static | |
14096 | ||
14097 | # What type of objects to build. | |
14098 | pic_mode=$pic_mode | |
14099 | ||
14100 | # Whether or not to optimize for fast installation. | |
14101 | fast_install=$enable_fast_install | |
14102 | ||
14103 | # Shell to use when invoking shell scripts. | |
14104 | SHELL=$lt_SHELL | |
14105 | ||
14106 | # An echo program that protects backslashes. | |
14107 | ECHO=$lt_ECHO | |
14108 | ||
14109 | # The host system. | |
14110 | host_alias=$host_alias | |
14111 | host=$host | |
14112 | host_os=$host_os | |
14113 | ||
14114 | # The build system. | |
14115 | build_alias=$build_alias | |
14116 | build=$build | |
14117 | build_os=$build_os | |
14118 | ||
14119 | # A sed program that does not truncate output. | |
14120 | SED=$lt_SED | |
14121 | ||
14122 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14123 | Xsed="\$SED -e 1s/^X//" | |
14124 | ||
14125 | # A grep program that handles long lines. | |
14126 | GREP=$lt_GREP | |
14127 | ||
14128 | # An ERE matcher. | |
14129 | EGREP=$lt_EGREP | |
14130 | ||
14131 | # A literal string matcher. | |
14132 | FGREP=$lt_FGREP | |
14133 | ||
14134 | # A BSD- or MS-compatible name lister. | |
14135 | NM=$lt_NM | |
14136 | ||
14137 | # Whether we need soft or hard links. | |
14138 | LN_S=$lt_LN_S | |
14139 | ||
14140 | # What is the maximum length of a command? | |
14141 | max_cmd_len=$max_cmd_len | |
14142 | ||
14143 | # Object file suffix (normally "o"). | |
14144 | objext=$ac_objext | |
14145 | ||
14146 | # Executable file suffix (normally ""). | |
14147 | exeext=$exeext | |
14148 | ||
14149 | # whether the shell understands "unset". | |
14150 | lt_unset=$lt_unset | |
14151 | ||
14152 | # turn spaces into newlines. | |
14153 | SP2NL=$lt_lt_SP2NL | |
14154 | ||
14155 | # turn newlines into spaces. | |
14156 | NL2SP=$lt_lt_NL2SP | |
14157 | ||
14158 | # An object symbol dumper. | |
14159 | OBJDUMP=$lt_OBJDUMP | |
14160 | ||
14161 | # Method to check whether dependent libraries are shared objects. | |
14162 | deplibs_check_method=$lt_deplibs_check_method | |
14163 | ||
14164 | # Command to use when deplibs_check_method == "file_magic". | |
14165 | file_magic_cmd=$lt_file_magic_cmd | |
14166 | ||
14167 | # The archiver. | |
14168 | AR=$lt_AR | |
14169 | AR_FLAGS=$lt_AR_FLAGS | |
14170 | ||
14171 | # A symbol stripping program. | |
14172 | STRIP=$lt_STRIP | |
14173 | ||
14174 | # Commands used to install an old-style archive. | |
14175 | RANLIB=$lt_RANLIB | |
14176 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14177 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14178 | ||
14179 | # Whether to use a lock for old archive extraction. | |
14180 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14181 | ||
14182 | # A C compiler. | |
14183 | LTCC=$lt_CC | |
14184 | ||
14185 | # LTCC compiler flags. | |
14186 | LTCFLAGS=$lt_CFLAGS | |
14187 | ||
14188 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14189 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14190 | ||
14191 | # Transform the output of nm in a proper C declaration. | |
14192 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14193 | ||
14194 | # Transform the output of nm in a C name address pair. | |
14195 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14196 | ||
14197 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
14198 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14199 | ||
14200 | # The name of the directory that contains temporary libtool files. | |
14201 | objdir=$objdir | |
14202 | ||
14203 | # Used to examine libraries when file_magic_cmd begins with "file". | |
14204 | MAGIC_CMD=$MAGIC_CMD | |
14205 | ||
14206 | # Must we lock files when doing compilation? | |
14207 | need_locks=$lt_need_locks | |
14208 | ||
14209 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
14210 | DSYMUTIL=$lt_DSYMUTIL | |
14211 | ||
14212 | # Tool to change global to local symbols on Mac OS X. | |
14213 | NMEDIT=$lt_NMEDIT | |
14214 | ||
14215 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14216 | LIPO=$lt_LIPO | |
14217 | ||
14218 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14219 | OTOOL=$lt_OTOOL | |
14220 | ||
14221 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14222 | OTOOL64=$lt_OTOOL64 | |
14223 | ||
14224 | # Old archive suffix (normally "a"). | |
14225 | libext=$libext | |
14226 | ||
14227 | # Shared library suffix (normally ".so"). | |
14228 | shrext_cmds=$lt_shrext_cmds | |
14229 | ||
14230 | # The commands to extract the exported symbol list from a shared archive. | |
14231 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14232 | ||
14233 | # Variables whose values should be saved in libtool wrapper scripts and | |
14234 | # restored at link time. | |
14235 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14236 | ||
14237 | # Do we need the "lib" prefix for modules? | |
14238 | need_lib_prefix=$need_lib_prefix | |
14239 | ||
14240 | # Do we need a version for libraries? | |
14241 | need_version=$need_version | |
14242 | ||
14243 | # Library versioning type. | |
14244 | version_type=$version_type | |
14245 | ||
14246 | # Shared library runtime path variable. | |
14247 | runpath_var=$runpath_var | |
14248 | ||
14249 | # Shared library path variable. | |
14250 | shlibpath_var=$shlibpath_var | |
14251 | ||
14252 | # Is shlibpath searched before the hard-coded library search path? | |
14253 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14254 | ||
14255 | # Format of library name prefix. | |
14256 | libname_spec=$lt_libname_spec | |
14257 | ||
14258 | # List of archive names. First name is the real one, the rest are links. | |
14259 | # The last name is the one that the linker finds with -lNAME | |
14260 | library_names_spec=$lt_library_names_spec | |
14261 | ||
14262 | # The coded name of the library, if different from the real name. | |
14263 | soname_spec=$lt_soname_spec | |
14264 | ||
14265 | # Permission mode override for installation of shared libraries. | |
14266 | install_override_mode=$lt_install_override_mode | |
14267 | ||
14268 | # Command to use after installation of a shared archive. | |
14269 | postinstall_cmds=$lt_postinstall_cmds | |
14270 | ||
14271 | # Command to use after uninstallation of a shared archive. | |
14272 | postuninstall_cmds=$lt_postuninstall_cmds | |
14273 | ||
14274 | # Commands used to finish a libtool library installation in a directory. | |
14275 | finish_cmds=$lt_finish_cmds | |
14276 | ||
14277 | # As "finish_cmds", except a single script fragment to be evaled but | |
14278 | # not shown. | |
14279 | finish_eval=$lt_finish_eval | |
14280 | ||
14281 | # Whether we should hardcode library paths into libraries. | |
14282 | hardcode_into_libs=$hardcode_into_libs | |
14283 | ||
14284 | # Compile-time system search path for libraries. | |
14285 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14286 | ||
14287 | # Run-time system search path for libraries. | |
14288 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14289 | ||
14290 | # Whether dlopen is supported. | |
14291 | dlopen_support=$enable_dlopen | |
14292 | ||
14293 | # Whether dlopen of programs is supported. | |
14294 | dlopen_self=$enable_dlopen_self | |
14295 | ||
14296 | # Whether dlopen of statically linked programs is supported. | |
14297 | dlopen_self_static=$enable_dlopen_self_static | |
14298 | ||
14299 | # Commands to strip libraries. | |
14300 | old_striplib=$lt_old_striplib | |
14301 | striplib=$lt_striplib | |
14302 | ||
14303 | ||
14304 | # The linker used to build libraries. | |
14305 | LD=$lt_LD | |
14306 | ||
14307 | # How to create reloadable object files. | |
14308 | reload_flag=$lt_reload_flag | |
14309 | reload_cmds=$lt_reload_cmds | |
14310 | ||
14311 | # Commands used to build an old-style archive. | |
14312 | old_archive_cmds=$lt_old_archive_cmds | |
14313 | ||
14314 | # A language specific compiler. | |
14315 | CC=$lt_compiler | |
14316 | ||
14317 | # Is the compiler the GNU compiler? | |
14318 | with_gcc=$GCC | |
14319 | ||
14320 | # Compiler flag to turn off builtin functions. | |
14321 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14322 | ||
14323 | # How to pass a linker flag through the compiler. | |
14324 | wl=$lt_lt_prog_compiler_wl | |
14325 | ||
14326 | # Additional compiler flags for building library objects. | |
14327 | pic_flag=$lt_lt_prog_compiler_pic | |
14328 | ||
14329 | # Compiler flag to prevent dynamic linking. | |
14330 | link_static_flag=$lt_lt_prog_compiler_static | |
14331 | ||
14332 | # Does compiler simultaneously support -c and -o options? | |
14333 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14334 | ||
14335 | # Whether or not to add -lc for building shared libraries. | |
14336 | build_libtool_need_lc=$archive_cmds_need_lc | |
14337 | ||
14338 | # Whether or not to disallow shared libs when runtime libs are static. | |
14339 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14340 | ||
14341 | # Compiler flag to allow reflexive dlopens. | |
14342 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14343 | ||
14344 | # Compiler flag to generate shared objects directly from archives. | |
14345 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14346 | ||
14347 | # Whether the compiler copes with passing no objects directly. | |
14348 | compiler_needs_object=$lt_compiler_needs_object | |
14349 | ||
14350 | # Create an old-style archive from a shared archive. | |
14351 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14352 | ||
14353 | # Create a temporary old-style archive to link instead of a shared archive. | |
14354 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14355 | ||
14356 | # Commands used to build a shared archive. | |
14357 | archive_cmds=$lt_archive_cmds | |
14358 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
14359 | ||
14360 | # Commands used to build a loadable module if different from building | |
14361 | # a shared archive. | |
14362 | module_cmds=$lt_module_cmds | |
14363 | module_expsym_cmds=$lt_module_expsym_cmds | |
14364 | ||
14365 | # Whether we are building with GNU ld or not. | |
14366 | with_gnu_ld=$lt_with_gnu_ld | |
14367 | ||
14368 | # Flag that allows shared libraries with undefined symbols to be built. | |
14369 | allow_undefined_flag=$lt_allow_undefined_flag | |
14370 | ||
14371 | # Flag that enforces no undefined symbols. | |
14372 | no_undefined_flag=$lt_no_undefined_flag | |
14373 | ||
14374 | # Flag to hardcode \$libdir into a binary during linking. | |
14375 | # This must work even if \$libdir does not exist | |
14376 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14377 | ||
14378 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14379 | # during linking. This must work even if \$libdir does not exist. | |
14380 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14381 | ||
14382 | # Whether we need a single "-rpath" flag with a separated argument. | |
14383 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14384 | ||
14385 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14386 | # DIR into the resulting binary. | |
14387 | hardcode_direct=$hardcode_direct | |
14388 | ||
14389 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14390 | # DIR into the resulting binary and the resulting library dependency is | |
14391 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14392 | # library is relocated. | |
14393 | hardcode_direct_absolute=$hardcode_direct_absolute | |
14394 | ||
14395 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14396 | # into the resulting binary. | |
14397 | hardcode_minus_L=$hardcode_minus_L | |
14398 | ||
14399 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14400 | # into the resulting binary. | |
14401 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14402 | ||
14403 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
14404 | # into the library and all subsequent libraries and executables linked | |
14405 | # against it. | |
14406 | hardcode_automatic=$hardcode_automatic | |
14407 | ||
14408 | # Set to yes if linker adds runtime paths of dependent libraries | |
14409 | # to runtime path list. | |
14410 | inherit_rpath=$inherit_rpath | |
14411 | ||
14412 | # Whether libtool must link a program against all its dependency libraries. | |
14413 | link_all_deplibs=$link_all_deplibs | |
14414 | ||
14415 | # Fix the shell variable \$srcfile for the compiler. | |
14416 | fix_srcfile_path=$lt_fix_srcfile_path | |
14417 | ||
14418 | # Set to "yes" if exported symbols are required. | |
14419 | always_export_symbols=$always_export_symbols | |
14420 | ||
14421 | # The commands to list exported symbols. | |
14422 | export_symbols_cmds=$lt_export_symbols_cmds | |
14423 | ||
14424 | # Symbols that should not be listed in the preloaded symbols. | |
14425 | exclude_expsyms=$lt_exclude_expsyms | |
14426 | ||
14427 | # Symbols that must always be exported. | |
14428 | include_expsyms=$lt_include_expsyms | |
14429 | ||
14430 | # Commands necessary for linking programs (against libraries) with templates. | |
14431 | prelink_cmds=$lt_prelink_cmds | |
14432 | ||
14433 | # Specify filename containing input files. | |
14434 | file_list_spec=$lt_file_list_spec | |
14435 | ||
14436 | # How to hardcode a shared library path into an executable. | |
14437 | hardcode_action=$hardcode_action | |
14438 | ||
14439 | # ### END LIBTOOL CONFIG | |
14440 | ||
14441 | _LT_EOF | |
14442 | ||
14443 | case $host_os in | |
14444 | aix3*) | |
14445 | cat <<\_LT_EOF >> "$cfgfile" | |
14446 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14447 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14448 | # vanish in a puff of smoke. | |
14449 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14450 | COLLECT_NAMES= | |
14451 | export COLLECT_NAMES | |
14452 | fi | |
14453 | _LT_EOF | |
14454 | ;; | |
14455 | esac | |
14456 | ||
14457 | ||
14458 | ltmain="$ac_aux_dir/ltmain.sh" | |
14459 | ||
14460 | ||
14461 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14462 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14463 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14464 | # is reportedly fixed, but why not run on old versions too? | |
14465 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14466 | || (rm -f "$cfgfile"; exit 1) | |
14467 | ||
14468 | case $xsi_shell in | |
14469 | yes) | |
14470 | cat << \_LT_EOF >> "$cfgfile" | |
14471 | ||
14472 | # func_dirname file append nondir_replacement | |
14473 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14474 | # otherwise set result to NONDIR_REPLACEMENT. | |
14475 | func_dirname () | |
14476 | { | |
14477 | case ${1} in | |
14478 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14479 | * ) func_dirname_result="${3}" ;; | |
14480 | esac | |
14481 | } | |
14482 | ||
14483 | # func_basename file | |
14484 | func_basename () | |
14485 | { | |
14486 | func_basename_result="${1##*/}" | |
14487 | } | |
14488 | ||
14489 | # func_dirname_and_basename file append nondir_replacement | |
14490 | # perform func_basename and func_dirname in a single function | |
14491 | # call: | |
14492 | # dirname: Compute the dirname of FILE. If nonempty, | |
14493 | # add APPEND to the result, otherwise set result | |
14494 | # to NONDIR_REPLACEMENT. | |
14495 | # value returned in "$func_dirname_result" | |
14496 | # basename: Compute filename of FILE. | |
14497 | # value retuned in "$func_basename_result" | |
14498 | # Implementation must be kept synchronized with func_dirname | |
14499 | # and func_basename. For efficiency, we do not delegate to | |
14500 | # those functions but instead duplicate the functionality here. | |
14501 | func_dirname_and_basename () | |
14502 | { | |
14503 | case ${1} in | |
14504 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14505 | * ) func_dirname_result="${3}" ;; | |
14506 | esac | |
14507 | func_basename_result="${1##*/}" | |
14508 | } | |
14509 | ||
14510 | # func_stripname prefix suffix name | |
14511 | # strip PREFIX and SUFFIX off of NAME. | |
14512 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14513 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14514 | # dot (in which case that matches only a dot). | |
14515 | func_stripname () | |
14516 | { | |
14517 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14518 | # positional parameters, so assign one to ordinary parameter first. | |
14519 | func_stripname_result=${3} | |
14520 | func_stripname_result=${func_stripname_result#"${1}"} | |
14521 | func_stripname_result=${func_stripname_result%"${2}"} | |
14522 | } | |
14523 | ||
14524 | # func_opt_split | |
14525 | func_opt_split () | |
14526 | { | |
14527 | func_opt_split_opt=${1%%=*} | |
14528 | func_opt_split_arg=${1#*=} | |
14529 | } | |
14530 | ||
14531 | # func_lo2o object | |
14532 | func_lo2o () | |
14533 | { | |
14534 | case ${1} in | |
14535 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14536 | *) func_lo2o_result=${1} ;; | |
14537 | esac | |
14538 | } | |
14539 | ||
14540 | # func_xform libobj-or-source | |
14541 | func_xform () | |
14542 | { | |
14543 | func_xform_result=${1%.*}.lo | |
14544 | } | |
14545 | ||
14546 | # func_arith arithmetic-term... | |
14547 | func_arith () | |
14548 | { | |
14549 | func_arith_result=$(( $* )) | |
14550 | } | |
14551 | ||
14552 | # func_len string | |
14553 | # STRING may not start with a hyphen. | |
14554 | func_len () | |
14555 | { | |
14556 | func_len_result=${#1} | |
14557 | } | |
14558 | ||
14559 | _LT_EOF | |
14560 | ;; | |
14561 | *) # Bourne compatible functions. | |
14562 | cat << \_LT_EOF >> "$cfgfile" | |
14563 | ||
14564 | # func_dirname file append nondir_replacement | |
14565 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14566 | # otherwise set result to NONDIR_REPLACEMENT. | |
14567 | func_dirname () | |
14568 | { | |
14569 | # Extract subdirectory from the argument. | |
14570 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
14571 | if test "X$func_dirname_result" = "X${1}"; then | |
14572 | func_dirname_result="${3}" | |
14573 | else | |
14574 | func_dirname_result="$func_dirname_result${2}" | |
14575 | fi | |
14576 | } | |
14577 | ||
14578 | # func_basename file | |
14579 | func_basename () | |
14580 | { | |
14581 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
14582 | } | |
14583 | ||
14584 | ||
14585 | # func_stripname prefix suffix name | |
14586 | # strip PREFIX and SUFFIX off of NAME. | |
14587 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14588 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14589 | # dot (in which case that matches only a dot). | |
14590 | # func_strip_suffix prefix name | |
14591 | func_stripname () | |
14592 | { | |
14593 | case ${2} in | |
14594 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
14595 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
14596 | esac | |
14597 | } | |
14598 | ||
14599 | # sed scripts: | |
14600 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14601 | my_sed_long_arg='1s/^-[^=]*=//' | |
14602 | ||
14603 | # func_opt_split | |
14604 | func_opt_split () | |
14605 | { | |
14606 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
14607 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
14608 | } | |
14609 | ||
14610 | # func_lo2o object | |
14611 | func_lo2o () | |
14612 | { | |
14613 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
14614 | } | |
14615 | ||
14616 | # func_xform libobj-or-source | |
14617 | func_xform () | |
14618 | { | |
14619 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
14620 | } | |
14621 | ||
14622 | # func_arith arithmetic-term... | |
14623 | func_arith () | |
14624 | { | |
14625 | func_arith_result=`expr "$@"` | |
14626 | } | |
14627 | ||
14628 | # func_len string | |
14629 | # STRING may not start with a hyphen. | |
14630 | func_len () | |
14631 | { | |
14632 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14633 | } | |
14634 | ||
14635 | _LT_EOF | |
14636 | esac | |
14637 | ||
14638 | case $lt_shell_append in | |
14639 | yes) | |
14640 | cat << \_LT_EOF >> "$cfgfile" | |
14641 | ||
14642 | # func_append var value | |
14643 | # Append VALUE to the end of shell variable VAR. | |
14644 | func_append () | |
14645 | { | |
14646 | eval "$1+=\$2" | |
14647 | } | |
14648 | _LT_EOF | |
14649 | ;; | |
14650 | *) | |
14651 | cat << \_LT_EOF >> "$cfgfile" | |
14652 | ||
14653 | # func_append var value | |
14654 | # Append VALUE to the end of shell variable VAR. | |
14655 | func_append () | |
14656 | { | |
14657 | eval "$1=\$$1\$2" | |
14658 | } | |
14659 | ||
14660 | _LT_EOF | |
14661 | ;; | |
14662 | esac | |
14663 | ||
14664 | ||
14665 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14666 | || (rm -f "$cfgfile"; exit 1) | |
14667 | ||
14668 | mv -f "$cfgfile" "$ofile" || | |
14669 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14670 | chmod +x "$ofile" | |
14671 | ||
14672 | ;; | |
14673 | "default-1":C) | |
14674 | # Only add multilib support code if we just rebuilt the top-level | |
14675 | # Makefile. | |
14676 | case " $CONFIG_FILES " in | |
14677 | *" Makefile "*) | |
14678 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
14679 | ;; | |
14680 | esac ;; | |
76850556 RO |
14681 | "gstdint.h":C) |
14682 | if test "$GCC" = yes; then | |
14683 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
14684 | else | |
14685 | echo "/* generated for $CC */" > tmp-stdint.h | |
14686 | fi | |
14687 | ||
14688 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14689 | ||
14690 | #ifndef GCC_GENERATED_STDINT_H | |
14691 | #define GCC_GENERATED_STDINT_H 1 | |
14692 | ||
14693 | #include <sys/types.h> | |
14694 | EOF | |
14695 | ||
14696 | if test "$acx_cv_header_stdint" != stdint.h; then | |
14697 | echo "#include <stddef.h>" >> tmp-stdint.h | |
14698 | fi | |
14699 | if test "$acx_cv_header_stdint" != stddef.h; then | |
14700 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
14701 | fi | |
14702 | ||
14703 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14704 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
14705 | #ifdef __int8_t_defined | |
14706 | #define _INT8_T | |
14707 | #define _INT16_T | |
14708 | #define _INT32_T | |
14709 | #endif | |
14710 | #ifdef __uint32_t_defined | |
14711 | #define _UINT32_T | |
14712 | #endif | |
14713 | ||
14714 | EOF | |
14715 | ||
14716 | # ----------------- done header, emit basic int types ------------- | |
14717 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14718 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14719 | ||
14720 | #ifndef _UINT8_T | |
14721 | #define _UINT8_T | |
14722 | #ifndef __uint8_t_defined | |
14723 | #define __uint8_t_defined | |
14724 | #ifndef uint8_t | |
14725 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
14726 | #endif | |
14727 | #endif | |
14728 | #endif | |
14729 | ||
14730 | #ifndef _UINT16_T | |
14731 | #define _UINT16_T | |
14732 | #ifndef __uint16_t_defined | |
14733 | #define __uint16_t_defined | |
14734 | #ifndef uint16_t | |
14735 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
14736 | #endif | |
14737 | #endif | |
14738 | #endif | |
14739 | ||
14740 | #ifndef _UINT32_T | |
14741 | #define _UINT32_T | |
14742 | #ifndef __uint32_t_defined | |
14743 | #define __uint32_t_defined | |
14744 | #ifndef uint32_t | |
14745 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
14746 | #endif | |
14747 | #endif | |
14748 | #endif | |
14749 | ||
14750 | #ifndef _INT8_T | |
14751 | #define _INT8_T | |
14752 | #ifndef __int8_t_defined | |
14753 | #define __int8_t_defined | |
14754 | #ifndef int8_t | |
14755 | typedef $acx_cv_type_int8_t int8_t; | |
14756 | #endif | |
14757 | #endif | |
14758 | #endif | |
14759 | ||
14760 | #ifndef _INT16_T | |
14761 | #define _INT16_T | |
14762 | #ifndef __int16_t_defined | |
14763 | #define __int16_t_defined | |
14764 | #ifndef int16_t | |
14765 | typedef $acx_cv_type_int16_t int16_t; | |
14766 | #endif | |
14767 | #endif | |
14768 | #endif | |
14769 | ||
14770 | #ifndef _INT32_T | |
14771 | #define _INT32_T | |
14772 | #ifndef __int32_t_defined | |
14773 | #define __int32_t_defined | |
14774 | #ifndef int32_t | |
14775 | typedef $acx_cv_type_int32_t int32_t; | |
14776 | #endif | |
14777 | #endif | |
14778 | #endif | |
14779 | EOF | |
14780 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
14781 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14782 | ||
14783 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
14784 | #ifndef _INT8_T | |
14785 | #define _INT8_T | |
14786 | #endif | |
14787 | #ifndef _INT16_T | |
14788 | #define _INT16_T | |
14789 | #endif | |
14790 | #ifndef _INT32_T | |
14791 | #define _INT32_T | |
14792 | #endif | |
14793 | ||
14794 | #ifndef _UINT8_T | |
14795 | #define _UINT8_T | |
14796 | #ifndef __uint8_t_defined | |
14797 | #define __uint8_t_defined | |
14798 | #ifndef uint8_t | |
14799 | typedef u_int8_t uint8_t; | |
14800 | #endif | |
14801 | #endif | |
14802 | #endif | |
14803 | ||
14804 | #ifndef _UINT16_T | |
14805 | #define _UINT16_T | |
14806 | #ifndef __uint16_t_defined | |
14807 | #define __uint16_t_defined | |
14808 | #ifndef uint16_t | |
14809 | typedef u_int16_t uint16_t; | |
14810 | #endif | |
14811 | #endif | |
14812 | #endif | |
14813 | ||
14814 | #ifndef _UINT32_T | |
14815 | #define _UINT32_T | |
14816 | #ifndef __uint32_t_defined | |
14817 | #define __uint32_t_defined | |
14818 | #ifndef uint32_t | |
14819 | typedef u_int32_t uint32_t; | |
14820 | #endif | |
14821 | #endif | |
14822 | #endif | |
14823 | EOF | |
14824 | else | |
14825 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14826 | ||
14827 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
14828 | #ifndef _INT8_T | |
14829 | #define _INT8_T | |
14830 | #endif | |
14831 | #ifndef _INT16_T | |
14832 | #define _INT16_T | |
14833 | #endif | |
14834 | #ifndef _INT32_T | |
14835 | #define _INT32_T | |
14836 | #endif | |
14837 | #ifndef _UINT8_T | |
14838 | #define _UINT8_T | |
14839 | #endif | |
14840 | #ifndef _UINT16_T | |
14841 | #define _UINT16_T | |
14842 | #endif | |
14843 | #ifndef _UINT32_T | |
14844 | #define _UINT32_T | |
14845 | #endif | |
14846 | EOF | |
14847 | fi | |
14848 | ||
14849 | # ------------- done basic int types, emit int64_t types ------------ | |
14850 | if test "$ac_cv_type_uint64_t" = yes; then | |
14851 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14852 | ||
14853 | /* system headers have good uint64_t and int64_t */ | |
14854 | #ifndef _INT64_T | |
14855 | #define _INT64_T | |
14856 | #endif | |
14857 | #ifndef _UINT64_T | |
14858 | #define _UINT64_T | |
14859 | #endif | |
14860 | EOF | |
14861 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
14862 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14863 | ||
14864 | /* system headers have an u_int64_t (and int64_t) */ | |
14865 | #ifndef _INT64_T | |
14866 | #define _INT64_T | |
14867 | #endif | |
14868 | #ifndef _UINT64_T | |
14869 | #define _UINT64_T | |
14870 | #ifndef __uint64_t_defined | |
14871 | #define __uint64_t_defined | |
14872 | #ifndef uint64_t | |
14873 | typedef u_int64_t uint64_t; | |
14874 | #endif | |
14875 | #endif | |
14876 | #endif | |
14877 | EOF | |
14878 | elif test -n "$acx_cv_type_int64_t"; then | |
14879 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14880 | ||
14881 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
14882 | #ifndef _INT64_T | |
14883 | #define _INT64_T | |
14884 | #ifndef int64_t | |
14885 | typedef $acx_cv_type_int64_t int64_t; | |
14886 | #endif | |
14887 | #endif | |
14888 | #ifndef _UINT64_T | |
14889 | #define _UINT64_T | |
14890 | #ifndef __uint64_t_defined | |
14891 | #define __uint64_t_defined | |
14892 | #ifndef uint64_t | |
14893 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
14894 | #endif | |
14895 | #endif | |
14896 | #endif | |
14897 | EOF | |
14898 | else | |
14899 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14900 | ||
14901 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
14902 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
14903 | #ifndef _INT64_T | |
14904 | #define _INT64_T | |
14905 | #ifndef __int64_t_defined | |
14906 | #ifndef int64_t | |
14907 | typedef long long int64_t; | |
14908 | #endif | |
14909 | #endif | |
14910 | #endif | |
14911 | #ifndef _UINT64_T | |
14912 | #define _UINT64_T | |
14913 | #ifndef uint64_t | |
14914 | typedef unsigned long long uint64_t; | |
14915 | #endif | |
14916 | #endif | |
14917 | ||
14918 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
14919 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
14920 | does not implement __extension__. But that compiler doesn't define | |
14921 | __GNUC_MINOR__. */ | |
14922 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
14923 | # define __extension__ | |
14924 | # endif | |
14925 | ||
14926 | # ifndef _INT64_T | |
14927 | # define _INT64_T | |
14928 | # ifndef int64_t | |
14929 | __extension__ typedef long long int64_t; | |
14930 | # endif | |
14931 | # endif | |
14932 | # ifndef _UINT64_T | |
14933 | # define _UINT64_T | |
14934 | # ifndef uint64_t | |
14935 | __extension__ typedef unsigned long long uint64_t; | |
14936 | # endif | |
14937 | # endif | |
14938 | ||
14939 | #elif !defined __STRICT_ANSI__ | |
14940 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
14941 | ||
14942 | # ifndef _INT64_T | |
14943 | # define _INT64_T | |
14944 | # ifndef int64_t | |
14945 | typedef __int64 int64_t; | |
14946 | # endif | |
14947 | # endif | |
14948 | # ifndef _UINT64_T | |
14949 | # define _UINT64_T | |
14950 | # ifndef uint64_t | |
14951 | typedef unsigned __int64 uint64_t; | |
14952 | # endif | |
14953 | # endif | |
14954 | # endif /* compiler */ | |
14955 | ||
14956 | #endif /* ANSI version */ | |
14957 | EOF | |
14958 | fi | |
14959 | ||
14960 | # ------------- done int64_t types, emit intptr types ------------ | |
14961 | if test "$ac_cv_type_uintptr_t" != yes; then | |
14962 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14963 | ||
14964 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
14965 | #ifndef __uintptr_t_defined | |
14966 | #ifndef uintptr_t | |
14967 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
14968 | #endif | |
14969 | #endif | |
14970 | #ifndef __intptr_t_defined | |
14971 | #ifndef intptr_t | |
14972 | typedef $acx_cv_type_intptr_t intptr_t; | |
14973 | #endif | |
14974 | #endif | |
14975 | EOF | |
14976 | fi | |
14977 | ||
14978 | # ------------- done intptr types, emit int_least types ------------ | |
14979 | if test "$ac_cv_type_int_least32_t" != yes; then | |
14980 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
14981 | ||
14982 | /* Define int_least types */ | |
14983 | typedef int8_t int_least8_t; | |
14984 | typedef int16_t int_least16_t; | |
14985 | typedef int32_t int_least32_t; | |
14986 | #ifdef _INT64_T | |
14987 | typedef int64_t int_least64_t; | |
14988 | #endif | |
14989 | ||
14990 | typedef uint8_t uint_least8_t; | |
14991 | typedef uint16_t uint_least16_t; | |
14992 | typedef uint32_t uint_least32_t; | |
14993 | #ifdef _UINT64_T | |
14994 | typedef uint64_t uint_least64_t; | |
14995 | #endif | |
14996 | EOF | |
14997 | fi | |
14998 | ||
14999 | # ------------- done intptr types, emit int_fast types ------------ | |
15000 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
15001 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
15002 | ||
15003 | /* Define int_fast types. short is often slow */ | |
15004 | typedef int8_t int_fast8_t; | |
15005 | typedef int int_fast16_t; | |
15006 | typedef int32_t int_fast32_t; | |
15007 | #ifdef _INT64_T | |
15008 | typedef int64_t int_fast64_t; | |
15009 | #endif | |
15010 | ||
15011 | typedef uint8_t uint_fast8_t; | |
15012 | typedef unsigned int uint_fast16_t; | |
15013 | typedef uint32_t uint_fast32_t; | |
15014 | #ifdef _UINT64_T | |
15015 | typedef uint64_t uint_fast64_t; | |
15016 | #endif | |
15017 | EOF | |
15018 | fi | |
15019 | ||
15020 | if test "$ac_cv_type_uintmax_t" != yes; then | |
15021 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
15022 | ||
15023 | /* Define intmax based on what we found */ | |
15024 | #ifndef intmax_t | |
15025 | #ifdef _INT64_T | |
15026 | typedef int64_t intmax_t; | |
15027 | #else | |
15028 | typedef long intmax_t; | |
15029 | #endif | |
15030 | #endif | |
15031 | #ifndef uintmax_t | |
15032 | #ifdef _UINT64_T | |
15033 | typedef uint64_t uintmax_t; | |
15034 | #else | |
15035 | typedef unsigned long uintmax_t; | |
15036 | #endif | |
15037 | #endif | |
15038 | EOF | |
15039 | fi | |
15040 | ||
15041 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
15042 | ||
15043 | #endif /* GCC_GENERATED_STDINT_H */ | |
15044 | EOF | |
15045 | ||
15046 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
15047 | rm -f tmp-stdint.h | |
15048 | else | |
15049 | mv -f tmp-stdint.h gstdint.h | |
15050 | fi | |
15051 | ||
15052 | ;; | |
eff02e4f ILT |
15053 | "default":C) if test -n "$CONFIG_FILES"; then |
15054 | if test -n "${with_target_subdir}"; then | |
15055 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so | |
15056 | # that multilib installs will end up installed in the correct place. | |
15057 | # The testsuite needs it for multilib-aware ABI baseline files. | |
15058 | # To work around this not being passed down from config-ml.in -> | |
15059 | # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually | |
15060 | # append it here. Only modify Makefiles that have just been created. | |
15061 | # | |
15062 | # Also, get rid of this simulated-VPATH thing that automake does. | |
15063 | cat > vpsed << \_EOF | |
15064 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
15065 | _EOF | |
15066 | for i in $SUBDIRS; do | |
15067 | case $CONFIG_FILES in | |
15068 | *${i}/Makefile*) | |
15069 | #echo "Adding MULTISUBDIR to $i/Makefile" | |
15070 | sed -f vpsed $i/Makefile > tmp | |
15071 | grep '^MULTISUBDIR =' Makefile >> tmp | |
15072 | mv tmp $i/Makefile | |
15073 | ;; | |
15074 | esac | |
15075 | done | |
15076 | rm vpsed | |
15077 | fi | |
15078 | fi | |
15079 | ;; | |
15080 | ||
15081 | esac | |
15082 | done # for ac_tag | |
15083 | ||
15084 | ||
15085 | as_fn_exit 0 | |
15086 | _ACEOF | |
15087 | ac_clean_files=$ac_clean_files_save | |
15088 | ||
15089 | test $ac_write_fail = 0 || | |
15090 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15091 | ||
15092 | ||
15093 | # configure is writing to config.log, and then calls config.status. | |
15094 | # config.status does its own redirection, appending to config.log. | |
15095 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15096 | # by configure, so config.status won't be able to write to it; its | |
15097 | # output is simply discarded. So we exec the FD to /dev/null, | |
15098 | # effectively closing config.log, so it can be properly (re)opened and | |
15099 | # appended to by config.status. When coming back to configure, we | |
15100 | # need to make the FD available again. | |
15101 | if test "$no_create" != yes; then | |
15102 | ac_cs_success=: | |
15103 | ac_config_status_args= | |
15104 | test "$silent" = yes && | |
15105 | ac_config_status_args="$ac_config_status_args --quiet" | |
15106 | exec 5>/dev/null | |
15107 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15108 | exec 5>>config.log | |
15109 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15110 | # would make configure fail if this is the last instruction. | |
15111 | $ac_cs_success || as_fn_exit $? | |
15112 | fi | |
15113 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15115 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
15116 | fi | |
15117 |