Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
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. | |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
42ecbf5e | 14 | |
81ecdfbb RW |
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 : | |
42ecbf5e DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
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 | |
42ecbf5e | 31 | fi |
42ecbf5e | 32 | |
81ecdfbb RW |
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 | } | |
42ecbf5e DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
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 | |
42ecbf5e DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
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 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42ecbf5e | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
42ecbf5e | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
42ecbf5e | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
42ecbf5e | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
42ecbf5e | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
42ecbf5e | 410 | |
42ecbf5e DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
42ecbf5e | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
42ecbf5e | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
42ecbf5e | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
42ecbf5e | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
42ecbf5e | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
42ecbf5e DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
42ecbf5e DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
42ecbf5e DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
42ecbf5e | 483 | fi |
42ecbf5e DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
42ecbf5e DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
42ecbf5e DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
d7040cdb SE |
527 | |
528 | # Check that we are running under the correct shell. | |
529 | SHELL=${CONFIG_SHELL-/bin/sh} | |
530 | ||
531 | case X$lt_ECHO in | |
532 | X*--fallback-echo) | |
533 | # Remove one level of quotation (which was required for Make). | |
534 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
535 | ;; | |
536 | esac | |
537 | ||
538 | ECHO=${lt_ECHO-echo} | |
539 | if test "X$1" = X--no-reexec; then | |
540 | # Discard the --no-reexec flag, and continue. | |
541 | shift | |
542 | elif test "X$1" = X--fallback-echo; then | |
543 | # Avoid inline document here, it may be left over | |
544 | : | |
545 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
546 | # Yippee, $ECHO works! | |
547 | : | |
548 | else | |
549 | # Restart under the correct shell. | |
550 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
551 | fi | |
552 | ||
553 | if test "X$1" = X--fallback-echo; then | |
554 | # used as fallback echo | |
555 | shift | |
556 | cat <<_LT_EOF | |
557 | $* | |
558 | _LT_EOF | |
559 | exit 0 | |
560 | fi | |
561 | ||
562 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
563 | # if CDPATH is set. | |
564 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
565 | ||
566 | if test -z "$lt_ECHO"; then | |
567 | if test "X${echo_test_string+set}" != Xset; then | |
568 | # find a string as large as possible, as long as the shell can cope with it | |
569 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
570 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
571 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
572 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
573 | then | |
574 | break | |
575 | fi | |
576 | done | |
577 | fi | |
578 | ||
579 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
580 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
581 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
582 | : | |
583 | else | |
584 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
585 | # backslashes. This makes it impossible to quote backslashes using | |
586 | # echo "$something" | sed 's/\\/\\\\/g' | |
587 | # | |
588 | # So, first we look for a working echo in the user's PATH. | |
589 | ||
590 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
591 | for dir in $PATH /usr/ucb; do | |
592 | IFS="$lt_save_ifs" | |
593 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
594 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
595 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
596 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
597 | ECHO="$dir/echo" | |
598 | break | |
599 | fi | |
600 | done | |
601 | IFS="$lt_save_ifs" | |
602 | ||
603 | if test "X$ECHO" = Xecho; then | |
604 | # We didn't find a better echo, so look for alternatives. | |
605 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
606 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 | # This shell has a builtin print -r that does the trick. | |
609 | ECHO='print -r' | |
610 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
611 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
612 | # If we have ksh, try running configure again with it. | |
613 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
614 | export ORIGINAL_CONFIG_SHELL | |
615 | CONFIG_SHELL=/bin/ksh | |
616 | export CONFIG_SHELL | |
617 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
618 | else | |
619 | # Try using printf. | |
620 | ECHO='printf %s\n' | |
621 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
622 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
623 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 | # Cool, printf works | |
625 | : | |
626 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
627 | test "X$echo_testing_string" = 'X\t' && | |
628 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
629 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
630 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
631 | export CONFIG_SHELL | |
632 | SHELL="$CONFIG_SHELL" | |
633 | export SHELL | |
634 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
635 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
636 | test "X$echo_testing_string" = 'X\t' && | |
637 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
638 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | else | |
641 | # maybe with a smaller string... | |
642 | prev=: | |
643 | ||
644 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
645 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
646 | then | |
647 | break | |
648 | fi | |
649 | prev="$cmd" | |
650 | done | |
651 | ||
652 | if test "$prev" != 'sed 50q "$0"'; then | |
653 | echo_test_string=`eval $prev` | |
654 | export echo_test_string | |
655 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
656 | else | |
657 | # Oops. We lost completely, so just stick with echo. | |
658 | ECHO=echo | |
659 | fi | |
660 | fi | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | fi | |
665 | ||
666 | # Copy echo and quote the copy suitably for passing to libtool from | |
667 | # the Makefile, instead of quoting the original, which is used later. | |
668 | lt_ECHO=$ECHO | |
669 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
670 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
671 | fi | |
672 | ||
673 | ||
674 | ||
675 | ||
81ecdfbb RW |
676 | exec 7<&0 </dev/null 6>&1 |
677 | ||
42ecbf5e DJ |
678 | # Name of the host. |
679 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
680 | # so uname gets run too. | |
681 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 682 | |
42ecbf5e DJ |
683 | # |
684 | # Initializations. | |
685 | # | |
252b5132 | 686 | ac_default_prefix=/usr/local |
81ecdfbb | 687 | ac_clean_files= |
42ecbf5e | 688 | ac_config_libobj_dir=. |
81ecdfbb | 689 | LIBOBJS= |
42ecbf5e DJ |
690 | cross_compiling=no |
691 | subdirs= | |
692 | MFLAGS= | |
693 | MAKEFLAGS= | |
42ecbf5e DJ |
694 | |
695 | # Identity of this package. | |
696 | PACKAGE_NAME= | |
697 | PACKAGE_TARNAME= | |
698 | PACKAGE_VERSION= | |
699 | PACKAGE_STRING= | |
700 | PACKAGE_BUGREPORT= | |
81ecdfbb | 701 | PACKAGE_URL= |
42ecbf5e DJ |
702 | |
703 | ac_unique_file="ldmain.c" | |
704 | # Factoring default headers for most tests. | |
705 | ac_includes_default="\ | |
706 | #include <stdio.h> | |
81ecdfbb | 707 | #ifdef HAVE_SYS_TYPES_H |
42ecbf5e DJ |
708 | # include <sys/types.h> |
709 | #endif | |
81ecdfbb | 710 | #ifdef HAVE_SYS_STAT_H |
42ecbf5e DJ |
711 | # include <sys/stat.h> |
712 | #endif | |
81ecdfbb | 713 | #ifdef STDC_HEADERS |
42ecbf5e DJ |
714 | # include <stdlib.h> |
715 | # include <stddef.h> | |
716 | #else | |
81ecdfbb | 717 | # ifdef HAVE_STDLIB_H |
42ecbf5e DJ |
718 | # include <stdlib.h> |
719 | # endif | |
720 | #endif | |
81ecdfbb RW |
721 | #ifdef HAVE_STRING_H |
722 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
42ecbf5e DJ |
723 | # include <memory.h> |
724 | # endif | |
725 | # include <string.h> | |
726 | #endif | |
81ecdfbb | 727 | #ifdef HAVE_STRINGS_H |
42ecbf5e DJ |
728 | # include <strings.h> |
729 | #endif | |
81ecdfbb | 730 | #ifdef HAVE_INTTYPES_H |
42ecbf5e | 731 | # include <inttypes.h> |
42ecbf5e | 732 | #endif |
81ecdfbb RW |
733 | #ifdef HAVE_STDINT_H |
734 | # include <stdint.h> | |
735 | #endif | |
736 | #ifdef HAVE_UNISTD_H | |
42ecbf5e DJ |
737 | # include <unistd.h> |
738 | #endif" | |
739 | ||
81ecdfbb RW |
740 | ac_subst_vars='am__EXEEXT_FALSE |
741 | am__EXEEXT_TRUE | |
742 | LTLIBOBJS | |
743 | LIBOBJS | |
744 | TESTBFDLIB | |
745 | EMULATION_LIBPATH | |
746 | LIB_PATH | |
747 | EMUL_EXTRA_OFILES | |
748 | EMULATION_OFILES | |
749 | EMUL | |
750 | STRINGIFY | |
751 | NATIVE_LIB_DIRS | |
752 | HOSTING_LIBS | |
753 | HOSTING_CRT0 | |
754 | HDEFINES | |
755 | do_compare | |
756 | GENINSRC_NEVER_FALSE | |
757 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
758 | LEXLIB |
759 | LEX_OUTPUT_ROOT | |
760 | LEX | |
761 | YFLAGS | |
762 | YACC | |
763 | MSGMERGE | |
764 | MSGFMT | |
765 | MKINSTALLDIRS | |
766 | CATOBJEXT | |
767 | GENCAT | |
768 | INSTOBJEXT | |
769 | DATADIRNAME | |
770 | CATALOGS | |
771 | POSUB | |
772 | GMSGFMT | |
773 | XGETTEXT | |
774 | INCINTL | |
775 | LIBINTL_DEP | |
776 | LIBINTL | |
777 | USE_NLS | |
778 | OTOOL64 | |
779 | OTOOL | |
780 | LIPO | |
781 | NMEDIT | |
782 | DSYMUTIL | |
783 | lt_ECHO | |
784 | RANLIB | |
785 | AR | |
786 | OBJDUMP | |
787 | LN_S | |
788 | NM | |
789 | ac_ct_DUMPBIN | |
790 | DUMPBIN | |
791 | LD | |
792 | FGREP | |
793 | SED | |
794 | LIBTOOL | |
795 | EGREP | |
796 | GREP | |
797 | CPP | |
798 | NO_WERROR | |
799 | WARN_CFLAGS | |
800 | TARGET_SYSTEM_ROOT_DEFINE | |
801 | TARGET_SYSTEM_ROOT | |
802 | use_sysroot | |
64ac50ac RW |
803 | MAINT |
804 | MAINTAINER_MODE_FALSE | |
805 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
806 | am__fastdepCC_FALSE |
807 | am__fastdepCC_TRUE | |
808 | CCDEPMODE | |
809 | AMDEPBACKSLASH | |
810 | AMDEP_FALSE | |
811 | AMDEP_TRUE | |
812 | am__quote | |
813 | am__include | |
814 | DEPDIR | |
815 | am__untar | |
816 | am__tar | |
817 | AMTAR | |
818 | am__leading_dot | |
819 | SET_MAKE | |
820 | AWK | |
821 | mkdir_p | |
822 | MKDIR_P | |
823 | INSTALL_STRIP_PROGRAM | |
824 | STRIP | |
825 | install_sh | |
826 | MAKEINFO | |
827 | AUTOHEADER | |
828 | AUTOMAKE | |
829 | AUTOCONF | |
830 | ACLOCAL | |
831 | VERSION | |
832 | PACKAGE | |
833 | CYGPATH_W | |
834 | am__isrc | |
835 | INSTALL_DATA | |
836 | INSTALL_SCRIPT | |
837 | INSTALL_PROGRAM | |
838 | OBJEXT | |
839 | EXEEXT | |
840 | ac_ct_CC | |
841 | CPPFLAGS | |
842 | LDFLAGS | |
843 | CFLAGS | |
844 | CC | |
845 | target_os | |
846 | target_vendor | |
847 | target_cpu | |
848 | target | |
849 | host_os | |
850 | host_vendor | |
851 | host_cpu | |
852 | host | |
853 | build_os | |
854 | build_vendor | |
855 | build_cpu | |
856 | build | |
857 | target_alias | |
858 | host_alias | |
859 | build_alias | |
860 | LIBS | |
861 | ECHO_T | |
862 | ECHO_N | |
863 | ECHO_C | |
864 | DEFS | |
865 | mandir | |
866 | localedir | |
867 | libdir | |
868 | psdir | |
869 | pdfdir | |
870 | dvidir | |
871 | htmldir | |
872 | infodir | |
873 | docdir | |
874 | oldincludedir | |
875 | includedir | |
876 | localstatedir | |
877 | sharedstatedir | |
878 | sysconfdir | |
879 | datadir | |
880 | datarootdir | |
881 | libexecdir | |
882 | sbindir | |
883 | bindir | |
884 | program_transform_name | |
885 | prefix | |
886 | exec_prefix | |
887 | PACKAGE_URL | |
888 | PACKAGE_BUGREPORT | |
889 | PACKAGE_STRING | |
890 | PACKAGE_VERSION | |
891 | PACKAGE_TARNAME | |
892 | PACKAGE_NAME | |
893 | PATH_SEPARATOR | |
894 | SHELL' | |
42ecbf5e | 895 | ac_subst_files='TDIRS' |
81ecdfbb RW |
896 | ac_user_opts=' |
897 | enable_option_checking | |
898 | enable_dependency_tracking | |
64ac50ac | 899 | enable_maintainer_mode |
81ecdfbb RW |
900 | with_lib_path |
901 | enable_targets | |
902 | enable_64_bit_bfd | |
903 | with_sysroot | |
904 | enable_got | |
905 | enable_werror | |
906 | enable_build_warnings | |
da2f07f1 | 907 | enable_plugins |
81ecdfbb RW |
908 | enable_largefile |
909 | enable_shared | |
910 | enable_static | |
911 | with_pic | |
912 | enable_fast_install | |
913 | with_gnu_ld | |
914 | enable_libtool_lock | |
915 | enable_nls | |
81ecdfbb RW |
916 | ' |
917 | ac_precious_vars='build_alias | |
918 | host_alias | |
919 | target_alias | |
920 | CC | |
921 | CFLAGS | |
922 | LDFLAGS | |
923 | LIBS | |
924 | CPPFLAGS | |
925 | CPP | |
926 | YACC | |
927 | YFLAGS' | |
928 | ||
252b5132 RH |
929 | |
930 | # Initialize some variables set by options. | |
42ecbf5e DJ |
931 | ac_init_help= |
932 | ac_init_version=false | |
81ecdfbb RW |
933 | ac_unrecognized_opts= |
934 | ac_unrecognized_sep= | |
252b5132 RH |
935 | # The variables have the same names as the options, with |
936 | # dashes changed to underlines. | |
42ecbf5e | 937 | cache_file=/dev/null |
252b5132 | 938 | exec_prefix=NONE |
252b5132 | 939 | no_create= |
252b5132 RH |
940 | no_recursion= |
941 | prefix=NONE | |
942 | program_prefix=NONE | |
943 | program_suffix=NONE | |
944 | program_transform_name=s,x,x, | |
945 | silent= | |
946 | site= | |
947 | srcdir= | |
252b5132 RH |
948 | verbose= |
949 | x_includes=NONE | |
950 | x_libraries=NONE | |
42ecbf5e DJ |
951 | |
952 | # Installation directory options. | |
953 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
954 | # and all the variables that are supposed to be based on exec_prefix | |
955 | # by default will actually change. | |
956 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 957 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
958 | bindir='${exec_prefix}/bin' |
959 | sbindir='${exec_prefix}/sbin' | |
960 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
961 | datarootdir='${prefix}/share' |
962 | datadir='${datarootdir}' | |
252b5132 RH |
963 | sysconfdir='${prefix}/etc' |
964 | sharedstatedir='${prefix}/com' | |
965 | localstatedir='${prefix}/var' | |
252b5132 RH |
966 | includedir='${prefix}/include' |
967 | oldincludedir='/usr/include' | |
81ecdfbb RW |
968 | docdir='${datarootdir}/doc/${PACKAGE}' |
969 | infodir='${datarootdir}/info' | |
970 | htmldir='${docdir}' | |
971 | dvidir='${docdir}' | |
972 | pdfdir='${docdir}' | |
973 | psdir='${docdir}' | |
974 | libdir='${exec_prefix}/lib' | |
975 | localedir='${datarootdir}/locale' | |
976 | mandir='${datarootdir}/man' | |
252b5132 | 977 | |
252b5132 | 978 | ac_prev= |
81ecdfbb | 979 | ac_dashdash= |
252b5132 RH |
980 | for ac_option |
981 | do | |
252b5132 RH |
982 | # If the previous option needs an argument, assign it. |
983 | if test -n "$ac_prev"; then | |
81ecdfbb | 984 | eval $ac_prev=\$ac_option |
252b5132 RH |
985 | ac_prev= |
986 | continue | |
987 | fi | |
988 | ||
81ecdfbb RW |
989 | case $ac_option in |
990 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
991 | *) ac_optarg=yes ;; | |
992 | esac | |
252b5132 RH |
993 | |
994 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
995 | ||
81ecdfbb RW |
996 | case $ac_dashdash$ac_option in |
997 | --) | |
998 | ac_dashdash=yes ;; | |
252b5132 RH |
999 | |
1000 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1001 | ac_prev=bindir ;; | |
1002 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 1003 | bindir=$ac_optarg ;; |
252b5132 RH |
1004 | |
1005 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 1006 | ac_prev=build_alias ;; |
252b5132 | 1007 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 1008 | build_alias=$ac_optarg ;; |
252b5132 RH |
1009 | |
1010 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1011 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1012 | ac_prev=cache_file ;; | |
1013 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1014 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
1015 | cache_file=$ac_optarg ;; |
1016 | ||
1017 | --config-cache | -C) | |
1018 | cache_file=config.cache ;; | |
252b5132 | 1019 | |
81ecdfbb | 1020 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 1021 | ac_prev=datadir ;; |
81ecdfbb | 1022 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 1023 | datadir=$ac_optarg ;; |
252b5132 | 1024 | |
81ecdfbb RW |
1025 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1026 | | --dataroo | --dataro | --datar) | |
1027 | ac_prev=datarootdir ;; | |
1028 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1029 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1030 | datarootdir=$ac_optarg ;; | |
1031 | ||
252b5132 | 1032 | -disable-* | --disable-*) |
81ecdfbb | 1033 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 1034 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1036 | as_fn_error "invalid feature name: $ac_useropt" | |
1037 | ac_useropt_orig=$ac_useropt | |
1038 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1039 | case $ac_user_opts in | |
1040 | *" | |
1041 | "enable_$ac_useropt" | |
1042 | "*) ;; | |
1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1044 | ac_unrecognized_sep=', ';; | |
1045 | esac | |
1046 | eval enable_$ac_useropt=no ;; | |
1047 | ||
1048 | -docdir | --docdir | --docdi | --doc | --do) | |
1049 | ac_prev=docdir ;; | |
1050 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1051 | docdir=$ac_optarg ;; | |
1052 | ||
1053 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1054 | ac_prev=dvidir ;; | |
1055 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1056 | dvidir=$ac_optarg ;; | |
252b5132 RH |
1057 | |
1058 | -enable-* | --enable-*) | |
81ecdfbb | 1059 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 1060 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1061 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1062 | as_fn_error "invalid feature name: $ac_useropt" | |
1063 | ac_useropt_orig=$ac_useropt | |
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1065 | case $ac_user_opts in | |
1066 | *" | |
1067 | "enable_$ac_useropt" | |
1068 | "*) ;; | |
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1070 | ac_unrecognized_sep=', ';; | |
252b5132 | 1071 | esac |
81ecdfbb | 1072 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1073 | |
1074 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1075 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1076 | | --exec | --exe | --ex) | |
1077 | ac_prev=exec_prefix ;; | |
1078 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1079 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1080 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 1081 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1082 | |
1083 | -gas | --gas | --ga | --g) | |
1084 | # Obsolete; use --with-gas. | |
1085 | with_gas=yes ;; | |
1086 | ||
42ecbf5e DJ |
1087 | -help | --help | --hel | --he | -h) |
1088 | ac_init_help=long ;; | |
1089 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1090 | ac_init_help=recursive ;; | |
1091 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1092 | ac_init_help=short ;; | |
252b5132 RH |
1093 | |
1094 | -host | --host | --hos | --ho) | |
42ecbf5e | 1095 | ac_prev=host_alias ;; |
252b5132 | 1096 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 1097 | host_alias=$ac_optarg ;; |
252b5132 | 1098 | |
81ecdfbb RW |
1099 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1100 | ac_prev=htmldir ;; | |
1101 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1102 | | --ht=*) | |
1103 | htmldir=$ac_optarg ;; | |
1104 | ||
252b5132 RH |
1105 | -includedir | --includedir | --includedi | --included | --include \ |
1106 | | --includ | --inclu | --incl | --inc) | |
1107 | ac_prev=includedir ;; | |
1108 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1109 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 1110 | includedir=$ac_optarg ;; |
252b5132 RH |
1111 | |
1112 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1113 | ac_prev=infodir ;; | |
1114 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 1115 | infodir=$ac_optarg ;; |
252b5132 RH |
1116 | |
1117 | -libdir | --libdir | --libdi | --libd) | |
1118 | ac_prev=libdir ;; | |
1119 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1120 | libdir=$ac_optarg ;; |
252b5132 RH |
1121 | |
1122 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1123 | | --libexe | --libex | --libe) | |
1124 | ac_prev=libexecdir ;; | |
1125 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1126 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1127 | libexecdir=$ac_optarg ;; |
252b5132 | 1128 | |
81ecdfbb RW |
1129 | -localedir | --localedir | --localedi | --localed | --locale) |
1130 | ac_prev=localedir ;; | |
1131 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1132 | localedir=$ac_optarg ;; | |
1133 | ||
252b5132 | 1134 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1135 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1136 | ac_prev=localstatedir ;; |
1137 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1138 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1139 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1140 | |
1141 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1142 | ac_prev=mandir ;; | |
1143 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1144 | mandir=$ac_optarg ;; |
252b5132 RH |
1145 | |
1146 | -nfp | --nfp | --nf) | |
1147 | # Obsolete; use --without-fp. | |
1148 | with_fp=no ;; | |
1149 | ||
1150 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1151 | | --no-cr | --no-c | -n) |
252b5132 RH |
1152 | no_create=yes ;; |
1153 | ||
1154 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1155 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1156 | no_recursion=yes ;; | |
1157 | ||
1158 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1159 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1160 | | --oldin | --oldi | --old | --ol | --o) | |
1161 | ac_prev=oldincludedir ;; | |
1162 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1163 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1164 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1165 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1166 | |
1167 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1168 | ac_prev=prefix ;; | |
1169 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1170 | prefix=$ac_optarg ;; |
252b5132 RH |
1171 | |
1172 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1173 | | --program-pre | --program-pr | --program-p) | |
1174 | ac_prev=program_prefix ;; | |
1175 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1176 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1177 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1178 | |
1179 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1180 | | --program-suf | --program-su | --program-s) | |
1181 | ac_prev=program_suffix ;; | |
1182 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1183 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1184 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1185 | |
1186 | -program-transform-name | --program-transform-name \ | |
1187 | | --program-transform-nam | --program-transform-na \ | |
1188 | | --program-transform-n | --program-transform- \ | |
1189 | | --program-transform | --program-transfor \ | |
1190 | | --program-transfo | --program-transf \ | |
1191 | | --program-trans | --program-tran \ | |
1192 | | --progr-tra | --program-tr | --program-t) | |
1193 | ac_prev=program_transform_name ;; | |
1194 | -program-transform-name=* | --program-transform-name=* \ | |
1195 | | --program-transform-nam=* | --program-transform-na=* \ | |
1196 | | --program-transform-n=* | --program-transform-=* \ | |
1197 | | --program-transform=* | --program-transfor=* \ | |
1198 | | --program-transfo=* | --program-transf=* \ | |
1199 | | --program-trans=* | --program-tran=* \ | |
1200 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1201 | program_transform_name=$ac_optarg ;; |
252b5132 | 1202 | |
81ecdfbb RW |
1203 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1204 | ac_prev=pdfdir ;; | |
1205 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1206 | pdfdir=$ac_optarg ;; | |
1207 | ||
1208 | -psdir | --psdir | --psdi | --psd | --ps) | |
1209 | ac_prev=psdir ;; | |
1210 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1211 | psdir=$ac_optarg ;; | |
1212 | ||
252b5132 RH |
1213 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1214 | | -silent | --silent | --silen | --sile | --sil) | |
1215 | silent=yes ;; | |
1216 | ||
1217 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1218 | ac_prev=sbindir ;; | |
1219 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1220 | | --sbi=* | --sb=*) | |
42ecbf5e | 1221 | sbindir=$ac_optarg ;; |
252b5132 RH |
1222 | |
1223 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1224 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1225 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1226 | | --sha | --sh) | |
1227 | ac_prev=sharedstatedir ;; | |
1228 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1229 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1230 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1231 | | --sha=* | --sh=*) | |
42ecbf5e | 1232 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1233 | |
1234 | -site | --site | --sit) | |
1235 | ac_prev=site ;; | |
1236 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1237 | site=$ac_optarg ;; |
85fbca6a | 1238 | |
252b5132 RH |
1239 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1240 | ac_prev=srcdir ;; | |
1241 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1242 | srcdir=$ac_optarg ;; |
252b5132 RH |
1243 | |
1244 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1245 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1246 | ac_prev=sysconfdir ;; | |
1247 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1248 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1249 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1250 | |
1251 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1252 | ac_prev=target_alias ;; |
252b5132 | 1253 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1254 | target_alias=$ac_optarg ;; |
252b5132 RH |
1255 | |
1256 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1257 | verbose=yes ;; | |
1258 | ||
42ecbf5e DJ |
1259 | -version | --version | --versio | --versi | --vers | -V) |
1260 | ac_init_version=: ;; | |
252b5132 RH |
1261 | |
1262 | -with-* | --with-*) | |
81ecdfbb | 1263 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1264 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1265 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1266 | as_fn_error "invalid package name: $ac_useropt" | |
1267 | ac_useropt_orig=$ac_useropt | |
1268 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1269 | case $ac_user_opts in | |
1270 | *" | |
1271 | "with_$ac_useropt" | |
1272 | "*) ;; | |
1273 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1274 | ac_unrecognized_sep=', ';; | |
252b5132 | 1275 | esac |
81ecdfbb | 1276 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1277 | |
1278 | -without-* | --without-*) | |
81ecdfbb | 1279 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1280 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1281 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1282 | as_fn_error "invalid package name: $ac_useropt" | |
1283 | ac_useropt_orig=$ac_useropt | |
1284 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1285 | case $ac_user_opts in | |
1286 | *" | |
1287 | "with_$ac_useropt" | |
1288 | "*) ;; | |
1289 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1290 | ac_unrecognized_sep=', ';; | |
1291 | esac | |
1292 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1293 | |
1294 | --x) | |
1295 | # Obsolete; use --with-x. | |
1296 | with_x=yes ;; | |
1297 | ||
1298 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1299 | | --x-incl | --x-inc | --x-in | --x-i) | |
1300 | ac_prev=x_includes ;; | |
1301 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1302 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1303 | x_includes=$ac_optarg ;; |
252b5132 RH |
1304 | |
1305 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1306 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1307 | ac_prev=x_libraries ;; | |
1308 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1309 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1310 | x_libraries=$ac_optarg ;; |
252b5132 | 1311 | |
81ecdfbb RW |
1312 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1313 | Try \`$0 --help' for more information." | |
252b5132 RH |
1314 | ;; |
1315 | ||
42ecbf5e DJ |
1316 | *=*) |
1317 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1318 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1319 | case $ac_envvar in #( |
1320 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1321 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1322 | esac | |
1323 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1324 | export $ac_envvar ;; |
1325 | ||
252b5132 | 1326 | *) |
42ecbf5e | 1327 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1328 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1329 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1330 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
42ecbf5e | 1331 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1332 | ;; |
1333 | ||
1334 | esac | |
1335 | done | |
1336 | ||
1337 | if test -n "$ac_prev"; then | |
42ecbf5e | 1338 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1339 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1340 | fi |
252b5132 | 1341 | |
81ecdfbb RW |
1342 | if test -n "$ac_unrecognized_opts"; then |
1343 | case $enable_option_checking in | |
1344 | no) ;; | |
1345 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1346 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
42ecbf5e | 1347 | esac |
81ecdfbb | 1348 | fi |
252b5132 | 1349 | |
81ecdfbb RW |
1350 | # Check all directory arguments for consistency. |
1351 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1352 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1353 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1354 | libdir localedir mandir | |
252b5132 | 1355 | do |
81ecdfbb RW |
1356 | eval ac_val=\$$ac_var |
1357 | # Remove trailing slashes. | |
1358 | case $ac_val in | |
1359 | */ ) | |
1360 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1361 | eval $ac_var=\$ac_val;; | |
1362 | esac | |
1363 | # Be sure to have absolute directory names. | |
42ecbf5e | 1364 | case $ac_val in |
81ecdfbb RW |
1365 | [\\/$]* | ?:[\\/]* ) continue;; |
1366 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1367 | esac |
81ecdfbb | 1368 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1369 | done |
1370 | ||
42ecbf5e DJ |
1371 | # There might be people who depend on the old broken behavior: `$host' |
1372 | # used to hold the argument of --host etc. | |
1373 | # FIXME: To remove some day. | |
1374 | build=$build_alias | |
1375 | host=$host_alias | |
1376 | target=$target_alias | |
1377 | ||
1378 | # FIXME: To remove some day. | |
1379 | if test "x$host_alias" != x; then | |
1380 | if test "x$build_alias" = x; then | |
1381 | cross_compiling=maybe | |
81ecdfbb | 1382 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
42ecbf5e DJ |
1383 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1384 | elif test "x$build_alias" != "x$host_alias"; then | |
1385 | cross_compiling=yes | |
1386 | fi | |
1387 | fi | |
e5a52504 | 1388 | |
42ecbf5e DJ |
1389 | ac_tool_prefix= |
1390 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1391 | ||
1392 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1393 | |
252b5132 | 1394 | |
81ecdfbb RW |
1395 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1396 | ac_ls_di=`ls -di .` && | |
1397 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1398 | as_fn_error "working directory cannot be determined" | |
1399 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1400 | as_fn_error "pwd does not report name of working directory" | |
1401 | ||
1402 | ||
252b5132 RH |
1403 | # Find the source files, if location was not specified. |
1404 | if test -z "$srcdir"; then | |
1405 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1406 | # Try the directory containing this script, then the parent directory. |
1407 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1408 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1409 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1410 | X"$as_myself" : 'X\(//\)$' \| \ | |
1411 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1412 | $as_echo X"$as_myself" | | |
1413 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | /^X\(\/\/\)[^/].*/{ | |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | /^X\(\/\/\)$/{ | |
1422 | s//\1/ | |
1423 | q | |
1424 | } | |
1425 | /^X\(\/\).*/{ | |
1426 | s//\1/ | |
1427 | q | |
1428 | } | |
1429 | s/.*/./; q'` | |
252b5132 | 1430 | srcdir=$ac_confdir |
81ecdfbb | 1431 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1432 | srcdir=.. |
1433 | fi | |
1434 | else | |
1435 | ac_srcdir_defaulted=no | |
1436 | fi | |
81ecdfbb RW |
1437 | if test ! -r "$srcdir/$ac_unique_file"; then |
1438 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1439 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1440 | fi | |
1441 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1442 | ac_abs_confdir=`( | |
1443 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1444 | pwd)` | |
1445 | # When building in place, set srcdir=. | |
1446 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1447 | srcdir=. | |
1448 | fi | |
1449 | # Remove unnecessary trailing slashes from srcdir. | |
1450 | # Double slashes in file names in object file debugging info | |
1451 | # mess up M-x gdb in Emacs. | |
1452 | case $srcdir in | |
1453 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1454 | esac | |
1455 | for ac_var in $ac_precious_vars; do | |
1456 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1457 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1458 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1459 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1460 | done | |
252b5132 | 1461 | |
42ecbf5e DJ |
1462 | # |
1463 | # Report the --help message. | |
1464 | # | |
1465 | if test "$ac_init_help" = "long"; then | |
1466 | # Omit some internal or obsolete options to make the list less imposing. | |
1467 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1468 | cat <<_ACEOF | |
1469 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 1470 | |
42ecbf5e | 1471 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1472 | |
42ecbf5e DJ |
1473 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1474 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1475 | |
42ecbf5e | 1476 | Defaults for the options are specified in brackets. |
ac48eca1 | 1477 | |
42ecbf5e DJ |
1478 | Configuration: |
1479 | -h, --help display this help and exit | |
1480 | --help=short display options specific to this package | |
1481 | --help=recursive display the short help of all the included packages | |
1482 | -V, --version display version information and exit | |
1483 | -q, --quiet, --silent do not print \`checking...' messages | |
1484 | --cache-file=FILE cache test results in FILE [disabled] | |
1485 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1486 | -n, --no-create do not create output files | |
1487 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1488 | ||
42ecbf5e DJ |
1489 | Installation directories: |
1490 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1491 | [$ac_default_prefix] |
42ecbf5e | 1492 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1493 | [PREFIX] |
ac48eca1 | 1494 | |
42ecbf5e DJ |
1495 | By default, \`make install' will install all the files in |
1496 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1497 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1498 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1499 | |
42ecbf5e | 1500 | For better control, use the options below. |
ac48eca1 | 1501 | |
42ecbf5e | 1502 | Fine tuning of the installation directories: |
81ecdfbb RW |
1503 | --bindir=DIR user executables [EPREFIX/bin] |
1504 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1505 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1506 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1507 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1508 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1509 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1510 | --includedir=DIR C header files [PREFIX/include] | |
1511 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1512 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1513 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1514 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1515 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1516 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1517 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1518 | --htmldir=DIR html documentation [DOCDIR] | |
1519 | --dvidir=DIR dvi documentation [DOCDIR] | |
1520 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1521 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1522 | _ACEOF |
ac48eca1 | 1523 | |
42ecbf5e | 1524 | cat <<\_ACEOF |
252b5132 | 1525 | |
42ecbf5e DJ |
1526 | Program names: |
1527 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1528 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1529 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1530 | |
42ecbf5e DJ |
1531 | System types: |
1532 | --build=BUILD configure for building on BUILD [guessed] | |
1533 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1534 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1535 | _ACEOF | |
252b5132 | 1536 | fi |
252b5132 | 1537 | |
42ecbf5e | 1538 | if test -n "$ac_init_help"; then |
252b5132 | 1539 | |
42ecbf5e | 1540 | cat <<\_ACEOF |
e5a52504 | 1541 | |
42ecbf5e | 1542 | Optional Features: |
81ecdfbb | 1543 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1544 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1545 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1546 | --disable-dependency-tracking speeds up one-time build | |
1547 | --enable-dependency-tracking do not reject slow dependency extractors | |
64ac50ac RW |
1548 | --enable-maintainer-mode enable make rules and dependencies not useful |
1549 | (and sometimes confusing) to the casual installer | |
ce2cded5 L |
1550 | --enable-targets alternative target configurations |
1551 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
7fb9f789 NC |
1552 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1553 | multigot) | |
ce2cded5 L |
1554 | --enable-werror treat compile warnings as errors |
1555 | --enable-build-warnings enable build-time compiler warnings | |
da2f07f1 | 1556 | --enable-plugins Enable support for plugins (defaults no) |
d053aef8 | 1557 | --disable-largefile omit support for large files |
81ecdfbb RW |
1558 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1559 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1560 | --enable-fast-install[=PKGS] |
1561 | optimize for fast installation [default=yes] | |
42ecbf5e | 1562 | --disable-libtool-lock avoid locking (might break parallel builds) |
42ecbf5e | 1563 | --disable-nls do not use Native Language Support |
42ecbf5e DJ |
1564 | |
1565 | Optional Packages: | |
1566 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1567 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
ce2cded5 L |
1568 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1569 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
d7040cdb SE |
1570 | --with-pic try to use only PIC/non-PIC objects [default=use |
1571 | both] | |
1572 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
42ecbf5e DJ |
1573 | |
1574 | Some influential environment variables: | |
1575 | CC C compiler command | |
1576 | CFLAGS C compiler flags | |
1577 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1578 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1579 | LIBS libraries to pass to the linker, e.g. -l<library> |
1580 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1581 | you have headers in a nonstandard directory <include dir> | |
42ecbf5e | 1582 | CPP C preprocessor |
81ecdfbb RW |
1583 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1584 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1585 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1586 | This script will default YFLAGS to the empty string to avoid a | |
1587 | default value of `-d' given by some make applications. | |
42ecbf5e DJ |
1588 | |
1589 | Use these variables to override the choices made by `configure' or to help | |
1590 | it to find libraries and programs with nonstandard names/locations. | |
1591 | ||
81ecdfbb | 1592 | Report bugs to the package provider. |
42ecbf5e | 1593 | _ACEOF |
81ecdfbb | 1594 | ac_status=$? |
42ecbf5e DJ |
1595 | fi |
1596 | ||
1597 | if test "$ac_init_help" = "recursive"; then | |
1598 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1599 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1600 | test -d "$ac_dir" || |
1601 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1602 | continue | |
42ecbf5e DJ |
1603 | ac_builddir=. |
1604 | ||
81ecdfbb RW |
1605 | case "$ac_dir" in |
1606 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1607 | *) | |
1608 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1609 | # A ".." for each directory in $ac_dir_suffix. | |
1610 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1611 | case $ac_top_builddir_sub in | |
1612 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1613 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1614 | esac ;; | |
1615 | esac | |
1616 | ac_abs_top_builddir=$ac_pwd | |
1617 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1618 | # for backward compatibility: | |
1619 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1620 | |
1621 | case $srcdir in | |
81ecdfbb | 1622 | .) # We are building in place. |
42ecbf5e | 1623 | ac_srcdir=. |
81ecdfbb RW |
1624 | ac_top_srcdir=$ac_top_builddir_sub |
1625 | ac_abs_top_srcdir=$ac_pwd ;; | |
1626 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1627 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1628 | ac_top_srcdir=$srcdir |
1629 | ac_abs_top_srcdir=$srcdir ;; | |
1630 | *) # Relative name. | |
1631 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1632 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1633 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1634 | esac |
81ecdfbb RW |
1635 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1636 | ||
1637 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1638 | # Check for guested configure. | |
1639 | if test -f "$ac_srcdir/configure.gnu"; then | |
1640 | echo && | |
1641 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1642 | elif test -f "$ac_srcdir/configure"; then | |
1643 | echo && | |
1644 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1645 | else |
81ecdfbb RW |
1646 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1647 | fi || ac_status=$? | |
1648 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1649 | done |
a2d91340 AC |
1650 | fi |
1651 | ||
81ecdfbb | 1652 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1653 | if $ac_init_version; then |
1654 | cat <<\_ACEOF | |
81ecdfbb RW |
1655 | configure |
1656 | generated by GNU Autoconf 2.64 | |
a2d91340 | 1657 | |
81ecdfbb | 1658 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
1659 | This configure script is free software; the Free Software Foundation |
1660 | gives unlimited permission to copy, distribute and modify it. | |
1661 | _ACEOF | |
81ecdfbb | 1662 | exit |
42ecbf5e | 1663 | fi |
a2d91340 | 1664 | |
81ecdfbb RW |
1665 | ## ------------------------ ## |
1666 | ## Autoconf initialization. ## | |
1667 | ## ------------------------ ## | |
a2d91340 | 1668 | |
81ecdfbb RW |
1669 | # ac_fn_c_try_compile LINENO |
1670 | # -------------------------- | |
1671 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1672 | ac_fn_c_try_compile () | |
1673 | { | |
1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1675 | rm -f conftest.$ac_objext | |
1676 | if { { ac_try="$ac_compile" | |
1677 | case "(($ac_try" in | |
1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1679 | *) ac_try_echo=$ac_try;; | |
1680 | esac | |
1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1682 | $as_echo "$ac_try_echo"; } >&5 | |
1683 | (eval "$ac_compile") 2>conftest.err | |
1684 | ac_status=$? | |
1685 | if test -s conftest.err; then | |
1686 | grep -v '^ *+' conftest.err >conftest.er1 | |
1687 | cat conftest.er1 >&5 | |
1688 | mv -f conftest.er1 conftest.err | |
1689 | fi | |
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1691 | test $ac_status = 0; } && { | |
1692 | test -z "$ac_c_werror_flag" || | |
1693 | test ! -s conftest.err | |
1694 | } && test -s conftest.$ac_objext; then : | |
1695 | ac_retval=0 | |
1696 | else | |
1697 | $as_echo "$as_me: failed program was:" >&5 | |
1698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1699 | |
81ecdfbb RW |
1700 | ac_retval=1 |
1701 | fi | |
1702 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1703 | return $ac_retval | |
1704 | ||
1705 | } # ac_fn_c_try_compile | |
1706 | ||
1707 | # ac_fn_c_try_link LINENO | |
1708 | # ----------------------- | |
1709 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1710 | ac_fn_c_try_link () | |
42ecbf5e | 1711 | { |
81ecdfbb RW |
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1714 | if { { ac_try="$ac_link" | |
1715 | case "(($ac_try" in | |
1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1717 | *) ac_try_echo=$ac_try;; | |
1718 | esac | |
1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1720 | $as_echo "$ac_try_echo"; } >&5 | |
1721 | (eval "$ac_link") 2>conftest.err | |
1722 | ac_status=$? | |
1723 | if test -s conftest.err; then | |
1724 | grep -v '^ *+' conftest.err >conftest.er1 | |
1725 | cat conftest.er1 >&5 | |
1726 | mv -f conftest.er1 conftest.err | |
1727 | fi | |
1728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1729 | test $ac_status = 0; } && { | |
1730 | test -z "$ac_c_werror_flag" || | |
1731 | test ! -s conftest.err | |
1732 | } && test -s conftest$ac_exeext && { | |
1733 | test "$cross_compiling" = yes || | |
1734 | $as_test_x conftest$ac_exeext | |
1735 | }; then : | |
1736 | ac_retval=0 | |
1737 | else | |
1738 | $as_echo "$as_me: failed program was:" >&5 | |
1739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1740 | |
81ecdfbb RW |
1741 | ac_retval=1 |
1742 | fi | |
1743 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1744 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1745 | # interfere with the next link command; also delete a directory that is | |
1746 | # left behind by Apple's compiler. We do this before executing the actions. | |
1747 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1748 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1749 | return $ac_retval | |
42ecbf5e | 1750 | |
81ecdfbb | 1751 | } # ac_fn_c_try_link |
42ecbf5e | 1752 | |
81ecdfbb RW |
1753 | # ac_fn_c_try_cpp LINENO |
1754 | # ---------------------- | |
1755 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1756 | ac_fn_c_try_cpp () | |
1757 | { | |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1760 | case "(($ac_try" in | |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | $as_echo "$ac_try_echo"; } >&5 | |
1766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1767 | ac_status=$? | |
1768 | if test -s conftest.err; then | |
1769 | grep -v '^ *+' conftest.err >conftest.er1 | |
1770 | cat conftest.er1 >&5 | |
1771 | mv -f conftest.er1 conftest.err | |
1772 | fi | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1774 | test $ac_status = 0; } >/dev/null && { | |
1775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1776 | test ! -s conftest.err | |
1777 | }; then : | |
1778 | ac_retval=0 | |
1779 | else | |
1780 | $as_echo "$as_me: failed program was:" >&5 | |
1781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1782 | ||
1783 | ac_retval=1 | |
1784 | fi | |
1785 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1786 | return $ac_retval | |
1787 | ||
1788 | } # ac_fn_c_try_cpp | |
1789 | ||
1790 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1791 | # ------------------------------------------------------- | |
1792 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1793 | # the include files in INCLUDES and setting the cache variable VAR | |
1794 | # accordingly. | |
1795 | ac_fn_c_check_header_mongrel () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1800 | $as_echo_n "checking for $2... " >&6; } | |
1801 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1802 | $as_echo_n "(cached) " >&6 | |
1803 | fi | |
1804 | eval ac_res=\$$3 | |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1806 | $as_echo "$ac_res" >&6; } | |
1807 | else | |
1808 | # Is the header compilable? | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1810 | $as_echo_n "checking $2 usability... " >&6; } | |
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1812 | /* end confdefs.h. */ | |
1813 | $4 | |
1814 | #include <$2> | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_compile "$LINENO"; then : | |
1817 | ac_header_compiler=yes | |
1818 | else | |
1819 | ac_header_compiler=no | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1823 | $as_echo "$ac_header_compiler" >&6; } | |
1824 | ||
1825 | # Is the header present? | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1827 | $as_echo_n "checking $2 presence... " >&6; } | |
1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1829 | /* end confdefs.h. */ | |
1830 | #include <$2> | |
1831 | _ACEOF | |
1832 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1833 | ac_header_preproc=yes | |
1834 | else | |
1835 | ac_header_preproc=no | |
1836 | fi | |
1837 | rm -f conftest.err conftest.$ac_ext | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1839 | $as_echo "$ac_header_preproc" >&6; } | |
1840 | ||
1841 | # So? What about this header? | |
1842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1843 | yes:no: ) | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1847 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1848 | ;; | |
1849 | no:yes:* ) | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1851 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1853 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1855 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1857 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1859 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1860 | ;; | |
1861 | esac | |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1863 | $as_echo_n "checking for $2... " >&6; } | |
1864 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1865 | $as_echo_n "(cached) " >&6 | |
1866 | else | |
1867 | eval "$3=\$ac_header_compiler" | |
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 | fi | |
1873 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1874 | ||
1875 | } # ac_fn_c_check_header_mongrel | |
1876 | ||
1877 | # ac_fn_c_try_run LINENO | |
1878 | # ---------------------- | |
1879 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1880 | # that executables *can* be run. | |
1881 | ac_fn_c_try_run () | |
1882 | { | |
1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1884 | if { { ac_try="$ac_link" | |
1885 | case "(($ac_try" in | |
1886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1887 | *) ac_try_echo=$ac_try;; | |
1888 | esac | |
1889 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1890 | $as_echo "$ac_try_echo"; } >&5 | |
1891 | (eval "$ac_link") 2>&5 | |
1892 | ac_status=$? | |
1893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1894 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1895 | { { case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
1901 | (eval "$ac_try") 2>&5 | |
1902 | ac_status=$? | |
1903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1904 | test $ac_status = 0; }; }; then : | |
1905 | ac_retval=0 | |
1906 | else | |
1907 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1908 | $as_echo "$as_me: failed program was:" >&5 | |
1909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1910 | ||
1911 | ac_retval=$ac_status | |
1912 | fi | |
1913 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1914 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1915 | return $ac_retval | |
1916 | ||
1917 | } # ac_fn_c_try_run | |
1918 | ||
1919 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1920 | # ------------------------------------------------------- | |
1921 | # Tests whether HEADER exists and can be compiled using the include files in | |
1922 | # INCLUDES, setting the cache variable VAR accordingly. | |
1923 | ac_fn_c_check_header_compile () | |
1924 | { | |
1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1927 | $as_echo_n "checking for $2... " >&6; } | |
1928 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1929 | $as_echo_n "(cached) " >&6 | |
1930 | else | |
1931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1932 | /* end confdefs.h. */ | |
1933 | $4 | |
1934 | #include <$2> | |
1935 | _ACEOF | |
1936 | if ac_fn_c_try_compile "$LINENO"; then : | |
1937 | eval "$3=yes" | |
1938 | else | |
1939 | eval "$3=no" | |
1940 | fi | |
1941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1942 | fi | |
1943 | eval ac_res=\$$3 | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1945 | $as_echo "$ac_res" >&6; } | |
1946 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1947 | ||
1948 | } # ac_fn_c_check_header_compile | |
1949 | ||
1950 | # ac_fn_c_check_func LINENO FUNC VAR | |
1951 | # ---------------------------------- | |
1952 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1953 | ac_fn_c_check_func () | |
1954 | { | |
1955 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1957 | $as_echo_n "checking for $2... " >&6; } | |
1958 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1959 | $as_echo_n "(cached) " >&6 | |
1960 | else | |
1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1962 | /* end confdefs.h. */ | |
1963 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1965 | #define $2 innocuous_$2 | |
1966 | ||
1967 | /* System header to define __stub macros and hopefully few prototypes, | |
1968 | which can conflict with char $2 (); below. | |
1969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1970 | <limits.h> exists even on freestanding compilers. */ | |
1971 | ||
1972 | #ifdef __STDC__ | |
1973 | # include <limits.h> | |
1974 | #else | |
1975 | # include <assert.h> | |
1976 | #endif | |
1977 | ||
1978 | #undef $2 | |
1979 | ||
1980 | /* Override any GCC internal prototype to avoid an error. | |
1981 | Use char because int might match the return type of a GCC | |
1982 | builtin and then its argument prototype would still apply. */ | |
1983 | #ifdef __cplusplus | |
1984 | extern "C" | |
1985 | #endif | |
1986 | char $2 (); | |
1987 | /* The GNU C library defines this for functions which it implements | |
1988 | to always fail with ENOSYS. Some functions are actually named | |
1989 | something starting with __ and the normal name is an alias. */ | |
1990 | #if defined __stub_$2 || defined __stub___$2 | |
1991 | choke me | |
1992 | #endif | |
1993 | ||
1994 | int | |
1995 | main () | |
1996 | { | |
1997 | return $2 (); | |
1998 | ; | |
1999 | return 0; | |
2000 | } | |
2001 | _ACEOF | |
2002 | if ac_fn_c_try_link "$LINENO"; then : | |
2003 | eval "$3=yes" | |
2004 | else | |
2005 | eval "$3=no" | |
2006 | fi | |
2007 | rm -f core conftest.err conftest.$ac_objext \ | |
2008 | conftest$ac_exeext conftest.$ac_ext | |
2009 | fi | |
2010 | eval ac_res=\$$3 | |
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2012 | $as_echo "$ac_res" >&6; } | |
2013 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2014 | ||
2015 | } # ac_fn_c_check_func | |
2016 | ||
2017 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
2018 | # ------------------------------------ | |
2019 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2020 | ac_fn_c_check_decl () | |
2021 | { | |
2022 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
2024 | $as_echo_n "checking whether $2 is declared... " >&6; } | |
2025 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2026 | $as_echo_n "(cached) " >&6 | |
2027 | else | |
2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2029 | /* end confdefs.h. */ | |
2030 | $4 | |
2031 | int | |
2032 | main () | |
2033 | { | |
2034 | #ifndef $2 | |
2035 | (void) $2; | |
2036 | #endif | |
2037 | ||
2038 | ; | |
2039 | return 0; | |
2040 | } | |
2041 | _ACEOF | |
2042 | if ac_fn_c_try_compile "$LINENO"; then : | |
2043 | eval "$3=yes" | |
2044 | else | |
2045 | eval "$3=no" | |
2046 | fi | |
2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2048 | fi | |
2049 | eval ac_res=\$$3 | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2051 | $as_echo "$ac_res" >&6; } | |
2052 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2053 | ||
2054 | } # ac_fn_c_check_decl | |
2055 | ||
2056 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2057 | # -------------------------------------------- | |
2058 | # Tries to find the compile-time value of EXPR in a program that includes | |
2059 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2060 | # computed | |
2061 | ac_fn_c_compute_int () | |
2062 | { | |
2063 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2064 | if test "$cross_compiling" = yes; then | |
2065 | # Depending upon the size, compute the lo and hi bounds. | |
2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2067 | /* end confdefs.h. */ | |
2068 | $4 | |
2069 | int | |
2070 | main () | |
2071 | { | |
2072 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2073 | test_array [0] = 0 | |
2074 | ||
2075 | ; | |
2076 | return 0; | |
2077 | } | |
2078 | _ACEOF | |
2079 | if ac_fn_c_try_compile "$LINENO"; then : | |
2080 | ac_lo=0 ac_mid=0 | |
2081 | while :; do | |
2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2083 | /* end confdefs.h. */ | |
2084 | $4 | |
2085 | int | |
2086 | main () | |
2087 | { | |
2088 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2089 | test_array [0] = 0 | |
2090 | ||
2091 | ; | |
2092 | return 0; | |
2093 | } | |
2094 | _ACEOF | |
2095 | if ac_fn_c_try_compile "$LINENO"; then : | |
2096 | ac_hi=$ac_mid; break | |
2097 | else | |
2098 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2099 | if test $ac_lo -le $ac_mid; then | |
2100 | ac_lo= ac_hi= | |
2101 | break | |
2102 | fi | |
2103 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2104 | fi | |
2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2106 | done | |
2107 | else | |
2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2109 | /* end confdefs.h. */ | |
2110 | $4 | |
2111 | int | |
2112 | main () | |
2113 | { | |
2114 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2115 | test_array [0] = 0 | |
2116 | ||
2117 | ; | |
2118 | return 0; | |
2119 | } | |
2120 | _ACEOF | |
2121 | if ac_fn_c_try_compile "$LINENO"; then : | |
2122 | ac_hi=-1 ac_mid=-1 | |
2123 | while :; do | |
2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2125 | /* end confdefs.h. */ | |
2126 | $4 | |
2127 | int | |
2128 | main () | |
2129 | { | |
2130 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2131 | test_array [0] = 0 | |
2132 | ||
2133 | ; | |
2134 | return 0; | |
2135 | } | |
2136 | _ACEOF | |
2137 | if ac_fn_c_try_compile "$LINENO"; then : | |
2138 | ac_lo=$ac_mid; break | |
2139 | else | |
2140 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2141 | if test $ac_mid -le $ac_hi; then | |
2142 | ac_lo= ac_hi= | |
2143 | break | |
2144 | fi | |
2145 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2146 | fi | |
2147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2148 | done | |
2149 | else | |
2150 | ac_lo= ac_hi= | |
2151 | fi | |
2152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2153 | fi | |
2154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2155 | # Binary search between lo and hi bounds. | |
2156 | while test "x$ac_lo" != "x$ac_hi"; do | |
2157 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2159 | /* end confdefs.h. */ | |
2160 | $4 | |
2161 | int | |
2162 | main () | |
2163 | { | |
2164 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2165 | test_array [0] = 0 | |
2166 | ||
2167 | ; | |
2168 | return 0; | |
2169 | } | |
2170 | _ACEOF | |
2171 | if ac_fn_c_try_compile "$LINENO"; then : | |
2172 | ac_hi=$ac_mid | |
2173 | else | |
2174 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2175 | fi | |
2176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2177 | done | |
2178 | case $ac_lo in #(( | |
2179 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2180 | '') ac_retval=1 ;; | |
2181 | esac | |
2182 | else | |
2183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2184 | /* end confdefs.h. */ | |
2185 | $4 | |
2186 | static long int longval () { return $2; } | |
2187 | static unsigned long int ulongval () { return $2; } | |
2188 | #include <stdio.h> | |
2189 | #include <stdlib.h> | |
2190 | int | |
2191 | main () | |
2192 | { | |
2193 | ||
2194 | FILE *f = fopen ("conftest.val", "w"); | |
2195 | if (! f) | |
2196 | return 1; | |
2197 | if (($2) < 0) | |
2198 | { | |
2199 | long int i = longval (); | |
2200 | if (i != ($2)) | |
2201 | return 1; | |
2202 | fprintf (f, "%ld", i); | |
2203 | } | |
2204 | else | |
2205 | { | |
2206 | unsigned long int i = ulongval (); | |
2207 | if (i != ($2)) | |
2208 | return 1; | |
2209 | fprintf (f, "%lu", i); | |
2210 | } | |
2211 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2212 | on some platforms. */ | |
2213 | return ferror (f) || fclose (f) != 0; | |
2214 | ||
2215 | ; | |
2216 | return 0; | |
2217 | } | |
2218 | _ACEOF | |
2219 | if ac_fn_c_try_run "$LINENO"; then : | |
2220 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2221 | else | |
2222 | ac_retval=1 | |
2223 | fi | |
2224 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2225 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2226 | rm -f conftest.val | |
2227 | ||
2228 | fi | |
2229 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2230 | return $ac_retval | |
2231 | ||
2232 | } # ac_fn_c_compute_int | |
2233 | cat >config.log <<_ACEOF | |
2234 | This file contains any messages produced by compilers while | |
2235 | running configure, to aid debugging if configure makes a mistake. | |
2236 | ||
2237 | It was created by $as_me, which was | |
2238 | generated by GNU Autoconf 2.64. Invocation command line was | |
2239 | ||
2240 | $ $0 $@ | |
2241 | ||
2242 | _ACEOF | |
2243 | exec 5>>config.log | |
2244 | { | |
2245 | cat <<_ASUNAME | |
2246 | ## --------- ## | |
2247 | ## Platform. ## | |
2248 | ## --------- ## | |
2249 | ||
2250 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2251 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2252 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2253 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2254 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2255 | ||
2256 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2257 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2258 | ||
2259 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2260 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2261 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2262 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2263 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2264 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2265 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2266 | ||
2267 | _ASUNAME | |
2268 | ||
2269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2270 | for as_dir in $PATH | |
2271 | do | |
2272 | IFS=$as_save_IFS | |
2273 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2274 | $as_echo "PATH: $as_dir" |
2275 | done | |
2276 | IFS=$as_save_IFS | |
252b5132 | 2277 | |
42ecbf5e | 2278 | } >&5 |
5d64ca4e | 2279 | |
42ecbf5e | 2280 | cat >&5 <<_ACEOF |
5d64ca4e | 2281 | |
5d64ca4e | 2282 | |
42ecbf5e DJ |
2283 | ## ----------- ## |
2284 | ## Core tests. ## | |
2285 | ## ----------- ## | |
5d64ca4e | 2286 | |
42ecbf5e | 2287 | _ACEOF |
2469cfa2 | 2288 | |
42ecbf5e DJ |
2289 | |
2290 | # Keep a trace of the command line. | |
2291 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2292 | # Strip out --silent because we don't want to record it for future runs. | |
2293 | # Also quote any args containing shell meta-characters. | |
2294 | # Make two passes to allow for proper duplicate-argument suppression. | |
2295 | ac_configure_args= | |
2296 | ac_configure_args0= | |
2297 | ac_configure_args1= | |
42ecbf5e DJ |
2298 | ac_must_keep_next=false |
2299 | for ac_pass in 1 2 | |
2300 | do | |
2301 | for ac_arg | |
2302 | do | |
2303 | case $ac_arg in | |
2304 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2306 | | -silent | --silent | --silen | --sile | --sil) | |
2307 | continue ;; | |
81ecdfbb RW |
2308 | *\'*) |
2309 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2310 | esac |
2311 | case $ac_pass in | |
81ecdfbb | 2312 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2313 | 2) |
81ecdfbb | 2314 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2315 | if test $ac_must_keep_next = true; then |
2316 | ac_must_keep_next=false # Got value, back to normal. | |
2317 | else | |
2318 | case $ac_arg in | |
2319 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2320 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2321 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2322 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2323 | case "$ac_configure_args0 " in | |
2324 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2325 | esac | |
2326 | ;; | |
2327 | -* ) ac_must_keep_next=true ;; | |
2328 | esac | |
2329 | fi | |
81ecdfbb | 2330 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2331 | ;; |
2332 | esac | |
2333 | done | |
2334 | done | |
81ecdfbb RW |
2335 | { ac_configure_args0=; unset ac_configure_args0;} |
2336 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2337 | |
2338 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2339 | # config.log. We remove comments because anyway the quotes in there | |
2340 | # would cause problems or look ugly. | |
81ecdfbb RW |
2341 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2342 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2343 | trap 'exit_status=$? |
2344 | # Save into config.log some information that might help in debugging. | |
2345 | { | |
2346 | echo | |
2347 | ||
2348 | cat <<\_ASBOX | |
2349 | ## ---------------- ## | |
2350 | ## Cache variables. ## | |
2351 | ## ---------------- ## | |
2352 | _ASBOX | |
2353 | echo | |
2354 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2355 | ( |
2356 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2357 | eval ac_val=\$$ac_var | |
2358 | case $ac_val in #( | |
2359 | *${as_nl}*) | |
2360 | case $ac_var in #( | |
2361 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2362 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2363 | esac | |
2364 | case $ac_var in #( | |
2365 | _ | IFS | as_nl) ;; #( | |
2366 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2367 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2368 | esac ;; | |
2369 | esac | |
2370 | done | |
42ecbf5e | 2371 | (set) 2>&1 | |
81ecdfbb RW |
2372 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2373 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2374 | sed -n \ |
81ecdfbb RW |
2375 | "s/'\''/'\''\\\\'\'''\''/g; |
2376 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2377 | ;; #( | |
42ecbf5e | 2378 | *) |
81ecdfbb | 2379 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2380 | ;; |
81ecdfbb RW |
2381 | esac | |
2382 | sort | |
2383 | ) | |
42ecbf5e DJ |
2384 | echo |
2385 | ||
2386 | cat <<\_ASBOX | |
2387 | ## ----------------- ## | |
2388 | ## Output variables. ## | |
2389 | ## ----------------- ## | |
2390 | _ASBOX | |
2391 | echo | |
2392 | for ac_var in $ac_subst_vars | |
2393 | do | |
81ecdfbb RW |
2394 | eval ac_val=\$$ac_var |
2395 | case $ac_val in | |
2396 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2397 | esac | |
2398 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2399 | done | sort |
2400 | echo | |
2401 | ||
2402 | if test -n "$ac_subst_files"; then | |
2403 | cat <<\_ASBOX | |
81ecdfbb RW |
2404 | ## ------------------- ## |
2405 | ## File substitutions. ## | |
2406 | ## ------------------- ## | |
42ecbf5e DJ |
2407 | _ASBOX |
2408 | echo | |
2409 | for ac_var in $ac_subst_files | |
2410 | do | |
81ecdfbb RW |
2411 | eval ac_val=\$$ac_var |
2412 | case $ac_val in | |
2413 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2414 | esac | |
2415 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2416 | done | sort |
2417 | echo | |
2418 | fi | |
2419 | ||
2420 | if test -s confdefs.h; then | |
2421 | cat <<\_ASBOX | |
2422 | ## ----------- ## | |
2423 | ## confdefs.h. ## | |
2424 | ## ----------- ## | |
2425 | _ASBOX | |
2426 | echo | |
81ecdfbb | 2427 | cat confdefs.h |
42ecbf5e DJ |
2428 | echo |
2429 | fi | |
2430 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2431 | $as_echo "$as_me: caught signal $ac_signal" |
2432 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2433 | } >&5 |
81ecdfbb RW |
2434 | rm -f core *.core core.conftest.* && |
2435 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2436 | exit $exit_status |
81ecdfbb | 2437 | ' 0 |
42ecbf5e | 2438 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2439 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2440 | done |
2441 | ac_signal=0 | |
2442 | ||
2443 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2444 | rm -f -r conftest* confdefs.h |
2445 | ||
2446 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2447 | |
2448 | # Predefined preprocessor variables. | |
2449 | ||
2450 | cat >>confdefs.h <<_ACEOF | |
2451 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2452 | _ACEOF | |
2453 | ||
42ecbf5e DJ |
2454 | cat >>confdefs.h <<_ACEOF |
2455 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2456 | _ACEOF | |
2457 | ||
42ecbf5e DJ |
2458 | cat >>confdefs.h <<_ACEOF |
2459 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2460 | _ACEOF | |
2461 | ||
42ecbf5e DJ |
2462 | cat >>confdefs.h <<_ACEOF |
2463 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2464 | _ACEOF | |
2465 | ||
42ecbf5e DJ |
2466 | cat >>confdefs.h <<_ACEOF |
2467 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2468 | _ACEOF | |
2469 | ||
81ecdfbb RW |
2470 | cat >>confdefs.h <<_ACEOF |
2471 | #define PACKAGE_URL "$PACKAGE_URL" | |
2472 | _ACEOF | |
2473 | ||
42ecbf5e DJ |
2474 | |
2475 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2476 | # Prefer an explicitly selected file to automatically selected ones. |
2477 | ac_site_file1=NONE | |
2478 | ac_site_file2=NONE | |
2479 | if test -n "$CONFIG_SITE"; then | |
2480 | ac_site_file1=$CONFIG_SITE | |
2481 | elif test "x$prefix" != xNONE; then | |
2482 | ac_site_file1=$prefix/share/config.site | |
2483 | ac_site_file2=$prefix/etc/config.site | |
2484 | else | |
2485 | ac_site_file1=$ac_default_prefix/share/config.site | |
2486 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2487 | fi | |
2488 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2489 | do | |
2490 | test "x$ac_site_file" = xNONE && continue | |
42ecbf5e | 2491 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2493 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e DJ |
2494 | sed 's/^/| /' "$ac_site_file" >&5 |
2495 | . "$ac_site_file" | |
2496 | fi | |
2497 | done | |
2498 | ||
2499 | if test -r "$cache_file"; then | |
2500 | # Some versions of bash will fail to source /dev/null (special | |
2501 | # files actually), so we avoid doing that. | |
2502 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2504 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2505 | case $cache_file in |
81ecdfbb RW |
2506 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2507 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2508 | esac |
2509 | fi | |
2510 | else | |
81ecdfbb RW |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2512 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2513 | >$cache_file |
2514 | fi | |
2515 | ||
2516 | # Check that the precious variables saved in the cache have kept the same | |
2517 | # value. | |
2518 | ac_cache_corrupted=false | |
81ecdfbb | 2519 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2520 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2521 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2522 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2523 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2524 | case $ac_old_set,$ac_new_set in |
2525 | set,) | |
81ecdfbb RW |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2527 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2528 | ac_cache_corrupted=: ;; |
2529 | ,set) | |
81ecdfbb RW |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2531 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2532 | ac_cache_corrupted=: ;; |
2533 | ,);; | |
2534 | *) | |
2535 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2536 | # differences in whitespace do not lead to failure. |
2537 | ac_old_val_w=`echo x $ac_old_val` | |
2538 | ac_new_val_w=`echo x $ac_new_val` | |
2539 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2541 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2542 | ac_cache_corrupted=: | |
2543 | else | |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2545 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2546 | eval $ac_var=\$ac_old_val | |
2547 | fi | |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2549 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2551 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2552 | fi;; |
2553 | esac | |
2554 | # Pass precious variables to config.status. | |
2555 | if test "$ac_new_set" = set; then | |
2556 | case $ac_new_val in | |
81ecdfbb | 2557 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2558 | *) ac_arg=$ac_var=$ac_new_val ;; |
2559 | esac | |
2560 | case " $ac_configure_args " in | |
2561 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2562 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2563 | esac |
2564 | fi | |
2565 | done | |
2566 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2568 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2570 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2571 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
42ecbf5e | 2572 | fi |
81ecdfbb RW |
2573 | ## -------------------- ## |
2574 | ## Main body of script. ## | |
2575 | ## -------------------- ## | |
42ecbf5e DJ |
2576 | |
2577 | ac_ext=c | |
2578 | ac_cpp='$CPP $CPPFLAGS' | |
2579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2582 | ||
2583 | ||
2584 | ||
42ecbf5e | 2585 | |
da594c4a | 2586 | |
42ecbf5e DJ |
2587 | |
2588 | ||
2589 | ac_aux_dir= | |
81ecdfbb RW |
2590 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2591 | for ac_t in install-sh install.sh shtool; do | |
2592 | if test -f "$ac_dir/$ac_t"; then | |
2593 | ac_aux_dir=$ac_dir | |
2594 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2595 | break 2 | |
2596 | fi | |
2597 | done | |
42ecbf5e DJ |
2598 | done |
2599 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2600 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2601 | fi |
81ecdfbb RW |
2602 | |
2603 | # These three variables are undocumented and unsupported, | |
2604 | # and are intended to be withdrawn in a future Autoconf release. | |
2605 | # They can cause serious problems if a builder's source tree is in a directory | |
2606 | # whose full name contains unusual characters. | |
2607 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2608 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2609 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2610 | ||
42ecbf5e DJ |
2611 | |
2612 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2613 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2614 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2615 | ||
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2617 | $as_echo_n "checking build system type... " >&6; } | |
2618 | if test "${ac_cv_build+set}" = set; then : | |
2619 | $as_echo_n "(cached) " >&6 | |
2620 | else | |
2621 | ac_build_alias=$build_alias | |
2622 | test "x$ac_build_alias" = x && | |
2623 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2624 | test "x$ac_build_alias" = x && | |
2625 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2626 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2627 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2628 | ||
2629 | fi | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2631 | $as_echo "$ac_cv_build" >&6; } | |
2632 | case $ac_cv_build in | |
2633 | *-*-*) ;; | |
2634 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2635 | esac | |
42ecbf5e | 2636 | build=$ac_cv_build |
81ecdfbb RW |
2637 | ac_save_IFS=$IFS; IFS='-' |
2638 | set x $ac_cv_build | |
2639 | shift | |
2640 | build_cpu=$1 | |
2641 | build_vendor=$2 | |
2642 | shift; shift | |
2643 | # Remember, the first character of IFS is used to create $*, | |
2644 | # except with old shells: | |
2645 | build_os=$* | |
2646 | IFS=$ac_save_IFS | |
2647 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2648 | |
2649 | ||
81ecdfbb RW |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2651 | $as_echo_n "checking host system type... " >&6; } | |
2652 | if test "${ac_cv_host+set}" = set; then : | |
2653 | $as_echo_n "(cached) " >&6 | |
2654 | else | |
2655 | if test "x$host_alias" = x; then | |
2656 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2657 | else |
81ecdfbb RW |
2658 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2659 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2660 | fi | |
42ecbf5e DJ |
2661 | |
2662 | fi | |
81ecdfbb RW |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2664 | $as_echo "$ac_cv_host" >&6; } | |
2665 | case $ac_cv_host in | |
2666 | *-*-*) ;; | |
2667 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2668 | esac | |
42ecbf5e | 2669 | host=$ac_cv_host |
81ecdfbb RW |
2670 | ac_save_IFS=$IFS; IFS='-' |
2671 | set x $ac_cv_host | |
2672 | shift | |
2673 | host_cpu=$1 | |
2674 | host_vendor=$2 | |
2675 | shift; shift | |
2676 | # Remember, the first character of IFS is used to create $*, | |
2677 | # except with old shells: | |
2678 | host_os=$* | |
2679 | IFS=$ac_save_IFS | |
2680 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2681 | |
2682 | ||
81ecdfbb RW |
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2684 | $as_echo_n "checking target system type... " >&6; } | |
2685 | if test "${ac_cv_target+set}" = set; then : | |
2686 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 2687 | else |
81ecdfbb RW |
2688 | if test "x$target_alias" = x; then |
2689 | ac_cv_target=$ac_cv_host | |
2690 | else | |
2691 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2692 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2693 | fi | |
42ecbf5e DJ |
2694 | |
2695 | fi | |
81ecdfbb RW |
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2697 | $as_echo "$ac_cv_target" >&6; } | |
2698 | case $ac_cv_target in | |
2699 | *-*-*) ;; | |
2700 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2701 | esac | |
42ecbf5e | 2702 | target=$ac_cv_target |
81ecdfbb RW |
2703 | ac_save_IFS=$IFS; IFS='-' |
2704 | set x $ac_cv_target | |
2705 | shift | |
2706 | target_cpu=$1 | |
2707 | target_vendor=$2 | |
2708 | shift; shift | |
2709 | # Remember, the first character of IFS is used to create $*, | |
2710 | # except with old shells: | |
2711 | target_os=$* | |
2712 | IFS=$ac_save_IFS | |
2713 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2714 | |
2715 | ||
2716 | # The aliases save the names the user supplied, while $host etc. | |
2717 | # will get canonicalized. | |
2718 | test -n "$target_alias" && | |
2719 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2720 | NONENONEs,x,x, && | |
2721 | program_prefix=${target_alias}- | |
2722 | ac_ext=c | |
2723 | ac_cpp='$CPP $CPPFLAGS' | |
2724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2727 | if test -n "$ac_tool_prefix"; then | |
2728 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2729 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2731 | $as_echo_n "checking for $ac_word... " >&6; } | |
2732 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2733 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2734 | else |
2735 | if test -n "$CC"; then | |
2736 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2737 | else | |
2738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2739 | for as_dir in $PATH | |
2740 | do | |
2741 | IFS=$as_save_IFS | |
2742 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2743 | for ac_exec_ext in '' $ac_executable_extensions; do |
2744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2745 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2747 | break 2 |
2748 | fi | |
2749 | done | |
81ecdfbb RW |
2750 | done |
2751 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2752 | |
2753 | fi | |
2754 | fi | |
2755 | CC=$ac_cv_prog_CC | |
2756 | if test -n "$CC"; then | |
81ecdfbb RW |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2758 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2759 | else |
81ecdfbb RW |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2761 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2762 | fi |
2763 | ||
81ecdfbb | 2764 | |
42ecbf5e DJ |
2765 | fi |
2766 | if test -z "$ac_cv_prog_CC"; then | |
2767 | ac_ct_CC=$CC | |
2768 | # Extract the first word of "gcc", so it can be a program name with args. | |
2769 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2771 | $as_echo_n "checking for $ac_word... " >&6; } | |
2772 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2773 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2774 | else |
2775 | if test -n "$ac_ct_CC"; then | |
2776 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2777 | else | |
2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2779 | for as_dir in $PATH | |
2780 | do | |
2781 | IFS=$as_save_IFS | |
2782 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2783 | for ac_exec_ext in '' $ac_executable_extensions; do |
2784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2785 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2787 | break 2 |
2788 | fi | |
2789 | done | |
81ecdfbb RW |
2790 | done |
2791 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2792 | |
2793 | fi | |
2794 | fi | |
2795 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2796 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2798 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2799 | else |
81ecdfbb RW |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2801 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2802 | fi |
2803 | ||
81ecdfbb RW |
2804 | if test "x$ac_ct_CC" = x; then |
2805 | CC="" | |
2806 | else | |
2807 | case $cross_compiling:$ac_tool_warned in | |
2808 | yes:) | |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2811 | ac_tool_warned=yes ;; | |
2812 | esac | |
2813 | CC=$ac_ct_CC | |
2814 | fi | |
42ecbf5e DJ |
2815 | else |
2816 | CC="$ac_cv_prog_CC" | |
2817 | fi | |
2818 | ||
2819 | if test -z "$CC"; then | |
81ecdfbb RW |
2820 | if test -n "$ac_tool_prefix"; then |
2821 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
42ecbf5e | 2822 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2824 | $as_echo_n "checking for $ac_word... " >&6; } | |
2825 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2826 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2827 | else |
2828 | if test -n "$CC"; then | |
2829 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2830 | else | |
2831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2832 | for as_dir in $PATH | |
2833 | do | |
2834 | IFS=$as_save_IFS | |
2835 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2836 | for ac_exec_ext in '' $ac_executable_extensions; do |
2837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2838 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2840 | break 2 |
2841 | fi | |
2842 | done | |
81ecdfbb RW |
2843 | done |
2844 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2845 | |
2846 | fi | |
2847 | fi | |
2848 | CC=$ac_cv_prog_CC | |
2849 | if test -n "$CC"; then | |
81ecdfbb RW |
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2851 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2852 | else |
81ecdfbb RW |
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2854 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2855 | fi |
2856 | ||
42ecbf5e | 2857 | |
81ecdfbb | 2858 | fi |
42ecbf5e DJ |
2859 | fi |
2860 | if test -z "$CC"; then | |
2861 | # Extract the first word of "cc", so it can be a program name with args. | |
2862 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2864 | $as_echo_n "checking for $ac_word... " >&6; } | |
2865 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2866 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2867 | else |
2868 | if test -n "$CC"; then | |
2869 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2870 | else | |
2871 | ac_prog_rejected=no | |
2872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2873 | for as_dir in $PATH | |
2874 | do | |
2875 | IFS=$as_save_IFS | |
2876 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2877 | for ac_exec_ext in '' $ac_executable_extensions; do |
2878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e DJ |
2879 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2880 | ac_prog_rejected=yes | |
2881 | continue | |
2882 | fi | |
2883 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2885 | break 2 |
2886 | fi | |
2887 | done | |
81ecdfbb RW |
2888 | done |
2889 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2890 | |
2891 | if test $ac_prog_rejected = yes; then | |
2892 | # We found a bogon in the path, so make sure we never use it. | |
2893 | set dummy $ac_cv_prog_CC | |
2894 | shift | |
2895 | if test $# != 0; then | |
2896 | # We chose a different compiler from the bogus one. | |
2897 | # However, it has the same basename, so the bogon will be chosen | |
2898 | # first if we set CC to just the basename; use the full file name. | |
2899 | shift | |
2900 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2901 | fi | |
2902 | fi | |
2903 | fi | |
2904 | fi | |
2905 | CC=$ac_cv_prog_CC | |
2906 | if test -n "$CC"; then | |
81ecdfbb RW |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2908 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2909 | else |
81ecdfbb RW |
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2911 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2912 | fi |
2913 | ||
81ecdfbb | 2914 | |
42ecbf5e DJ |
2915 | fi |
2916 | if test -z "$CC"; then | |
2917 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2918 | for ac_prog in cl.exe |
42ecbf5e DJ |
2919 | do |
2920 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2921 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2923 | $as_echo_n "checking for $ac_word... " >&6; } | |
2924 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2925 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2926 | else |
2927 | if test -n "$CC"; then | |
2928 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2929 | else | |
2930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2931 | for as_dir in $PATH | |
2932 | do | |
2933 | IFS=$as_save_IFS | |
2934 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2935 | for ac_exec_ext in '' $ac_executable_extensions; do |
2936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2937 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2939 | break 2 |
2940 | fi | |
2941 | done | |
81ecdfbb RW |
2942 | done |
2943 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2944 | |
2945 | fi | |
2946 | fi | |
2947 | CC=$ac_cv_prog_CC | |
2948 | if test -n "$CC"; then | |
81ecdfbb RW |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2950 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2951 | else |
81ecdfbb RW |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2953 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2954 | fi |
2955 | ||
81ecdfbb | 2956 | |
42ecbf5e DJ |
2957 | test -n "$CC" && break |
2958 | done | |
2959 | fi | |
2960 | if test -z "$CC"; then | |
2961 | ac_ct_CC=$CC | |
81ecdfbb | 2962 | for ac_prog in cl.exe |
42ecbf5e DJ |
2963 | do |
2964 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2965 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2967 | $as_echo_n "checking for $ac_word... " >&6; } | |
2968 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2969 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2970 | else |
2971 | if test -n "$ac_ct_CC"; then | |
2972 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2973 | else | |
2974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2975 | for as_dir in $PATH | |
2976 | do | |
2977 | IFS=$as_save_IFS | |
2978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2979 | for ac_exec_ext in '' $ac_executable_extensions; do |
2980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2981 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2983 | break 2 |
2984 | fi | |
2985 | done | |
81ecdfbb RW |
2986 | done |
2987 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2988 | |
2989 | fi | |
2990 | fi | |
2991 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2992 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2994 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2995 | else |
81ecdfbb RW |
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2997 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2998 | fi |
2999 | ||
81ecdfbb | 3000 | |
42ecbf5e DJ |
3001 | test -n "$ac_ct_CC" && break |
3002 | done | |
3003 | ||
81ecdfbb RW |
3004 | if test "x$ac_ct_CC" = x; then |
3005 | CC="" | |
3006 | else | |
3007 | case $cross_compiling:$ac_tool_warned in | |
3008 | yes:) | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3011 | ac_tool_warned=yes ;; | |
3012 | esac | |
3013 | CC=$ac_ct_CC | |
3014 | fi | |
42ecbf5e DJ |
3015 | fi |
3016 | ||
3017 | fi | |
3018 | ||
3019 | ||
81ecdfbb RW |
3020 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3022 | as_fn_error "no acceptable C compiler found in \$PATH | |
3023 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e DJ |
3024 | |
3025 | # Provide some information about the compiler. | |
81ecdfbb RW |
3026 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3027 | set X $ac_compile | |
3028 | ac_compiler=$2 | |
3029 | for ac_option in --version -v -V -qversion; do | |
3030 | { { ac_try="$ac_compiler $ac_option >&5" | |
3031 | case "(($ac_try" in | |
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3033 | *) ac_try_echo=$ac_try;; | |
3034 | esac | |
3035 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3036 | $as_echo "$ac_try_echo"; } >&5 | |
3037 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
42ecbf5e | 3038 | ac_status=$? |
81ecdfbb RW |
3039 | if test -s conftest.err; then |
3040 | sed '10a\ | |
3041 | ... rest of stderr output deleted ... | |
3042 | 10q' conftest.err >conftest.er1 | |
3043 | cat conftest.er1 >&5 | |
3044 | rm -f conftest.er1 conftest.err | |
3045 | fi | |
3046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3047 | test $ac_status = 0; } | |
3048 | done | |
42ecbf5e | 3049 | |
81ecdfbb | 3050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3051 | /* end confdefs.h. */ |
3052 | ||
3053 | int | |
3054 | main () | |
3055 | { | |
3056 | ||
3057 | ; | |
3058 | return 0; | |
3059 | } | |
3060 | _ACEOF | |
3061 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 3062 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
42ecbf5e DJ |
3063 | # Try to create an executable without -o first, disregard a.out. |
3064 | # It will help us diagnose broken compilers, and finding out an intuition | |
3065 | # of exeext. | |
81ecdfbb RW |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3067 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3068 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3069 | ||
3070 | # The possible output files: | |
3071 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3072 | ||
3073 | ac_rmfiles= | |
3074 | for ac_file in $ac_files | |
3075 | do | |
3076 | case $ac_file in | |
3077 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3078 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3079 | esac | |
3080 | done | |
3081 | rm -f $ac_rmfiles | |
3082 | ||
3083 | if { { ac_try="$ac_link_default" | |
3084 | case "(($ac_try" in | |
3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3086 | *) ac_try_echo=$ac_try;; | |
3087 | esac | |
3088 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3089 | $as_echo "$ac_try_echo"; } >&5 | |
3090 | (eval "$ac_link_default") 2>&5 | |
3091 | ac_status=$? | |
3092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3093 | test $ac_status = 0; }; then : | |
3094 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3095 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3096 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3097 | # so that the user can short-circuit this test for compilers unknown to | |
3098 | # Autoconf. | |
3099 | for ac_file in $ac_files '' | |
42ecbf5e DJ |
3100 | do |
3101 | test -f "$ac_file" || continue | |
3102 | case $ac_file in | |
81ecdfbb | 3103 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
42ecbf5e DJ |
3104 | ;; |
3105 | [ab].out ) | |
3106 | # We found the default executable, but exeext='' is most | |
3107 | # certainly right. | |
3108 | break;; | |
3109 | *.* ) | |
81ecdfbb RW |
3110 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3111 | then :; else | |
3112 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3113 | fi | |
3114 | # We set ac_cv_exeext here because the later test for it is not | |
3115 | # safe: cross compilers may not add the suffix if given an `-o' | |
3116 | # argument, so we may need to know it at that point already. | |
3117 | # Even if this section looks crufty: it has the advantage of | |
3118 | # actually working. | |
42ecbf5e DJ |
3119 | break;; |
3120 | * ) | |
3121 | break;; | |
3122 | esac | |
3123 | done | |
81ecdfbb RW |
3124 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3125 | ||
42ecbf5e | 3126 | else |
81ecdfbb RW |
3127 | ac_file='' |
3128 | fi | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3130 | $as_echo "$ac_file" >&6; } | |
3131 | if test -z "$ac_file"; then : | |
3132 | $as_echo "$as_me: failed program was:" >&5 | |
42ecbf5e DJ |
3133 | sed 's/^/| /' conftest.$ac_ext >&5 |
3134 | ||
81ecdfbb RW |
3135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3137 | { as_fn_set_status 77 | |
3138 | as_fn_error "C compiler cannot create executables | |
3139 | See \`config.log' for more details." "$LINENO" 5; }; } | |
42ecbf5e | 3140 | fi |
42ecbf5e | 3141 | ac_exeext=$ac_cv_exeext |
42ecbf5e | 3142 | |
81ecdfbb | 3143 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3144 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3146 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
42ecbf5e DJ |
3147 | # If not cross compiling, check that we can run a simple program. |
3148 | if test "$cross_compiling" != yes; then | |
3149 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3150 | { { case "(($ac_try" in |
3151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3152 | *) ac_try_echo=$ac_try;; | |
3153 | esac | |
3154 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3155 | $as_echo "$ac_try_echo"; } >&5 | |
3156 | (eval "$ac_try") 2>&5 | |
42ecbf5e | 3157 | ac_status=$? |
81ecdfbb RW |
3158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3159 | test $ac_status = 0; }; }; then | |
42ecbf5e DJ |
3160 | cross_compiling=no |
3161 | else | |
3162 | if test "$cross_compiling" = maybe; then | |
3163 | cross_compiling=yes | |
3164 | else | |
81ecdfbb RW |
3165 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3166 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3167 | as_fn_error "cannot run C compiled programs. | |
42ecbf5e | 3168 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3169 | See \`config.log' for more details." "$LINENO" 5; } |
42ecbf5e DJ |
3170 | fi |
3171 | fi | |
3172 | fi | |
81ecdfbb RW |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3174 | $as_echo "yes" >&6; } | |
42ecbf5e | 3175 | |
81ecdfbb | 3176 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
42ecbf5e | 3177 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3178 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3179 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3181 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3183 | $as_echo "$cross_compiling" >&6; } | |
3184 | ||
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3186 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3187 | if { { ac_try="$ac_link" | |
3188 | case "(($ac_try" in | |
3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3190 | *) ac_try_echo=$ac_try;; | |
3191 | esac | |
3192 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3193 | $as_echo "$ac_try_echo"; } >&5 | |
3194 | (eval "$ac_link") 2>&5 | |
42ecbf5e | 3195 | ac_status=$? |
81ecdfbb RW |
3196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3197 | test $ac_status = 0; }; then : | |
42ecbf5e DJ |
3198 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3199 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3200 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3201 | # `rm'. | |
3202 | for ac_file in conftest.exe conftest conftest.*; do | |
3203 | test -f "$ac_file" || continue | |
3204 | case $ac_file in | |
81ecdfbb | 3205 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
42ecbf5e | 3206 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
42ecbf5e DJ |
3207 | break;; |
3208 | * ) break;; | |
3209 | esac | |
3210 | done | |
3211 | else | |
81ecdfbb RW |
3212 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3213 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3214 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3215 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3216 | fi |
42ecbf5e | 3217 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3219 | $as_echo "$ac_cv_exeext" >&6; } | |
42ecbf5e DJ |
3220 | |
3221 | rm -f conftest.$ac_ext | |
3222 | EXEEXT=$ac_cv_exeext | |
3223 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3225 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3226 | if test "${ac_cv_objext+set}" = set; then : | |
3227 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3228 | else |
81ecdfbb | 3229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3230 | /* end confdefs.h. */ |
3231 | ||
3232 | int | |
3233 | main () | |
3234 | { | |
3235 | ||
3236 | ; | |
3237 | return 0; | |
3238 | } | |
3239 | _ACEOF | |
3240 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3241 | if { { ac_try="$ac_compile" |
3242 | case "(($ac_try" in | |
3243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3244 | *) ac_try_echo=$ac_try;; | |
3245 | esac | |
3246 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3247 | $as_echo "$ac_try_echo"; } >&5 | |
3248 | (eval "$ac_compile") 2>&5 | |
3249 | ac_status=$? | |
3250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3251 | test $ac_status = 0; }; then : | |
3252 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3253 | test -f "$ac_file" || continue; | |
42ecbf5e | 3254 | case $ac_file in |
81ecdfbb | 3255 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
42ecbf5e DJ |
3256 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3257 | break;; | |
3258 | esac | |
3259 | done | |
3260 | else | |
81ecdfbb | 3261 | $as_echo "$as_me: failed program was:" >&5 |
42ecbf5e DJ |
3262 | sed 's/^/| /' conftest.$ac_ext >&5 |
3263 | ||
81ecdfbb RW |
3264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3266 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3267 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3268 | fi |
42ecbf5e DJ |
3269 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3270 | fi | |
81ecdfbb RW |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3272 | $as_echo "$ac_cv_objext" >&6; } | |
42ecbf5e DJ |
3273 | OBJEXT=$ac_cv_objext |
3274 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3276 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3277 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3278 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3279 | else |
81ecdfbb | 3280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3281 | /* end confdefs.h. */ |
3282 | ||
3283 | int | |
3284 | main () | |
3285 | { | |
3286 | #ifndef __GNUC__ | |
3287 | choke me | |
3288 | #endif | |
3289 | ||
3290 | ; | |
3291 | return 0; | |
3292 | } | |
3293 | _ACEOF | |
81ecdfbb | 3294 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3295 | ac_compiler_gnu=yes |
3296 | else | |
81ecdfbb | 3297 | ac_compiler_gnu=no |
42ecbf5e | 3298 | fi |
81ecdfbb | 3299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
3300 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3301 | ||
3302 | fi | |
81ecdfbb RW |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3304 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3305 | if test $ac_compiler_gnu = yes; then | |
3306 | GCC=yes | |
3307 | else | |
3308 | GCC= | |
3309 | fi | |
42ecbf5e DJ |
3310 | ac_test_CFLAGS=${CFLAGS+set} |
3311 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3313 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3314 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3315 | $as_echo_n "(cached) " >&6 | |
3316 | else | |
3317 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3318 | ac_c_werror_flag=yes | |
3319 | ac_cv_prog_cc_g=no | |
3320 | CFLAGS="-g" | |
3321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e DJ |
3322 | /* end confdefs.h. */ |
3323 | ||
3324 | int | |
3325 | main () | |
3326 | { | |
3327 | ||
3328 | ; | |
3329 | return 0; | |
3330 | } | |
3331 | _ACEOF | |
81ecdfbb | 3332 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3333 | ac_cv_prog_cc_g=yes |
3334 | else | |
81ecdfbb RW |
3335 | CFLAGS="" |
3336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3337 | /* end confdefs.h. */ | |
3338 | ||
3339 | int | |
3340 | main () | |
3341 | { | |
3342 | ||
3343 | ; | |
3344 | return 0; | |
3345 | } | |
3346 | _ACEOF | |
3347 | if ac_fn_c_try_compile "$LINENO"; then : | |
3348 | ||
3349 | else | |
3350 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3351 | CFLAGS="-g" | |
3352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3353 | /* end confdefs.h. */ | |
3354 | ||
3355 | int | |
3356 | main () | |
3357 | { | |
42ecbf5e | 3358 | |
81ecdfbb RW |
3359 | ; |
3360 | return 0; | |
3361 | } | |
3362 | _ACEOF | |
3363 | if ac_fn_c_try_compile "$LINENO"; then : | |
3364 | ac_cv_prog_cc_g=yes | |
3365 | fi | |
3366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3367 | fi | |
3368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 3369 | fi |
81ecdfbb RW |
3370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3371 | ac_c_werror_flag=$ac_save_c_werror_flag | |
42ecbf5e | 3372 | fi |
81ecdfbb RW |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3374 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
42ecbf5e DJ |
3375 | if test "$ac_test_CFLAGS" = set; then |
3376 | CFLAGS=$ac_save_CFLAGS | |
3377 | elif test $ac_cv_prog_cc_g = yes; then | |
3378 | if test "$GCC" = yes; then | |
3379 | CFLAGS="-g -O2" | |
3380 | else | |
3381 | CFLAGS="-g" | |
3382 | fi | |
3383 | else | |
3384 | if test "$GCC" = yes; then | |
3385 | CFLAGS="-O2" | |
3386 | else | |
3387 | CFLAGS= | |
3388 | fi | |
3389 | fi | |
81ecdfbb RW |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3391 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3392 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3393 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3394 | else |
81ecdfbb | 3395 | ac_cv_prog_cc_c89=no |
42ecbf5e | 3396 | ac_save_CC=$CC |
81ecdfbb | 3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3398 | /* end confdefs.h. */ |
3399 | #include <stdarg.h> | |
3400 | #include <stdio.h> | |
3401 | #include <sys/types.h> | |
3402 | #include <sys/stat.h> | |
3403 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3404 | struct buf { int x; }; | |
3405 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3406 | static char *e (p, i) | |
3407 | char **p; | |
3408 | int i; | |
3409 | { | |
3410 | return p[i]; | |
3411 | } | |
3412 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3413 | { | |
3414 | char *s; | |
3415 | va_list v; | |
3416 | va_start (v,p); | |
3417 | s = g (p, va_arg (v,int)); | |
3418 | va_end (v); | |
3419 | return s; | |
3420 | } | |
3421 | ||
3422 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3423 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3424 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3425 | as 'x'. The following induces an error, until -std is added to get |
42ecbf5e DJ |
3426 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3427 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3428 | that's true only with -std. */ |
42ecbf5e DJ |
3429 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3430 | ||
81ecdfbb RW |
3431 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3432 | inside strings and character constants. */ | |
3433 | #define FOO(x) 'x' | |
3434 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3435 | ||
42ecbf5e DJ |
3436 | int test (int i, double x); |
3437 | struct s1 {int (*f) (int a);}; | |
3438 | struct s2 {int (*f) (double a);}; | |
3439 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3440 | int argc; | |
3441 | char **argv; | |
3442 | int | |
3443 | main () | |
3444 | { | |
3445 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3446 | ; | |
3447 | return 0; | |
3448 | } | |
3449 | _ACEOF | |
81ecdfbb RW |
3450 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3451 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
42ecbf5e DJ |
3452 | do |
3453 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3454 | if ac_fn_c_try_compile "$LINENO"; then : |
3455 | ac_cv_prog_cc_c89=$ac_arg | |
42ecbf5e | 3456 | fi |
81ecdfbb RW |
3457 | rm -f core conftest.err conftest.$ac_objext |
3458 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
42ecbf5e | 3459 | done |
81ecdfbb | 3460 | rm -f conftest.$ac_ext |
42ecbf5e DJ |
3461 | CC=$ac_save_CC |
3462 | ||
3463 | fi | |
81ecdfbb RW |
3464 | # AC_CACHE_VAL |
3465 | case "x$ac_cv_prog_cc_c89" in | |
3466 | x) | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3468 | $as_echo "none needed" >&6; } ;; | |
3469 | xno) | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3471 | $as_echo "unsupported" >&6; } ;; | |
42ecbf5e | 3472 | *) |
81ecdfbb RW |
3473 | CC="$CC $ac_cv_prog_cc_c89" |
3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3475 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
42ecbf5e | 3476 | esac |
81ecdfbb | 3477 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
42ecbf5e | 3478 | |
42ecbf5e DJ |
3479 | fi |
3480 | ||
42ecbf5e DJ |
3481 | ac_ext=c |
3482 | ac_cpp='$CPP $CPPFLAGS' | |
3483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3486 | ||
3487 | ||
81ecdfbb RW |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3489 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3490 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3491 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3492 | else |
3493 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3495 | /* end confdefs.h. */ |
3496 | ||
81ecdfbb RW |
3497 | /* Override any GCC internal prototype to avoid an error. |
3498 | Use char because int might match the return type of a GCC | |
3499 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
3500 | #ifdef __cplusplus |
3501 | extern "C" | |
3502 | #endif | |
42ecbf5e DJ |
3503 | char strerror (); |
3504 | int | |
3505 | main () | |
3506 | { | |
81ecdfbb | 3507 | return strerror (); |
42ecbf5e DJ |
3508 | ; |
3509 | return 0; | |
3510 | } | |
3511 | _ACEOF | |
81ecdfbb RW |
3512 | for ac_lib in '' cposix; do |
3513 | if test -z "$ac_lib"; then | |
3514 | ac_res="none required" | |
3515 | else | |
3516 | ac_res=-l$ac_lib | |
42ecbf5e | 3517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3518 | fi |
3519 | if ac_fn_c_try_link "$LINENO"; then : | |
3520 | ac_cv_search_strerror=$ac_res | |
3521 | fi | |
3522 | rm -f core conftest.err conftest.$ac_objext \ | |
3523 | conftest$ac_exeext | |
3524 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3525 | break | |
3526 | fi | |
3527 | done | |
3528 | if test "${ac_cv_search_strerror+set}" = set; then : | |
42ecbf5e | 3529 | |
42ecbf5e | 3530 | else |
81ecdfbb | 3531 | ac_cv_search_strerror=no |
42ecbf5e | 3532 | fi |
81ecdfbb | 3533 | rm conftest.$ac_ext |
42ecbf5e DJ |
3534 | LIBS=$ac_func_search_save_LIBS |
3535 | fi | |
81ecdfbb RW |
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3537 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3538 | ac_res=$ac_cv_search_strerror | |
3539 | if test "$ac_res" != no; then : | |
3540 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e DJ |
3541 | |
3542 | fi | |
e5a52504 MM |
3543 | |
3544 | ||
3545 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
81ecdfbb RW |
3546 | am__api_version='1.11' |
3547 | ||
e5a52504 MM |
3548 | # Find a good install program. We prefer a C program (faster), |
3549 | # so one script is as good as another. But avoid the broken or | |
3550 | # incompatible versions: | |
3551 | # SysV /etc/install, /usr/sbin/install | |
3552 | # SunOS /usr/etc/install | |
3553 | # IRIX /sbin/install | |
3554 | # AIX /bin/install | |
42ecbf5e | 3555 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3556 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3557 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3558 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3559 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3560 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3561 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3563 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3564 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3565 | if test "${ac_cv_path_install+set}" = set; then : |
3566 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 3567 | else |
42ecbf5e DJ |
3568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3569 | for as_dir in $PATH | |
3570 | do | |
3571 | IFS=$as_save_IFS | |
3572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3573 | # Account for people who put trailing slashes in PATH elements. |
3574 | case $as_dir/ in #(( | |
3575 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3576 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3577 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3578 | /usr/ucb/* ) ;; |
3579 | *) | |
3580 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3581 | # Don't use installbsd from OSF since it installs stuff as root | |
3582 | # by default. | |
3583 | for ac_prog in ginstall scoinst install; do | |
3584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3585 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3586 | if test $ac_prog = install && |
42ecbf5e | 3587 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3588 | # AIX install. It has an incompatible calling convention. |
3589 | : | |
42ecbf5e DJ |
3590 | elif test $ac_prog = install && |
3591 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3592 | # program-specific install script used by HP pwplus--don't use. | |
3593 | : | |
252b5132 | 3594 | else |
58c85be7 RW |
3595 | rm -rf conftest.one conftest.two conftest.dir |
3596 | echo one > conftest.one | |
3597 | echo two > conftest.two | |
3598 | mkdir conftest.dir | |
3599 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3600 | test -s conftest.one && test -s conftest.two && | |
3601 | test -s conftest.dir/conftest.one && | |
3602 | test -s conftest.dir/conftest.two | |
3603 | then | |
3604 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3605 | break 3 | |
3606 | fi | |
252b5132 RH |
3607 | fi |
3608 | fi | |
3609 | done | |
42ecbf5e DJ |
3610 | done |
3611 | ;; | |
3612 | esac | |
81ecdfbb RW |
3613 | |
3614 | done | |
3615 | IFS=$as_save_IFS | |
42ecbf5e | 3616 | |
58c85be7 | 3617 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3618 | |
3619 | fi | |
3620 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3621 | INSTALL=$ac_cv_path_install |
252b5132 | 3622 | else |
58c85be7 RW |
3623 | # As a last resort, use the slow shell script. Don't cache a |
3624 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3625 | # break other packages using the cache if that directory is |
58c85be7 | 3626 | # removed, or if the value is a relative name. |
42ecbf5e | 3627 | INSTALL=$ac_install_sh |
252b5132 RH |
3628 | fi |
3629 | fi | |
81ecdfbb RW |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3631 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3632 | |
3633 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3634 | # It thinks the first close brace ends the variable substitution. | |
3635 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3636 | ||
42ecbf5e | 3637 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3638 | |
3639 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3640 | ||
81ecdfbb RW |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3642 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3643 | # Just in case |
3644 | sleep 1 | |
42ecbf5e | 3645 | echo timestamp > conftest.file |
81ecdfbb RW |
3646 | # Reject unsafe characters in $srcdir or the absolute working directory |
3647 | # name. Accept space and tab only in the latter. | |
3648 | am_lf=' | |
3649 | ' | |
3650 | case `pwd` in | |
3651 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3652 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3653 | esac | |
3654 | case $srcdir in | |
3655 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3656 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3657 | esac | |
3658 | ||
252b5132 RH |
3659 | # Do `set' in a subshell so we don't clobber the current shell's |
3660 | # arguments. Must try -L first in case configure is actually a | |
3661 | # symlink; some systems play weird games with the mod time of symlinks | |
3662 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3663 | # directory). | |
3664 | if ( | |
81ecdfbb | 3665 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3666 | if test "$*" = "X"; then |
3667 | # -L didn't work. | |
81ecdfbb | 3668 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3669 | fi |
42ecbf5e DJ |
3670 | rm -f conftest.file |
3671 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3672 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3673 | |
3674 | # If neither matched, then we have a broken ls. This can happen | |
3675 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3676 | # broken ls alias from the environment. This has actually | |
3677 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3678 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3679 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3680 | fi |
3681 | ||
42ecbf5e | 3682 | test "$2" = conftest.file |
252b5132 RH |
3683 | ) |
3684 | then | |
3685 | # Ok. | |
3686 | : | |
3687 | else | |
81ecdfbb RW |
3688 | as_fn_error "newly created file is older than distributed files! |
3689 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3690 | fi |
81ecdfbb RW |
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3692 | $as_echo "yes" >&6; } | |
252b5132 | 3693 | test "$program_prefix" != NONE && |
81ecdfbb | 3694 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3695 | # Use a double $ so make ignores it. |
3696 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3697 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3698 | # Double any \ or $. | |
42ecbf5e | 3699 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3700 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3701 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e DJ |
3702 | |
3703 | # expand $ac_aux_dir to an absolute path | |
3704 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3705 | ||
81ecdfbb RW |
3706 | if test x"${MISSING+set}" != xset; then |
3707 | case $am_aux_dir in | |
3708 | *\ * | *\ *) | |
3709 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3710 | *) | |
3711 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3712 | esac | |
3713 | fi | |
42ecbf5e DJ |
3714 | # Use eval to expand $SHELL |
3715 | if eval "$MISSING --run true"; then | |
3716 | am_missing_run="$MISSING --run " | |
3717 | else | |
3718 | am_missing_run= | |
81ecdfbb RW |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3720 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3721 | fi | |
3722 | ||
3723 | if test x"${install_sh}" != xset; then | |
3724 | case $am_aux_dir in | |
3725 | *\ * | *\ *) | |
3726 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3727 | *) | |
3728 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3729 | esac | |
3730 | fi | |
3731 | ||
3732 | # Installed binaries are usually stripped using `strip' when the user | |
3733 | # run `make install-strip'. However `strip' might not be the right | |
3734 | # tool to use in cross-compilation environments, therefore Automake | |
3735 | # will honor the `STRIP' environment variable to overrule this program. | |
3736 | if test "$cross_compiling" != no; then | |
3737 | if test -n "$ac_tool_prefix"; then | |
3738 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3739 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3741 | $as_echo_n "checking for $ac_word... " >&6; } | |
3742 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3743 | $as_echo_n "(cached) " >&6 | |
3744 | else | |
3745 | if test -n "$STRIP"; then | |
3746 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3747 | else | |
3748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3749 | for as_dir in $PATH | |
3750 | do | |
3751 | IFS=$as_save_IFS | |
3752 | test -z "$as_dir" && as_dir=. | |
3753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3755 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3757 | break 2 | |
3758 | fi | |
3759 | done | |
3760 | done | |
3761 | IFS=$as_save_IFS | |
3762 | ||
3763 | fi | |
3764 | fi | |
3765 | STRIP=$ac_cv_prog_STRIP | |
3766 | if test -n "$STRIP"; then | |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3768 | $as_echo "$STRIP" >&6; } | |
3769 | else | |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3771 | $as_echo "no" >&6; } | |
3772 | fi | |
3773 | ||
3774 | ||
3775 | fi | |
3776 | if test -z "$ac_cv_prog_STRIP"; then | |
3777 | ac_ct_STRIP=$STRIP | |
3778 | # Extract the first word of "strip", so it can be a program name with args. | |
3779 | set dummy strip; ac_word=$2 | |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3781 | $as_echo_n "checking for $ac_word... " >&6; } | |
3782 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3783 | $as_echo_n "(cached) " >&6 | |
3784 | else | |
3785 | if test -n "$ac_ct_STRIP"; then | |
3786 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3787 | else | |
3788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3789 | for as_dir in $PATH | |
3790 | do | |
3791 | IFS=$as_save_IFS | |
3792 | test -z "$as_dir" && as_dir=. | |
3793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3795 | ac_cv_prog_ac_ct_STRIP="strip" | |
3796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3797 | break 2 | |
3798 | fi | |
3799 | done | |
3800 | done | |
3801 | IFS=$as_save_IFS | |
3802 | ||
3803 | fi | |
3804 | fi | |
3805 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3806 | if test -n "$ac_ct_STRIP"; then | |
3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3808 | $as_echo "$ac_ct_STRIP" >&6; } | |
3809 | else | |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3811 | $as_echo "no" >&6; } | |
3812 | fi | |
3813 | ||
3814 | if test "x$ac_ct_STRIP" = x; then | |
3815 | STRIP=":" | |
3816 | else | |
3817 | case $cross_compiling:$ac_tool_warned in | |
3818 | yes:) | |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3820 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3821 | ac_tool_warned=yes ;; | |
3822 | esac | |
3823 | STRIP=$ac_ct_STRIP | |
3824 | fi | |
3825 | else | |
3826 | STRIP="$ac_cv_prog_STRIP" | |
3827 | fi | |
3828 | ||
3829 | fi | |
3830 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3831 | ||
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3833 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3834 | if test -z "$MKDIR_P"; then | |
3835 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3836 | $as_echo_n "(cached) " >&6 | |
3837 | else | |
3838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3839 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3840 | do | |
3841 | IFS=$as_save_IFS | |
3842 | test -z "$as_dir" && as_dir=. | |
3843 | for ac_prog in mkdir gmkdir; do | |
3844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3845 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3846 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3847 | 'mkdir (GNU coreutils) '* | \ | |
3848 | 'mkdir (coreutils) '* | \ | |
3849 | 'mkdir (fileutils) '4.1*) | |
3850 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3851 | break 3;; | |
3852 | esac | |
3853 | done | |
3854 | done | |
42ecbf5e | 3855 | done |
81ecdfbb RW |
3856 | IFS=$as_save_IFS |
3857 | ||
3858 | fi | |
3859 | ||
3860 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3861 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3862 | else |
81ecdfbb RW |
3863 | # As a last resort, use the slow shell script. Don't cache a |
3864 | # value for MKDIR_P within a source directory, because that will | |
3865 | # break other packages using the cache if that directory is | |
3866 | # removed, or if the value is a relative name. | |
3867 | test -d ./--version && rmdir ./--version | |
3868 | MKDIR_P="$ac_install_sh -d" | |
42ecbf5e DJ |
3869 | fi |
3870 | fi | |
81ecdfbb RW |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3872 | $as_echo "$MKDIR_P" >&6; } | |
3873 | ||
3874 | mkdir_p="$MKDIR_P" | |
3875 | case $mkdir_p in | |
3876 | [\\/$]* | ?:[\\/]*) ;; | |
3877 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3878 | esac | |
42ecbf5e DJ |
3879 | |
3880 | for ac_prog in gawk mawk nawk awk | |
3881 | do | |
3882 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3883 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3885 | $as_echo_n "checking for $ac_word... " >&6; } | |
3886 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3887 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3888 | else |
3889 | if test -n "$AWK"; then | |
3890 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3891 | else | |
3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 | for as_dir in $PATH | |
3894 | do | |
3895 | IFS=$as_save_IFS | |
3896 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3897 | for ac_exec_ext in '' $ac_executable_extensions; do |
3898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 3899 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3901 | break 2 |
3902 | fi | |
3903 | done | |
81ecdfbb RW |
3904 | done |
3905 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3906 | |
3907 | fi | |
3908 | fi | |
3909 | AWK=$ac_cv_prog_AWK | |
3910 | if test -n "$AWK"; then | |
81ecdfbb RW |
3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3912 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3913 | else |
81ecdfbb RW |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3915 | $as_echo "no" >&6; } | |
42ecbf5e | 3916 | fi |
252b5132 | 3917 | |
81ecdfbb | 3918 | |
42ecbf5e DJ |
3919 | test -n "$AWK" && break |
3920 | done | |
252b5132 | 3921 | |
81ecdfbb RW |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3923 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3924 | set x ${MAKE-make} | |
3925 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3926 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3927 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3928 | else |
42ecbf5e | 3929 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3930 | SHELL = /bin/sh |
252b5132 | 3931 | all: |
81ecdfbb | 3932 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3933 | _ACEOF |
252b5132 | 3934 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3935 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3936 | *@@@%%%=?*=@@@%%%*) | |
3937 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3938 | *) | |
3939 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3940 | esac | |
42ecbf5e | 3941 | rm -f conftest.make |
252b5132 | 3942 | fi |
81ecdfbb RW |
3943 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3945 | $as_echo "yes" >&6; } | |
252b5132 RH |
3946 | SET_MAKE= |
3947 | else | |
81ecdfbb RW |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3949 | $as_echo "no" >&6; } | |
252b5132 RH |
3950 | SET_MAKE="MAKE=${MAKE-make}" |
3951 | fi | |
3952 | ||
42ecbf5e DJ |
3953 | rm -rf .tst 2>/dev/null |
3954 | mkdir .tst 2>/dev/null | |
3955 | if test -d .tst; then | |
3956 | am__leading_dot=. | |
3957 | else | |
3958 | am__leading_dot=_ | |
3959 | fi | |
3960 | rmdir .tst 2>/dev/null | |
3961 | ||
3962 | DEPDIR="${am__leading_dot}deps" | |
3963 | ||
81ecdfbb | 3964 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
3965 | |
3966 | ||
3967 | am_make=${MAKE-make} | |
3968 | cat > confinc << 'END' | |
3969 | am__doit: | |
81ecdfbb | 3970 | @echo this is the am__doit target |
42ecbf5e DJ |
3971 | .PHONY: am__doit |
3972 | END | |
3973 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3975 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
3976 | am__include="#" |
3977 | am__quote= | |
3978 | _am_result=none | |
3979 | # First try GNU make style include. | |
3980 | echo "include confinc" > confmf | |
81ecdfbb RW |
3981 | # Ignore all kinds of additional output from `make'. |
3982 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3983 | *the\ am__doit\ target*) | |
3984 | am__include=include | |
3985 | am__quote= | |
3986 | _am_result=GNU | |
3987 | ;; | |
3988 | esac | |
42ecbf5e DJ |
3989 | # Now try BSD make style include. |
3990 | if test "$am__include" = "#"; then | |
3991 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3992 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3993 | *the\ am__doit\ target*) | |
3994 | am__include=.include | |
3995 | am__quote="\"" | |
3996 | _am_result=BSD | |
3997 | ;; | |
3998 | esac | |
42ecbf5e DJ |
3999 | fi |
4000 | ||
4001 | ||
81ecdfbb RW |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4003 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4004 | rm -f confinc confmf |
4005 | ||
81ecdfbb RW |
4006 | # Check whether --enable-dependency-tracking was given. |
4007 | if test "${enable_dependency_tracking+set}" = set; then : | |
4008 | enableval=$enable_dependency_tracking; | |
4009 | fi | |
42ecbf5e | 4010 | |
42ecbf5e DJ |
4011 | if test "x$enable_dependency_tracking" != xno; then |
4012 | am_depcomp="$ac_aux_dir/depcomp" | |
4013 | AMDEPBACKSLASH='\' | |
4014 | fi | |
81ecdfbb | 4015 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4016 | AMDEP_TRUE= |
4017 | AMDEP_FALSE='#' | |
4018 | else | |
4019 | AMDEP_TRUE='#' | |
4020 | AMDEP_FALSE= | |
4021 | fi | |
4022 | ||
e5a52504 | 4023 | |
81ecdfbb RW |
4024 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4025 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4026 | # is not polluted with repeated "-I." | |
4027 | am__isrc=' -I$(srcdir)' | |
4028 | # test to see if srcdir already configured | |
4029 | if test -f $srcdir/config.status; then | |
4030 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4031 | fi | |
42ecbf5e | 4032 | fi |
252b5132 | 4033 | |
42ecbf5e DJ |
4034 | # test whether we have cygpath |
4035 | if test -z "$CYGPATH_W"; then | |
4036 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4037 | CYGPATH_W='cygpath -w' | |
4038 | else | |
4039 | CYGPATH_W=echo | |
4040 | fi | |
252b5132 | 4041 | fi |
42ecbf5e DJ |
4042 | |
4043 | ||
4044 | # Define the identity of the package. | |
4045 | PACKAGE=ld | |
4046 | VERSION=${BFD_VERSION} | |
4047 | ||
4048 | ||
4049 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4050 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4051 | _ACEOF |
4052 | ||
252b5132 | 4053 | |
42ecbf5e | 4054 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4055 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4056 | _ACEOF |
4057 | ||
4058 | # Some tools Automake needs. | |
4059 | ||
4060 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4061 | ||
4062 | ||
4063 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4064 | ||
4065 | ||
4066 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4067 | ||
4068 | ||
4069 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4070 | ||
e5a52504 | 4071 | |
42ecbf5e | 4072 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4073 | |
42ecbf5e DJ |
4074 | # We need awk for the "check" target. The system "awk" is bad on |
4075 | # some platforms. | |
4076 | # Always define AMTAR for backward compatibility. | |
4077 | ||
4078 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4079 | ||
4080 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4081 | ||
4082 | ||
4083 | ||
4084 | ||
4085 | depcc="$CC" am_compiler_list= | |
4086 | ||
81ecdfbb RW |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4088 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4089 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4090 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
4091 | else |
4092 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4093 | # We make a subdir and do the tests there. Otherwise we can end up | |
4094 | # making bogus files that we don't know about and never remove. For | |
4095 | # instance it was reported that on HP-UX the gcc test will end up | |
4096 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4097 | # in D'. | |
4098 | mkdir conftest.dir | |
4099 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4100 | # using a relative directory. | |
4101 | cp "$am_depcomp" conftest.dir | |
4102 | cd conftest.dir | |
4103 | # We will build objects and dependencies in a subdirectory because | |
4104 | # it helps to detect inapplicable dependency modes. For instance | |
4105 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4106 | # side effect of compilation, but ICC will put the dependencies in | |
4107 | # the current directory while Tru64 will put them in the object | |
4108 | # directory. | |
4109 | mkdir sub | |
4110 | ||
4111 | am_cv_CC_dependencies_compiler_type=none | |
4112 | if test "$am_compiler_list" = ""; then | |
4113 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4114 | fi | |
81ecdfbb RW |
4115 | am__universal=false |
4116 | case " $depcc " in #( | |
4117 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4118 | esac | |
4119 | ||
42ecbf5e DJ |
4120 | for depmode in $am_compiler_list; do |
4121 | # Setup a source with many dependencies, because some compilers | |
4122 | # like to wrap large dependency lists on column 80 (with \), and | |
4123 | # we should not choose a depcomp mode which is confused by this. | |
4124 | # | |
4125 | # We need to recreate these files for each test, as the compiler may | |
4126 | # overwrite some of them when testing with obscure command lines. | |
4127 | # This happens at least with the AIX C compiler. | |
4128 | : > sub/conftest.c | |
4129 | for i in 1 2 3 4 5 6; do | |
4130 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4131 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4132 | # Solaris 8's {/usr,}/bin/sh. | |
4133 | touch sub/conftst$i.h | |
4134 | done | |
4135 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4136 | ||
81ecdfbb RW |
4137 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4138 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4139 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4140 | # versions had trouble with output in subdirs | |
4141 | am__obj=sub/conftest.${OBJEXT-o} | |
4142 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4143 | case $depmode in |
81ecdfbb RW |
4144 | gcc) |
4145 | # This depmode causes a compiler race in universal mode. | |
4146 | test "$am__universal" = false || continue | |
4147 | ;; | |
42ecbf5e DJ |
4148 | nosideeffect) |
4149 | # after this tag, mechanisms are not by side-effect, so they'll | |
4150 | # only be used when explicitly requested | |
4151 | if test "x$enable_dependency_tracking" = xyes; then | |
4152 | continue | |
4153 | else | |
4154 | break | |
4155 | fi | |
4156 | ;; | |
81ecdfbb RW |
4157 | msvisualcpp | msvcmsys) |
4158 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4159 | # not run yet. These depmodes are late enough in the game, and | |
4160 | # so weak that their functioning should not be impacted. | |
4161 | am__obj=conftest.${OBJEXT-o} | |
4162 | am__minus_obj= | |
4163 | ;; | |
42ecbf5e DJ |
4164 | none) break ;; |
4165 | esac | |
42ecbf5e | 4166 | if depmode=$depmode \ |
81ecdfbb | 4167 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4168 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4169 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4170 | >/dev/null 2>conftest.err && |
81ecdfbb | 4171 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4172 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4173 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4174 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4175 | # icc doesn't choke on unknown options, it will just issue warnings | |
4176 | # or remarks (even with -Werror). So we grep stderr for any message | |
4177 | # that says an option was ignored or not supported. | |
4178 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4179 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4180 | # The diagnosis changed in icc 8.0: | |
4181 | # icc: Command line remark: option '-MP' not supported | |
4182 | if (grep 'ignoring option' conftest.err || | |
4183 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4184 | am_cv_CC_dependencies_compiler_type=$depmode | |
4185 | break | |
4186 | fi | |
4187 | fi | |
4188 | done | |
2469cfa2 | 4189 | |
42ecbf5e DJ |
4190 | cd .. |
4191 | rm -rf conftest.dir | |
2469cfa2 | 4192 | else |
42ecbf5e DJ |
4193 | am_cv_CC_dependencies_compiler_type=none |
4194 | fi | |
4195 | ||
2469cfa2 | 4196 | fi |
81ecdfbb RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4198 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4199 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4200 | ||
81ecdfbb | 4201 | if |
42ecbf5e DJ |
4202 | test "x$enable_dependency_tracking" != xno \ |
4203 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4204 | am__fastdepCC_TRUE= | |
4205 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4206 | else |
42ecbf5e DJ |
4207 | am__fastdepCC_TRUE='#' |
4208 | am__fastdepCC_FALSE= | |
2469cfa2 | 4209 | fi |
2469cfa2 | 4210 | |
2469cfa2 | 4211 | |
e5a52504 | 4212 | |
42ecbf5e | 4213 | |
64ac50ac RW |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4215 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4216 | # Check whether --enable-maintainer-mode was given. | |
4217 | if test "${enable_maintainer_mode+set}" = set; then : | |
4218 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4219 | else | |
4220 | USE_MAINTAINER_MODE=no | |
4221 | fi | |
4222 | ||
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4224 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4225 | if test $USE_MAINTAINER_MODE = yes; then | |
4226 | MAINTAINER_MODE_TRUE= | |
4227 | MAINTAINER_MODE_FALSE='#' | |
4228 | else | |
4229 | MAINTAINER_MODE_TRUE='#' | |
4230 | MAINTAINER_MODE_FALSE= | |
4231 | fi | |
4232 | ||
4233 | MAINT=$MAINTAINER_MODE_TRUE | |
4234 | ||
4235 | ||
4236 | ||
d7040cdb | 4237 | |
81ecdfbb RW |
4238 | # Check whether --with-lib-path was given. |
4239 | if test "${with_lib_path+set}" = set; then : | |
4240 | withval=$with_lib_path; LIB_PATH=$withval | |
4241 | fi | |
4242 | ||
4243 | # Check whether --enable-targets was given. | |
4244 | if test "${enable_targets+set}" = set; then : | |
4245 | enableval=$enable_targets; case "${enableval}" in | |
4246 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
4247 | ;; |
4248 | no) enable_targets= ;; | |
4249 | *) enable_targets=$enableval ;; | |
4250 | esac | |
81ecdfbb RW |
4251 | fi |
4252 | # Check whether --enable-64-bit-bfd was given. | |
4253 | if test "${enable_64_bit_bfd+set}" = set; then : | |
4254 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
ce2cded5 L |
4255 | yes) want64=true ;; |
4256 | no) want64=false ;; | |
81ecdfbb | 4257 | *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; |
ce2cded5 | 4258 | esac |
2469cfa2 | 4259 | else |
ce2cded5 | 4260 | want64=false |
81ecdfbb | 4261 | fi |
d7040cdb SE |
4262 | |
4263 | ||
81ecdfbb RW |
4264 | # Check whether --with-sysroot was given. |
4265 | if test "${with_sysroot+set}" = set; then : | |
4266 | withval=$with_sysroot; | |
ce2cded5 L |
4267 | case ${with_sysroot} in |
4268 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
4269 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
4270 | esac | |
d7040cdb | 4271 | |
ce2cded5 L |
4272 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
4273 | use_sysroot=yes | |
d7040cdb | 4274 | |
ce2cded5 L |
4275 | if test "x$prefix" = xNONE; then |
4276 | test_prefix=/usr/local | |
4277 | else | |
4278 | test_prefix=$prefix | |
4279 | fi | |
4280 | if test "x$exec_prefix" = xNONE; then | |
4281 | test_exec_prefix=$test_prefix | |
4282 | else | |
4283 | test_exec_prefix=$exec_prefix | |
4284 | fi | |
4285 | case ${TARGET_SYSTEM_ROOT} in | |
4286 | "${test_prefix}"|"${test_prefix}/"*|\ | |
4287 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
4288 | '${prefix}'|'${prefix}/'*|\ | |
4289 | '${exec_prefix}'|'${exec_prefix}/'*) | |
4290 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
4291 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
4292 | ;; | |
4293 | esac | |
d7040cdb | 4294 | |
e5a52504 | 4295 | else |
d7040cdb | 4296 | |
ce2cded5 L |
4297 | use_sysroot=no |
4298 | TARGET_SYSTEM_ROOT= | |
4299 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
d7040cdb | 4300 | |
81ecdfbb RW |
4301 | fi |
4302 | ||
d7040cdb SE |
4303 | |
4304 | ||
4305 | ||
4306 | ||
81ecdfbb RW |
4307 | # Check whether --enable-got was given. |
4308 | if test "${enable_got+set}" = set; then : | |
4309 | enableval=$enable_got; case "${enableval}" in | |
7fb9f789 | 4310 | target | single | negative | multigot) got_handling=$enableval ;; |
81ecdfbb | 4311 | *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4312 | esac |
4313 | else | |
4314 | got_handling=target | |
81ecdfbb RW |
4315 | fi |
4316 | ||
7fb9f789 NC |
4317 | |
4318 | case "${got_handling}" in | |
4319 | target) | |
4320 | ||
81ecdfbb | 4321 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h |
7fb9f789 NC |
4322 | ;; |
4323 | single) | |
4324 | ||
81ecdfbb | 4325 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h |
7fb9f789 NC |
4326 | ;; |
4327 | negative) | |
4328 | ||
81ecdfbb | 4329 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h |
7fb9f789 NC |
4330 | ;; |
4331 | multigot) | |
4332 | ||
81ecdfbb | 4333 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h |
7fb9f789 | 4334 | ;; |
81ecdfbb | 4335 | *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4336 | esac |
4337 | ||
d7040cdb | 4338 | |
ce2cded5 | 4339 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
d7040cdb | 4340 | |
81ecdfbb RW |
4341 | # Check whether --enable-werror was given. |
4342 | if test "${enable_werror+set}" = set; then : | |
4343 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
4344 | yes | y) ERROR_ON_WARNING="yes" ;; |
4345 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 4346 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 4347 | esac |
81ecdfbb RW |
4348 | fi |
4349 | ||
d7040cdb | 4350 | |
bb8541b9 L |
4351 | # Enable -Wno-format by default when using gcc on mingw |
4352 | case "${host}" in | |
4353 | *-*-mingw32*) | |
4354 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4355 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
4356 | fi | |
4357 | ;; | |
4358 | *) ;; | |
4359 | esac | |
4360 | ||
ce2cded5 L |
4361 | # Enable -Werror by default when using gcc |
4362 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4363 | ERROR_ON_WARNING=yes | |
4364 | fi | |
d7040cdb | 4365 | |
ce2cded5 L |
4366 | NO_WERROR= |
4367 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4368 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
4369 | NO_WERROR="-Wno-error" | |
4370 | fi | |
d7040cdb | 4371 | |
ce2cded5 L |
4372 | if test "${GCC}" = yes ; then |
4373 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
4374 | fi | |
d7040cdb | 4375 | |
81ecdfbb RW |
4376 | # Check whether --enable-build-warnings was given. |
4377 | if test "${enable_build_warnings+set}" = set; then : | |
4378 | enableval=$enable_build_warnings; case "${enableval}" in | |
ce2cded5 L |
4379 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
4380 | no) if test "${GCC}" = yes ; then | |
4381 | WARN_CFLAGS="-w" | |
4382 | fi;; | |
4383 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4384 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
4385 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4386 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
4387 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4388 | esac | |
81ecdfbb RW |
4389 | fi |
4390 | ||
d7040cdb | 4391 | |
ce2cded5 L |
4392 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
4393 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
4394 | fi | |
d7040cdb | 4395 | |
2469cfa2 | 4396 | |
d7040cdb SE |
4397 | |
4398 | ||
4399 | ||
81ecdfbb | 4400 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb SE |
4401 | |
4402 | ||
ce2cded5 | 4403 | if test -z "$target" ; then |
81ecdfbb | 4404 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
ce2cded5 L |
4405 | fi |
4406 | if test -z "$host" ; then | |
81ecdfbb | 4407 | as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 |
ce2cded5 | 4408 | fi |
d7040cdb | 4409 | |
ce2cded5 | 4410 | # host-specific stuff: |
d7040cdb | 4411 | |
ce2cded5 L |
4412 | ac_ext=c |
4413 | ac_cpp='$CPP $CPPFLAGS' | |
4414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4417 | if test -n "$ac_tool_prefix"; then | |
4418 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4419 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4421 | $as_echo_n "checking for $ac_word... " >&6; } | |
4422 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4423 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4424 | else |
ce2cded5 L |
4425 | if test -n "$CC"; then |
4426 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4427 | else | |
d7040cdb SE |
4428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4429 | for as_dir in $PATH | |
4430 | do | |
4431 | IFS=$as_save_IFS | |
4432 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4433 | for ac_exec_ext in '' $ac_executable_extensions; do |
4434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4435 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 4437 | break 2 |
d7040cdb | 4438 | fi |
ce2cded5 | 4439 | done |
81ecdfbb RW |
4440 | done |
4441 | IFS=$as_save_IFS | |
d7040cdb SE |
4442 | |
4443 | fi | |
d7040cdb | 4444 | fi |
ce2cded5 L |
4445 | CC=$ac_cv_prog_CC |
4446 | if test -n "$CC"; then | |
81ecdfbb RW |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4448 | $as_echo "$CC" >&6; } | |
d7040cdb | 4449 | else |
81ecdfbb RW |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4451 | $as_echo "no" >&6; } | |
d7040cdb | 4452 | fi |
d7040cdb | 4453 | |
81ecdfbb | 4454 | |
252b5132 | 4455 | fi |
ce2cded5 L |
4456 | if test -z "$ac_cv_prog_CC"; then |
4457 | ac_ct_CC=$CC | |
4458 | # Extract the first word of "gcc", so it can be a program name with args. | |
4459 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4461 | $as_echo_n "checking for $ac_word... " >&6; } | |
4462 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4463 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4464 | else |
ce2cded5 L |
4465 | if test -n "$ac_ct_CC"; then |
4466 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 4467 | else |
ce2cded5 L |
4468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4469 | for as_dir in $PATH | |
4470 | do | |
4471 | IFS=$as_save_IFS | |
4472 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4473 | for ac_exec_ext in '' $ac_executable_extensions; do |
4474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4475 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4477 | break 2 |
4478 | fi | |
4479 | done | |
81ecdfbb RW |
4480 | done |
4481 | IFS=$as_save_IFS | |
4482 | ||
252b5132 RH |
4483 | fi |
4484 | fi | |
ce2cded5 L |
4485 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4486 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4488 | $as_echo "$ac_ct_CC" >&6; } | |
252b5132 | 4489 | else |
81ecdfbb RW |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4491 | $as_echo "no" >&6; } | |
252b5132 | 4492 | fi |
ce2cded5 | 4493 | |
81ecdfbb RW |
4494 | if test "x$ac_ct_CC" = x; then |
4495 | CC="" | |
4496 | else | |
4497 | case $cross_compiling:$ac_tool_warned in | |
4498 | yes:) | |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4500 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4501 | ac_tool_warned=yes ;; | |
4502 | esac | |
4503 | CC=$ac_ct_CC | |
4504 | fi | |
252b5132 | 4505 | else |
ce2cded5 | 4506 | CC="$ac_cv_prog_CC" |
252b5132 | 4507 | fi |
d7040cdb | 4508 | |
ce2cded5 | 4509 | if test -z "$CC"; then |
81ecdfbb RW |
4510 | if test -n "$ac_tool_prefix"; then |
4511 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4512 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4514 | $as_echo_n "checking for $ac_word... " >&6; } | |
4515 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4516 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4517 | else |
ce2cded5 L |
4518 | if test -n "$CC"; then |
4519 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4520 | else |
ce2cded5 L |
4521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4522 | for as_dir in $PATH | |
4523 | do | |
4524 | IFS=$as_save_IFS | |
4525 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4526 | for ac_exec_ext in '' $ac_executable_extensions; do |
4527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4528 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4530 | break 2 |
4531 | fi | |
4532 | done | |
81ecdfbb RW |
4533 | done |
4534 | IFS=$as_save_IFS | |
ce2cded5 | 4535 | |
252b5132 RH |
4536 | fi |
4537 | fi | |
ce2cded5 L |
4538 | CC=$ac_cv_prog_CC |
4539 | if test -n "$CC"; then | |
81ecdfbb RW |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4541 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4542 | else |
81ecdfbb RW |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4544 | $as_echo "no" >&6; } | |
ce2cded5 L |
4545 | fi |
4546 | ||
ce2cded5 | 4547 | |
81ecdfbb | 4548 | fi |
ce2cded5 L |
4549 | fi |
4550 | if test -z "$CC"; then | |
4551 | # Extract the first word of "cc", so it can be a program name with args. | |
4552 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4554 | $as_echo_n "checking for $ac_word... " >&6; } | |
4555 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4556 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4557 | else |
4558 | if test -n "$CC"; then | |
4559 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4560 | else | |
4561 | ac_prog_rejected=no | |
4562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4563 | for as_dir in $PATH | |
4564 | do | |
4565 | IFS=$as_save_IFS | |
4566 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4567 | for ac_exec_ext in '' $ac_executable_extensions; do |
4568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4569 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4570 | ac_prog_rejected=yes | |
4571 | continue | |
4572 | fi | |
4573 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4575 | break 2 |
4576 | fi | |
4577 | done | |
81ecdfbb RW |
4578 | done |
4579 | IFS=$as_save_IFS | |
ce2cded5 L |
4580 | |
4581 | if test $ac_prog_rejected = yes; then | |
4582 | # We found a bogon in the path, so make sure we never use it. | |
4583 | set dummy $ac_cv_prog_CC | |
4584 | shift | |
4585 | if test $# != 0; then | |
4586 | # We chose a different compiler from the bogus one. | |
4587 | # However, it has the same basename, so the bogon will be chosen | |
4588 | # first if we set CC to just the basename; use the full file name. | |
4589 | shift | |
4590 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4591 | fi | |
4592 | fi | |
4593 | fi | |
4594 | fi | |
4595 | CC=$ac_cv_prog_CC | |
4596 | if test -n "$CC"; then | |
81ecdfbb RW |
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4598 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4599 | else |
81ecdfbb RW |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4601 | $as_echo "no" >&6; } | |
ce2cded5 L |
4602 | fi |
4603 | ||
81ecdfbb | 4604 | |
ce2cded5 L |
4605 | fi |
4606 | if test -z "$CC"; then | |
d7040cdb | 4607 | if test -n "$ac_tool_prefix"; then |
81ecdfbb | 4608 | for ac_prog in cl.exe |
d7040cdb SE |
4609 | do |
4610 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4611 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4613 | $as_echo_n "checking for $ac_word... " >&6; } | |
4614 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4615 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4616 | else |
ce2cded5 L |
4617 | if test -n "$CC"; then |
4618 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb SE |
4619 | else |
4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4621 | for as_dir in $PATH | |
4622 | do | |
4623 | IFS=$as_save_IFS | |
4624 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4625 | for ac_exec_ext in '' $ac_executable_extensions; do |
4626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4627 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
4629 | break 2 |
4630 | fi | |
4631 | done | |
81ecdfbb RW |
4632 | done |
4633 | IFS=$as_save_IFS | |
d7040cdb SE |
4634 | |
4635 | fi | |
4636 | fi | |
ce2cded5 L |
4637 | CC=$ac_cv_prog_CC |
4638 | if test -n "$CC"; then | |
81ecdfbb RW |
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4640 | $as_echo "$CC" >&6; } | |
d7040cdb | 4641 | else |
81ecdfbb RW |
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4643 | $as_echo "no" >&6; } | |
d7040cdb SE |
4644 | fi |
4645 | ||
81ecdfbb | 4646 | |
ce2cded5 | 4647 | test -n "$CC" && break |
d7040cdb SE |
4648 | done |
4649 | fi | |
ce2cded5 L |
4650 | if test -z "$CC"; then |
4651 | ac_ct_CC=$CC | |
81ecdfbb | 4652 | for ac_prog in cl.exe |
d7040cdb SE |
4653 | do |
4654 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4655 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4657 | $as_echo_n "checking for $ac_word... " >&6; } | |
4658 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4659 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4660 | else |
ce2cded5 L |
4661 | if test -n "$ac_ct_CC"; then |
4662 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
4663 | else |
4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4665 | for as_dir in $PATH | |
4666 | do | |
4667 | IFS=$as_save_IFS | |
4668 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4669 | for ac_exec_ext in '' $ac_executable_extensions; do |
4670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4671 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
4673 | break 2 |
4674 | fi | |
4675 | done | |
81ecdfbb RW |
4676 | done |
4677 | IFS=$as_save_IFS | |
d7040cdb SE |
4678 | |
4679 | fi | |
4680 | fi | |
ce2cded5 L |
4681 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4682 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4684 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 4685 | else |
81ecdfbb RW |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4687 | $as_echo "no" >&6; } | |
d7040cdb SE |
4688 | fi |
4689 | ||
81ecdfbb | 4690 | |
ce2cded5 | 4691 | test -n "$ac_ct_CC" && break |
d7040cdb | 4692 | done |
d7040cdb | 4693 | |
81ecdfbb RW |
4694 | if test "x$ac_ct_CC" = x; then |
4695 | CC="" | |
4696 | else | |
4697 | case $cross_compiling:$ac_tool_warned in | |
4698 | yes:) | |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4700 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4701 | ac_tool_warned=yes ;; | |
4702 | esac | |
4703 | CC=$ac_ct_CC | |
4704 | fi | |
d7040cdb SE |
4705 | fi |
4706 | ||
d7040cdb | 4707 | fi |
d7040cdb SE |
4708 | |
4709 | ||
81ecdfbb RW |
4710 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4712 | as_fn_error "no acceptable C compiler found in \$PATH | |
4713 | See \`config.log' for more details." "$LINENO" 5; } | |
d7040cdb | 4714 | |
ce2cded5 | 4715 | # Provide some information about the compiler. |
81ecdfbb RW |
4716 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4717 | set X $ac_compile | |
4718 | ac_compiler=$2 | |
4719 | for ac_option in --version -v -V -qversion; do | |
4720 | { { ac_try="$ac_compiler $ac_option >&5" | |
4721 | case "(($ac_try" in | |
4722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4723 | *) ac_try_echo=$ac_try;; | |
4724 | esac | |
4725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4726 | $as_echo "$ac_try_echo"; } >&5 | |
4727 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4728 | ac_status=$? |
81ecdfbb RW |
4729 | if test -s conftest.err; then |
4730 | sed '10a\ | |
4731 | ... rest of stderr output deleted ... | |
4732 | 10q' conftest.err >conftest.er1 | |
4733 | cat conftest.er1 >&5 | |
4734 | rm -f conftest.er1 conftest.err | |
4735 | fi | |
4736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4737 | test $ac_status = 0; } | |
4738 | done | |
d7040cdb | 4739 | |
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4741 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4742 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4743 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4744 | else |
81ecdfbb | 4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4746 | /* end confdefs.h. */ |
d7040cdb | 4747 | |
ce2cded5 L |
4748 | int |
4749 | main () | |
4750 | { | |
4751 | #ifndef __GNUC__ | |
4752 | choke me | |
4753 | #endif | |
4754 | ||
4755 | ; | |
4756 | return 0; | |
4757 | } | |
4758 | _ACEOF | |
81ecdfbb | 4759 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 4760 | ac_compiler_gnu=yes |
d7040cdb | 4761 | else |
81ecdfbb | 4762 | ac_compiler_gnu=no |
d7040cdb | 4763 | fi |
81ecdfbb | 4764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4765 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4766 | |
ce2cded5 | 4767 | fi |
81ecdfbb RW |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4769 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4770 | if test $ac_compiler_gnu = yes; then | |
4771 | GCC=yes | |
4772 | else | |
4773 | GCC= | |
4774 | fi | |
ce2cded5 L |
4775 | ac_test_CFLAGS=${CFLAGS+set} |
4776 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4778 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4779 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4780 | $as_echo_n "(cached) " >&6 | |
4781 | else | |
4782 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4783 | ac_c_werror_flag=yes | |
4784 | ac_cv_prog_cc_g=no | |
4785 | CFLAGS="-g" | |
4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 4787 | /* end confdefs.h. */ |
d7040cdb | 4788 | |
ce2cded5 L |
4789 | int |
4790 | main () | |
4791 | { | |
d7040cdb | 4792 | |
ce2cded5 L |
4793 | ; |
4794 | return 0; | |
4795 | } | |
4796 | _ACEOF | |
81ecdfbb | 4797 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
4798 | ac_cv_prog_cc_g=yes |
4799 | else | |
81ecdfbb RW |
4800 | CFLAGS="" |
4801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4802 | /* end confdefs.h. */ | |
4803 | ||
4804 | int | |
4805 | main () | |
4806 | { | |
4807 | ||
4808 | ; | |
4809 | return 0; | |
4810 | } | |
4811 | _ACEOF | |
4812 | if ac_fn_c_try_compile "$LINENO"; then : | |
4813 | ||
4814 | else | |
4815 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4816 | CFLAGS="-g" | |
4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4818 | /* end confdefs.h. */ | |
4819 | ||
4820 | int | |
4821 | main () | |
4822 | { | |
d7040cdb | 4823 | |
81ecdfbb RW |
4824 | ; |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
4828 | if ac_fn_c_try_compile "$LINENO"; then : | |
4829 | ac_cv_prog_cc_g=yes | |
4830 | fi | |
4831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4832 | fi | |
4833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4834 | fi |
81ecdfbb RW |
4835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4836 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ce2cded5 | 4837 | fi |
81ecdfbb RW |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4839 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
4840 | if test "$ac_test_CFLAGS" = set; then |
4841 | CFLAGS=$ac_save_CFLAGS | |
4842 | elif test $ac_cv_prog_cc_g = yes; then | |
4843 | if test "$GCC" = yes; then | |
4844 | CFLAGS="-g -O2" | |
4845 | else | |
4846 | CFLAGS="-g" | |
4847 | fi | |
d7040cdb | 4848 | else |
ce2cded5 L |
4849 | if test "$GCC" = yes; then |
4850 | CFLAGS="-O2" | |
4851 | else | |
4852 | CFLAGS= | |
4853 | fi | |
d7040cdb | 4854 | fi |
81ecdfbb RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4856 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4857 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4858 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4859 | else |
81ecdfbb | 4860 | ac_cv_prog_cc_c89=no |
ce2cded5 | 4861 | ac_save_CC=$CC |
81ecdfbb | 4862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
4863 | /* end confdefs.h. */ |
4864 | #include <stdarg.h> | |
4865 | #include <stdio.h> | |
4866 | #include <sys/types.h> | |
4867 | #include <sys/stat.h> | |
4868 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4869 | struct buf { int x; }; | |
4870 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4871 | static char *e (p, i) | |
4872 | char **p; | |
4873 | int i; | |
4874 | { | |
4875 | return p[i]; | |
4876 | } | |
4877 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4878 | { | |
4879 | char *s; | |
4880 | va_list v; | |
4881 | va_start (v,p); | |
4882 | s = g (p, va_arg (v,int)); | |
4883 | va_end (v); | |
4884 | return s; | |
4885 | } | |
d7040cdb | 4886 | |
ce2cded5 L |
4887 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4888 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4889 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4890 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
4891 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4892 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4893 | that's true only with -std. */ |
ce2cded5 | 4894 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 4895 | |
81ecdfbb RW |
4896 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4897 | inside strings and character constants. */ | |
4898 | #define FOO(x) 'x' | |
4899 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4900 | ||
ce2cded5 L |
4901 | int test (int i, double x); |
4902 | struct s1 {int (*f) (int a);}; | |
4903 | struct s2 {int (*f) (double a);}; | |
4904 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4905 | int argc; | |
4906 | char **argv; | |
4907 | int | |
4908 | main () | |
4909 | { | |
4910 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4911 | ; | |
4912 | return 0; | |
4913 | } | |
4914 | _ACEOF | |
81ecdfbb RW |
4915 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4916 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
4917 | do |
4918 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4919 | if ac_fn_c_try_compile "$LINENO"; then : |
4920 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 4921 | fi |
81ecdfbb RW |
4922 | rm -f core conftest.err conftest.$ac_objext |
4923 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 4924 | done |
81ecdfbb | 4925 | rm -f conftest.$ac_ext |
ce2cded5 | 4926 | CC=$ac_save_CC |
d7040cdb | 4927 | |
ce2cded5 | 4928 | fi |
81ecdfbb RW |
4929 | # AC_CACHE_VAL |
4930 | case "x$ac_cv_prog_cc_c89" in | |
4931 | x) | |
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4933 | $as_echo "none needed" >&6; } ;; | |
4934 | xno) | |
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4936 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 4937 | *) |
81ecdfbb RW |
4938 | CC="$CC $ac_cv_prog_cc_c89" |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4940 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 4941 | esac |
81ecdfbb | 4942 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 4943 | |
ce2cded5 | 4944 | fi |
d7040cdb | 4945 | |
ce2cded5 L |
4946 | ac_ext=c |
4947 | ac_cpp='$CPP $CPPFLAGS' | |
4948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4951 | |
7357c5b6 AM |
4952 | ac_ext=c |
4953 | ac_cpp='$CPP $CPPFLAGS' | |
4954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4958 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4959 | # On Suns, sometimes $CPP names a directory. |
4960 | if test -n "$CPP" && test -d "$CPP"; then | |
4961 | CPP= | |
4962 | fi | |
4963 | if test -z "$CPP"; then | |
81ecdfbb RW |
4964 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4965 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4966 | else |
7357c5b6 AM |
4967 | # Double quotes because CPP needs to be expanded |
4968 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4969 | do | |
4970 | ac_preproc_ok=false | |
4971 | for ac_c_preproc_warn_flag in '' yes | |
ce2cded5 | 4972 | do |
7357c5b6 AM |
4973 | # Use a header file that comes with gcc, so configuring glibc |
4974 | # with a fresh cross-compiler works. | |
4975 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4976 | # <limits.h> exists even on freestanding compilers. | |
4977 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4978 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4980 | /* end confdefs.h. */ |
4981 | #ifdef __STDC__ | |
4982 | # include <limits.h> | |
4983 | #else | |
4984 | # include <assert.h> | |
4985 | #endif | |
4986 | Syntax error | |
4987 | _ACEOF | |
81ecdfbb | 4988 | if ac_fn_c_try_cpp "$LINENO"; then : |
ac48eca1 | 4989 | |
81ecdfbb | 4990 | else |
7357c5b6 AM |
4991 | # Broken: fails on valid input. |
4992 | continue | |
4993 | fi | |
4994 | rm -f conftest.err conftest.$ac_ext | |
ac48eca1 | 4995 | |
81ecdfbb | 4996 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4997 | # can be detected and how. |
81ecdfbb | 4998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4999 | /* end confdefs.h. */ |
5000 | #include <ac_nonexistent.h> | |
5001 | _ACEOF | |
81ecdfbb | 5002 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
5003 | # Broken: success on invalid input. |
5004 | continue | |
5005 | else | |
7357c5b6 AM |
5006 | # Passes both tests. |
5007 | ac_preproc_ok=: | |
5008 | break | |
5009 | fi | |
5010 | rm -f conftest.err conftest.$ac_ext | |
ac48eca1 | 5011 | |
7357c5b6 AM |
5012 | done |
5013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5014 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5015 | if $ac_preproc_ok; then : |
7357c5b6 AM |
5016 | break |
5017 | fi | |
252b5132 | 5018 | |
7357c5b6 AM |
5019 | done |
5020 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5021 | |
7357c5b6 AM |
5022 | fi |
5023 | CPP=$ac_cv_prog_CPP | |
5024 | else | |
5025 | ac_cv_prog_CPP=$CPP | |
5026 | fi | |
81ecdfbb RW |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5028 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
5029 | ac_preproc_ok=false |
5030 | for ac_c_preproc_warn_flag in '' yes | |
5031 | do | |
5032 | # Use a header file that comes with gcc, so configuring glibc | |
5033 | # with a fresh cross-compiler works. | |
5034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5035 | # <limits.h> exists even on freestanding compilers. | |
5036 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5037 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5039 | /* end confdefs.h. */ |
5040 | #ifdef __STDC__ | |
5041 | # include <limits.h> | |
5042 | #else | |
5043 | # include <assert.h> | |
5044 | #endif | |
5045 | Syntax error | |
5046 | _ACEOF | |
81ecdfbb | 5047 | if ac_fn_c_try_cpp "$LINENO"; then : |
ce2cded5 | 5048 | |
81ecdfbb | 5049 | else |
7357c5b6 AM |
5050 | # Broken: fails on valid input. |
5051 | continue | |
5052 | fi | |
5053 | rm -f conftest.err conftest.$ac_ext | |
ce2cded5 | 5054 | |
81ecdfbb | 5055 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 5056 | # can be detected and how. |
81ecdfbb | 5057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5058 | /* end confdefs.h. */ |
5059 | #include <ac_nonexistent.h> | |
5060 | _ACEOF | |
81ecdfbb | 5061 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
5062 | # Broken: success on invalid input. |
5063 | continue | |
ce2cded5 | 5064 | else |
7357c5b6 AM |
5065 | # Passes both tests. |
5066 | ac_preproc_ok=: | |
5067 | break | |
5068 | fi | |
5069 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 5070 | |
7357c5b6 AM |
5071 | done |
5072 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5073 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5074 | if $ac_preproc_ok; then : |
5075 | ||
7357c5b6 | 5076 | else |
81ecdfbb RW |
5077 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5078 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5079 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5080 | See \`config.log' for more details." "$LINENO" 5; } | |
7357c5b6 | 5081 | fi |
ce2cded5 | 5082 | |
7357c5b6 AM |
5083 | ac_ext=c |
5084 | ac_cpp='$CPP $CPPFLAGS' | |
5085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ce2cded5 L |
5088 | |
5089 | ||
81ecdfbb RW |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5091 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5092 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5093 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5094 | else |
81ecdfbb RW |
5095 | if test -z "$GREP"; then |
5096 | ac_path_GREP_found=false | |
5097 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5099 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5100 | do | |
5101 | IFS=$as_save_IFS | |
5102 | test -z "$as_dir" && as_dir=. | |
5103 | for ac_prog in grep ggrep; do | |
5104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5105 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5106 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5107 | # Check for GNU ac_path_GREP and select it if it is found. | |
5108 | # Check for GNU $ac_path_GREP | |
5109 | case `"$ac_path_GREP" --version 2>&1` in | |
5110 | *GNU*) | |
5111 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5112 | *) | |
5113 | ac_count=0 | |
5114 | $as_echo_n 0123456789 >"conftest.in" | |
5115 | while : | |
5116 | do | |
5117 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5118 | mv "conftest.tmp" "conftest.in" | |
5119 | cp "conftest.in" "conftest.nl" | |
5120 | $as_echo 'GREP' >> "conftest.nl" | |
5121 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5122 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5123 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5124 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5125 | # Best one so far, save it but keep looking for a better one | |
5126 | ac_cv_path_GREP="$ac_path_GREP" | |
5127 | ac_path_GREP_max=$ac_count | |
ce2cded5 | 5128 | fi |
81ecdfbb RW |
5129 | # 10*(2^10) chars as input seems more than enough |
5130 | test $ac_count -gt 10 && break | |
5131 | done | |
5132 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5133 | esac | |
252b5132 | 5134 | |
81ecdfbb RW |
5135 | $ac_path_GREP_found && break 3 |
5136 | done | |
5137 | done | |
5138 | done | |
5139 | IFS=$as_save_IFS | |
5140 | if test -z "$ac_cv_path_GREP"; then | |
5141 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5142 | fi | |
7357c5b6 | 5143 | else |
81ecdfbb RW |
5144 | ac_cv_path_GREP=$GREP |
5145 | fi | |
4867be41 | 5146 | |
81ecdfbb RW |
5147 | fi |
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5149 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5150 | GREP="$ac_cv_path_GREP" | |
32fba81d | 5151 | |
42ecbf5e | 5152 | |
81ecdfbb RW |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5154 | $as_echo_n "checking for egrep... " >&6; } | |
5155 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5156 | $as_echo_n "(cached) " >&6 | |
5157 | else | |
5158 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5159 | then ac_cv_path_EGREP="$GREP -E" | |
5160 | else | |
5161 | if test -z "$EGREP"; then | |
5162 | ac_path_EGREP_found=false | |
5163 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5165 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5166 | do | |
5167 | IFS=$as_save_IFS | |
5168 | test -z "$as_dir" && as_dir=. | |
5169 | for ac_prog in egrep; do | |
5170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5171 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5172 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5173 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5174 | # Check for GNU $ac_path_EGREP | |
5175 | case `"$ac_path_EGREP" --version 2>&1` in | |
5176 | *GNU*) | |
5177 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5178 | *) | |
5179 | ac_count=0 | |
5180 | $as_echo_n 0123456789 >"conftest.in" | |
5181 | while : | |
5182 | do | |
5183 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5184 | mv "conftest.tmp" "conftest.in" | |
5185 | cp "conftest.in" "conftest.nl" | |
5186 | $as_echo 'EGREP' >> "conftest.nl" | |
5187 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5188 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5189 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5190 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5191 | # Best one so far, save it but keep looking for a better one | |
5192 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5193 | ac_path_EGREP_max=$ac_count | |
5194 | fi | |
5195 | # 10*(2^10) chars as input seems more than enough | |
5196 | test $ac_count -gt 10 && break | |
5197 | done | |
5198 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5199 | esac | |
5200 | ||
5201 | $ac_path_EGREP_found && break 3 | |
5202 | done | |
5203 | done | |
5204 | done | |
5205 | IFS=$as_save_IFS | |
5206 | if test -z "$ac_cv_path_EGREP"; then | |
5207 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5208 | fi | |
5209 | else | |
5210 | ac_cv_path_EGREP=$EGREP | |
5211 | fi | |
5212 | ||
5213 | fi | |
5214 | fi | |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5216 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5217 | EGREP="$ac_cv_path_EGREP" | |
5218 | ||
5219 | ||
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5221 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5222 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5223 | $as_echo_n "(cached) " >&6 | |
5224 | else | |
5225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5226 | /* end confdefs.h. */ | |
5227 | #include <stdlib.h> | |
5228 | #include <stdarg.h> | |
5229 | #include <string.h> | |
5230 | #include <float.h> | |
5231 | ||
5232 | int | |
5233 | main () | |
5234 | { | |
5235 | ||
5236 | ; | |
5237 | return 0; | |
5238 | } | |
5239 | _ACEOF | |
5240 | if ac_fn_c_try_compile "$LINENO"; then : | |
5241 | ac_cv_header_stdc=yes | |
5242 | else | |
5243 | ac_cv_header_stdc=no | |
7357c5b6 | 5244 | fi |
81ecdfbb | 5245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 5246 | |
7357c5b6 AM |
5247 | if test $ac_cv_header_stdc = yes; then |
5248 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5250 | /* end confdefs.h. */ |
5251 | #include <string.h> | |
ac48eca1 | 5252 | |
7357c5b6 AM |
5253 | _ACEOF |
5254 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5255 | $EGREP "memchr" >/dev/null 2>&1; then : |
5256 | ||
7357c5b6 AM |
5257 | else |
5258 | ac_cv_header_stdc=no | |
5259 | fi | |
5260 | rm -f conftest* | |
252b5132 | 5261 | |
7357c5b6 | 5262 | fi |
252b5132 | 5263 | |
7357c5b6 AM |
5264 | if test $ac_cv_header_stdc = yes; then |
5265 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5267 | /* end confdefs.h. */ |
5268 | #include <stdlib.h> | |
42ecbf5e | 5269 | |
7357c5b6 AM |
5270 | _ACEOF |
5271 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5272 | $EGREP "free" >/dev/null 2>&1; then : |
5273 | ||
7357c5b6 AM |
5274 | else |
5275 | ac_cv_header_stdc=no | |
5276 | fi | |
5277 | rm -f conftest* | |
ac48eca1 | 5278 | |
7357c5b6 | 5279 | fi |
d7040cdb | 5280 | |
7357c5b6 AM |
5281 | if test $ac_cv_header_stdc = yes; then |
5282 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5283 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
5284 | : |
5285 | else | |
81ecdfbb | 5286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5287 | /* end confdefs.h. */ |
5288 | #include <ctype.h> | |
81ecdfbb | 5289 | #include <stdlib.h> |
7357c5b6 AM |
5290 | #if ((' ' & 0x0FF) == 0x020) |
5291 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5292 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5293 | #else | |
5294 | # define ISLOWER(c) \ | |
5295 | (('a' <= (c) && (c) <= 'i') \ | |
5296 | || ('j' <= (c) && (c) <= 'r') \ | |
5297 | || ('s' <= (c) && (c) <= 'z')) | |
5298 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5299 | #endif | |
d7040cdb | 5300 | |
7357c5b6 AM |
5301 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5302 | int | |
5303 | main () | |
5304 | { | |
5305 | int i; | |
5306 | for (i = 0; i < 256; i++) | |
5307 | if (XOR (islower (i), ISLOWER (i)) | |
5308 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5309 | return 2; |
5310 | return 0; | |
7357c5b6 AM |
5311 | } |
5312 | _ACEOF | |
81ecdfbb | 5313 | if ac_fn_c_try_run "$LINENO"; then : |
7357c5b6 | 5314 | |
81ecdfbb RW |
5315 | else |
5316 | ac_cv_header_stdc=no | |
252b5132 | 5317 | fi |
81ecdfbb RW |
5318 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5319 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 5320 | fi |
81ecdfbb | 5321 | |
7357c5b6 AM |
5322 | fi |
5323 | fi | |
81ecdfbb RW |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5325 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 5326 | if test $ac_cv_header_stdc = yes; then |
252b5132 | 5327 | |
81ecdfbb | 5328 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
252b5132 | 5329 | |
ce2cded5 | 5330 | fi |
252b5132 | 5331 | |
7357c5b6 | 5332 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
5333 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5334 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
5335 | do : |
5336 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5337 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5338 | " | |
5339 | eval as_val=\$$as_ac_Header | |
5340 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 5341 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 5342 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 5343 | _ACEOF |
42ecbf5e | 5344 | |
7357c5b6 | 5345 | fi |
42ecbf5e | 5346 | |
7357c5b6 | 5347 | done |
42ecbf5e DJ |
5348 | |
5349 | ||
5350 | ||
81ecdfbb RW |
5351 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5352 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 | 5353 | MINIX=yes |
ce2cded5 | 5354 | else |
7357c5b6 | 5355 | MINIX= |
ce2cded5 | 5356 | fi |
42ecbf5e | 5357 | |
e5a52504 | 5358 | |
7357c5b6 AM |
5359 | if test "$MINIX" = yes; then |
5360 | ||
81ecdfbb | 5361 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb | 5362 | |
d7040cdb | 5363 | |
81ecdfbb | 5364 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb | 5365 | |
d7040cdb | 5366 | |
81ecdfbb | 5367 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 5368 | |
7357c5b6 | 5369 | fi |
d7040cdb | 5370 | |
d7040cdb | 5371 | |
81ecdfbb RW |
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5373 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5374 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5375 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5376 | else |
81ecdfbb | 5377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5378 | /* end confdefs.h. */ |
5379 | ||
5380 | # define __EXTENSIONS__ 1 | |
5381 | $ac_includes_default | |
5382 | int | |
5383 | main () | |
5384 | { | |
5385 | ||
5386 | ; | |
5387 | return 0; | |
5388 | } | |
5389 | _ACEOF | |
81ecdfbb | 5390 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 5391 | ac_cv_safe_to_define___extensions__=yes |
ce2cded5 | 5392 | else |
81ecdfbb | 5393 | ac_cv_safe_to_define___extensions__=no |
ce2cded5 | 5394 | fi |
81ecdfbb | 5395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 5396 | fi |
81ecdfbb RW |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5398 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 5399 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 5400 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
7357c5b6 | 5401 | |
81ecdfbb | 5402 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
7357c5b6 | 5403 | |
81ecdfbb | 5404 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
7357c5b6 | 5405 | |
81ecdfbb RW |
5406 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5407 | ||
5408 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
7357c5b6 | 5409 | |
7357c5b6 AM |
5410 | |
5411 | ||
d053aef8 | 5412 | |
da2f07f1 JK |
5413 | |
5414 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
5415 | # even in directories otherwise not depending on the $plugins option. | |
5416 | ||
5417 | ||
5418 | # Check whether --enable-plugins was given. | |
5419 | if test "${enable_plugins+set}" = set; then : | |
5420 | enableval=$enable_plugins; case "${enableval}" in | |
5421 | yes | "") plugins=yes ;; | |
5422 | no) plugins=no ;; | |
5423 | *) plugins=yes ;; | |
5424 | esac | |
5425 | else | |
5426 | plugins=no | |
5427 | fi | |
5428 | ||
5429 | ||
5430 | ||
5431 | case "${host}" in | |
5432 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
5433 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
5434 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
5435 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
5436 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
5437 | # large-file support through the --enable-largefile switch, disable | |
5438 | # large-file support in favor of procfs support. | |
5439 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
5440 | && : ${enable_largefile="no"} | |
5441 | ;; | |
5442 | esac | |
5443 | ||
81ecdfbb RW |
5444 | # Check whether --enable-largefile was given. |
5445 | if test "${enable_largefile+set}" = set; then : | |
5446 | enableval=$enable_largefile; | |
5447 | fi | |
5448 | ||
d053aef8 JK |
5449 | if test "$enable_largefile" != no; then |
5450 | ||
81ecdfbb RW |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
5452 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5453 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
5454 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5455 | else |
5456 | ac_cv_sys_largefile_CC=no | |
5457 | if test "$GCC" != yes; then | |
5458 | ac_save_CC=$CC | |
5459 | while :; do | |
81ecdfbb RW |
5460 | # IRIX 6.2 and later do not support large files by default, |
5461 | # so use the C compiler's -n32 option if that helps. | |
5462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5463 | /* end confdefs.h. */ |
5464 | #include <sys/types.h> | |
5465 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5466 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5467 | since some C++ compilers masquerading as C compilers | |
5468 | incorrectly reject 9223372036854775807. */ | |
5469 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5470 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5471 | && LARGE_OFF_T % 2147483647 == 1) | |
5472 | ? 1 : -1]; | |
5473 | int | |
5474 | main () | |
5475 | { | |
5476 | ||
5477 | ; | |
5478 | return 0; | |
5479 | } | |
5480 | _ACEOF | |
81ecdfbb | 5481 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5482 | break |
d053aef8 | 5483 | fi |
81ecdfbb RW |
5484 | rm -f core conftest.err conftest.$ac_objext |
5485 | CC="$CC -n32" | |
5486 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 5487 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 5488 | fi |
81ecdfbb | 5489 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
5490 | break |
5491 | done | |
5492 | CC=$ac_save_CC | |
5493 | rm -f conftest.$ac_ext | |
5494 | fi | |
5495 | fi | |
81ecdfbb RW |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
5497 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
5498 | if test "$ac_cv_sys_largefile_CC" != no; then |
5499 | CC=$CC$ac_cv_sys_largefile_CC | |
5500 | fi | |
5501 | ||
81ecdfbb RW |
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5503 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5504 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
5505 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5506 | else |
5507 | while :; do | |
81ecdfbb | 5508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5509 | /* end confdefs.h. */ |
5510 | #include <sys/types.h> | |
5511 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5512 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5513 | since some C++ compilers masquerading as C compilers | |
5514 | incorrectly reject 9223372036854775807. */ | |
5515 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5516 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5517 | && LARGE_OFF_T % 2147483647 == 1) | |
5518 | ? 1 : -1]; | |
5519 | int | |
5520 | main () | |
5521 | { | |
5522 | ||
5523 | ; | |
5524 | return 0; | |
5525 | } | |
5526 | _ACEOF | |
81ecdfbb RW |
5527 | if ac_fn_c_try_compile "$LINENO"; then : |
5528 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 5529 | fi |
81ecdfbb RW |
5530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5532 | /* end confdefs.h. */ |
5533 | #define _FILE_OFFSET_BITS 64 | |
5534 | #include <sys/types.h> | |
5535 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5536 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5537 | since some C++ compilers masquerading as C compilers | |
5538 | incorrectly reject 9223372036854775807. */ | |
5539 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5540 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5541 | && LARGE_OFF_T % 2147483647 == 1) | |
5542 | ? 1 : -1]; | |
5543 | int | |
5544 | main () | |
5545 | { | |
5546 | ||
5547 | ; | |
5548 | return 0; | |
5549 | } | |
5550 | _ACEOF | |
81ecdfbb | 5551 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5552 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 5553 | fi |
81ecdfbb RW |
5554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5555 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
5556 | break |
5557 | done | |
5558 | fi | |
81ecdfbb RW |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
5560 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5561 | case $ac_cv_sys_file_offset_bits in #( | |
5562 | no | unknown) ;; | |
5563 | *) | |
d053aef8 JK |
5564 | cat >>confdefs.h <<_ACEOF |
5565 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5566 | _ACEOF | |
81ecdfbb RW |
5567 | ;; |
5568 | esac | |
5569 | rm -rf conftest* | |
5570 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5572 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5573 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
5574 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5575 | else |
5576 | while :; do | |
81ecdfbb | 5577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5578 | /* end confdefs.h. */ |
5579 | #include <sys/types.h> | |
5580 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5581 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5582 | since some C++ compilers masquerading as C compilers | |
5583 | incorrectly reject 9223372036854775807. */ | |
5584 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5585 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5586 | && LARGE_OFF_T % 2147483647 == 1) | |
5587 | ? 1 : -1]; | |
5588 | int | |
5589 | main () | |
5590 | { | |
5591 | ||
5592 | ; | |
5593 | return 0; | |
5594 | } | |
5595 | _ACEOF | |
81ecdfbb RW |
5596 | if ac_fn_c_try_compile "$LINENO"; then : |
5597 | ac_cv_sys_large_files=no; break | |
d053aef8 | 5598 | fi |
81ecdfbb RW |
5599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5601 | /* end confdefs.h. */ |
5602 | #define _LARGE_FILES 1 | |
5603 | #include <sys/types.h> | |
5604 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5605 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5606 | since some C++ compilers masquerading as C compilers | |
5607 | incorrectly reject 9223372036854775807. */ | |
5608 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5609 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5610 | && LARGE_OFF_T % 2147483647 == 1) | |
5611 | ? 1 : -1]; | |
5612 | int | |
5613 | main () | |
5614 | { | |
5615 | ||
5616 | ; | |
5617 | return 0; | |
5618 | } | |
5619 | _ACEOF | |
81ecdfbb | 5620 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5621 | ac_cv_sys_large_files=1; break |
d053aef8 | 5622 | fi |
81ecdfbb RW |
5623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5624 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
5625 | break |
5626 | done | |
5627 | fi | |
81ecdfbb RW |
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
5629 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5630 | case $ac_cv_sys_large_files in #( | |
5631 | no | unknown) ;; | |
5632 | *) | |
d053aef8 JK |
5633 | cat >>confdefs.h <<_ACEOF |
5634 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5635 | _ACEOF | |
81ecdfbb RW |
5636 | ;; |
5637 | esac | |
5638 | rm -rf conftest* | |
5639 | fi | |
d053aef8 JK |
5640 | fi |
5641 | ||
42ecbf5e | 5642 | |
42ecbf5e | 5643 | |
da2f07f1 | 5644 | |
b214d478 SE |
5645 | case `pwd` in |
5646 | *\ * | *\ *) | |
81ecdfbb RW |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5648 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
b214d478 | 5649 | esac |
252b5132 | 5650 | |
42ecbf5e | 5651 | |
d7040cdb | 5652 | |
b214d478 SE |
5653 | macro_version='2.2.6' |
5654 | macro_revision='1.3012' | |
d7040cdb | 5655 | |
d7040cdb SE |
5656 | |
5657 | ||
d7040cdb | 5658 | |
d7040cdb | 5659 | |
42ecbf5e | 5660 | |
d7040cdb | 5661 | |
252b5132 | 5662 | |
252b5132 | 5663 | |
252b5132 | 5664 | |
252b5132 RH |
5665 | |
5666 | ||
ce2cded5 | 5667 | |
b214d478 | 5668 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 5669 | |
81ecdfbb RW |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5671 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5672 | if test "${ac_cv_path_SED+set}" = set; then : | |
5673 | $as_echo_n "(cached) " >&6 | |
5674 | else | |
5675 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5676 | for ac_i in 1 2 3 4 5 6 7; do | |
5677 | ac_script="$ac_script$as_nl$ac_script" | |
5678 | done | |
5679 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5680 | { ac_script=; unset ac_script;} | |
5681 | if test -z "$SED"; then | |
5682 | ac_path_SED_found=false | |
5683 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5685 | for as_dir in $PATH |
5686 | do | |
5687 | IFS=$as_save_IFS | |
5688 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5689 | for ac_prog in sed gsed; do |
7357c5b6 | 5690 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5691 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5692 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5693 | # Check for GNU ac_path_SED and select it if it is found. | |
5694 | # Check for GNU $ac_path_SED | |
5695 | case `"$ac_path_SED" --version 2>&1` in | |
5696 | *GNU*) | |
5697 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5698 | *) | |
5699 | ac_count=0 | |
5700 | $as_echo_n 0123456789 >"conftest.in" | |
5701 | while : | |
5702 | do | |
5703 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5704 | mv "conftest.tmp" "conftest.in" | |
5705 | cp "conftest.in" "conftest.nl" | |
5706 | $as_echo '' >> "conftest.nl" | |
5707 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5708 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5709 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5710 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5711 | # Best one so far, save it but keep looking for a better one | |
5712 | ac_cv_path_SED="$ac_path_SED" | |
5713 | ac_path_SED_max=$ac_count | |
5714 | fi | |
5715 | # 10*(2^10) chars as input seems more than enough | |
5716 | test $ac_count -gt 10 && break | |
5717 | done | |
5718 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5719 | esac | |
5720 | ||
5721 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5722 | done |
5723 | done | |
81ecdfbb | 5724 | done |
7357c5b6 | 5725 | IFS=$as_save_IFS |
81ecdfbb RW |
5726 | if test -z "$ac_cv_path_SED"; then |
5727 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
ce2cded5 | 5728 | fi |
81ecdfbb RW |
5729 | else |
5730 | ac_cv_path_SED=$SED | |
7357c5b6 | 5731 | fi |
20e95c23 | 5732 | |
81ecdfbb RW |
5733 | fi |
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5735 | $as_echo "$ac_cv_path_SED" >&6; } | |
5736 | SED="$ac_cv_path_SED" | |
5737 | rm -f conftest.sed | |
20e95c23 | 5738 | |
7357c5b6 AM |
5739 | test -z "$SED" && SED=sed |
5740 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
5741 | |
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
20e95c23 | 5747 | |
20e95c23 | 5748 | |
d7040cdb | 5749 | |
d7040cdb | 5750 | |
7357c5b6 | 5751 | |
81ecdfbb RW |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5753 | $as_echo_n "checking for fgrep... " >&6; } | |
5754 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5755 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5756 | else |
81ecdfbb RW |
5757 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5758 | then ac_cv_path_FGREP="$GREP -F" | |
5759 | else | |
5760 | if test -z "$FGREP"; then | |
5761 | ac_path_FGREP_found=false | |
5762 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5764 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5765 | do | |
5766 | IFS=$as_save_IFS | |
5767 | test -z "$as_dir" && as_dir=. | |
5768 | for ac_prog in fgrep; do | |
5769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5770 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5771 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5772 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5773 | # Check for GNU $ac_path_FGREP | |
5774 | case `"$ac_path_FGREP" --version 2>&1` in | |
5775 | *GNU*) | |
5776 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5777 | *) | |
5778 | ac_count=0 | |
5779 | $as_echo_n 0123456789 >"conftest.in" | |
5780 | while : | |
5781 | do | |
5782 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5783 | mv "conftest.tmp" "conftest.in" | |
5784 | cp "conftest.in" "conftest.nl" | |
5785 | $as_echo 'FGREP' >> "conftest.nl" | |
5786 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5787 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5788 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5789 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5790 | # Best one so far, save it but keep looking for a better one | |
5791 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5792 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5793 | fi |
81ecdfbb RW |
5794 | # 10*(2^10) chars as input seems more than enough |
5795 | test $ac_count -gt 10 && break | |
5796 | done | |
5797 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5798 | esac | |
5799 | ||
5800 | $ac_path_FGREP_found && break 3 | |
5801 | done | |
5802 | done | |
5803 | done | |
5804 | IFS=$as_save_IFS | |
5805 | if test -z "$ac_cv_path_FGREP"; then | |
5806 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5807 | fi | |
5808 | else | |
5809 | ac_cv_path_FGREP=$FGREP | |
5810 | fi | |
5811 | ||
5812 | fi | |
20e95c23 | 5813 | fi |
81ecdfbb RW |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5815 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5816 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5817 | |
5818 | ||
5819 | test -z "$GREP" && GREP=grep | |
5820 | ||
d7040cdb SE |
5821 | |
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
20e95c23 | 5832 | |
ce2cded5 | 5833 | |
d7040cdb | 5834 | |
7357c5b6 AM |
5835 | |
5836 | ||
5837 | ||
5838 | ||
81ecdfbb RW |
5839 | # Check whether --with-gnu-ld was given. |
5840 | if test "${with_gnu_ld+set}" = set; then : | |
5841 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5842 | else |
5843 | with_gnu_ld=no | |
81ecdfbb RW |
5844 | fi |
5845 | ||
7357c5b6 AM |
5846 | ac_prog=ld |
5847 | if test "$GCC" = yes; then | |
5848 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5850 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5851 | case $host in |
5852 | *-*-mingw*) | |
5853 | # gcc leaves a trailing carriage return which upsets mingw | |
5854 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5855 | *) | |
5856 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5857 | esac | |
5858 | case $ac_prog in | |
5859 | # Accept absolute paths. | |
5860 | [\\/]* | ?:[\\/]*) | |
5861 | re_direlt='/[^/][^/]*/\.\./' | |
5862 | # Canonicalize the pathname of ld | |
5863 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5864 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5865 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5866 | done | |
5867 | test -z "$LD" && LD="$ac_prog" | |
5868 | ;; | |
5869 | "") | |
5870 | # If it fails, then pretend we aren't using GCC. | |
5871 | ac_prog=ld | |
5872 | ;; | |
5873 | *) | |
5874 | # If it is relative, then search for the first ld in PATH. | |
5875 | with_gnu_ld=unknown | |
5876 | ;; | |
5877 | esac | |
5878 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5880 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 5881 | else |
81ecdfbb RW |
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5883 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5884 | fi |
81ecdfbb RW |
5885 | if test "${lt_cv_path_LD+set}" = set; then : |
5886 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5887 | else |
7357c5b6 AM |
5888 | if test -z "$LD"; then |
5889 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5890 | for ac_dir in $PATH; do | |
5891 | IFS="$lt_save_ifs" | |
5892 | test -z "$ac_dir" && ac_dir=. | |
5893 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5894 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5895 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5896 | # but apparently some variants of GNU ld only accept -v. | |
5897 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5898 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5899 | *GNU* | *'with BFD'*) | |
5900 | test "$with_gnu_ld" != no && break | |
5901 | ;; | |
5902 | *) | |
5903 | test "$with_gnu_ld" != yes && break | |
5904 | ;; | |
5905 | esac | |
5906 | fi | |
5907 | done | |
5908 | IFS="$lt_save_ifs" | |
ce2cded5 | 5909 | else |
7357c5b6 | 5910 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
5911 | fi |
5912 | fi | |
7357c5b6 AM |
5913 | |
5914 | LD="$lt_cv_path_LD" | |
5915 | if test -n "$LD"; then | |
81ecdfbb RW |
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5917 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5918 | else |
81ecdfbb RW |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5920 | $as_echo "no" >&6; } | |
ce2cded5 | 5921 | fi |
81ecdfbb RW |
5922 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5924 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5925 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5926 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5927 | else |
7357c5b6 AM |
5928 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5929 | case `$LD -v 2>&1 </dev/null` in | |
5930 | *GNU* | *'with BFD'*) | |
5931 | lt_cv_prog_gnu_ld=yes | |
5932 | ;; | |
5933 | *) | |
5934 | lt_cv_prog_gnu_ld=no | |
5935 | ;; | |
5936 | esac | |
ce2cded5 | 5937 | fi |
81ecdfbb RW |
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5939 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 5940 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5941 | |
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
81ecdfbb RW |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5951 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5952 | if test "${lt_cv_path_NM+set}" = set; then : | |
5953 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5954 | else |
7357c5b6 AM |
5955 | if test -n "$NM"; then |
5956 | # Let the user override the test. | |
5957 | lt_cv_path_NM="$NM" | |
ce2cded5 | 5958 | else |
7357c5b6 AM |
5959 | lt_nm_to_check="${ac_tool_prefix}nm" |
5960 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5961 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 5962 | fi |
7357c5b6 AM |
5963 | for lt_tmp_nm in $lt_nm_to_check; do |
5964 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5965 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5966 | IFS="$lt_save_ifs" | |
5967 | test -z "$ac_dir" && ac_dir=. | |
5968 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5969 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5970 | # Check to see if the nm accepts a BSD-compat flag. | |
5971 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5972 | # nm: unknown option "B" ignored | |
5973 | # Tru64's nm complains that /dev/null is an invalid object file | |
5974 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5975 | */dev/null* | *'Invalid file or object type'*) | |
5976 | lt_cv_path_NM="$tmp_nm -B" | |
5977 | break | |
5978 | ;; | |
5979 | *) | |
5980 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5981 | */dev/null*) | |
5982 | lt_cv_path_NM="$tmp_nm -p" | |
5983 | break | |
5984 | ;; | |
5985 | *) | |
5986 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5987 | continue # so that we can try to find one that supports BSD flags | |
5988 | ;; | |
5989 | esac | |
5990 | ;; | |
5991 | esac | |
5992 | fi | |
5993 | done | |
5994 | IFS="$lt_save_ifs" | |
5995 | done | |
5996 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
5997 | fi |
5998 | fi | |
81ecdfbb RW |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6000 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
6001 | if test "$lt_cv_path_NM" != "no"; then |
6002 | NM="$lt_cv_path_NM" | |
ce2cded5 | 6003 | else |
7357c5b6 AM |
6004 | # Didn't find any BSD compatible name lister, look for dumpbin. |
6005 | if test -n "$ac_tool_prefix"; then | |
6006 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6007 | do | |
6008 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6009 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6011 | $as_echo_n "checking for $ac_word... " >&6; } | |
6012 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6013 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6014 | else |
7357c5b6 AM |
6015 | if test -n "$DUMPBIN"; then |
6016 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6017 | else |
6018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6019 | for as_dir in $PATH | |
6020 | do | |
6021 | IFS=$as_save_IFS | |
6022 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6023 | for ac_exec_ext in '' $ac_executable_extensions; do |
6024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6025 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 6026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6027 | break 2 |
6028 | fi | |
6029 | done | |
81ecdfbb RW |
6030 | done |
6031 | IFS=$as_save_IFS | |
d7040cdb | 6032 | |
20e95c23 | 6033 | fi |
ce2cded5 | 6034 | fi |
7357c5b6 AM |
6035 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6036 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6038 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6039 | else |
81ecdfbb RW |
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6041 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6042 | fi |
6043 | ||
81ecdfbb | 6044 | |
7357c5b6 AM |
6045 | test -n "$DUMPBIN" && break |
6046 | done | |
ce2cded5 | 6047 | fi |
7357c5b6 AM |
6048 | if test -z "$DUMPBIN"; then |
6049 | ac_ct_DUMPBIN=$DUMPBIN | |
6050 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6051 | do | |
6052 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6053 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6055 | $as_echo_n "checking for $ac_word... " >&6; } | |
6056 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6057 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 6058 | else |
7357c5b6 AM |
6059 | if test -n "$ac_ct_DUMPBIN"; then |
6060 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6061 | else |
6062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6063 | for as_dir in $PATH | |
6064 | do | |
6065 | IFS=$as_save_IFS | |
6066 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6067 | for ac_exec_ext in '' $ac_executable_extensions; do |
6068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6069 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6071 | break 2 |
6072 | fi | |
6073 | done | |
81ecdfbb RW |
6074 | done |
6075 | IFS=$as_save_IFS | |
d7040cdb | 6076 | |
ce2cded5 L |
6077 | fi |
6078 | fi | |
7357c5b6 AM |
6079 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6080 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6082 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6083 | else |
81ecdfbb RW |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6085 | $as_echo "no" >&6; } | |
ce2cded5 | 6086 | fi |
d7040cdb | 6087 | |
81ecdfbb | 6088 | |
7357c5b6 | 6089 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6090 | done |
d7040cdb | 6091 | |
81ecdfbb RW |
6092 | if test "x$ac_ct_DUMPBIN" = x; then |
6093 | DUMPBIN=":" | |
6094 | else | |
6095 | case $cross_compiling:$ac_tool_warned in | |
6096 | yes:) | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6099 | ac_tool_warned=yes ;; | |
6100 | esac | |
6101 | DUMPBIN=$ac_ct_DUMPBIN | |
6102 | fi | |
ce2cded5 | 6103 | fi |
7357c5b6 AM |
6104 | |
6105 | ||
6106 | if test "$DUMPBIN" != ":"; then | |
6107 | NM="$DUMPBIN" | |
6108 | fi | |
ce2cded5 | 6109 | fi |
7357c5b6 AM |
6110 | test -z "$NM" && NM=nm |
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
81ecdfbb RW |
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6118 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6119 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6120 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6121 | else |
7357c5b6 AM |
6122 | lt_cv_nm_interface="BSD nm" |
6123 | echo "int some_variable = 0;" > conftest.$ac_ext | |
da2f07f1 | 6124 | (eval echo "\"\$as_me:6124: $ac_compile\"" >&5) |
7357c5b6 AM |
6125 | (eval "$ac_compile" 2>conftest.err) |
6126 | cat conftest.err >&5 | |
da2f07f1 | 6127 | (eval echo "\"\$as_me:6127: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6128 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6129 | cat conftest.err >&5 | |
da2f07f1 | 6130 | (eval echo "\"\$as_me:6130: output\"" >&5) |
7357c5b6 AM |
6131 | cat conftest.out >&5 |
6132 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6133 | lt_cv_nm_interface="MS dumpbin" | |
6134 | fi | |
6135 | rm -f conftest* | |
20e95c23 | 6136 | fi |
81ecdfbb RW |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6138 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6139 | |
81ecdfbb RW |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6141 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6142 | LN_S=$as_ln_s |
6143 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6145 | $as_echo "yes" >&6; } | |
ce2cded5 | 6146 | else |
81ecdfbb RW |
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6148 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6149 | fi |
20e95c23 | 6150 | |
7357c5b6 | 6151 | # find the maximum length of command line arguments |
81ecdfbb RW |
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6153 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6154 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6155 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6156 | else |
6157 | i=0 | |
6158 | teststring="ABCD" | |
20e95c23 | 6159 | |
7357c5b6 AM |
6160 | case $build_os in |
6161 | msdosdjgpp*) | |
6162 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6163 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6164 | # during glob expansion). Even if it were fixed, the result of this | |
6165 | # check would be larger than it should be. | |
6166 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6167 | ;; | |
20e95c23 | 6168 | |
7357c5b6 AM |
6169 | gnu*) |
6170 | # Under GNU Hurd, this test is not required because there is | |
6171 | # no limit to the length of command line arguments. | |
6172 | # Libtool will interpret -1 as no limit whatsoever | |
6173 | lt_cv_sys_max_cmd_len=-1; | |
6174 | ;; | |
20e95c23 | 6175 | |
b214d478 | 6176 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6177 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6178 | # about 5 minutes as the teststring grows exponentially. | |
6179 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6180 | # you end up with a "frozen" computer, even though with patience | |
6181 | # the test eventually succeeds (with a max line length of 256k). | |
6182 | # Instead, let's just punt: use the minimum linelength reported by | |
6183 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6184 | lt_cv_sys_max_cmd_len=8192; | |
6185 | ;; | |
20e95c23 | 6186 | |
7357c5b6 AM |
6187 | amigaos*) |
6188 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6189 | # So we just punt and use a minimum line length of 8192. | |
6190 | lt_cv_sys_max_cmd_len=8192; | |
6191 | ;; | |
20e95c23 | 6192 | |
7357c5b6 AM |
6193 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6194 | # This has been around since 386BSD, at least. Likely further. | |
6195 | if test -x /sbin/sysctl; then | |
6196 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6197 | elif test -x /usr/sbin/sysctl; then | |
6198 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6199 | else | |
6200 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6201 | fi | |
6202 | # And add a safety zone | |
6203 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6204 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6205 | ;; | |
d7040cdb | 6206 | |
7357c5b6 AM |
6207 | interix*) |
6208 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6209 | lt_cv_sys_max_cmd_len=196608 | |
6210 | ;; | |
d7040cdb | 6211 | |
7357c5b6 AM |
6212 | osf*) |
6213 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6214 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6215 | # nice to cause kernel panics so lets avoid the loop below. | |
6216 | # First set a reasonable default. | |
6217 | lt_cv_sys_max_cmd_len=16384 | |
6218 | # | |
6219 | if test -x /sbin/sysconfig; then | |
6220 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6221 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6222 | esac | |
6223 | fi | |
6224 | ;; | |
6225 | sco3.2v5*) | |
6226 | lt_cv_sys_max_cmd_len=102400 | |
6227 | ;; | |
6228 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6229 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6230 | if test -n "$kargmax"; then | |
6231 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6232 | else | |
6233 | lt_cv_sys_max_cmd_len=32768 | |
6234 | fi | |
ce2cded5 L |
6235 | ;; |
6236 | *) | |
b214d478 SE |
6237 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6238 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6239 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6240 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6241 | else | |
6242 | # Make teststring a little bigger before we do anything with it. | |
6243 | # a 1K string should be a reasonable start. | |
6244 | for i in 1 2 3 4 5 6 7 8 ; do | |
6245 | teststring=$teststring$teststring | |
6246 | done | |
6247 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6248 | # If test is not a shell built-in, we'll probably end up computing a | |
6249 | # maximum length that is only half of the actual maximum length, but | |
6250 | # we can't tell. | |
6251 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
6252 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
6253 | test $i != 17 # 1/2 MB should be enough | |
6254 | do | |
6255 | i=`expr $i + 1` | |
6256 | teststring=$teststring$teststring | |
6257 | done | |
6258 | # Only check the string length outside the loop. | |
6259 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6260 | teststring= | |
6261 | # Add a significant safety factor because C++ compilers can tack on | |
6262 | # massive amounts of additional arguments before passing them to the | |
6263 | # linker. It appears as though 1/2 is a usable value. | |
6264 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6265 | fi | |
ce2cded5 L |
6266 | ;; |
6267 | esac | |
d7040cdb | 6268 | |
7357c5b6 | 6269 | fi |
d7040cdb | 6270 | |
7357c5b6 | 6271 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6273 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6274 | else |
81ecdfbb RW |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6276 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6277 | fi |
6278 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6279 | |
6280 | ||
6281 | ||
6282 | ||
6283 | ||
d7040cdb | 6284 | |
7357c5b6 AM |
6285 | : ${CP="cp -f"} |
6286 | : ${MV="mv -f"} | |
6287 | : ${RM="rm -f"} | |
d7040cdb | 6288 | |
81ecdfbb RW |
6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6290 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6291 | # Try some XSI features |
6292 | xsi_shell=no | |
6293 | ( _lt_dummy="a/b/c" | |
6294 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6295 | = c,a/b,, \ |
6296 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6297 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6298 | && xsi_shell=yes |
81ecdfbb RW |
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6300 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6301 | |
d7040cdb | 6302 | |
81ecdfbb RW |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6304 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6305 | lt_shell_append=no |
6306 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6307 | >/dev/null 2>&1 \ | |
6308 | && lt_shell_append=yes | |
81ecdfbb RW |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6310 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6311 | |
6312 | ||
7357c5b6 AM |
6313 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6314 | lt_unset=unset | |
6315 | else | |
6316 | lt_unset=false | |
6317 | fi | |
d7040cdb | 6318 | |
d7040cdb | 6319 | |
d7040cdb | 6320 | |
d7040cdb | 6321 | |
d7040cdb | 6322 | |
7357c5b6 AM |
6323 | # test EBCDIC or ASCII |
6324 | case `echo X|tr X '\101'` in | |
6325 | A) # ASCII based system | |
6326 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6327 | lt_SP2NL='tr \040 \012' | |
6328 | lt_NL2SP='tr \015\012 \040\040' | |
6329 | ;; | |
6330 | *) # EBCDIC based system | |
6331 | lt_SP2NL='tr \100 \n' | |
6332 | lt_NL2SP='tr \r\n \100\100' | |
6333 | ;; | |
6334 | esac | |
42ecbf5e | 6335 | |
d7040cdb SE |
6336 | |
6337 | ||
6338 | ||
6339 | ||
6340 | ||
6341 | ||
d7040cdb | 6342 | |
d7040cdb | 6343 | |
81ecdfbb RW |
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6345 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6346 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6347 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6348 | else |
6349 | lt_cv_ld_reload_flag='-r' | |
6350 | fi | |
81ecdfbb RW |
6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6352 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6353 | reload_flag=$lt_cv_ld_reload_flag |
6354 | case $reload_flag in | |
6355 | "" | " "*) ;; | |
6356 | *) reload_flag=" $reload_flag" ;; | |
6357 | esac | |
6358 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6359 | case $host_os in | |
6360 | darwin*) | |
6361 | if test "$GCC" = yes; then | |
6362 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6363 | else | |
6364 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6365 | fi | |
6366 | ;; | |
6367 | esac | |
d7040cdb | 6368 | |
d7040cdb | 6369 | |
d7040cdb | 6370 | |
d7040cdb | 6371 | |
d7040cdb | 6372 | |
d7040cdb | 6373 | |
d7040cdb | 6374 | |
d7040cdb | 6375 | |
d7040cdb | 6376 | |
b214d478 SE |
6377 | if test -n "$ac_tool_prefix"; then |
6378 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6379 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6381 | $as_echo_n "checking for $ac_word... " >&6; } | |
6382 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6383 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6384 | else |
6385 | if test -n "$OBJDUMP"; then | |
6386 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6387 | else | |
6388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6389 | for as_dir in $PATH | |
6390 | do | |
6391 | IFS=$as_save_IFS | |
6392 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6393 | for ac_exec_ext in '' $ac_executable_extensions; do |
6394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6395 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6397 | break 2 |
6398 | fi | |
6399 | done | |
81ecdfbb RW |
6400 | done |
6401 | IFS=$as_save_IFS | |
b214d478 SE |
6402 | |
6403 | fi | |
6404 | fi | |
6405 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6406 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6408 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6409 | else |
81ecdfbb RW |
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6411 | $as_echo "no" >&6; } | |
b214d478 SE |
6412 | fi |
6413 | ||
81ecdfbb | 6414 | |
b214d478 SE |
6415 | fi |
6416 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6417 | ac_ct_OBJDUMP=$OBJDUMP | |
6418 | # Extract the first word of "objdump", so it can be a program name with args. | |
6419 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6421 | $as_echo_n "checking for $ac_word... " >&6; } | |
6422 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6423 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6424 | else |
6425 | if test -n "$ac_ct_OBJDUMP"; then | |
6426 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6427 | else | |
6428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6429 | for as_dir in $PATH | |
6430 | do | |
6431 | IFS=$as_save_IFS | |
6432 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6433 | for ac_exec_ext in '' $ac_executable_extensions; do |
6434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6435 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6437 | break 2 |
6438 | fi | |
6439 | done | |
81ecdfbb RW |
6440 | done |
6441 | IFS=$as_save_IFS | |
b214d478 | 6442 | |
b214d478 SE |
6443 | fi |
6444 | fi | |
6445 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6446 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6448 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 6449 | else |
81ecdfbb RW |
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6451 | $as_echo "no" >&6; } | |
b214d478 SE |
6452 | fi |
6453 | ||
81ecdfbb RW |
6454 | if test "x$ac_ct_OBJDUMP" = x; then |
6455 | OBJDUMP="false" | |
6456 | else | |
6457 | case $cross_compiling:$ac_tool_warned in | |
6458 | yes:) | |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6460 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6461 | ac_tool_warned=yes ;; | |
6462 | esac | |
6463 | OBJDUMP=$ac_ct_OBJDUMP | |
6464 | fi | |
b214d478 SE |
6465 | else |
6466 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6467 | fi | |
6468 | ||
6469 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
d7040cdb | 6478 | |
81ecdfbb RW |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6480 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6481 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6482 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6483 | else |
7357c5b6 AM |
6484 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6485 | lt_cv_file_magic_test_file= | |
6486 | lt_cv_deplibs_check_method='unknown' | |
6487 | # Need to set the preceding variable on all platforms that support | |
6488 | # interlibrary dependencies. | |
6489 | # 'none' -- dependencies not supported. | |
6490 | # `unknown' -- same as none, but documents that we really don't know. | |
6491 | # 'pass_all' -- all dependencies passed with no checks. | |
6492 | # 'test_compile' -- check by making test program. | |
6493 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6494 | # which responds to the $file_magic_cmd with a given extended regex. | |
6495 | # If you have `file' or equivalent on your system and you're not sure | |
6496 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6497 | |
ce2cded5 | 6498 | case $host_os in |
7357c5b6 AM |
6499 | aix[4-9]*) |
6500 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6501 | ;; |
7357c5b6 AM |
6502 | |
6503 | beos*) | |
6504 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6505 | ;; |
7357c5b6 AM |
6506 | |
6507 | bsdi[45]*) | |
6508 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6509 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6510 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6511 | ;; |
7357c5b6 AM |
6512 | |
6513 | cygwin*) | |
6514 | # func_win32_libid is a shell function defined in ltmain.sh | |
6515 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6516 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6517 | ;; |
7357c5b6 AM |
6518 | |
6519 | mingw* | pw32*) | |
6520 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6521 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6522 | # unless we find 'file', for example because we are cross-compiling. | |
6523 | if ( file / ) >/dev/null 2>&1; then | |
6524 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6525 | lt_cv_file_magic_cmd='func_win32_libid' | |
6526 | else | |
6527 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6528 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6529 | fi | |
ce2cded5 | 6530 | ;; |
7357c5b6 | 6531 | |
b214d478 SE |
6532 | cegcc) |
6533 | # use the weaker test based on 'objdump'. See mingw*. | |
6534 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6535 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6536 | ;; | |
6537 | ||
7357c5b6 AM |
6538 | darwin* | rhapsody*) |
6539 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6540 | ;; |
7357c5b6 AM |
6541 | |
6542 | freebsd* | dragonfly*) | |
6543 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6544 | case $host_cpu in | |
6545 | i*86 ) | |
6546 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6547 | # Let's accept both of them until this is cleared up. | |
6548 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6549 | lt_cv_file_magic_cmd=/usr/bin/file | |
6550 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6551 | ;; | |
6552 | esac | |
6553 | else | |
6554 | lt_cv_deplibs_check_method=pass_all | |
6555 | fi | |
ce2cded5 | 6556 | ;; |
7357c5b6 AM |
6557 | |
6558 | gnu*) | |
6559 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6560 | ;; |
7357c5b6 AM |
6561 | |
6562 | hpux10.20* | hpux11*) | |
6563 | lt_cv_file_magic_cmd=/usr/bin/file | |
6564 | case $host_cpu in | |
6565 | ia64*) | |
6566 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6567 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6568 | ;; | |
6569 | hppa*64*) | |
6570 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
6571 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6572 | ;; | |
6573 | *) | |
6574 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6575 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6576 | ;; | |
6577 | esac | |
ce2cded5 | 6578 | ;; |
d7040cdb | 6579 | |
7357c5b6 AM |
6580 | interix[3-9]*) |
6581 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6582 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6583 | ;; | |
d7040cdb | 6584 | |
7357c5b6 AM |
6585 | irix5* | irix6* | nonstopux*) |
6586 | case $LD in | |
6587 | *-32|*"-32 ") libmagic=32-bit;; | |
6588 | *-n32|*"-n32 ") libmagic=N32;; | |
6589 | *-64|*"-64 ") libmagic=64-bit;; | |
6590 | *) libmagic=never-match;; | |
6591 | esac | |
6592 | lt_cv_deplibs_check_method=pass_all | |
6593 | ;; | |
d7040cdb | 6594 | |
7357c5b6 | 6595 | # This must be Linux ELF. |
58e24671 | 6596 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
6597 | lt_cv_deplibs_check_method=pass_all |
6598 | ;; | |
d7040cdb | 6599 | |
7357c5b6 AM |
6600 | netbsd*) |
6601 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6602 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6603 | else | |
6604 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6605 | fi | |
ce2cded5 | 6606 | ;; |
d7040cdb | 6607 | |
7357c5b6 AM |
6608 | newos6*) |
6609 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6610 | lt_cv_file_magic_cmd=/usr/bin/file | |
6611 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6612 | ;; | |
d7040cdb | 6613 | |
7357c5b6 AM |
6614 | *nto* | *qnx*) |
6615 | lt_cv_deplibs_check_method=pass_all | |
6616 | ;; | |
d7040cdb | 6617 | |
7357c5b6 AM |
6618 | openbsd*) |
6619 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6620 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 6621 | else |
7357c5b6 | 6622 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 6623 | fi |
7357c5b6 | 6624 | ;; |
d7040cdb | 6625 | |
7357c5b6 AM |
6626 | osf3* | osf4* | osf5*) |
6627 | lt_cv_deplibs_check_method=pass_all | |
6628 | ;; | |
d7040cdb | 6629 | |
7357c5b6 AM |
6630 | rdos*) |
6631 | lt_cv_deplibs_check_method=pass_all | |
6632 | ;; | |
d7040cdb | 6633 | |
7357c5b6 AM |
6634 | solaris*) |
6635 | lt_cv_deplibs_check_method=pass_all | |
6636 | ;; | |
d7040cdb | 6637 | |
7357c5b6 AM |
6638 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6639 | lt_cv_deplibs_check_method=pass_all | |
6640 | ;; | |
d7040cdb | 6641 | |
7357c5b6 AM |
6642 | sysv4 | sysv4.3*) |
6643 | case $host_vendor in | |
6644 | motorola) | |
6645 | 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]' | |
6646 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6647 | ;; | |
6648 | ncr) | |
6649 | lt_cv_deplibs_check_method=pass_all | |
6650 | ;; | |
6651 | sequent) | |
6652 | lt_cv_file_magic_cmd='/bin/file' | |
6653 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6654 | ;; | |
6655 | sni) | |
6656 | lt_cv_file_magic_cmd='/bin/file' | |
6657 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6658 | lt_cv_file_magic_test_file=/lib/libc.so | |
6659 | ;; | |
6660 | siemens) | |
6661 | lt_cv_deplibs_check_method=pass_all | |
6662 | ;; | |
6663 | pc) | |
6664 | lt_cv_deplibs_check_method=pass_all | |
6665 | ;; | |
6666 | esac | |
6667 | ;; | |
d7040cdb | 6668 | |
7357c5b6 AM |
6669 | tpf*) |
6670 | lt_cv_deplibs_check_method=pass_all | |
6671 | ;; | |
6672 | esac | |
d7040cdb | 6673 | |
7357c5b6 | 6674 | fi |
81ecdfbb RW |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6676 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
6677 | file_magic_cmd=$lt_cv_file_magic_cmd |
6678 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6679 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
6680 | |
6681 | ||
6682 | ||
7357c5b6 AM |
6683 | |
6684 | ||
6685 | ||
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | ||
6692 | if test -n "$ac_tool_prefix"; then | |
6693 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6694 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6696 | $as_echo_n "checking for $ac_word... " >&6; } | |
6697 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6698 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6699 | else |
6700 | if test -n "$AR"; then | |
6701 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6702 | else | |
6703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6704 | for as_dir in $PATH | |
6705 | do | |
6706 | IFS=$as_save_IFS | |
6707 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6708 | for ac_exec_ext in '' $ac_executable_extensions; do |
6709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6710 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6712 | break 2 |
ce2cded5 L |
6713 | fi |
6714 | done | |
81ecdfbb RW |
6715 | done |
6716 | IFS=$as_save_IFS | |
d7040cdb | 6717 | |
42ecbf5e | 6718 | fi |
ce2cded5 | 6719 | fi |
7357c5b6 AM |
6720 | AR=$ac_cv_prog_AR |
6721 | if test -n "$AR"; then | |
81ecdfbb RW |
6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6723 | $as_echo "$AR" >&6; } | |
42ecbf5e | 6724 | else |
81ecdfbb RW |
6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6726 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6727 | fi |
6728 | ||
81ecdfbb | 6729 | |
7357c5b6 AM |
6730 | fi |
6731 | if test -z "$ac_cv_prog_AR"; then | |
6732 | ac_ct_AR=$AR | |
6733 | # Extract the first word of "ar", so it can be a program name with args. | |
6734 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6736 | $as_echo_n "checking for $ac_word... " >&6; } | |
6737 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6738 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6739 | else |
6740 | if test -n "$ac_ct_AR"; then | |
6741 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6742 | else | |
6743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6744 | for as_dir in $PATH | |
6745 | do | |
6746 | IFS=$as_save_IFS | |
6747 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6748 | for ac_exec_ext in '' $ac_executable_extensions; do |
6749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6750 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6752 | break 2 |
6753 | fi | |
6754 | done | |
81ecdfbb RW |
6755 | done |
6756 | IFS=$as_save_IFS | |
42ecbf5e | 6757 | |
7357c5b6 AM |
6758 | fi |
6759 | fi | |
6760 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6761 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6763 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 6764 | else |
81ecdfbb RW |
6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6766 | $as_echo "no" >&6; } | |
7357c5b6 | 6767 | fi |
d7040cdb | 6768 | |
81ecdfbb RW |
6769 | if test "x$ac_ct_AR" = x; then |
6770 | AR="false" | |
6771 | else | |
6772 | case $cross_compiling:$ac_tool_warned in | |
6773 | yes:) | |
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6775 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6776 | ac_tool_warned=yes ;; | |
6777 | esac | |
6778 | AR=$ac_ct_AR | |
6779 | fi | |
7357c5b6 AM |
6780 | else |
6781 | AR="$ac_cv_prog_AR" | |
6782 | fi | |
d7040cdb | 6783 | |
7357c5b6 AM |
6784 | test -z "$AR" && AR=ar |
6785 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6786 | |
6787 | ||
6788 | ||
20e95c23 | 6789 | |
d7040cdb | 6790 | |
d7040cdb SE |
6791 | |
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | ||
7357c5b6 AM |
6797 | if test -n "$ac_tool_prefix"; then |
6798 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6799 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6801 | $as_echo_n "checking for $ac_word... " >&6; } | |
6802 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6803 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6804 | else |
6805 | if test -n "$STRIP"; then | |
6806 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6807 | else | |
6808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6809 | for as_dir in $PATH | |
6810 | do | |
6811 | IFS=$as_save_IFS | |
6812 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6813 | for ac_exec_ext in '' $ac_executable_extensions; do |
6814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6815 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6817 | break 2 |
ce2cded5 | 6818 | fi |
7357c5b6 | 6819 | done |
81ecdfbb RW |
6820 | done |
6821 | IFS=$as_save_IFS | |
d7040cdb | 6822 | |
7357c5b6 AM |
6823 | fi |
6824 | fi | |
6825 | STRIP=$ac_cv_prog_STRIP | |
6826 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6828 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 6829 | else |
81ecdfbb RW |
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6831 | $as_echo "no" >&6; } | |
7357c5b6 AM |
6832 | fi |
6833 | ||
81ecdfbb | 6834 | |
7357c5b6 AM |
6835 | fi |
6836 | if test -z "$ac_cv_prog_STRIP"; then | |
6837 | ac_ct_STRIP=$STRIP | |
6838 | # Extract the first word of "strip", so it can be a program name with args. | |
6839 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6841 | $as_echo_n "checking for $ac_word... " >&6; } | |
6842 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6843 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6844 | else |
6845 | if test -n "$ac_ct_STRIP"; then | |
6846 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6847 | else | |
6848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6849 | for as_dir in $PATH | |
6850 | do | |
6851 | IFS=$as_save_IFS | |
6852 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6853 | for ac_exec_ext in '' $ac_executable_extensions; do |
6854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6855 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6857 | break 2 |
ce2cded5 | 6858 | fi |
7357c5b6 | 6859 | done |
81ecdfbb RW |
6860 | done |
6861 | IFS=$as_save_IFS | |
d7040cdb | 6862 | |
7357c5b6 AM |
6863 | fi |
6864 | fi | |
6865 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6866 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6868 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 6869 | else |
81ecdfbb RW |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6871 | $as_echo "no" >&6; } | |
7357c5b6 | 6872 | fi |
d7040cdb | 6873 | |
81ecdfbb RW |
6874 | if test "x$ac_ct_STRIP" = x; then |
6875 | STRIP=":" | |
6876 | else | |
6877 | case $cross_compiling:$ac_tool_warned in | |
6878 | yes:) | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6881 | ac_tool_warned=yes ;; | |
6882 | esac | |
6883 | STRIP=$ac_ct_STRIP | |
6884 | fi | |
7357c5b6 AM |
6885 | else |
6886 | STRIP="$ac_cv_prog_STRIP" | |
6887 | fi | |
d7040cdb | 6888 | |
7357c5b6 | 6889 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6890 | |
d7040cdb SE |
6891 | |
6892 | ||
6893 | ||
d7040cdb | 6894 | |
7357c5b6 AM |
6895 | |
6896 | if test -n "$ac_tool_prefix"; then | |
6897 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6898 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6900 | $as_echo_n "checking for $ac_word... " >&6; } | |
6901 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6902 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6903 | else |
7357c5b6 AM |
6904 | if test -n "$RANLIB"; then |
6905 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6906 | else | |
6907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6908 | for as_dir in $PATH | |
ce2cded5 | 6909 | do |
7357c5b6 AM |
6910 | IFS=$as_save_IFS |
6911 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6912 | for ac_exec_ext in '' $ac_executable_extensions; do |
6913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6914 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6916 | break 2 |
ce2cded5 | 6917 | fi |
7357c5b6 | 6918 | done |
81ecdfbb RW |
6919 | done |
6920 | IFS=$as_save_IFS | |
7357c5b6 | 6921 | |
ce2cded5 | 6922 | fi |
7357c5b6 AM |
6923 | fi |
6924 | RANLIB=$ac_cv_prog_RANLIB | |
6925 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6927 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 6928 | else |
81ecdfbb RW |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6930 | $as_echo "no" >&6; } | |
ce2cded5 | 6931 | fi |
d7040cdb | 6932 | |
81ecdfbb | 6933 | |
7357c5b6 AM |
6934 | fi |
6935 | if test -z "$ac_cv_prog_RANLIB"; then | |
6936 | ac_ct_RANLIB=$RANLIB | |
6937 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6938 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6940 | $as_echo_n "checking for $ac_word... " >&6; } | |
6941 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6942 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6943 | else |
7357c5b6 AM |
6944 | if test -n "$ac_ct_RANLIB"; then |
6945 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6946 | else | |
6947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6948 | for as_dir in $PATH | |
6949 | do | |
6950 | IFS=$as_save_IFS | |
6951 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6952 | for ac_exec_ext in '' $ac_executable_extensions; do |
6953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6954 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6956 | break 2 |
6957 | fi | |
6958 | done | |
81ecdfbb RW |
6959 | done |
6960 | IFS=$as_save_IFS | |
7357c5b6 | 6961 | |
ce2cded5 | 6962 | fi |
7357c5b6 AM |
6963 | fi |
6964 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6965 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6967 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 6968 | else |
81ecdfbb RW |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6970 | $as_echo "no" >&6; } | |
ce2cded5 | 6971 | fi |
d7040cdb | 6972 | |
81ecdfbb RW |
6973 | if test "x$ac_ct_RANLIB" = x; then |
6974 | RANLIB=":" | |
6975 | else | |
6976 | case $cross_compiling:$ac_tool_warned in | |
6977 | yes:) | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6979 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6980 | ac_tool_warned=yes ;; | |
6981 | esac | |
6982 | RANLIB=$ac_ct_RANLIB | |
6983 | fi | |
7357c5b6 AM |
6984 | else |
6985 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 6986 | fi |
d7040cdb | 6987 | |
7357c5b6 | 6988 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 6989 | |
7357c5b6 AM |
6990 | |
6991 | ||
6992 | ||
6993 | ||
6994 | ||
6995 | # Determine commands to create old-style static archives. | |
b214d478 | 6996 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
6997 | old_postinstall_cmds='chmod 644 $oldlib' |
6998 | old_postuninstall_cmds= | |
6999 | ||
7000 | if test -n "$RANLIB"; then | |
7001 | case $host_os in | |
7002 | openbsd*) | |
7003 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7004 | ;; | |
7005 | *) | |
7006 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7007 | ;; | |
7008 | esac | |
7009 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7010 | fi |
7357c5b6 AM |
7011 | |
7012 | ||
7013 | ||
7014 | ||
7015 | ||
7016 | ||
7017 | ||
7018 | ||
7019 | ||
7020 | ||
7021 | ||
7022 | ||
7023 | ||
7024 | ||
7025 | ||
7026 | ||
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | # If no C compiler was specified, use CC. | |
7046 | LTCC=${LTCC-"$CC"} | |
7047 | ||
7048 | # If no C compiler flags were specified, use CFLAGS. | |
7049 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7050 | ||
7051 | # Allow CC to be a program name with arguments. | |
7052 | compiler=$CC | |
7053 | ||
7054 | ||
7055 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7057 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7058 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7059 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7060 | else |
d7040cdb | 7061 | |
7357c5b6 AM |
7062 | # These are sane defaults that work on at least a few old systems. |
7063 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7064 | |
7357c5b6 AM |
7065 | # Character class describing NM global symbol codes. |
7066 | symcode='[BCDEGRST]' | |
7067 | ||
7068 | # Regexp to match symbols that can be accessed directly from C. | |
7069 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7070 | ||
7071 | # Define system-specific variables. | |
7072 | case $host_os in | |
7073 | aix*) | |
7074 | symcode='[BCDT]' | |
7075 | ;; | |
b214d478 | 7076 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7077 | symcode='[ABCDGISTW]' |
7078 | ;; | |
7079 | hpux*) | |
7080 | if test "$host_cpu" = ia64; then | |
7081 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7082 | fi |
7357c5b6 AM |
7083 | ;; |
7084 | irix* | nonstopux*) | |
7085 | symcode='[BCDEGRST]' | |
7086 | ;; | |
7087 | osf*) | |
7088 | symcode='[BCDEGQRST]' | |
7089 | ;; | |
7090 | solaris*) | |
7091 | symcode='[BDRT]' | |
7092 | ;; | |
7093 | sco3.2v5*) | |
7094 | symcode='[DT]' | |
7095 | ;; | |
7096 | sysv4.2uw2*) | |
7097 | symcode='[DT]' | |
7098 | ;; | |
7099 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7100 | symcode='[ABDT]' | |
7101 | ;; | |
7102 | sysv4) | |
7103 | symcode='[DFNSTU]' | |
7104 | ;; | |
7105 | esac | |
d7040cdb | 7106 | |
7357c5b6 AM |
7107 | # If we're using GNU nm, then use its standard symbol codes. |
7108 | case `$NM -V 2>&1` in | |
7109 | *GNU* | *'with BFD'*) | |
7110 | symcode='[ABCDGIRSTW]' ;; | |
7111 | esac | |
d7040cdb | 7112 | |
7357c5b6 AM |
7113 | # Transform an extracted symbol line into a proper C declaration. |
7114 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7115 | # so use this general approach. | |
7116 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7117 | ||
7118 | # Transform an extracted symbol line into symbol name and symbol address | |
7119 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
b214d478 | 7120 | 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'" |
7357c5b6 AM |
7121 | |
7122 | # Handle CRLF in mingw tool chain | |
7123 | opt_cr= | |
7124 | case $build_os in | |
7125 | mingw*) | |
7126 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7127 | ;; | |
7128 | esac | |
d7040cdb | 7129 | |
7357c5b6 AM |
7130 | # Try without a prefix underscore, then with it. |
7131 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7132 | |
7357c5b6 AM |
7133 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7134 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7135 | |
7357c5b6 AM |
7136 | # Write the raw and C identifiers. |
7137 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7138 | # Fake it for dumpbin and say T for any non-static function | |
7139 | # and D for any global variable. | |
7140 | # Also find C++ and __fastcall symbols from MSVC++, | |
7141 | # which start with @ or ?. | |
7142 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7143 | " {last_section=section; section=\$ 3};"\ | |
7144 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7145 | " \$ 0!~/External *\|/{next};"\ | |
7146 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7147 | " {if(hide[section]) next};"\ | |
7148 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7149 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7150 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7151 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7152 | " ' prfx=^$ac_symprfx" | |
7153 | else | |
7154 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7155 | fi | |
d7040cdb | 7156 | |
7357c5b6 AM |
7157 | # Check to see that the pipe works correctly. |
7158 | pipe_works=no | |
d7040cdb | 7159 | |
7357c5b6 AM |
7160 | rm -f conftest* |
7161 | cat > conftest.$ac_ext <<_LT_EOF | |
7162 | #ifdef __cplusplus | |
7163 | extern "C" { | |
7164 | #endif | |
7165 | char nm_test_var; | |
7166 | void nm_test_func(void); | |
7167 | void nm_test_func(void){} | |
7168 | #ifdef __cplusplus | |
20e95c23 | 7169 | } |
7357c5b6 AM |
7170 | #endif |
7171 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7172 | _LT_EOF | |
7173 | ||
81ecdfbb | 7174 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7175 | (eval $ac_compile) 2>&5 |
20e95c23 | 7176 | ac_status=$? |
81ecdfbb RW |
7177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7178 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7179 | # Now try to grab the symbols. |
7180 | nlist=conftest.nm | |
81ecdfbb | 7181 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
7357c5b6 | 7182 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
20e95c23 | 7183 | ac_status=$? |
81ecdfbb RW |
7184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7185 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7186 | # Try sorting and uniquifying the output. |
7187 | if sort "$nlist" | uniq > "$nlist"T; then | |
7188 | mv -f "$nlist"T "$nlist" | |
7189 | else | |
7190 | rm -f "$nlist"T | |
7191 | fi | |
d7040cdb | 7192 | |
7357c5b6 AM |
7193 | # Make sure that we snagged all the symbols we need. |
7194 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7195 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7196 | cat <<_LT_EOF > conftest.$ac_ext | |
7197 | #ifdef __cplusplus | |
7198 | extern "C" { | |
7199 | #endif | |
ce2cded5 | 7200 | |
7357c5b6 AM |
7201 | _LT_EOF |
7202 | # Now generate the symbol file. | |
7203 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7204 | |
7357c5b6 | 7205 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7206 | |
7357c5b6 AM |
7207 | /* The mapping between symbol names and symbols. */ |
7208 | const struct { | |
7209 | const char *name; | |
7210 | void *address; | |
7211 | } | |
7212 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7213 | { | |
7214 | { "@PROGRAM@", (void *) 0 }, | |
7215 | _LT_EOF | |
7216 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7217 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7218 | {0, (void *) 0} | |
7219 | }; | |
d7040cdb | 7220 | |
7357c5b6 AM |
7221 | /* This works around a problem in FreeBSD linker */ |
7222 | #ifdef FREEBSD_WORKAROUND | |
7223 | static const void *lt_preloaded_setup() { | |
7224 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7225 | } | |
ce2cded5 | 7226 | #endif |
42ecbf5e | 7227 | |
7357c5b6 | 7228 | #ifdef __cplusplus |
ce2cded5 | 7229 | } |
7357c5b6 AM |
7230 | #endif |
7231 | _LT_EOF | |
7232 | # Now try linking the two files. | |
7233 | mv conftest.$ac_objext conftstm.$ac_objext | |
7234 | lt_save_LIBS="$LIBS" | |
7235 | lt_save_CFLAGS="$CFLAGS" | |
7236 | LIBS="conftstm.$ac_objext" | |
7237 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7238 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7239 | (eval $ac_link) 2>&5 |
7240 | ac_status=$? | |
81ecdfbb RW |
7241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7242 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7243 | pipe_works=yes |
7244 | fi | |
7245 | LIBS="$lt_save_LIBS" | |
7246 | CFLAGS="$lt_save_CFLAGS" | |
7247 | else | |
7248 | echo "cannot find nm_test_func in $nlist" >&5 | |
7249 | fi | |
7250 | else | |
7251 | echo "cannot find nm_test_var in $nlist" >&5 | |
7252 | fi | |
7253 | else | |
7254 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7255 | fi | |
7256 | else | |
7257 | echo "$progname: failed program was:" >&5 | |
7258 | cat conftest.$ac_ext >&5 | |
7259 | fi | |
b214d478 | 7260 | rm -rf conftest* conftst* |
7357c5b6 AM |
7261 | |
7262 | # Do not use the global_symbol_pipe unless it works. | |
7263 | if test "$pipe_works" = yes; then | |
7264 | break | |
7265 | else | |
7266 | lt_cv_sys_global_symbol_pipe= | |
7267 | fi | |
7268 | done | |
42ecbf5e | 7269 | |
ce2cded5 | 7270 | fi |
7357c5b6 AM |
7271 | |
7272 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7273 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7274 | fi |
7357c5b6 | 7275 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7277 | $as_echo "failed" >&6; } | |
7357c5b6 | 7278 | else |
81ecdfbb RW |
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7280 | $as_echo "ok" >&6; } | |
ce2cded5 | 7281 | fi |
e5a52504 | 7282 | |
d7040cdb | 7283 | |
e5a52504 | 7284 | |
d7040cdb | 7285 | |
d7040cdb | 7286 | |
d7040cdb | 7287 | |
d7040cdb | 7288 | |
d7040cdb | 7289 | |
d7040cdb | 7290 | |
d7040cdb | 7291 | |
d7040cdb | 7292 | |
d7040cdb | 7293 | |
7357c5b6 AM |
7294 | |
7295 | ||
7296 | ||
b214d478 SE |
7297 | |
7298 | ||
7299 | ||
7300 | ||
7301 | ||
7357c5b6 AM |
7302 | |
7303 | ||
81ecdfbb RW |
7304 | # Check whether --enable-libtool-lock was given. |
7305 | if test "${enable_libtool_lock+set}" = set; then : | |
7306 | enableval=$enable_libtool_lock; | |
7307 | fi | |
7357c5b6 | 7308 | |
7357c5b6 AM |
7309 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7310 | ||
7311 | # Some flags need to be propagated to the compiler or linker for good | |
7312 | # libtool support. | |
7313 | case $host in | |
7314 | ia64-*-hpux*) | |
7315 | # Find out which ABI we are using. | |
7316 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7317 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7318 | (eval $ac_compile) 2>&5 |
7319 | ac_status=$? | |
81ecdfbb RW |
7320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7321 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7322 | case `/usr/bin/file conftest.$ac_objext` in |
7323 | *ELF-32*) | |
7324 | HPUX_IA64_MODE="32" | |
7325 | ;; | |
7326 | *ELF-64*) | |
7327 | HPUX_IA64_MODE="64" | |
7328 | ;; | |
7329 | esac | |
7330 | fi | |
7331 | rm -rf conftest* | |
7332 | ;; | |
7333 | *-*-irix6*) | |
7334 | # Find out which ABI we are using. | |
da2f07f1 | 7335 | echo '#line 7335 "configure"' > conftest.$ac_ext |
81ecdfbb | 7336 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7337 | (eval $ac_compile) 2>&5 |
7338 | ac_status=$? | |
81ecdfbb RW |
7339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7340 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7341 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7342 | case `/usr/bin/file conftest.$ac_objext` in | |
7343 | *32-bit*) | |
7344 | LD="${LD-ld} -melf32bsmip" | |
7345 | ;; | |
7346 | *N32*) | |
7347 | LD="${LD-ld} -melf32bmipn32" | |
7348 | ;; | |
7349 | *64-bit*) | |
7350 | LD="${LD-ld} -melf64bmip" | |
7351 | ;; | |
7352 | esac | |
7353 | else | |
7354 | case `/usr/bin/file conftest.$ac_objext` in | |
7355 | *32-bit*) | |
7356 | LD="${LD-ld} -32" | |
7357 | ;; | |
7358 | *N32*) | |
7359 | LD="${LD-ld} -n32" | |
7360 | ;; | |
7361 | *64-bit*) | |
7362 | LD="${LD-ld} -64" | |
7363 | ;; | |
7364 | esac | |
7365 | fi | |
7366 | fi | |
7367 | rm -rf conftest* | |
7368 | ;; | |
7369 | ||
7370 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
7371 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7372 | # Find out which ABI we are using. | |
7373 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7374 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7375 | (eval $ac_compile) 2>&5 |
7376 | ac_status=$? | |
81ecdfbb RW |
7377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7378 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7379 | case `/usr/bin/file conftest.o` in |
7380 | *32-bit*) | |
7381 | case $host in | |
7382 | x86_64-*kfreebsd*-gnu) | |
7383 | LD="${LD-ld} -m elf_i386_fbsd" | |
7384 | ;; | |
7385 | x86_64-*linux*) | |
7386 | LD="${LD-ld} -m elf_i386" | |
7387 | ;; | |
7388 | ppc64-*linux*|powerpc64-*linux*) | |
7389 | LD="${LD-ld} -m elf32ppclinux" | |
7390 | ;; | |
7391 | s390x-*linux*) | |
7392 | LD="${LD-ld} -m elf_s390" | |
7393 | ;; | |
7394 | sparc64-*linux*) | |
7395 | LD="${LD-ld} -m elf32_sparc" | |
7396 | ;; | |
7397 | esac | |
7398 | ;; | |
7399 | *64-bit*) | |
7400 | case $host in | |
7401 | x86_64-*kfreebsd*-gnu) | |
7402 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7403 | ;; | |
7404 | x86_64-*linux*) | |
7405 | LD="${LD-ld} -m elf_x86_64" | |
7406 | ;; | |
7407 | ppc*-*linux*|powerpc*-*linux*) | |
7408 | LD="${LD-ld} -m elf64ppc" | |
7409 | ;; | |
7410 | s390*-*linux*|s390*-*tpf*) | |
7411 | LD="${LD-ld} -m elf64_s390" | |
7412 | ;; | |
7413 | sparc*-*linux*) | |
7414 | LD="${LD-ld} -m elf64_sparc" | |
7415 | ;; | |
7416 | esac | |
7417 | ;; | |
7418 | esac | |
7419 | fi | |
7420 | rm -rf conftest* | |
7421 | ;; | |
7422 | ||
7423 | *-*-sco3.2v5*) | |
7424 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7425 | SAVE_CFLAGS="$CFLAGS" | |
7426 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7428 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7429 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7430 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7431 | else |
7357c5b6 AM |
7432 | ac_ext=c |
7433 | ac_cpp='$CPP $CPPFLAGS' | |
7434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7437 | ||
81ecdfbb | 7438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7439 | /* end confdefs.h. */ |
d7040cdb | 7440 | |
7357c5b6 AM |
7441 | int |
7442 | main () | |
7443 | { | |
7444 | ||
7445 | ; | |
7446 | return 0; | |
7447 | } | |
ce2cded5 | 7448 | _ACEOF |
81ecdfbb | 7449 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7450 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7451 | else |
81ecdfbb | 7452 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7453 | fi |
81ecdfbb RW |
7454 | rm -f core conftest.err conftest.$ac_objext \ |
7455 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7456 | ac_ext=c |
7457 | ac_cpp='$CPP $CPPFLAGS' | |
7458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7461 | |
b214d478 | 7462 | fi |
81ecdfbb RW |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7464 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7465 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7466 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7467 | CFLAGS="$SAVE_CFLAGS" | |
7468 | fi | |
7469 | ;; | |
7470 | sparc*-*solaris*) | |
7471 | # Find out which ABI we are using. | |
7472 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7473 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7474 | (eval $ac_compile) 2>&5 |
7475 | ac_status=$? | |
81ecdfbb RW |
7476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7477 | test $ac_status = 0; }; then | |
b214d478 SE |
7478 | case `/usr/bin/file conftest.o` in |
7479 | *64-bit*) | |
7480 | case $lt_cv_prog_gnu_ld in | |
7481 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7482 | *) | |
7483 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7484 | LD="${LD-ld} -64" | |
7485 | fi | |
7486 | ;; | |
7487 | esac | |
7488 | ;; | |
7489 | esac | |
7490 | fi | |
7491 | rm -rf conftest* | |
7492 | ;; | |
7493 | esac | |
7494 | ||
7495 | need_locks="$enable_libtool_lock" | |
7496 | ||
7497 | ||
7498 | case $host_os in | |
7499 | rhapsody* | darwin*) | |
7500 | if test -n "$ac_tool_prefix"; then | |
7501 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7502 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7504 | $as_echo_n "checking for $ac_word... " >&6; } | |
7505 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7506 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7507 | else |
7508 | if test -n "$DSYMUTIL"; then | |
7509 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7510 | else | |
7511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7512 | for as_dir in $PATH | |
7513 | do | |
7514 | IFS=$as_save_IFS | |
7515 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7516 | for ac_exec_ext in '' $ac_executable_extensions; do |
7517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7518 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7520 | break 2 |
7521 | fi | |
7522 | done | |
81ecdfbb RW |
7523 | done |
7524 | IFS=$as_save_IFS | |
b214d478 SE |
7525 | |
7526 | fi | |
7527 | fi | |
7528 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7529 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7531 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7532 | else |
81ecdfbb RW |
7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7534 | $as_echo "no" >&6; } | |
b214d478 SE |
7535 | fi |
7536 | ||
81ecdfbb | 7537 | |
b214d478 SE |
7538 | fi |
7539 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7540 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7541 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7542 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7544 | $as_echo_n "checking for $ac_word... " >&6; } | |
7545 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7546 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7547 | else |
7548 | if test -n "$ac_ct_DSYMUTIL"; then | |
7549 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7550 | else | |
7551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7552 | for as_dir in $PATH | |
7553 | do | |
7554 | IFS=$as_save_IFS | |
7555 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7556 | for ac_exec_ext in '' $ac_executable_extensions; do |
7557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7558 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7560 | break 2 |
7561 | fi | |
7562 | done | |
81ecdfbb RW |
7563 | done |
7564 | IFS=$as_save_IFS | |
b214d478 | 7565 | |
b214d478 SE |
7566 | fi |
7567 | fi | |
7568 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7569 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7571 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 7572 | else |
81ecdfbb RW |
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7574 | $as_echo "no" >&6; } | |
b214d478 SE |
7575 | fi |
7576 | ||
81ecdfbb RW |
7577 | if test "x$ac_ct_DSYMUTIL" = x; then |
7578 | DSYMUTIL=":" | |
7579 | else | |
7580 | case $cross_compiling:$ac_tool_warned in | |
7581 | yes:) | |
7582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7583 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7584 | ac_tool_warned=yes ;; | |
7585 | esac | |
7586 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7587 | fi | |
b214d478 SE |
7588 | else |
7589 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7590 | fi | |
7591 | ||
7592 | if test -n "$ac_tool_prefix"; then | |
7593 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7594 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7596 | $as_echo_n "checking for $ac_word... " >&6; } | |
7597 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7598 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7599 | else |
7600 | if test -n "$NMEDIT"; then | |
7601 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7602 | else | |
7603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7604 | for as_dir in $PATH | |
7605 | do | |
7606 | IFS=$as_save_IFS | |
7607 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7608 | for ac_exec_ext in '' $ac_executable_extensions; do |
7609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7610 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7612 | break 2 |
7613 | fi | |
7614 | done | |
81ecdfbb RW |
7615 | done |
7616 | IFS=$as_save_IFS | |
b214d478 SE |
7617 | |
7618 | fi | |
7619 | fi | |
7620 | NMEDIT=$ac_cv_prog_NMEDIT | |
7621 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7623 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 7624 | else |
81ecdfbb RW |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7626 | $as_echo "no" >&6; } | |
b214d478 SE |
7627 | fi |
7628 | ||
81ecdfbb | 7629 | |
b214d478 SE |
7630 | fi |
7631 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7632 | ac_ct_NMEDIT=$NMEDIT | |
7633 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7634 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7636 | $as_echo_n "checking for $ac_word... " >&6; } | |
7637 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7638 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7639 | else |
7640 | if test -n "$ac_ct_NMEDIT"; then | |
7641 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7642 | else | |
7643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7644 | for as_dir in $PATH | |
7645 | do | |
7646 | IFS=$as_save_IFS | |
7647 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7648 | for ac_exec_ext in '' $ac_executable_extensions; do |
7649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7650 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7652 | break 2 |
7653 | fi | |
7654 | done | |
81ecdfbb RW |
7655 | done |
7656 | IFS=$as_save_IFS | |
b214d478 | 7657 | |
b214d478 SE |
7658 | fi |
7659 | fi | |
7660 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7661 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7663 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 7664 | else |
81ecdfbb RW |
7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7666 | $as_echo "no" >&6; } | |
b214d478 SE |
7667 | fi |
7668 | ||
81ecdfbb RW |
7669 | if test "x$ac_ct_NMEDIT" = x; then |
7670 | NMEDIT=":" | |
7671 | else | |
7672 | case $cross_compiling:$ac_tool_warned in | |
7673 | yes:) | |
7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7675 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7676 | ac_tool_warned=yes ;; | |
7677 | esac | |
7678 | NMEDIT=$ac_ct_NMEDIT | |
7679 | fi | |
b214d478 SE |
7680 | else |
7681 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7682 | fi | |
7683 | ||
7684 | if test -n "$ac_tool_prefix"; then | |
7685 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7686 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7688 | $as_echo_n "checking for $ac_word... " >&6; } | |
7689 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7690 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7691 | else |
7692 | if test -n "$LIPO"; then | |
7693 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7694 | else | |
7695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7696 | for as_dir in $PATH | |
7697 | do | |
7698 | IFS=$as_save_IFS | |
7699 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7700 | for ac_exec_ext in '' $ac_executable_extensions; do |
7701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7702 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7704 | break 2 |
7705 | fi | |
7706 | done | |
81ecdfbb RW |
7707 | done |
7708 | IFS=$as_save_IFS | |
b214d478 SE |
7709 | |
7710 | fi | |
7711 | fi | |
7712 | LIPO=$ac_cv_prog_LIPO | |
7713 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7715 | $as_echo "$LIPO" >&6; } | |
b214d478 | 7716 | else |
81ecdfbb RW |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7718 | $as_echo "no" >&6; } | |
b214d478 SE |
7719 | fi |
7720 | ||
81ecdfbb | 7721 | |
b214d478 SE |
7722 | fi |
7723 | if test -z "$ac_cv_prog_LIPO"; then | |
7724 | ac_ct_LIPO=$LIPO | |
7725 | # Extract the first word of "lipo", so it can be a program name with args. | |
7726 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7728 | $as_echo_n "checking for $ac_word... " >&6; } | |
7729 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7730 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7731 | else |
7732 | if test -n "$ac_ct_LIPO"; then | |
7733 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7734 | else | |
7735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7736 | for as_dir in $PATH | |
7737 | do | |
7738 | IFS=$as_save_IFS | |
7739 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7740 | for ac_exec_ext in '' $ac_executable_extensions; do |
7741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7742 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7744 | break 2 |
7745 | fi | |
7746 | done | |
81ecdfbb RW |
7747 | done |
7748 | IFS=$as_save_IFS | |
b214d478 | 7749 | |
b214d478 SE |
7750 | fi |
7751 | fi | |
7752 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7753 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7755 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 7756 | else |
81ecdfbb RW |
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7758 | $as_echo "no" >&6; } | |
b214d478 SE |
7759 | fi |
7760 | ||
81ecdfbb RW |
7761 | if test "x$ac_ct_LIPO" = x; then |
7762 | LIPO=":" | |
7763 | else | |
7764 | case $cross_compiling:$ac_tool_warned in | |
7765 | yes:) | |
7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7767 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7768 | ac_tool_warned=yes ;; | |
7769 | esac | |
7770 | LIPO=$ac_ct_LIPO | |
7771 | fi | |
b214d478 SE |
7772 | else |
7773 | LIPO="$ac_cv_prog_LIPO" | |
7774 | fi | |
7775 | ||
7776 | if test -n "$ac_tool_prefix"; then | |
7777 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7778 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7780 | $as_echo_n "checking for $ac_word... " >&6; } | |
7781 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7782 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7783 | else |
7784 | if test -n "$OTOOL"; then | |
7785 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7786 | else | |
7787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7788 | for as_dir in $PATH | |
7789 | do | |
7790 | IFS=$as_save_IFS | |
7791 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7792 | for ac_exec_ext in '' $ac_executable_extensions; do |
7793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7794 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7796 | break 2 |
7797 | fi | |
7798 | done | |
81ecdfbb RW |
7799 | done |
7800 | IFS=$as_save_IFS | |
b214d478 SE |
7801 | |
7802 | fi | |
7803 | fi | |
7804 | OTOOL=$ac_cv_prog_OTOOL | |
7805 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7807 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 7808 | else |
81ecdfbb RW |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7810 | $as_echo "no" >&6; } | |
b214d478 SE |
7811 | fi |
7812 | ||
81ecdfbb | 7813 | |
b214d478 SE |
7814 | fi |
7815 | if test -z "$ac_cv_prog_OTOOL"; then | |
7816 | ac_ct_OTOOL=$OTOOL | |
7817 | # Extract the first word of "otool", so it can be a program name with args. | |
7818 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7820 | $as_echo_n "checking for $ac_word... " >&6; } | |
7821 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7822 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7823 | else |
7824 | if test -n "$ac_ct_OTOOL"; then | |
7825 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7826 | else | |
7827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7828 | for as_dir in $PATH | |
7829 | do | |
7830 | IFS=$as_save_IFS | |
7831 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7832 | for ac_exec_ext in '' $ac_executable_extensions; do |
7833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7834 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7836 | break 2 |
7837 | fi | |
7838 | done | |
81ecdfbb RW |
7839 | done |
7840 | IFS=$as_save_IFS | |
b214d478 | 7841 | |
b214d478 SE |
7842 | fi |
7843 | fi | |
7844 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7845 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7847 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 7848 | else |
81ecdfbb RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7850 | $as_echo "no" >&6; } | |
b214d478 SE |
7851 | fi |
7852 | ||
81ecdfbb RW |
7853 | if test "x$ac_ct_OTOOL" = x; then |
7854 | OTOOL=":" | |
7855 | else | |
7856 | case $cross_compiling:$ac_tool_warned in | |
7857 | yes:) | |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7860 | ac_tool_warned=yes ;; | |
7861 | esac | |
7862 | OTOOL=$ac_ct_OTOOL | |
7863 | fi | |
b214d478 SE |
7864 | else |
7865 | OTOOL="$ac_cv_prog_OTOOL" | |
7866 | fi | |
7867 | ||
7868 | if test -n "$ac_tool_prefix"; then | |
7869 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7870 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7872 | $as_echo_n "checking for $ac_word... " >&6; } | |
7873 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7874 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7875 | else |
7876 | if test -n "$OTOOL64"; then | |
7877 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7878 | else | |
7879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7880 | for as_dir in $PATH | |
7881 | do | |
7882 | IFS=$as_save_IFS | |
7883 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7884 | for ac_exec_ext in '' $ac_executable_extensions; do |
7885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7886 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7888 | break 2 |
7889 | fi | |
7890 | done | |
81ecdfbb RW |
7891 | done |
7892 | IFS=$as_save_IFS | |
b214d478 SE |
7893 | |
7894 | fi | |
7895 | fi | |
7896 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7897 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7899 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 7900 | else |
81ecdfbb RW |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7902 | $as_echo "no" >&6; } | |
b214d478 SE |
7903 | fi |
7904 | ||
81ecdfbb | 7905 | |
b214d478 SE |
7906 | fi |
7907 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7908 | ac_ct_OTOOL64=$OTOOL64 | |
7909 | # Extract the first word of "otool64", so it can be a program name with args. | |
7910 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7912 | $as_echo_n "checking for $ac_word... " >&6; } | |
7913 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7914 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7915 | else |
7916 | if test -n "$ac_ct_OTOOL64"; then | |
7917 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7918 | else | |
7919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7920 | for as_dir in $PATH | |
7921 | do | |
7922 | IFS=$as_save_IFS | |
7923 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7924 | for ac_exec_ext in '' $ac_executable_extensions; do |
7925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7926 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7928 | break 2 |
7929 | fi | |
7930 | done | |
81ecdfbb RW |
7931 | done |
7932 | IFS=$as_save_IFS | |
b214d478 | 7933 | |
b214d478 SE |
7934 | fi |
7935 | fi | |
7936 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7937 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7939 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 7940 | else |
81ecdfbb RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7942 | $as_echo "no" >&6; } | |
b214d478 SE |
7943 | fi |
7944 | ||
81ecdfbb RW |
7945 | if test "x$ac_ct_OTOOL64" = x; then |
7946 | OTOOL64=":" | |
7947 | else | |
7948 | case $cross_compiling:$ac_tool_warned in | |
7949 | yes:) | |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7951 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7952 | ac_tool_warned=yes ;; | |
7953 | esac | |
7954 | OTOOL64=$ac_ct_OTOOL64 | |
7955 | fi | |
b214d478 SE |
7956 | else |
7957 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7958 | fi | |
7959 | ||
7960 | ||
7961 | ||
7962 | ||
7963 | ||
7964 | ||
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | ||
7970 | ||
7971 | ||
7972 | ||
7973 | ||
7974 | ||
7975 | ||
7976 | ||
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
7985 | ||
81ecdfbb RW |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7987 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7988 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7989 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7990 | else |
7991 | lt_cv_apple_cc_single_mod=no | |
7992 | if test -z "${LT_MULTI_MODULE}"; then | |
7993 | # By default we will add the -single_module flag. You can override | |
7994 | # by either setting the environment variable LT_MULTI_MODULE | |
7995 | # non-empty at configure time, or by adding -multi_module to the | |
7996 | # link flags. | |
7997 | rm -rf libconftest.dylib* | |
7998 | echo "int foo(void){return 1;}" > conftest.c | |
7999 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8000 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8001 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8002 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8003 | _lt_result=$? | |
8004 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8005 | lt_cv_apple_cc_single_mod=yes | |
8006 | else | |
8007 | cat conftest.err >&5 | |
8008 | fi | |
8009 | rm -rf libconftest.dylib* | |
8010 | rm -f conftest.* | |
8011 | fi | |
8012 | fi | |
81ecdfbb RW |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8014 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8016 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8017 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8018 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8019 | else |
8020 | lt_cv_ld_exported_symbols_list=no | |
8021 | save_LDFLAGS=$LDFLAGS | |
8022 | echo "_main" > conftest.sym | |
8023 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8025 | /* end confdefs.h. */ |
8026 | ||
8027 | int | |
8028 | main () | |
8029 | { | |
8030 | ||
8031 | ; | |
8032 | return 0; | |
8033 | } | |
8034 | _ACEOF | |
81ecdfbb | 8035 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8036 | lt_cv_ld_exported_symbols_list=yes |
8037 | else | |
81ecdfbb | 8038 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8039 | fi |
81ecdfbb RW |
8040 | rm -f core conftest.err conftest.$ac_objext \ |
8041 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8042 | LDFLAGS="$save_LDFLAGS" |
8043 | ||
8044 | fi | |
81ecdfbb RW |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8046 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
b214d478 SE |
8047 | case $host_os in |
8048 | rhapsody* | darwin1.[012]) | |
8049 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8050 | darwin1.*) | |
8051 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8052 | darwin*) # darwin 5.x on | |
8053 | # if running on 10.5 or later, the deployment target defaults | |
8054 | # to the OS version, if on x86, and 10.4, the deployment | |
8055 | # target defaults to 10.4. Don't you love it? | |
8056 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8057 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8058 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8059 | 10.[012]*) | |
8060 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8061 | 10.*) | |
8062 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8063 | esac | |
8064 | ;; | |
8065 | esac | |
8066 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8067 | _lt_dar_single_mod='$single_module' | |
8068 | fi | |
8069 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8070 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8071 | else | |
8072 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8073 | fi | |
8074 | if test "$DSYMUTIL" != ":"; then | |
8075 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8076 | else | |
8077 | _lt_dsymutil= | |
8078 | fi | |
8079 | ;; | |
8080 | esac | |
8081 | ||
b214d478 | 8082 | for ac_header in dlfcn.h |
81ecdfbb RW |
8083 | do : |
8084 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8085 | " | |
8086 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 8087 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8088 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8089 | _ACEOF |
8090 | ||
8091 | fi | |
8092 | ||
8093 | done | |
8094 | ||
8095 | ||
8096 | ||
8097 | # Set options | |
8098 | ||
8099 | ||
8100 | ||
8101 | enable_dlopen=no | |
8102 | ||
8103 | ||
8104 | enable_win32_dll=no | |
8105 | ||
8106 | ||
81ecdfbb RW |
8107 | # Check whether --enable-shared was given. |
8108 | if test "${enable_shared+set}" = set; then : | |
8109 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8110 | case $enableval in |
8111 | yes) enable_shared=yes ;; | |
8112 | no) enable_shared=no ;; | |
8113 | *) | |
8114 | enable_shared=no | |
8115 | # Look at the argument we got. We use all the common list separators. | |
8116 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8117 | for pkg in $enableval; do | |
8118 | IFS="$lt_save_ifs" | |
8119 | if test "X$pkg" = "X$p"; then | |
8120 | enable_shared=yes | |
8121 | fi | |
8122 | done | |
8123 | IFS="$lt_save_ifs" | |
8124 | ;; | |
8125 | esac | |
8126 | else | |
8127 | enable_shared=yes | |
81ecdfbb | 8128 | fi |
b214d478 SE |
8129 | |
8130 | ||
8131 | ||
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | ||
81ecdfbb RW |
8137 | |
8138 | # Check whether --enable-static was given. | |
8139 | if test "${enable_static+set}" = set; then : | |
8140 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8141 | case $enableval in |
8142 | yes) enable_static=yes ;; | |
8143 | no) enable_static=no ;; | |
8144 | *) | |
8145 | enable_static=no | |
8146 | # Look at the argument we got. We use all the common list separators. | |
8147 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8148 | for pkg in $enableval; do | |
8149 | IFS="$lt_save_ifs" | |
8150 | if test "X$pkg" = "X$p"; then | |
8151 | enable_static=yes | |
8152 | fi | |
8153 | done | |
8154 | IFS="$lt_save_ifs" | |
8155 | ;; | |
8156 | esac | |
8157 | else | |
8158 | enable_static=yes | |
81ecdfbb | 8159 | fi |
b214d478 SE |
8160 | |
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | ||
81ecdfbb RW |
8169 | |
8170 | # Check whether --with-pic was given. | |
8171 | if test "${with_pic+set}" = set; then : | |
8172 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8173 | else |
8174 | pic_mode=default | |
81ecdfbb RW |
8175 | fi |
8176 | ||
b214d478 SE |
8177 | |
8178 | test -z "$pic_mode" && pic_mode=default | |
8179 | ||
8180 | ||
8181 | ||
8182 | ||
8183 | ||
8184 | ||
8185 | ||
81ecdfbb RW |
8186 | # Check whether --enable-fast-install was given. |
8187 | if test "${enable_fast_install+set}" = set; then : | |
8188 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8189 | case $enableval in |
8190 | yes) enable_fast_install=yes ;; | |
8191 | no) enable_fast_install=no ;; | |
8192 | *) | |
8193 | enable_fast_install=no | |
8194 | # Look at the argument we got. We use all the common list separators. | |
8195 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8196 | for pkg in $enableval; do | |
8197 | IFS="$lt_save_ifs" | |
8198 | if test "X$pkg" = "X$p"; then | |
8199 | enable_fast_install=yes | |
8200 | fi | |
8201 | done | |
8202 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8203 | ;; |
8204 | esac | |
b214d478 SE |
8205 | else |
8206 | enable_fast_install=yes | |
81ecdfbb RW |
8207 | fi |
8208 | ||
ce2cded5 | 8209 | |
ce2cded5 L |
8210 | |
8211 | ||
ce2cded5 | 8212 | |
42ecbf5e | 8213 | |
d7040cdb | 8214 | |
d7040cdb | 8215 | |
d7040cdb | 8216 | |
d7040cdb | 8217 | |
d7040cdb | 8218 | |
ce2cded5 L |
8219 | # This can be used to rebuild libtool when needed |
8220 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8221 | |
ce2cded5 L |
8222 | # Always use our own libtool. |
8223 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8224 | |
d7040cdb | 8225 | |
d7040cdb | 8226 | |
d7040cdb | 8227 | |
d7040cdb | 8228 | |
d7040cdb | 8229 | |
d7040cdb | 8230 | |
d7040cdb | 8231 | |
d7040cdb | 8232 | |
d7040cdb | 8233 | |
d7040cdb | 8234 | |
d7040cdb | 8235 | |
d7040cdb | 8236 | |
d7040cdb | 8237 | |
d7040cdb | 8238 | |
d7040cdb | 8239 | |
d7040cdb SE |
8240 | |
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
ce2cded5 | 8249 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8250 | |
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
d7040cdb SE |
8256 | |
8257 | ||
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
ce2cded5 L |
8264 | if test -n "${ZSH_VERSION+set}" ; then |
8265 | setopt NO_GLOB_SUBST | |
8266 | fi | |
d7040cdb | 8267 | |
81ecdfbb RW |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8269 | $as_echo_n "checking for objdir... " >&6; } | |
8270 | if test "${lt_cv_objdir+set}" = set; then : | |
8271 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8272 | else |
8273 | rm -f .libs 2>/dev/null | |
8274 | mkdir .libs 2>/dev/null | |
8275 | if test -d .libs; then | |
8276 | lt_cv_objdir=.libs | |
8277 | else | |
8278 | # MS-DOS does not allow filenames that begin with a dot. | |
8279 | lt_cv_objdir=_libs | |
8280 | fi | |
8281 | rmdir .libs 2>/dev/null | |
8282 | fi | |
81ecdfbb RW |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8284 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8285 | objdir=$lt_cv_objdir |
d7040cdb SE |
8286 | |
8287 | ||
8288 | ||
8289 | ||
8290 | ||
ce2cded5 L |
8291 | cat >>confdefs.h <<_ACEOF |
8292 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8293 | _ACEOF | |
d7040cdb SE |
8294 | |
8295 | ||
8296 | ||
8297 | ||
8298 | ||
8299 | ||
8300 | ||
8301 | ||
8302 | ||
8303 | ||
8304 | ||
8305 | ||
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
ce2cded5 L |
8311 | case $host_os in |
8312 | aix3*) | |
8313 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8314 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8315 | # vanish in a puff of smoke. | |
8316 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8317 | COLLECT_NAMES= | |
8318 | export COLLECT_NAMES | |
8319 | fi | |
8320 | ;; | |
8321 | esac | |
d7040cdb | 8322 | |
ce2cded5 L |
8323 | # Sed substitution that helps us do robust quoting. It backslashifies |
8324 | # metacharacters that are still active within double-quoted strings. | |
8325 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 8326 | |
ce2cded5 L |
8327 | # Same as above, but do not quote variable references. |
8328 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 8329 | |
ce2cded5 L |
8330 | # Sed substitution to delay expansion of an escaped shell variable in a |
8331 | # double_quote_subst'ed string. | |
8332 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 8333 | |
ce2cded5 L |
8334 | # Sed substitution to delay expansion of an escaped single quote. |
8335 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 8336 | |
ce2cded5 L |
8337 | # Sed substitution to avoid accidental globbing in evaled expressions |
8338 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 8339 | |
ce2cded5 L |
8340 | # Global variables: |
8341 | ofile=libtool | |
8342 | can_build_shared=yes | |
d7040cdb | 8343 | |
ce2cded5 L |
8344 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8345 | # which needs '.lib'). | |
8346 | libext=a | |
d7040cdb | 8347 | |
ce2cded5 | 8348 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8349 | |
ce2cded5 L |
8350 | old_CC="$CC" |
8351 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8352 | |
ce2cded5 L |
8353 | # Set sane defaults for various variables |
8354 | test -z "$CC" && CC=cc | |
8355 | test -z "$LTCC" && LTCC=$CC | |
8356 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8357 | test -z "$LD" && LD=ld | |
8358 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8359 | |
ce2cded5 L |
8360 | for cc_temp in $compiler""; do |
8361 | case $cc_temp in | |
8362 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8363 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8364 | \-*) ;; | |
8365 | *) break;; | |
8366 | esac | |
8367 | done | |
8368 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d7040cdb SE |
8369 | |
8370 | ||
ce2cded5 L |
8371 | # Only perform the check for file, if the check method requires it |
8372 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8373 | case $deplibs_check_method in | |
8374 | file_magic*) | |
8375 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8377 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8378 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8379 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8380 | else |
8381 | case $MAGIC_CMD in | |
8382 | [\\/*] | ?:[\\/]*) | |
8383 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8384 | ;; | |
8385 | *) | |
8386 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8387 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8388 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8389 | for ac_dir in $ac_dummy; do | |
8390 | IFS="$lt_save_ifs" | |
8391 | test -z "$ac_dir" && ac_dir=. | |
8392 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8393 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8394 | if test -n "$file_magic_test_file"; then | |
8395 | case $deplibs_check_method in | |
8396 | "file_magic "*) | |
8397 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8398 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8399 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8400 | $EGREP "$file_magic_regex" > /dev/null; then | |
8401 | : | |
8402 | else | |
8403 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8404 | |
ce2cded5 L |
8405 | *** Warning: the command libtool uses to detect shared libraries, |
8406 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8407 | *** The result is that libtool may fail to recognize shared libraries | |
8408 | *** as such. This will affect the creation of libtool libraries that | |
8409 | *** depend on shared libraries, but programs linked with such libtool | |
8410 | *** libraries will work regardless of this problem. Nevertheless, you | |
8411 | *** may want to report the problem to your system manager and/or to | |
8412 | *** bug-libtool@gnu.org | |
d7040cdb | 8413 | |
ce2cded5 L |
8414 | _LT_EOF |
8415 | fi ;; | |
8416 | esac | |
8417 | fi | |
8418 | break | |
8419 | fi | |
8420 | done | |
8421 | IFS="$lt_save_ifs" | |
8422 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8423 | ;; | |
8424 | esac | |
8425 | fi | |
d7040cdb | 8426 | |
ce2cded5 L |
8427 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8428 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8430 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8431 | else |
81ecdfbb RW |
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8433 | $as_echo "no" >&6; } | |
ce2cded5 | 8434 | fi |
d7040cdb SE |
8435 | |
8436 | ||
8437 | ||
8438 | ||
8439 | ||
ce2cded5 L |
8440 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8441 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8443 | $as_echo_n "checking for file... " >&6; } | |
8444 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8445 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8446 | else |
8447 | case $MAGIC_CMD in | |
8448 | [\\/*] | ?:[\\/]*) | |
8449 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8450 | ;; | |
8451 | *) | |
8452 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8453 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8454 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8455 | for ac_dir in $ac_dummy; do | |
8456 | IFS="$lt_save_ifs" | |
8457 | test -z "$ac_dir" && ac_dir=. | |
8458 | if test -f $ac_dir/file; then | |
8459 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8460 | if test -n "$file_magic_test_file"; then | |
8461 | case $deplibs_check_method in | |
8462 | "file_magic "*) | |
8463 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8464 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8465 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8466 | $EGREP "$file_magic_regex" > /dev/null; then | |
8467 | : | |
8468 | else | |
8469 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8470 | |
ce2cded5 L |
8471 | *** Warning: the command libtool uses to detect shared libraries, |
8472 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8473 | *** The result is that libtool may fail to recognize shared libraries | |
8474 | *** as such. This will affect the creation of libtool libraries that | |
8475 | *** depend on shared libraries, but programs linked with such libtool | |
8476 | *** libraries will work regardless of this problem. Nevertheless, you | |
8477 | *** may want to report the problem to your system manager and/or to | |
8478 | *** bug-libtool@gnu.org | |
d7040cdb | 8479 | |
ce2cded5 L |
8480 | _LT_EOF |
8481 | fi ;; | |
8482 | esac | |
8483 | fi | |
8484 | break | |
8485 | fi | |
8486 | done | |
8487 | IFS="$lt_save_ifs" | |
8488 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8489 | ;; | |
8490 | esac | |
8491 | fi | |
d7040cdb | 8492 | |
ce2cded5 L |
8493 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8494 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8496 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8497 | else |
81ecdfbb RW |
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8499 | $as_echo "no" >&6; } | |
ce2cded5 | 8500 | fi |
d7040cdb SE |
8501 | |
8502 | ||
ce2cded5 L |
8503 | else |
8504 | MAGIC_CMD=: | |
8505 | fi | |
8506 | fi | |
d7040cdb | 8507 | |
ce2cded5 L |
8508 | fi |
8509 | ;; | |
8510 | esac | |
d7040cdb | 8511 | |
ce2cded5 | 8512 | # Use C for the default configuration in the libtool script |
d7040cdb | 8513 | |
ce2cded5 L |
8514 | lt_save_CC="$CC" |
8515 | ac_ext=c | |
8516 | ac_cpp='$CPP $CPPFLAGS' | |
8517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8520 | |
8521 | ||
ce2cded5 L |
8522 | # Source file extension for C test sources. |
8523 | ac_ext=c | |
d7040cdb | 8524 | |
ce2cded5 L |
8525 | # Object file extension for compiled C test sources. |
8526 | objext=o | |
8527 | objext=$objext | |
d7040cdb | 8528 | |
ce2cded5 L |
8529 | # Code to be used in simple compile tests |
8530 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8531 | |
ce2cded5 L |
8532 | # Code to be used in simple link tests |
8533 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8534 | |
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
ce2cded5 L |
8541 | # If no C compiler was specified, use CC. |
8542 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8543 | |
ce2cded5 L |
8544 | # If no C compiler flags were specified, use CFLAGS. |
8545 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8546 | |
ce2cded5 L |
8547 | # Allow CC to be a program name with arguments. |
8548 | compiler=$CC | |
d7040cdb | 8549 | |
ce2cded5 L |
8550 | # Save the default compiler, since it gets overwritten when the other |
8551 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8552 | compiler_DEFAULT=$CC | |
d7040cdb | 8553 | |
ce2cded5 L |
8554 | # save warnings/boilerplate of simple test code |
8555 | ac_outfile=conftest.$ac_objext | |
8556 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8557 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8558 | _lt_compiler_boilerplate=`cat conftest.err` | |
8559 | $RM conftest* | |
d7040cdb | 8560 | |
ce2cded5 L |
8561 | ac_outfile=conftest.$ac_objext |
8562 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8563 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8564 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 8565 | $RM -r conftest* |
d7040cdb SE |
8566 | |
8567 | ||
ce2cded5 L |
8568 | ## CAVEAT EMPTOR: |
8569 | ## There is no encapsulation within the following macros, do not change | |
8570 | ## the running order or otherwise move them around unless you know exactly | |
8571 | ## what you are doing... | |
8572 | if test -n "$compiler"; then | |
d7040cdb | 8573 | |
ce2cded5 | 8574 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 8575 | |
ce2cded5 L |
8576 | if test "$GCC" = yes; then |
8577 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d7040cdb | 8578 | |
81ecdfbb RW |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8580 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8581 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8582 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8583 | else |
8584 | lt_cv_prog_compiler_rtti_exceptions=no | |
8585 | ac_outfile=conftest.$ac_objext | |
8586 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8587 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8588 | # Insert the option either (1) after the last *FLAGS variable, or | |
8589 | # (2) before a word containing "conftest.", or (3) at the end. | |
8590 | # Note that $ac_compile itself does not contain backslashes and begins | |
8591 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8592 | # The option is referenced via a variable to avoid confusing sed. | |
8593 | lt_compile=`echo "$ac_compile" | $SED \ | |
8594 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8595 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8596 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 8597 | (eval echo "\"\$as_me:8597: $lt_compile\"" >&5) |
ce2cded5 L |
8598 | (eval "$lt_compile" 2>conftest.err) |
8599 | ac_status=$? | |
8600 | cat conftest.err >&5 | |
da2f07f1 | 8601 | echo "$as_me:8601: \$? = $ac_status" >&5 |
ce2cded5 L |
8602 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8603 | # The compiler can only warn and ignore the option if not recognized | |
8604 | # So say no if there are warnings other than the usual output. | |
8605 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8606 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8607 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8608 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8609 | fi | |
8610 | fi | |
8611 | $RM conftest* | |
d7040cdb | 8612 | |
ce2cded5 | 8613 | fi |
81ecdfbb RW |
8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8615 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 8616 | |
ce2cded5 L |
8617 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8618 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8619 | else | |
8620 | : | |
8621 | fi | |
d7040cdb | 8622 | |
ce2cded5 | 8623 | fi |
d7040cdb SE |
8624 | |
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
ce2cded5 L |
8630 | lt_prog_compiler_wl= |
8631 | lt_prog_compiler_pic= | |
8632 | lt_prog_compiler_static= | |
d7040cdb | 8633 | |
81ecdfbb RW |
8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8635 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 8636 | |
ce2cded5 L |
8637 | if test "$GCC" = yes; then |
8638 | lt_prog_compiler_wl='-Wl,' | |
8639 | lt_prog_compiler_static='-static' | |
d7040cdb | 8640 | |
ce2cded5 L |
8641 | case $host_os in |
8642 | aix*) | |
8643 | # All AIX code is PIC. | |
8644 | if test "$host_cpu" = ia64; then | |
8645 | # AIX 5 now supports IA64 processor | |
8646 | lt_prog_compiler_static='-Bstatic' | |
8647 | fi | |
8648 | ;; | |
d7040cdb | 8649 | |
ce2cded5 | 8650 | amigaos*) |
b214d478 SE |
8651 | case $host_cpu in |
8652 | powerpc) | |
8653 | # see comment about AmigaOS4 .so support | |
8654 | lt_prog_compiler_pic='-fPIC' | |
8655 | ;; | |
8656 | m68k) | |
8657 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8658 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8659 | # like `-m68040'. | |
8660 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8661 | ;; | |
8662 | esac | |
ce2cded5 | 8663 | ;; |
d7040cdb | 8664 | |
ce2cded5 L |
8665 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8666 | # PIC is the default for these OSes. | |
8667 | ;; | |
d7040cdb | 8668 | |
b214d478 | 8669 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8670 | # This hack is so that the source file can tell whether it is being |
8671 | # built for inclusion in a dll (and should export symbols for example). | |
8672 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8673 | # (--disable-auto-import) libraries | |
8674 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8675 | ;; | |
d7040cdb | 8676 | |
ce2cded5 L |
8677 | darwin* | rhapsody*) |
8678 | # PIC is the default on this platform | |
8679 | # Common symbols not allowed in MH_DYLIB files | |
8680 | lt_prog_compiler_pic='-fno-common' | |
8681 | ;; | |
d7040cdb | 8682 | |
ce2cded5 | 8683 | hpux*) |
b214d478 SE |
8684 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8685 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8686 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8687 | case $host_cpu in |
b214d478 | 8688 | hppa*64*) |
ce2cded5 L |
8689 | # +Z the default |
8690 | ;; | |
8691 | *) | |
8692 | lt_prog_compiler_pic='-fPIC' | |
8693 | ;; | |
8694 | esac | |
8695 | ;; | |
d7040cdb | 8696 | |
ce2cded5 L |
8697 | interix[3-9]*) |
8698 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8699 | # Instead, we relocate shared libraries at runtime. | |
8700 | ;; | |
d7040cdb | 8701 | |
ce2cded5 L |
8702 | msdosdjgpp*) |
8703 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8704 | # on systems that don't support them. | |
8705 | lt_prog_compiler_can_build_shared=no | |
8706 | enable_shared=no | |
8707 | ;; | |
d7040cdb | 8708 | |
ce2cded5 L |
8709 | *nto* | *qnx*) |
8710 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8711 | # it will coredump. | |
8712 | lt_prog_compiler_pic='-fPIC -shared' | |
8713 | ;; | |
d7040cdb | 8714 | |
ce2cded5 L |
8715 | sysv4*MP*) |
8716 | if test -d /usr/nec; then | |
8717 | lt_prog_compiler_pic=-Kconform_pic | |
8718 | fi | |
8719 | ;; | |
d7040cdb | 8720 | |
ce2cded5 L |
8721 | *) |
8722 | lt_prog_compiler_pic='-fPIC' | |
8723 | ;; | |
8724 | esac | |
8725 | else | |
8726 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8727 | case $host_os in | |
8728 | aix*) | |
8729 | lt_prog_compiler_wl='-Wl,' | |
8730 | if test "$host_cpu" = ia64; then | |
8731 | # AIX 5 now supports IA64 processor | |
8732 | lt_prog_compiler_static='-Bstatic' | |
8733 | else | |
8734 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8735 | fi | |
8736 | ;; | |
d7040cdb | 8737 | |
b214d478 | 8738 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8739 | # This hack is so that the source file can tell whether it is being |
8740 | # built for inclusion in a dll (and should export symbols for example). | |
8741 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8742 | ;; | |
d7040cdb | 8743 | |
ce2cded5 L |
8744 | hpux9* | hpux10* | hpux11*) |
8745 | lt_prog_compiler_wl='-Wl,' | |
8746 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8747 | # not for PA HP-UX. | |
8748 | case $host_cpu in | |
8749 | hppa*64*|ia64*) | |
8750 | # +Z the default | |
8751 | ;; | |
8752 | *) | |
8753 | lt_prog_compiler_pic='+Z' | |
8754 | ;; | |
8755 | esac | |
8756 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8757 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8758 | ;; | |
d7040cdb | 8759 | |
ce2cded5 L |
8760 | irix5* | irix6* | nonstopux*) |
8761 | lt_prog_compiler_wl='-Wl,' | |
8762 | # PIC (with -KPIC) is the default. | |
8763 | lt_prog_compiler_static='-non_shared' | |
8764 | ;; | |
d7040cdb | 8765 | |
58e24671 | 8766 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8767 | case $cc_basename in |
b214d478 SE |
8768 | # old Intel for x86_64 which still supported -KPIC. |
8769 | ecc*) | |
ce2cded5 L |
8770 | lt_prog_compiler_wl='-Wl,' |
8771 | lt_prog_compiler_pic='-KPIC' | |
8772 | lt_prog_compiler_static='-static' | |
8773 | ;; | |
b214d478 SE |
8774 | # icc used to be incompatible with GCC. |
8775 | # ICC 10 doesn't accept -KPIC any more. | |
8776 | icc* | ifort*) | |
8777 | lt_prog_compiler_wl='-Wl,' | |
8778 | lt_prog_compiler_pic='-fPIC' | |
8779 | lt_prog_compiler_static='-static' | |
8780 | ;; | |
8781 | # Lahey Fortran 8.1. | |
8782 | lf95*) | |
8783 | lt_prog_compiler_wl='-Wl,' | |
8784 | lt_prog_compiler_pic='--shared' | |
8785 | lt_prog_compiler_static='--static' | |
8786 | ;; | |
ce2cded5 L |
8787 | pgcc* | pgf77* | pgf90* | pgf95*) |
8788 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8789 | # which looks to be a dead project) | |
8790 | lt_prog_compiler_wl='-Wl,' | |
8791 | lt_prog_compiler_pic='-fpic' | |
8792 | lt_prog_compiler_static='-Bstatic' | |
8793 | ;; | |
8794 | ccc*) | |
8795 | lt_prog_compiler_wl='-Wl,' | |
8796 | # All Alpha code is PIC. | |
8797 | lt_prog_compiler_static='-non_shared' | |
8798 | ;; | |
b214d478 SE |
8799 | xl*) |
8800 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8801 | lt_prog_compiler_wl='-Wl,' | |
8802 | lt_prog_compiler_pic='-qpic' | |
8803 | lt_prog_compiler_static='-qstaticlink' | |
8804 | ;; | |
ce2cded5 L |
8805 | *) |
8806 | case `$CC -V 2>&1 | sed 5q` in | |
8807 | *Sun\ C*) | |
8808 | # Sun C 5.9 | |
8809 | lt_prog_compiler_pic='-KPIC' | |
8810 | lt_prog_compiler_static='-Bstatic' | |
8811 | lt_prog_compiler_wl='-Wl,' | |
8812 | ;; | |
8813 | *Sun\ F*) | |
8814 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8815 | lt_prog_compiler_pic='-KPIC' | |
8816 | lt_prog_compiler_static='-Bstatic' | |
8817 | lt_prog_compiler_wl='' | |
8818 | ;; | |
8819 | esac | |
8820 | ;; | |
8821 | esac | |
8822 | ;; | |
d7040cdb | 8823 | |
ce2cded5 L |
8824 | newsos6) |
8825 | lt_prog_compiler_pic='-KPIC' | |
8826 | lt_prog_compiler_static='-Bstatic' | |
8827 | ;; | |
d7040cdb | 8828 | |
ce2cded5 L |
8829 | *nto* | *qnx*) |
8830 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8831 | # it will coredump. | |
8832 | lt_prog_compiler_pic='-fPIC -shared' | |
8833 | ;; | |
d7040cdb | 8834 | |
ce2cded5 L |
8835 | osf3* | osf4* | osf5*) |
8836 | lt_prog_compiler_wl='-Wl,' | |
8837 | # All OSF/1 code is PIC. | |
8838 | lt_prog_compiler_static='-non_shared' | |
8839 | ;; | |
d7040cdb | 8840 | |
ce2cded5 L |
8841 | rdos*) |
8842 | lt_prog_compiler_static='-non_shared' | |
8843 | ;; | |
d7040cdb | 8844 | |
ce2cded5 L |
8845 | solaris*) |
8846 | lt_prog_compiler_pic='-KPIC' | |
8847 | lt_prog_compiler_static='-Bstatic' | |
8848 | case $cc_basename in | |
8849 | f77* | f90* | f95*) | |
8850 | lt_prog_compiler_wl='-Qoption ld ';; | |
8851 | *) | |
8852 | lt_prog_compiler_wl='-Wl,';; | |
8853 | esac | |
8854 | ;; | |
d7040cdb | 8855 | |
ce2cded5 L |
8856 | sunos4*) |
8857 | lt_prog_compiler_wl='-Qoption ld ' | |
8858 | lt_prog_compiler_pic='-PIC' | |
8859 | lt_prog_compiler_static='-Bstatic' | |
8860 | ;; | |
d7040cdb | 8861 | |
ce2cded5 L |
8862 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8863 | lt_prog_compiler_wl='-Wl,' | |
8864 | lt_prog_compiler_pic='-KPIC' | |
8865 | lt_prog_compiler_static='-Bstatic' | |
8866 | ;; | |
d7040cdb | 8867 | |
ce2cded5 L |
8868 | sysv4*MP*) |
8869 | if test -d /usr/nec ;then | |
8870 | lt_prog_compiler_pic='-Kconform_pic' | |
8871 | lt_prog_compiler_static='-Bstatic' | |
8872 | fi | |
8873 | ;; | |
d7040cdb | 8874 | |
ce2cded5 L |
8875 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8876 | lt_prog_compiler_wl='-Wl,' | |
8877 | lt_prog_compiler_pic='-KPIC' | |
8878 | lt_prog_compiler_static='-Bstatic' | |
8879 | ;; | |
d7040cdb | 8880 | |
ce2cded5 L |
8881 | unicos*) |
8882 | lt_prog_compiler_wl='-Wl,' | |
8883 | lt_prog_compiler_can_build_shared=no | |
8884 | ;; | |
d7040cdb | 8885 | |
ce2cded5 L |
8886 | uts4*) |
8887 | lt_prog_compiler_pic='-pic' | |
8888 | lt_prog_compiler_static='-Bstatic' | |
8889 | ;; | |
d7040cdb | 8890 | |
ce2cded5 L |
8891 | *) |
8892 | lt_prog_compiler_can_build_shared=no | |
8893 | ;; | |
8894 | esac | |
8895 | fi | |
d7040cdb | 8896 | |
ce2cded5 L |
8897 | case $host_os in |
8898 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8899 | *djgpp*) | |
8900 | lt_prog_compiler_pic= | |
8901 | ;; | |
8902 | *) | |
8903 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8904 | ;; | |
8905 | esac | |
81ecdfbb RW |
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8907 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8908 | |
8909 | ||
8910 | ||
8911 | ||
8912 | ||
8913 | ||
ce2cded5 L |
8914 | # |
8915 | # Check to make sure the PIC flag actually works. | |
8916 | # | |
8917 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8919 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8920 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8921 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8922 | else |
b214d478 | 8923 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8924 | ac_outfile=conftest.$ac_objext |
8925 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8926 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8927 | # Insert the option either (1) after the last *FLAGS variable, or | |
8928 | # (2) before a word containing "conftest.", or (3) at the end. | |
8929 | # Note that $ac_compile itself does not contain backslashes and begins | |
8930 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8931 | # The option is referenced via a variable to avoid confusing sed. | |
8932 | lt_compile=`echo "$ac_compile" | $SED \ | |
8933 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8934 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8935 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 8936 | (eval echo "\"\$as_me:8936: $lt_compile\"" >&5) |
ce2cded5 L |
8937 | (eval "$lt_compile" 2>conftest.err) |
8938 | ac_status=$? | |
8939 | cat conftest.err >&5 | |
da2f07f1 | 8940 | echo "$as_me:8940: \$? = $ac_status" >&5 |
ce2cded5 L |
8941 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8942 | # The compiler can only warn and ignore the option if not recognized | |
8943 | # So say no if there are warnings other than the usual output. | |
8944 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8945 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8946 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 8947 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8948 | fi |
8949 | fi | |
8950 | $RM conftest* | |
d7040cdb | 8951 | |
ce2cded5 | 8952 | fi |
81ecdfbb RW |
8953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8954 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 8955 | |
b214d478 | 8956 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8957 | case $lt_prog_compiler_pic in |
8958 | "" | " "*) ;; | |
8959 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8960 | esac | |
8961 | else | |
8962 | lt_prog_compiler_pic= | |
8963 | lt_prog_compiler_can_build_shared=no | |
8964 | fi | |
8965 | ||
8966 | fi | |
d7040cdb SE |
8967 | |
8968 | ||
8969 | ||
8970 | ||
8971 | ||
8972 | ||
ce2cded5 L |
8973 | # |
8974 | # Check to make sure the static flag actually works. | |
8975 | # | |
8976 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8978 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8979 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8980 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8981 | else |
b214d478 | 8982 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8983 | save_LDFLAGS="$LDFLAGS" |
8984 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8985 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8986 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8987 | # The linker can only warn and ignore the option if not recognized | |
8988 | # So say no if there are warnings | |
8989 | if test -s conftest.err; then | |
8990 | # Append any errors to the config.log. | |
8991 | cat conftest.err 1>&5 | |
8992 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8993 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8994 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 8995 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8996 | fi |
8997 | else | |
b214d478 | 8998 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8999 | fi |
9000 | fi | |
b214d478 | 9001 | $RM -r conftest* |
ce2cded5 | 9002 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9003 | |
ce2cded5 | 9004 | fi |
81ecdfbb RW |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9006 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9007 | |
b214d478 | 9008 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9009 | : |
9010 | else | |
9011 | lt_prog_compiler_static= | |
9012 | fi | |
d7040cdb SE |
9013 | |
9014 | ||
9015 | ||
9016 | ||
9017 | ||
9018 | ||
9019 | ||
81ecdfbb RW |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9021 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9022 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9023 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9024 | else |
9025 | lt_cv_prog_compiler_c_o=no | |
9026 | $RM -r conftest 2>/dev/null | |
9027 | mkdir conftest | |
9028 | cd conftest | |
9029 | mkdir out | |
9030 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9031 | |
ce2cded5 L |
9032 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9033 | # Insert the option either (1) after the last *FLAGS variable, or | |
9034 | # (2) before a word containing "conftest.", or (3) at the end. | |
9035 | # Note that $ac_compile itself does not contain backslashes and begins | |
9036 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9037 | lt_compile=`echo "$ac_compile" | $SED \ | |
9038 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9039 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9040 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 9041 | (eval echo "\"\$as_me:9041: $lt_compile\"" >&5) |
ce2cded5 L |
9042 | (eval "$lt_compile" 2>out/conftest.err) |
9043 | ac_status=$? | |
9044 | cat out/conftest.err >&5 | |
da2f07f1 | 9045 | echo "$as_me:9045: \$? = $ac_status" >&5 |
ce2cded5 L |
9046 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9047 | then | |
9048 | # The compiler can only warn and ignore the option if not recognized | |
9049 | # So say no if there are warnings | |
9050 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9051 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9052 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9053 | lt_cv_prog_compiler_c_o=yes | |
9054 | fi | |
9055 | fi | |
9056 | chmod u+w . 2>&5 | |
9057 | $RM conftest* | |
9058 | # SGI C++ compiler will create directory out/ii_files/ for | |
9059 | # template instantiation | |
9060 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9061 | $RM out/* && rmdir out | |
9062 | cd .. | |
9063 | $RM -r conftest | |
9064 | $RM conftest* | |
d7040cdb | 9065 | |
ce2cded5 | 9066 | fi |
81ecdfbb RW |
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9068 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9069 | |
9070 | ||
9071 | ||
9072 | ||
9073 | ||
9074 | ||
81ecdfbb RW |
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9076 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9077 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9078 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9079 | else |
9080 | lt_cv_prog_compiler_c_o=no | |
9081 | $RM -r conftest 2>/dev/null | |
9082 | mkdir conftest | |
9083 | cd conftest | |
9084 | mkdir out | |
9085 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9086 | |
ce2cded5 L |
9087 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9088 | # Insert the option either (1) after the last *FLAGS variable, or | |
9089 | # (2) before a word containing "conftest.", or (3) at the end. | |
9090 | # Note that $ac_compile itself does not contain backslashes and begins | |
9091 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9092 | lt_compile=`echo "$ac_compile" | $SED \ | |
9093 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9094 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9095 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 9096 | (eval echo "\"\$as_me:9096: $lt_compile\"" >&5) |
ce2cded5 L |
9097 | (eval "$lt_compile" 2>out/conftest.err) |
9098 | ac_status=$? | |
9099 | cat out/conftest.err >&5 | |
da2f07f1 | 9100 | echo "$as_me:9100: \$? = $ac_status" >&5 |
ce2cded5 L |
9101 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9102 | then | |
9103 | # The compiler can only warn and ignore the option if not recognized | |
9104 | # So say no if there are warnings | |
9105 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9106 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9107 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9108 | lt_cv_prog_compiler_c_o=yes | |
9109 | fi | |
9110 | fi | |
9111 | chmod u+w . 2>&5 | |
9112 | $RM conftest* | |
9113 | # SGI C++ compiler will create directory out/ii_files/ for | |
9114 | # template instantiation | |
9115 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9116 | $RM out/* && rmdir out | |
9117 | cd .. | |
9118 | $RM -r conftest | |
9119 | $RM conftest* | |
9120 | ||
9121 | fi | |
81ecdfbb RW |
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9123 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9124 | |
9125 | ||
9126 | ||
9127 | ||
9128 | hard_links="nottested" | |
9129 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9130 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9132 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9133 | hard_links=yes |
9134 | $RM conftest* | |
9135 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9136 | touch conftest.a | |
9137 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9138 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9140 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9141 | if test "$hard_links" = no; then |
81ecdfbb RW |
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9143 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9144 | need_locks=warn |
d7040cdb | 9145 | fi |
d7040cdb | 9146 | else |
ce2cded5 | 9147 | need_locks=no |
d7040cdb | 9148 | fi |
d7040cdb | 9149 | |
d7040cdb | 9150 | |
d7040cdb | 9151 | |
d7040cdb | 9152 | |
d7040cdb | 9153 | |
d7040cdb | 9154 | |
81ecdfbb RW |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9156 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9157 | |
ce2cded5 L |
9158 | runpath_var= |
9159 | allow_undefined_flag= | |
9160 | always_export_symbols=no | |
9161 | archive_cmds= | |
9162 | archive_expsym_cmds= | |
9163 | compiler_needs_object=no | |
9164 | enable_shared_with_static_runtimes=no | |
9165 | export_dynamic_flag_spec= | |
9166 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9167 | hardcode_automatic=no | |
9168 | hardcode_direct=no | |
9169 | hardcode_direct_absolute=no | |
9170 | hardcode_libdir_flag_spec= | |
9171 | hardcode_libdir_flag_spec_ld= | |
9172 | hardcode_libdir_separator= | |
9173 | hardcode_minus_L=no | |
9174 | hardcode_shlibpath_var=unsupported | |
9175 | inherit_rpath=no | |
9176 | link_all_deplibs=unknown | |
9177 | module_cmds= | |
9178 | module_expsym_cmds= | |
9179 | old_archive_from_new_cmds= | |
9180 | old_archive_from_expsyms_cmds= | |
9181 | thread_safe_flag_spec= | |
9182 | whole_archive_flag_spec= | |
9183 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9184 | # included in the symbol list | |
9185 | include_expsyms= | |
9186 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9187 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9188 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9189 | # as well as any symbol that contains `d'. | |
b214d478 | 9190 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9191 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9192 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9193 | # the symbol is explicitly referenced. Since portable code cannot | |
9194 | # rely on this symbol name, it's probably fine to never include it in | |
9195 | # preloaded symbol tables. | |
b214d478 | 9196 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9197 | extract_expsyms_cmds= |
d7040cdb | 9198 | |
ce2cded5 | 9199 | case $host_os in |
b214d478 | 9200 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9201 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9202 | # When not using gcc, we currently assume that we are using | |
9203 | # Microsoft Visual C++. | |
9204 | if test "$GCC" != yes; then | |
9205 | with_gnu_ld=no | |
9206 | fi | |
d7040cdb | 9207 | ;; |
ce2cded5 L |
9208 | interix*) |
9209 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9210 | with_gnu_ld=yes | |
9211 | ;; | |
9212 | openbsd*) | |
9213 | with_gnu_ld=no | |
d7040cdb SE |
9214 | ;; |
9215 | esac | |
d7040cdb | 9216 | |
ce2cded5 L |
9217 | ld_shlibs=yes |
9218 | if test "$with_gnu_ld" = yes; then | |
9219 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9220 | wlarc='${wl}' | |
d7040cdb | 9221 | |
ce2cded5 L |
9222 | # Set some defaults for GNU ld with shared library support. These |
9223 | # are reset later if shared libraries are not supported. Putting them | |
9224 | # here allows them to be overridden if necessary. | |
9225 | runpath_var=LD_RUN_PATH | |
9226 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9227 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9228 | # ancient GNU ld didn't support --whole-archive et. al. | |
9229 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9230 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9231 | else | |
9232 | whole_archive_flag_spec= | |
9233 | fi | |
9234 | supports_anon_versioning=no | |
9235 | case `$LD -v 2>&1` in | |
9236 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9237 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9238 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9239 | *\ 2.11.*) ;; # other 2.11 versions | |
9240 | *) supports_anon_versioning=yes ;; | |
9241 | esac | |
d7040cdb | 9242 | |
ce2cded5 L |
9243 | # See if GNU ld supports shared libraries. |
9244 | case $host_os in | |
50e7d84b | 9245 | aix[3-9]*) |
ce2cded5 L |
9246 | # On AIX/PPC, the GNU linker is very broken |
9247 | if test "$host_cpu" != ia64; then | |
9248 | ld_shlibs=no | |
9249 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9250 | |
ce2cded5 L |
9251 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
9252 | *** to be unable to reliably create shared libraries on AIX. | |
9253 | *** Therefore, libtool is disabling shared libraries support. If you | |
9254 | *** really care for shared libraries, you may want to modify your PATH | |
9255 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 9256 | |
ce2cded5 L |
9257 | _LT_EOF |
9258 | fi | |
d7040cdb | 9259 | ;; |
d7040cdb | 9260 | |
ce2cded5 | 9261 | amigaos*) |
b214d478 SE |
9262 | case $host_cpu in |
9263 | powerpc) | |
9264 | # see comment about AmigaOS4 .so support | |
9265 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9266 | archive_expsym_cmds='' | |
9267 | ;; | |
9268 | m68k) | |
9269 | 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)' | |
9270 | hardcode_libdir_flag_spec='-L$libdir' | |
9271 | hardcode_minus_L=yes | |
9272 | ;; | |
9273 | esac | |
ce2cded5 | 9274 | ;; |
d7040cdb | 9275 | |
ce2cded5 L |
9276 | beos*) |
9277 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9278 | allow_undefined_flag=unsupported | |
9279 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9280 | # support --undefined. This deserves some investigation. FIXME | |
9281 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9282 | else | |
9283 | ld_shlibs=no | |
9284 | fi | |
9285 | ;; | |
d7040cdb | 9286 | |
b214d478 | 9287 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9288 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9289 | # as there is no search path for DLLs. | |
9290 | hardcode_libdir_flag_spec='-L$libdir' | |
9291 | allow_undefined_flag=unsupported | |
9292 | always_export_symbols=no | |
9293 | enable_shared_with_static_runtimes=yes | |
9294 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9295 | ||
9296 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9297 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9298 | # If the export-symbols file already is a .def file (1st line | |
9299 | # is EXPORTS), use it as is; otherwise, prepend... | |
9300 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9301 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9302 | else |
ce2cded5 L |
9303 | echo EXPORTS > $output_objdir/$soname.def; |
9304 | cat $export_symbols >> $output_objdir/$soname.def; | |
9305 | fi~ | |
9306 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9307 | else | |
9308 | ld_shlibs=no | |
9309 | fi | |
9310 | ;; | |
d7040cdb | 9311 | |
ce2cded5 L |
9312 | interix[3-9]*) |
9313 | hardcode_direct=no | |
9314 | hardcode_shlibpath_var=no | |
9315 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9316 | export_dynamic_flag_spec='${wl}-E' | |
9317 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9318 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9319 | # default) and relocated if they conflict, which is a slow very memory | |
9320 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9321 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9322 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9323 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9324 | 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' | |
9325 | ;; | |
d7040cdb | 9326 | |
58e24671 | 9327 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9328 | tmp_diet=no |
9329 | if test "$host_os" = linux-dietlibc; then | |
9330 | case $cc_basename in | |
9331 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9332 | esac | |
9333 | fi | |
9334 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9335 | && test "$tmp_diet" = no | |
9336 | then | |
9337 | tmp_addflag= | |
b214d478 | 9338 | tmp_sharedflag='-shared' |
ce2cded5 L |
9339 | case $cc_basename,$host_cpu in |
9340 | pgcc*) # Portland Group C compiler | |
9341 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
9342 | tmp_addflag=' $pic_flag' | |
9343 | ;; | |
9344 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
9345 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
9346 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9347 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9348 | tmp_addflag=' -i_dynamic' ;; | |
9349 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9350 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9351 | ifc* | ifort*) # Intel Fortran compiler | |
9352 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
9353 | lf95*) # Lahey Fortran 8.1 |
9354 | whole_archive_flag_spec= | |
9355 | tmp_sharedflag='--shared' ;; | |
9356 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9357 | tmp_sharedflag='-qmkshrobj' | |
9358 | tmp_addflag= ;; | |
ce2cded5 L |
9359 | esac |
9360 | case `$CC -V 2>&1 | sed 5q` in | |
9361 | *Sun\ C*) # Sun C 5.9 | |
9362 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
9363 | compiler_needs_object=yes | |
9364 | tmp_sharedflag='-G' ;; | |
9365 | *Sun\ F*) # Sun Fortran 8.3 | |
9366 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9367 | esac |
9368 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9369 | |
ce2cded5 L |
9370 | if test "x$supports_anon_versioning" = xyes; then |
9371 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9372 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9373 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9374 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9375 | fi | |
b214d478 SE |
9376 | |
9377 | case $cc_basename in | |
9378 | xlf*) | |
9379 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9380 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9381 | hardcode_libdir_flag_spec= | |
9382 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9383 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9384 | if test "x$supports_anon_versioning" = xyes; then | |
9385 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9386 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9387 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9388 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9389 | fi | |
9390 | ;; | |
9391 | esac | |
ce2cded5 L |
9392 | else |
9393 | ld_shlibs=no | |
9394 | fi | |
9395 | ;; | |
d7040cdb | 9396 | |
ce2cded5 L |
9397 | netbsd*) |
9398 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9399 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9400 | wlarc= | |
9401 | else | |
9402 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9403 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9404 | fi | |
9405 | ;; | |
9406 | ||
9407 | solaris*) | |
9408 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9409 | ld_shlibs=no | |
9410 | cat <<_LT_EOF 1>&2 | |
9411 | ||
9412 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9413 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9414 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9415 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9416 | *** your PATH or compiler configuration so that the native linker is | |
9417 | *** used, and then restart. | |
9418 | ||
9419 | _LT_EOF | |
9420 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9421 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9422 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9423 | else | |
9424 | ld_shlibs=no | |
9425 | fi | |
9426 | ;; | |
9427 | ||
9428 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9429 | case `$LD -v 2>&1` in | |
9430 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9431 | ld_shlibs=no | |
9432 | cat <<_LT_EOF 1>&2 | |
9433 | ||
9434 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9435 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9436 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9437 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9438 | *** your PATH or compiler configuration so that the native linker is | |
9439 | *** used, and then restart. | |
9440 | ||
9441 | _LT_EOF | |
9442 | ;; | |
9443 | *) | |
9444 | # For security reasons, it is highly recommended that you always | |
9445 | # use absolute paths for naming shared libraries, and exclude the | |
9446 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9447 | # requires that you compile everything twice, which is a pain. | |
9448 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9449 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9450 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9451 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9452 | else | |
9453 | ld_shlibs=no | |
9454 | fi | |
9455 | ;; | |
9456 | esac | |
9457 | ;; | |
9458 | ||
9459 | sunos4*) | |
9460 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9461 | wlarc= | |
9462 | hardcode_direct=yes | |
9463 | hardcode_shlibpath_var=no | |
9464 | ;; | |
9465 | ||
9466 | *) | |
9467 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9468 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9469 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9470 | else | |
9471 | ld_shlibs=no | |
9472 | fi | |
9473 | ;; | |
9474 | esac | |
9475 | ||
9476 | if test "$ld_shlibs" = no; then | |
9477 | runpath_var= | |
9478 | hardcode_libdir_flag_spec= | |
9479 | export_dynamic_flag_spec= | |
9480 | whole_archive_flag_spec= | |
9481 | fi | |
9482 | else | |
9483 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9484 | case $host_os in | |
9485 | aix3*) | |
9486 | allow_undefined_flag=unsupported | |
9487 | always_export_symbols=yes | |
9488 | 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' | |
9489 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9490 | # are no directories specified by -L. | |
9491 | hardcode_minus_L=yes | |
9492 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9493 | # Neither direct hardcoding nor static linking is supported with a | |
9494 | # broken collect2. | |
9495 | hardcode_direct=unsupported | |
9496 | fi | |
9497 | ;; | |
9498 | ||
50e7d84b | 9499 | aix[4-9]*) |
ce2cded5 L |
9500 | if test "$host_cpu" = ia64; then |
9501 | # On IA64, the linker does run time linking by default, so we don't | |
9502 | # have to do anything special. | |
9503 | aix_use_runtimelinking=no | |
9504 | exp_sym_flag='-Bexport' | |
9505 | no_entry_flag="" | |
9506 | else | |
9507 | # If we're using GNU nm, then we don't want the "-C" option. | |
9508 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9509 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9510 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9511 | else | |
9512 | 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' | |
9513 | fi | |
9514 | aix_use_runtimelinking=no | |
9515 | ||
9516 | # Test if we are trying to use run time linking or normal | |
9517 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9518 | # need to do runtime linking. | |
50e7d84b | 9519 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9520 | for ld_flag in $LDFLAGS; do |
9521 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9522 | aix_use_runtimelinking=yes | |
9523 | break | |
9524 | fi | |
9525 | done | |
9526 | ;; | |
9527 | esac | |
9528 | ||
9529 | exp_sym_flag='-bexport' | |
9530 | no_entry_flag='-bnoentry' | |
9531 | fi | |
9532 | ||
9533 | # When large executables or shared objects are built, AIX ld can | |
9534 | # have problems creating the table of contents. If linking a library | |
9535 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9536 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9537 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9538 | ||
9539 | archive_cmds='' | |
9540 | hardcode_direct=yes | |
9541 | hardcode_direct_absolute=yes | |
9542 | hardcode_libdir_separator=':' | |
9543 | link_all_deplibs=yes | |
9544 | file_list_spec='${wl}-f,' | |
9545 | ||
9546 | if test "$GCC" = yes; then | |
9547 | case $host_os in aix4.[012]|aix4.[012].*) | |
9548 | # We only want to do this on AIX 4.2 and lower, the check | |
9549 | # below for broken collect2 doesn't work under 4.3+ | |
9550 | collect2name=`${CC} -print-prog-name=collect2` | |
9551 | if test -f "$collect2name" && | |
9552 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9553 | then | |
9554 | # We have reworked collect2 | |
9555 | : | |
9556 | else | |
9557 | # We have old collect2 | |
9558 | hardcode_direct=unsupported | |
9559 | # It fails to find uninstalled libraries when the uninstalled | |
9560 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9561 | # to unsupported forces relinking | |
9562 | hardcode_minus_L=yes | |
9563 | hardcode_libdir_flag_spec='-L$libdir' | |
9564 | hardcode_libdir_separator= | |
9565 | fi | |
9566 | ;; | |
9567 | esac | |
9568 | shared_flag='-shared' | |
9569 | if test "$aix_use_runtimelinking" = yes; then | |
9570 | shared_flag="$shared_flag "'${wl}-G' | |
9571 | fi | |
9572 | else | |
9573 | # not using gcc | |
9574 | if test "$host_cpu" = ia64; then | |
9575 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9576 | # chokes on -Wl,-G. The following line is correct: | |
9577 | shared_flag='-G' | |
9578 | else | |
9579 | if test "$aix_use_runtimelinking" = yes; then | |
9580 | shared_flag='${wl}-G' | |
9581 | else | |
9582 | shared_flag='${wl}-bM:SRE' | |
9583 | fi | |
9584 | fi | |
9585 | fi | |
9586 | ||
b214d478 | 9587 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9588 | # It seems that -bexpall does not export symbols beginning with |
9589 | # underscore (_), so it is better to generate a list of symbols to export. | |
9590 | always_export_symbols=yes | |
9591 | if test "$aix_use_runtimelinking" = yes; then | |
9592 | # Warning - without using the other runtime loading flags (-brtl), | |
9593 | # -berok will link without error, but may produce a broken library. | |
9594 | allow_undefined_flag='-berok' | |
9595 | # Determine the default libpath from the value encoded in an | |
9596 | # empty executable. | |
81ecdfbb | 9597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
9598 | /* end confdefs.h. */ |
9599 | ||
9600 | int | |
9601 | main () | |
9602 | { | |
9603 | ||
9604 | ; | |
9605 | return 0; | |
9606 | } | |
9607 | _ACEOF | |
81ecdfbb | 9608 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9609 | |
ce2cded5 L |
9610 | lt_aix_libpath_sed=' |
9611 | /Import File Strings/,/^$/ { | |
9612 | /^0/ { | |
9613 | s/^0 *\(.*\)$/\1/ | |
9614 | p | |
9615 | } | |
9616 | }' | |
9617 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9618 | # Check for a 64-bit object if we didn't find anything. | |
9619 | if test -z "$aix_libpath"; then | |
9620 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9621 | fi | |
d7040cdb | 9622 | fi |
81ecdfbb RW |
9623 | rm -f core conftest.err conftest.$ac_objext \ |
9624 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9625 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9626 | |
ce2cded5 L |
9627 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9628 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9629 | else | |
9630 | if test "$host_cpu" = ia64; then | |
9631 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9632 | allow_undefined_flag="-z nodefs" | |
9633 | 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" | |
9634 | else | |
9635 | # Determine the default libpath from the value encoded in an | |
9636 | # empty executable. | |
81ecdfbb | 9637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9638 | /* end confdefs.h. */ |
d7040cdb | 9639 | |
ce2cded5 L |
9640 | int |
9641 | main () | |
9642 | { | |
d7040cdb | 9643 | |
ce2cded5 L |
9644 | ; |
9645 | return 0; | |
9646 | } | |
9647 | _ACEOF | |
81ecdfbb | 9648 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9649 | |
ce2cded5 L |
9650 | lt_aix_libpath_sed=' |
9651 | /Import File Strings/,/^$/ { | |
9652 | /^0/ { | |
9653 | s/^0 *\(.*\)$/\1/ | |
9654 | p | |
9655 | } | |
9656 | }' | |
9657 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9658 | # Check for a 64-bit object if we didn't find anything. | |
9659 | if test -z "$aix_libpath"; then | |
9660 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9661 | fi | |
ce2cded5 | 9662 | fi |
81ecdfbb RW |
9663 | rm -f core conftest.err conftest.$ac_objext \ |
9664 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9665 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9666 | |
ce2cded5 L |
9667 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9668 | # Warning - without using the other run time loading flags, | |
9669 | # -berok will link without error, but may produce a broken library. | |
9670 | no_undefined_flag=' ${wl}-bernotok' | |
9671 | allow_undefined_flag=' ${wl}-berok' | |
9672 | # Exported symbols can be pulled into shared objects from archives | |
9673 | whole_archive_flag_spec='$convenience' | |
9674 | archive_cmds_need_lc=yes | |
9675 | # This is similar to how AIX traditionally builds its shared libraries. | |
9676 | 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' | |
9677 | fi | |
9678 | fi | |
9679 | ;; | |
d7040cdb | 9680 | |
ce2cded5 | 9681 | amigaos*) |
b214d478 SE |
9682 | case $host_cpu in |
9683 | powerpc) | |
9684 | # see comment about AmigaOS4 .so support | |
9685 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9686 | archive_expsym_cmds='' | |
9687 | ;; | |
9688 | m68k) | |
9689 | 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)' | |
9690 | hardcode_libdir_flag_spec='-L$libdir' | |
9691 | hardcode_minus_L=yes | |
9692 | ;; | |
9693 | esac | |
ce2cded5 L |
9694 | ;; |
9695 | ||
9696 | bsdi[45]*) | |
9697 | export_dynamic_flag_spec=-rdynamic | |
9698 | ;; | |
9699 | ||
b214d478 | 9700 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9701 | # When not using gcc, we currently assume that we are using |
9702 | # Microsoft Visual C++. | |
9703 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9704 | # no search path for DLLs. | |
9705 | hardcode_libdir_flag_spec=' ' | |
9706 | allow_undefined_flag=unsupported | |
9707 | # Tell ltmain to make .lib files, not .a files. | |
9708 | libext=lib | |
9709 | # Tell ltmain to make .dll files, not .so files. | |
9710 | shrext_cmds=".dll" | |
9711 | # FIXME: Setting linknames here is a bad hack. | |
9712 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9713 | # The linker will automatically build a .lib file if we build a DLL. | |
9714 | old_archive_from_new_cmds='true' | |
9715 | # FIXME: Should let the user specify the lib program. | |
9716 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9717 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9718 | enable_shared_with_static_runtimes=yes | |
9719 | ;; | |
9720 | ||
9721 | darwin* | rhapsody*) | |
d7040cdb | 9722 | |
b214d478 SE |
9723 | |
9724 | archive_cmds_need_lc=no | |
9725 | hardcode_direct=no | |
9726 | hardcode_automatic=yes | |
9727 | hardcode_shlibpath_var=unsupported | |
9728 | whole_archive_flag_spec='' | |
9729 | link_all_deplibs=yes | |
9730 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9731 | case $cc_basename in | |
9732 | ifort*) _lt_dar_can_shared=yes ;; | |
9733 | *) _lt_dar_can_shared=$GCC ;; | |
9734 | esac | |
9735 | if test "$_lt_dar_can_shared" = "yes"; then | |
9736 | output_verbose_link_cmd=echo | |
9737 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9738 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9739 | 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}" | |
9740 | 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}" | |
9741 | ||
9742 | else | |
9743 | ld_shlibs=no | |
9744 | fi | |
9745 | ||
ce2cded5 | 9746 | ;; |
d7040cdb | 9747 | |
ce2cded5 L |
9748 | dgux*) |
9749 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9750 | hardcode_libdir_flag_spec='-L$libdir' | |
9751 | hardcode_shlibpath_var=no | |
9752 | ;; | |
d7040cdb | 9753 | |
ce2cded5 L |
9754 | freebsd1*) |
9755 | ld_shlibs=no | |
9756 | ;; | |
d7040cdb | 9757 | |
ce2cded5 L |
9758 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9759 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9760 | # does not break anything, and helps significantly (at the cost of a little | |
9761 | # extra space). | |
9762 | freebsd2.2*) | |
9763 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9764 | hardcode_libdir_flag_spec='-R$libdir' | |
9765 | hardcode_direct=yes | |
9766 | hardcode_shlibpath_var=no | |
d7040cdb | 9767 | ;; |
d7040cdb | 9768 | |
ce2cded5 L |
9769 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9770 | freebsd2*) | |
9771 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9772 | hardcode_direct=yes | |
9773 | hardcode_minus_L=yes | |
9774 | hardcode_shlibpath_var=no | |
9775 | ;; | |
d7040cdb | 9776 | |
ce2cded5 L |
9777 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9778 | freebsd* | dragonfly*) | |
9779 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9780 | hardcode_libdir_flag_spec='-R$libdir' | |
9781 | hardcode_direct=yes | |
9782 | hardcode_shlibpath_var=no | |
9783 | ;; | |
d7040cdb | 9784 | |
ce2cded5 L |
9785 | hpux9*) |
9786 | if test "$GCC" = yes; then | |
9787 | 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' | |
9788 | else | |
9789 | 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' | |
9790 | fi | |
9791 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9792 | hardcode_libdir_separator=: | |
9793 | hardcode_direct=yes | |
d7040cdb | 9794 | |
ce2cded5 L |
9795 | # hardcode_minus_L: Not really in the search PATH, |
9796 | # but as the default location of the library. | |
9797 | hardcode_minus_L=yes | |
9798 | export_dynamic_flag_spec='${wl}-E' | |
9799 | ;; | |
d7040cdb | 9800 | |
ce2cded5 L |
9801 | hpux10*) |
9802 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9803 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9804 | else | |
9805 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9806 | fi | |
9807 | if test "$with_gnu_ld" = no; then | |
9808 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9809 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9810 | hardcode_libdir_separator=: | |
9811 | hardcode_direct=yes | |
9812 | hardcode_direct_absolute=yes | |
9813 | export_dynamic_flag_spec='${wl}-E' | |
9814 | # hardcode_minus_L: Not really in the search PATH, | |
9815 | # but as the default location of the library. | |
9816 | hardcode_minus_L=yes | |
9817 | fi | |
9818 | ;; | |
d7040cdb | 9819 | |
ce2cded5 L |
9820 | hpux11*) |
9821 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9822 | case $host_cpu in | |
9823 | hppa*64*) | |
9824 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9825 | ;; | |
9826 | ia64*) | |
b214d478 | 9827 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9828 | ;; |
9829 | *) | |
9830 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9831 | ;; | |
9832 | esac | |
9833 | else | |
9834 | case $host_cpu in | |
9835 | hppa*64*) | |
9836 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9837 | ;; | |
9838 | ia64*) | |
9839 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9840 | ;; | |
9841 | *) | |
9842 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9843 | ;; | |
9844 | esac | |
9845 | fi | |
9846 | if test "$with_gnu_ld" = no; then | |
9847 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9848 | hardcode_libdir_separator=: | |
d7040cdb | 9849 | |
ce2cded5 L |
9850 | case $host_cpu in |
9851 | hppa*64*|ia64*) | |
9852 | hardcode_direct=no | |
9853 | hardcode_shlibpath_var=no | |
9854 | ;; | |
9855 | *) | |
9856 | hardcode_direct=yes | |
9857 | hardcode_direct_absolute=yes | |
9858 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9859 | |
ce2cded5 L |
9860 | # hardcode_minus_L: Not really in the search PATH, |
9861 | # but as the default location of the library. | |
9862 | hardcode_minus_L=yes | |
9863 | ;; | |
9864 | esac | |
9865 | fi | |
9866 | ;; | |
d7040cdb | 9867 | |
ce2cded5 L |
9868 | irix5* | irix6* | nonstopux*) |
9869 | if test "$GCC" = yes; then | |
9870 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9871 | # Try to use the -exported_symbol ld option, if it does not | |
9872 | # work, assume that -exports_file does not work either and | |
9873 | # implicitly export all symbols. | |
9874 | save_LDFLAGS="$LDFLAGS" | |
9875 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9877 | /* end confdefs.h. */ | |
ce2cded5 L |
9878 | int foo(void) {} |
9879 | _ACEOF | |
81ecdfbb | 9880 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 9881 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9882 | |
ce2cded5 | 9883 | fi |
81ecdfbb RW |
9884 | rm -f core conftest.err conftest.$ac_objext \ |
9885 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
9886 | LDFLAGS="$save_LDFLAGS" |
9887 | else | |
9888 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9889 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9890 | fi | |
9891 | archive_cmds_need_lc='no' | |
9892 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9893 | hardcode_libdir_separator=: | |
9894 | inherit_rpath=yes | |
9895 | link_all_deplibs=yes | |
9896 | ;; | |
d7040cdb | 9897 | |
ce2cded5 L |
9898 | netbsd*) |
9899 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9900 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9901 | else | |
9902 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9903 | fi | |
9904 | hardcode_libdir_flag_spec='-R$libdir' | |
9905 | hardcode_direct=yes | |
9906 | hardcode_shlibpath_var=no | |
9907 | ;; | |
d7040cdb | 9908 | |
ce2cded5 L |
9909 | newsos6) |
9910 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9911 | hardcode_direct=yes | |
9912 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9913 | hardcode_libdir_separator=: | |
9914 | hardcode_shlibpath_var=no | |
9915 | ;; | |
d7040cdb | 9916 | |
ce2cded5 L |
9917 | *nto* | *qnx*) |
9918 | ;; | |
d7040cdb | 9919 | |
ce2cded5 | 9920 | openbsd*) |
b214d478 SE |
9921 | if test -f /usr/libexec/ld.so; then |
9922 | hardcode_direct=yes | |
9923 | hardcode_shlibpath_var=no | |
9924 | hardcode_direct_absolute=yes | |
9925 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9926 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 9927 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9928 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
9929 | export_dynamic_flag_spec='${wl}-E' |
9930 | else | |
9931 | case $host_os in | |
9932 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9933 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9934 | hardcode_libdir_flag_spec='-R$libdir' | |
9935 | ;; | |
9936 | *) | |
9937 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9938 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9939 | ;; | |
9940 | esac | |
9941 | fi | |
9942 | else | |
9943 | ld_shlibs=no | |
ce2cded5 L |
9944 | fi |
9945 | ;; | |
d7040cdb | 9946 | |
ce2cded5 L |
9947 | os2*) |
9948 | hardcode_libdir_flag_spec='-L$libdir' | |
9949 | hardcode_minus_L=yes | |
9950 | allow_undefined_flag=unsupported | |
9951 | 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' | |
9952 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9953 | ;; | |
d7040cdb | 9954 | |
ce2cded5 L |
9955 | osf3*) |
9956 | if test "$GCC" = yes; then | |
9957 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9958 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9959 | else | |
9960 | allow_undefined_flag=' -expect_unresolved \*' | |
9961 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9962 | fi | |
9963 | archive_cmds_need_lc='no' | |
9964 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9965 | hardcode_libdir_separator=: | |
9966 | ;; | |
d7040cdb | 9967 | |
ce2cded5 L |
9968 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9969 | if test "$GCC" = yes; then | |
9970 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9971 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9972 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9973 | else | |
9974 | allow_undefined_flag=' -expect_unresolved \*' | |
9975 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9976 | 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~ | |
9977 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d7040cdb | 9978 | |
ce2cded5 L |
9979 | # Both c and cxx compiler support -rpath directly |
9980 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9981 | fi | |
9982 | archive_cmds_need_lc='no' | |
9983 | hardcode_libdir_separator=: | |
9984 | ;; | |
d7040cdb | 9985 | |
ce2cded5 L |
9986 | solaris*) |
9987 | no_undefined_flag=' -z defs' | |
9988 | if test "$GCC" = yes; then | |
9989 | wlarc='${wl}' | |
9990 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9991 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9992 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9993 | else | |
9994 | case `$CC -V 2>&1` in | |
9995 | *"Compilers 5.0"*) | |
9996 | wlarc='' | |
9997 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9998 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9999 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10000 | ;; | |
10001 | *) | |
10002 | wlarc='${wl}' | |
10003 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10004 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10005 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10006 | ;; | |
10007 | esac | |
10008 | fi | |
10009 | hardcode_libdir_flag_spec='-R$libdir' | |
10010 | hardcode_shlibpath_var=no | |
10011 | case $host_os in | |
10012 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10013 | *) | |
10014 | # The compiler driver will combine and reorder linker options, | |
10015 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10016 | # but is careful enough not to reorder. | |
10017 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10018 | if test "$GCC" = yes; then | |
10019 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10020 | else | |
10021 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10022 | fi | |
10023 | ;; | |
10024 | esac | |
10025 | link_all_deplibs=yes | |
10026 | ;; | |
d7040cdb | 10027 | |
ce2cded5 L |
10028 | sunos4*) |
10029 | if test "x$host_vendor" = xsequent; then | |
10030 | # Use $CC to link under sequent, because it throws in some extra .o | |
10031 | # files that make .init and .fini sections work. | |
10032 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10033 | else | |
10034 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10035 | fi | |
10036 | hardcode_libdir_flag_spec='-L$libdir' | |
10037 | hardcode_direct=yes | |
10038 | hardcode_minus_L=yes | |
10039 | hardcode_shlibpath_var=no | |
10040 | ;; | |
d7040cdb | 10041 | |
ce2cded5 L |
10042 | sysv4) |
10043 | case $host_vendor in | |
10044 | sni) | |
10045 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10046 | hardcode_direct=yes # is this really true??? | |
10047 | ;; | |
10048 | siemens) | |
10049 | ## LD is ld it makes a PLAMLIB | |
10050 | ## CC just makes a GrossModule. | |
10051 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10052 | reload_cmds='$CC -r -o $output$reload_objs' | |
10053 | hardcode_direct=no | |
10054 | ;; | |
10055 | motorola) | |
10056 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10057 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10058 | ;; | |
10059 | esac | |
10060 | runpath_var='LD_RUN_PATH' | |
10061 | hardcode_shlibpath_var=no | |
10062 | ;; | |
d7040cdb | 10063 | |
ce2cded5 L |
10064 | sysv4.3*) |
10065 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10066 | hardcode_shlibpath_var=no | |
10067 | export_dynamic_flag_spec='-Bexport' | |
10068 | ;; | |
d7040cdb | 10069 | |
ce2cded5 L |
10070 | sysv4*MP*) |
10071 | if test -d /usr/nec; then | |
10072 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10073 | hardcode_shlibpath_var=no | |
10074 | runpath_var=LD_RUN_PATH | |
10075 | hardcode_runpath_var=yes | |
10076 | ld_shlibs=yes | |
10077 | fi | |
10078 | ;; | |
d7040cdb | 10079 | |
ce2cded5 L |
10080 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10081 | no_undefined_flag='${wl}-z,text' | |
10082 | archive_cmds_need_lc=no | |
10083 | hardcode_shlibpath_var=no | |
10084 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10085 | |
ce2cded5 L |
10086 | if test "$GCC" = yes; then |
10087 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10088 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10089 | else | |
10090 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10091 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10092 | fi | |
10093 | ;; | |
d7040cdb | 10094 | |
ce2cded5 L |
10095 | sysv5* | sco3.2v5* | sco5v6*) |
10096 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10097 | # link with -lc, and that would cause any symbols used from libc to | |
10098 | # always be unresolved, which means just about no library would | |
10099 | # ever link correctly. If we're not using GNU ld we use -z text | |
10100 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10101 | # as -z defs. | |
10102 | no_undefined_flag='${wl}-z,text' | |
10103 | allow_undefined_flag='${wl}-z,nodefs' | |
10104 | archive_cmds_need_lc=no | |
10105 | hardcode_shlibpath_var=no | |
10106 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10107 | hardcode_libdir_separator=':' | |
10108 | link_all_deplibs=yes | |
10109 | export_dynamic_flag_spec='${wl}-Bexport' | |
10110 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10111 | |
ce2cded5 L |
10112 | if test "$GCC" = yes; then |
10113 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10114 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10115 | else | |
10116 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10117 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10118 | fi | |
10119 | ;; | |
d7040cdb | 10120 | |
ce2cded5 L |
10121 | uts4*) |
10122 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10123 | hardcode_libdir_flag_spec='-L$libdir' | |
10124 | hardcode_shlibpath_var=no | |
10125 | ;; | |
d7040cdb | 10126 | |
ce2cded5 L |
10127 | *) |
10128 | ld_shlibs=no | |
10129 | ;; | |
10130 | esac | |
d7040cdb | 10131 | |
ce2cded5 L |
10132 | if test x$host_vendor = xsni; then |
10133 | case $host in | |
10134 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10135 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10136 | ;; | |
10137 | esac | |
10138 | fi | |
10139 | fi | |
d7040cdb | 10140 | |
81ecdfbb RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10142 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10143 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10144 | |
ce2cded5 | 10145 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10146 | |
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
ce2cded5 L |
10161 | # |
10162 | # Do we need to explicitly link libc? | |
10163 | # | |
10164 | case "x$archive_cmds_need_lc" in | |
10165 | x|xyes) | |
10166 | # Assume -lc should be added | |
10167 | archive_cmds_need_lc=yes | |
d7040cdb | 10168 | |
ce2cded5 L |
10169 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10170 | case $archive_cmds in | |
10171 | *'~'*) | |
10172 | # FIXME: we may have to deal with multi-command sequences. | |
10173 | ;; | |
10174 | '$CC '*) | |
10175 | # Test whether the compiler implicitly links with -lc since on some | |
10176 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10177 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10179 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10180 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10181 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10182 | else |
10183 | $RM conftest* | |
10184 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10185 | |
81ecdfbb | 10186 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10187 | (eval $ac_compile) 2>&5 |
10188 | ac_status=$? | |
81ecdfbb RW |
10189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10190 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10191 | soname=conftest |
10192 | lib=conftest | |
10193 | libobjs=conftest.$ac_objext | |
10194 | deplibs= | |
10195 | wl=$lt_prog_compiler_wl | |
10196 | pic_flag=$lt_prog_compiler_pic | |
10197 | compiler_flags=-v | |
10198 | linker_flags=-v | |
10199 | verstring= | |
10200 | output_objdir=. | |
10201 | libname=conftest | |
10202 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10203 | allow_undefined_flag= | |
81ecdfbb | 10204 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10205 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10206 | ac_status=$? | |
81ecdfbb RW |
10207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10208 | test $ac_status = 0; } | |
39144654 RW |
10209 | then |
10210 | lt_cv_archive_cmds_need_lc=no | |
10211 | else | |
10212 | lt_cv_archive_cmds_need_lc=yes | |
10213 | fi | |
10214 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10215 | else | |
10216 | cat conftest.err 1>&5 | |
10217 | fi | |
10218 | $RM conftest* | |
10219 | ||
10220 | fi | |
81ecdfbb RW |
10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10222 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10223 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10224 | ;; |
10225 | esac | |
10226 | fi | |
10227 | ;; | |
10228 | esac | |
d7040cdb SE |
10229 | |
10230 | ||
10231 | ||
10232 | ||
10233 | ||
10234 | ||
10235 | ||
10236 | ||
10237 | ||
10238 | ||
10239 | ||
10240 | ||
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
d7040cdb | 10256 | |
d7040cdb | 10257 | |
d7040cdb SE |
10258 | |
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
d7040cdb | 10264 | |
d7040cdb | 10265 | |
d7040cdb | 10266 | |
d7040cdb | 10267 | |
d7040cdb | 10268 | |
d7040cdb | 10269 | |
d7040cdb | 10270 | |
d7040cdb | 10271 | |
d7040cdb | 10272 | |
d7040cdb | 10273 | |
d7040cdb | 10274 | |
d7040cdb | 10275 | |
d7040cdb | 10276 | |
d7040cdb | 10277 | |
d7040cdb | 10278 | |
d7040cdb | 10279 | |
d7040cdb | 10280 | |
d7040cdb | 10281 | |
d7040cdb | 10282 | |
d7040cdb | 10283 | |
d7040cdb | 10284 | |
d7040cdb | 10285 | |
d7040cdb | 10286 | |
d7040cdb | 10287 | |
d7040cdb | 10288 | |
d7040cdb | 10289 | |
d7040cdb | 10290 | |
d7040cdb | 10291 | |
ce2cded5 L |
10292 | |
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
81ecdfbb RW |
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10387 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
10388 | |
10389 | if test "$GCC" = yes; then | |
ce2cded5 L |
10390 | case $host_os in |
10391 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10392 | *) lt_awk_arg="/^libraries:/" ;; | |
10393 | esac | |
10394 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10395 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10396 | # if the path contains ";" then we assume it to be the separator | |
10397 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10398 | # assumed that no part of a normal pathname contains ";" but that should | |
10399 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10400 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10401 | else | |
10402 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10403 | fi | |
10404 | # Ok, now we have the path, separated by spaces, we can step through it | |
10405 | # and add multilib dir if necessary. | |
10406 | lt_tmp_lt_search_path_spec= | |
10407 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10408 | for lt_sys_path in $lt_search_path_spec; do | |
10409 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10410 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10411 | else | |
10412 | test -d "$lt_sys_path" && \ | |
10413 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10414 | fi | |
10415 | done | |
10416 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10417 | BEGIN {RS=" "; FS="/|\n";} { | |
10418 | lt_foo=""; | |
10419 | lt_count=0; | |
10420 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10421 | if ($lt_i != "" && $lt_i != ".") { | |
10422 | if ($lt_i == "..") { | |
10423 | lt_count++; | |
10424 | } else { | |
10425 | if (lt_count == 0) { | |
10426 | lt_foo="/" $lt_i lt_foo; | |
10427 | } else { | |
10428 | lt_count--; | |
10429 | } | |
10430 | } | |
10431 | } | |
10432 | } | |
10433 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10434 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10435 | }'` | |
10436 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 10437 | else |
ce2cded5 L |
10438 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10439 | fi | |
10440 | library_names_spec= | |
10441 | libname_spec='lib$name' | |
10442 | soname_spec= | |
10443 | shrext_cmds=".so" | |
10444 | postinstall_cmds= | |
10445 | postuninstall_cmds= | |
10446 | finish_cmds= | |
10447 | finish_eval= | |
10448 | shlibpath_var= | |
10449 | shlibpath_overrides_runpath=unknown | |
10450 | version_type=none | |
10451 | dynamic_linker="$host_os ld.so" | |
10452 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10453 | need_lib_prefix=unknown | |
10454 | hardcode_into_libs=no | |
10455 | ||
10456 | # when you set need_version to no, make sure it does not cause -set_version | |
10457 | # flags to be left without arguments | |
10458 | need_version=unknown | |
10459 | ||
10460 | case $host_os in | |
10461 | aix3*) | |
10462 | version_type=linux | |
10463 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10464 | shlibpath_var=LIBPATH | |
10465 | ||
10466 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10467 | soname_spec='${libname}${release}${shared_ext}$major' | |
10468 | ;; | |
10469 | ||
50e7d84b | 10470 | aix[4-9]*) |
ce2cded5 L |
10471 | version_type=linux |
10472 | need_lib_prefix=no | |
10473 | need_version=no | |
10474 | hardcode_into_libs=yes | |
10475 | if test "$host_cpu" = ia64; then | |
10476 | # AIX 5 supports IA64 | |
10477 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10478 | shlibpath_var=LD_LIBRARY_PATH | |
10479 | else | |
10480 | # With GCC up to 2.95.x, collect2 would create an import file | |
10481 | # for dependence libraries. The import file would start with | |
10482 | # the line `#! .'. This would cause the generated library to | |
10483 | # depend on `.', always an invalid library. This was fixed in | |
10484 | # development snapshots of GCC prior to 3.0. | |
10485 | case $host_os in | |
10486 | aix4 | aix4.[01] | aix4.[01].*) | |
10487 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10488 | echo ' yes ' | |
10489 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10490 | : | |
10491 | else | |
10492 | can_build_shared=no | |
10493 | fi | |
10494 | ;; | |
10495 | esac | |
10496 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10497 | # soname into executable. Probably we can add versioning support to | |
10498 | # collect2, so additional links can be useful in future. | |
10499 | if test "$aix_use_runtimelinking" = yes; then | |
10500 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10501 | # instead of lib<name>.a to let people know that these are not | |
10502 | # typical AIX shared libraries. | |
10503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10504 | else | |
10505 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10506 | # and later when we are not doing run time linking. | |
10507 | library_names_spec='${libname}${release}.a $libname.a' | |
10508 | soname_spec='${libname}${release}${shared_ext}$major' | |
10509 | fi | |
10510 | shlibpath_var=LIBPATH | |
10511 | fi | |
10512 | ;; | |
10513 | ||
10514 | amigaos*) | |
b214d478 SE |
10515 | case $host_cpu in |
10516 | powerpc) | |
10517 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10518 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10520 | ;; | |
10521 | m68k) | |
ce2cded5 L |
10522 | library_names_spec='$libname.ixlibrary $libname.a' |
10523 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10524 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
b214d478 SE |
10525 | ;; |
10526 | esac | |
ce2cded5 L |
10527 | ;; |
10528 | ||
10529 | beos*) | |
10530 | library_names_spec='${libname}${shared_ext}' | |
10531 | dynamic_linker="$host_os ld.so" | |
10532 | shlibpath_var=LIBRARY_PATH | |
10533 | ;; | |
10534 | ||
10535 | bsdi[45]*) | |
10536 | version_type=linux | |
10537 | need_version=no | |
10538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10539 | soname_spec='${libname}${release}${shared_ext}$major' | |
10540 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10541 | shlibpath_var=LD_LIBRARY_PATH | |
10542 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10543 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10544 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10545 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10546 | # libtool to hard-code these into programs | |
10547 | ;; | |
10548 | ||
b214d478 | 10549 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10550 | version_type=windows |
10551 | shrext_cmds=".dll" | |
10552 | need_version=no | |
10553 | need_lib_prefix=no | |
10554 | ||
b214d478 SE |
10555 | case $GCC,$host_os in |
10556 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10557 | library_names_spec='$libname.dll.a' |
10558 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10559 | postinstall_cmds='base_file=`basename \${file}`~ | |
10560 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10561 | dldir=$destdir/`dirname \$dlpath`~ | |
10562 | test -d \$dldir || mkdir -p \$dldir~ | |
10563 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10564 | chmod a+x \$dldir/$dlname~ | |
10565 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10566 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10567 | fi' | |
10568 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10569 | dlpath=$dir/\$dldll~ | |
10570 | $RM \$dlpath' | |
10571 | shlibpath_overrides_runpath=yes | |
10572 | ||
10573 | case $host_os in | |
10574 | cygwin*) | |
10575 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10576 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10577 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10578 | ;; | |
b214d478 | 10579 | mingw* | cegcc*) |
ce2cded5 L |
10580 | # MinGW DLLs use traditional 'lib' prefix |
10581 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10582 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10583 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10584 | # It is most probably a Windows format PATH printed by | |
10585 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10586 | # path with ; separators, and with drive letters. We can handle the | |
10587 | # drive letters (cygwin fileutils understands them), so leave them, | |
10588 | # especially as we might pass files found there to a mingw objdump, | |
10589 | # which wouldn't understand a cygwinified path. Ahh. | |
10590 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10591 | else | |
10592 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10593 | fi | |
10594 | ;; | |
10595 | pw32*) | |
10596 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10597 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10598 | ;; | |
10599 | esac | |
10600 | ;; | |
10601 | ||
10602 | *) | |
10603 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10604 | ;; | |
10605 | esac | |
10606 | dynamic_linker='Win32 ld.exe' | |
10607 | # FIXME: first we should search . and the directory the executable is in | |
10608 | shlibpath_var=PATH | |
10609 | ;; | |
10610 | ||
10611 | darwin* | rhapsody*) | |
10612 | dynamic_linker="$host_os dyld" | |
10613 | version_type=darwin | |
10614 | need_lib_prefix=no | |
10615 | need_version=no | |
10616 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10617 | soname_spec='${libname}${release}${major}$shared_ext' | |
10618 | shlibpath_overrides_runpath=yes | |
10619 | shlibpath_var=DYLD_LIBRARY_PATH | |
10620 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10621 | ||
10622 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10623 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10624 | ;; | |
10625 | ||
10626 | dgux*) | |
10627 | version_type=linux | |
10628 | need_lib_prefix=no | |
10629 | need_version=no | |
10630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10631 | soname_spec='${libname}${release}${shared_ext}$major' | |
10632 | shlibpath_var=LD_LIBRARY_PATH | |
10633 | ;; | |
10634 | ||
10635 | freebsd1*) | |
10636 | dynamic_linker=no | |
10637 | ;; | |
10638 | ||
10639 | freebsd* | dragonfly*) | |
10640 | # DragonFly does not have aout. When/if they implement a new | |
10641 | # versioning mechanism, adjust this. | |
10642 | if test -x /usr/bin/objformat; then | |
10643 | objformat=`/usr/bin/objformat` | |
10644 | else | |
10645 | case $host_os in | |
10646 | freebsd[123]*) objformat=aout ;; | |
10647 | *) objformat=elf ;; | |
10648 | esac | |
10649 | fi | |
10650 | version_type=freebsd-$objformat | |
10651 | case $version_type in | |
10652 | freebsd-elf*) | |
10653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10654 | need_version=no | |
10655 | need_lib_prefix=no | |
10656 | ;; | |
10657 | freebsd-*) | |
10658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10659 | need_version=yes | |
10660 | ;; | |
10661 | esac | |
10662 | shlibpath_var=LD_LIBRARY_PATH | |
10663 | case $host_os in | |
10664 | freebsd2*) | |
10665 | shlibpath_overrides_runpath=yes | |
10666 | ;; | |
10667 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10668 | shlibpath_overrides_runpath=yes | |
10669 | hardcode_into_libs=yes | |
10670 | ;; | |
10671 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10672 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10673 | shlibpath_overrides_runpath=no | |
10674 | hardcode_into_libs=yes | |
10675 | ;; | |
10676 | *) # from 4.6 on, and DragonFly | |
10677 | shlibpath_overrides_runpath=yes | |
10678 | hardcode_into_libs=yes | |
10679 | ;; | |
10680 | esac | |
10681 | ;; | |
10682 | ||
10683 | gnu*) | |
10684 | version_type=linux | |
10685 | need_lib_prefix=no | |
10686 | need_version=no | |
10687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10688 | soname_spec='${libname}${release}${shared_ext}$major' | |
10689 | shlibpath_var=LD_LIBRARY_PATH | |
10690 | hardcode_into_libs=yes | |
10691 | ;; | |
10692 | ||
10693 | hpux9* | hpux10* | hpux11*) | |
10694 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10695 | # link against other versions. | |
10696 | version_type=sunos | |
10697 | need_lib_prefix=no | |
10698 | need_version=no | |
10699 | case $host_cpu in | |
10700 | ia64*) | |
10701 | shrext_cmds='.so' | |
10702 | hardcode_into_libs=yes | |
10703 | dynamic_linker="$host_os dld.so" | |
10704 | shlibpath_var=LD_LIBRARY_PATH | |
10705 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10707 | soname_spec='${libname}${release}${shared_ext}$major' | |
10708 | if test "X$HPUX_IA64_MODE" = X32; then | |
10709 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10710 | else | |
10711 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10712 | fi | |
10713 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10714 | ;; | |
10715 | hppa*64*) | |
10716 | shrext_cmds='.sl' | |
10717 | hardcode_into_libs=yes | |
10718 | dynamic_linker="$host_os dld.sl" | |
10719 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10720 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10722 | soname_spec='${libname}${release}${shared_ext}$major' | |
10723 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10724 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10725 | ;; | |
10726 | *) | |
10727 | shrext_cmds='.sl' | |
10728 | dynamic_linker="$host_os dld.sl" | |
10729 | shlibpath_var=SHLIB_PATH | |
10730 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10732 | soname_spec='${libname}${release}${shared_ext}$major' | |
10733 | ;; | |
10734 | esac | |
10735 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10736 | postinstall_cmds='chmod 555 $lib' | |
10737 | ;; | |
10738 | ||
10739 | interix[3-9]*) | |
10740 | version_type=linux | |
10741 | need_lib_prefix=no | |
10742 | need_version=no | |
10743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10744 | soname_spec='${libname}${release}${shared_ext}$major' | |
10745 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10746 | shlibpath_var=LD_LIBRARY_PATH | |
10747 | shlibpath_overrides_runpath=no | |
10748 | hardcode_into_libs=yes | |
10749 | ;; | |
10750 | ||
10751 | irix5* | irix6* | nonstopux*) | |
10752 | case $host_os in | |
10753 | nonstopux*) version_type=nonstopux ;; | |
10754 | *) | |
10755 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10756 | version_type=linux | |
10757 | else | |
10758 | version_type=irix | |
10759 | fi ;; | |
10760 | esac | |
10761 | need_lib_prefix=no | |
10762 | need_version=no | |
10763 | soname_spec='${libname}${release}${shared_ext}$major' | |
10764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10765 | case $host_os in | |
10766 | irix5* | nonstopux*) | |
10767 | libsuff= shlibsuff= | |
10768 | ;; | |
10769 | *) | |
10770 | case $LD in # libtool.m4 will add one of these switches to LD | |
10771 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10772 | libsuff= shlibsuff= libmagic=32-bit;; | |
10773 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10774 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10775 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10776 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10777 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10778 | esac | |
10779 | ;; | |
10780 | esac | |
10781 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10782 | shlibpath_overrides_runpath=no | |
10783 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10784 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10785 | hardcode_into_libs=yes | |
10786 | ;; | |
10787 | ||
10788 | # No shared lib support for Linux oldld, aout, or coff. | |
10789 | linux*oldld* | linux*aout* | linux*coff*) | |
10790 | dynamic_linker=no | |
10791 | ;; | |
10792 | ||
10793 | # This must be Linux ELF. | |
58e24671 | 10794 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10795 | version_type=linux |
10796 | need_lib_prefix=no | |
10797 | need_version=no | |
10798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10799 | soname_spec='${libname}${release}${shared_ext}$major' | |
10800 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10801 | shlibpath_var=LD_LIBRARY_PATH | |
10802 | shlibpath_overrides_runpath=no | |
39144654 | 10803 | |
ce2cded5 | 10804 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10805 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10806 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10807 | else |
10808 | lt_cv_shlibpath_overrides_runpath=no | |
10809 | save_LDFLAGS=$LDFLAGS | |
10810 | save_libdir=$libdir | |
10811 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10812 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10814 | /* end confdefs.h. */ |
10815 | ||
d7040cdb SE |
10816 | int |
10817 | main () | |
10818 | { | |
ce2cded5 | 10819 | |
d7040cdb SE |
10820 | ; |
10821 | return 0; | |
10822 | } | |
10823 | _ACEOF | |
81ecdfbb RW |
10824 | if ac_fn_c_try_link "$LINENO"; then : |
10825 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10826 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 10827 | fi |
d7040cdb | 10828 | fi |
81ecdfbb RW |
10829 | rm -f core conftest.err conftest.$ac_objext \ |
10830 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10831 | LDFLAGS=$save_LDFLAGS |
10832 | libdir=$save_libdir | |
10833 | ||
10834 | fi | |
10835 | ||
10836 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 10837 | |
ce2cded5 L |
10838 | # This implies no fast_install, which is unacceptable. |
10839 | # Some rework will be needed to allow for fast_install | |
10840 | # before this can be enabled. | |
10841 | hardcode_into_libs=yes | |
d7040cdb | 10842 | |
ce2cded5 L |
10843 | # Append ld.so.conf contents to the search path |
10844 | if test -f /etc/ld.so.conf; then | |
b214d478 | 10845 | 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;/^$/d' | tr '\n' ' '` |
ce2cded5 L |
10846 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10847 | fi | |
d7040cdb | 10848 | |
ce2cded5 L |
10849 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10850 | # powerpc, because MkLinux only supported shared libraries with the | |
10851 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10852 | # most powerpc-linux boxes support dynamic linking these days and | |
10853 | # people can always --disable-shared, the test was removed, and we | |
10854 | # assume the GNU/Linux dynamic linker is in use. | |
10855 | dynamic_linker='GNU/Linux ld.so' | |
10856 | ;; | |
d7040cdb | 10857 | |
ce2cded5 L |
10858 | netbsd*) |
10859 | version_type=sunos | |
10860 | need_lib_prefix=no | |
10861 | need_version=no | |
10862 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10864 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10865 | dynamic_linker='NetBSD (a.out) ld.so' | |
10866 | else | |
10867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10868 | soname_spec='${libname}${release}${shared_ext}$major' | |
10869 | dynamic_linker='NetBSD ld.elf_so' | |
10870 | fi | |
10871 | shlibpath_var=LD_LIBRARY_PATH | |
10872 | shlibpath_overrides_runpath=yes | |
10873 | hardcode_into_libs=yes | |
10874 | ;; | |
d7040cdb | 10875 | |
ce2cded5 L |
10876 | newsos6) |
10877 | version_type=linux | |
10878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10879 | shlibpath_var=LD_LIBRARY_PATH | |
10880 | shlibpath_overrides_runpath=yes | |
10881 | ;; | |
d7040cdb | 10882 | |
ce2cded5 L |
10883 | *nto* | *qnx*) |
10884 | version_type=qnx | |
10885 | need_lib_prefix=no | |
10886 | need_version=no | |
10887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10888 | soname_spec='${libname}${release}${shared_ext}$major' | |
10889 | shlibpath_var=LD_LIBRARY_PATH | |
10890 | shlibpath_overrides_runpath=no | |
10891 | hardcode_into_libs=yes | |
10892 | dynamic_linker='ldqnx.so' | |
10893 | ;; | |
d7040cdb | 10894 | |
ce2cded5 L |
10895 | openbsd*) |
10896 | version_type=sunos | |
10897 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10898 | need_lib_prefix=no | |
10899 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10900 | case $host_os in | |
10901 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10902 | *) need_version=no ;; | |
10903 | esac | |
10904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10905 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10906 | shlibpath_var=LD_LIBRARY_PATH | |
10907 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10908 | case $host_os in | |
10909 | openbsd2.[89] | openbsd2.[89].*) | |
10910 | shlibpath_overrides_runpath=no | |
10911 | ;; | |
10912 | *) | |
10913 | shlibpath_overrides_runpath=yes | |
10914 | ;; | |
10915 | esac | |
10916 | else | |
10917 | shlibpath_overrides_runpath=yes | |
10918 | fi | |
10919 | ;; | |
d7040cdb | 10920 | |
ce2cded5 L |
10921 | os2*) |
10922 | libname_spec='$name' | |
10923 | shrext_cmds=".dll" | |
10924 | need_lib_prefix=no | |
10925 | library_names_spec='$libname${shared_ext} $libname.a' | |
10926 | dynamic_linker='OS/2 ld.exe' | |
10927 | shlibpath_var=LIBPATH | |
10928 | ;; | |
d7040cdb | 10929 | |
ce2cded5 L |
10930 | osf3* | osf4* | osf5*) |
10931 | version_type=osf | |
10932 | need_lib_prefix=no | |
10933 | need_version=no | |
10934 | soname_spec='${libname}${release}${shared_ext}$major' | |
10935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10936 | shlibpath_var=LD_LIBRARY_PATH | |
10937 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10938 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10939 | ;; | |
d7040cdb | 10940 | |
ce2cded5 L |
10941 | rdos*) |
10942 | dynamic_linker=no | |
10943 | ;; | |
d7040cdb | 10944 | |
ce2cded5 L |
10945 | solaris*) |
10946 | version_type=linux | |
10947 | need_lib_prefix=no | |
10948 | need_version=no | |
10949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10950 | soname_spec='${libname}${release}${shared_ext}$major' | |
10951 | shlibpath_var=LD_LIBRARY_PATH | |
10952 | shlibpath_overrides_runpath=yes | |
10953 | hardcode_into_libs=yes | |
10954 | # ldd complains unless libraries are executable | |
10955 | postinstall_cmds='chmod +x $lib' | |
10956 | ;; | |
d7040cdb | 10957 | |
ce2cded5 L |
10958 | sunos4*) |
10959 | version_type=sunos | |
10960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10961 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10962 | shlibpath_var=LD_LIBRARY_PATH | |
10963 | shlibpath_overrides_runpath=yes | |
10964 | if test "$with_gnu_ld" = yes; then | |
10965 | need_lib_prefix=no | |
10966 | fi | |
10967 | need_version=yes | |
10968 | ;; | |
d7040cdb | 10969 | |
ce2cded5 L |
10970 | sysv4 | sysv4.3*) |
10971 | version_type=linux | |
10972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10973 | soname_spec='${libname}${release}${shared_ext}$major' | |
10974 | shlibpath_var=LD_LIBRARY_PATH | |
10975 | case $host_vendor in | |
10976 | sni) | |
10977 | shlibpath_overrides_runpath=no | |
10978 | need_lib_prefix=no | |
10979 | runpath_var=LD_RUN_PATH | |
10980 | ;; | |
10981 | siemens) | |
10982 | need_lib_prefix=no | |
10983 | ;; | |
10984 | motorola) | |
10985 | need_lib_prefix=no | |
10986 | need_version=no | |
10987 | shlibpath_overrides_runpath=no | |
10988 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10989 | ;; | |
10990 | esac | |
10991 | ;; | |
d7040cdb | 10992 | |
ce2cded5 L |
10993 | sysv4*MP*) |
10994 | if test -d /usr/nec ;then | |
10995 | version_type=linux | |
10996 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10997 | soname_spec='$libname${shared_ext}.$major' | |
10998 | shlibpath_var=LD_LIBRARY_PATH | |
10999 | fi | |
11000 | ;; | |
d7040cdb | 11001 | |
ce2cded5 L |
11002 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11003 | version_type=freebsd-elf | |
11004 | need_lib_prefix=no | |
11005 | need_version=no | |
11006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11007 | soname_spec='${libname}${release}${shared_ext}$major' | |
11008 | shlibpath_var=LD_LIBRARY_PATH | |
11009 | shlibpath_overrides_runpath=yes | |
11010 | hardcode_into_libs=yes | |
11011 | if test "$with_gnu_ld" = yes; then | |
11012 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11013 | else | |
11014 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11015 | case $host_os in | |
11016 | sco3.2v5*) | |
11017 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11018 | ;; | |
11019 | esac | |
11020 | fi | |
11021 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11022 | ;; | |
d7040cdb | 11023 | |
ce2cded5 L |
11024 | tpf*) |
11025 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11026 | version_type=linux | |
11027 | need_lib_prefix=no | |
11028 | need_version=no | |
b214d478 | 11029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11030 | shlibpath_var=LD_LIBRARY_PATH |
11031 | shlibpath_overrides_runpath=no | |
11032 | hardcode_into_libs=yes | |
11033 | ;; | |
d7040cdb | 11034 | |
ce2cded5 L |
11035 | uts4*) |
11036 | version_type=linux | |
11037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11038 | soname_spec='${libname}${release}${shared_ext}$major' | |
11039 | shlibpath_var=LD_LIBRARY_PATH | |
11040 | ;; | |
d7040cdb | 11041 | |
ce2cded5 L |
11042 | *) |
11043 | dynamic_linker=no | |
11044 | ;; | |
11045 | esac | |
81ecdfbb RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11047 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11048 | test "$dynamic_linker" = no && can_build_shared=no |
11049 | ||
11050 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11051 | if test "$GCC" = yes; then | |
11052 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11053 | fi |
11054 | ||
b214d478 SE |
11055 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11056 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11057 | fi | |
11058 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11059 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11060 | fi | |
11061 | ||
d7040cdb SE |
11062 | |
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
d7040cdb | 11073 | |
d7040cdb | 11074 | |
d7040cdb | 11075 | |
d7040cdb | 11076 | |
d7040cdb SE |
11077 | |
11078 | ||
11079 | ||
11080 | ||
d7040cdb | 11081 | |
d7040cdb SE |
11082 | |
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | ||
d7040cdb SE |
11095 | |
11096 | ||
11097 | ||
11098 | ||
d7040cdb SE |
11099 | |
11100 | ||
11101 | ||
11102 | ||
d7040cdb | 11103 | |
d7040cdb | 11104 | |
d7040cdb | 11105 | |
d7040cdb | 11106 | |
d7040cdb | 11107 | |
d7040cdb | 11108 | |
d7040cdb | 11109 | |
d7040cdb SE |
11110 | |
11111 | ||
11112 | ||
11113 | ||
11114 | ||
d7040cdb | 11115 | |
d7040cdb | 11116 | |
d7040cdb | 11117 | |
d7040cdb | 11118 | |
d7040cdb | 11119 | |
d7040cdb | 11120 | |
d7040cdb SE |
11121 | |
11122 | ||
11123 | ||
11124 | ||
11125 | ||
d7040cdb SE |
11126 | |
11127 | ||
d7040cdb | 11128 | |
d7040cdb | 11129 | |
d7040cdb | 11130 | |
d7040cdb | 11131 | |
ce2cded5 L |
11132 | |
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
81ecdfbb RW |
11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11149 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11150 | hardcode_action= |
11151 | if test -n "$hardcode_libdir_flag_spec" || | |
11152 | test -n "$runpath_var" || | |
11153 | test "X$hardcode_automatic" = "Xyes" ; then | |
11154 | ||
11155 | # We can hardcode non-existent directories. | |
11156 | if test "$hardcode_direct" != no && | |
11157 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11158 | # have to relink, otherwise we might link with an installed library | |
11159 | # when we should be linking with a yet-to-be-installed one | |
11160 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11161 | test "$hardcode_minus_L" != no; then | |
11162 | # Linking always hardcodes the temporary library directory. | |
11163 | hardcode_action=relink | |
11164 | else | |
11165 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11166 | hardcode_action=immediate | |
d7040cdb | 11167 | fi |
d7040cdb | 11168 | else |
ce2cded5 L |
11169 | # We cannot hardcode anything, or else we can only hardcode existing |
11170 | # directories. | |
11171 | hardcode_action=unsupported | |
d7040cdb | 11172 | fi |
81ecdfbb RW |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11174 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11175 | |
ce2cded5 L |
11176 | if test "$hardcode_action" = relink || |
11177 | test "$inherit_rpath" = yes; then | |
11178 | # Fast installation is not supported | |
11179 | enable_fast_install=no | |
11180 | elif test "$shlibpath_overrides_runpath" = yes || | |
11181 | test "$enable_shared" = no; then | |
11182 | # Fast installation is not necessary | |
11183 | enable_fast_install=needless | |
d7040cdb SE |
11184 | fi |
11185 | ||
d7040cdb | 11186 | |
d7040cdb | 11187 | |
d7040cdb | 11188 | |
d7040cdb | 11189 | |
d7040cdb | 11190 | |
ce2cded5 L |
11191 | if test "x$enable_dlopen" != xyes; then |
11192 | enable_dlopen=unknown | |
11193 | enable_dlopen_self=unknown | |
11194 | enable_dlopen_self_static=unknown | |
d7040cdb | 11195 | else |
ce2cded5 L |
11196 | lt_cv_dlopen=no |
11197 | lt_cv_dlopen_libs= | |
d7040cdb | 11198 | |
ce2cded5 L |
11199 | case $host_os in |
11200 | beos*) | |
11201 | lt_cv_dlopen="load_add_on" | |
11202 | lt_cv_dlopen_libs= | |
11203 | lt_cv_dlopen_self=yes | |
11204 | ;; | |
d7040cdb | 11205 | |
b214d478 | 11206 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11207 | lt_cv_dlopen="LoadLibrary" |
11208 | lt_cv_dlopen_libs= | |
11209 | ;; | |
11210 | ||
11211 | cygwin*) | |
11212 | lt_cv_dlopen="dlopen" | |
11213 | lt_cv_dlopen_libs= | |
11214 | ;; | |
11215 | ||
11216 | darwin*) | |
11217 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11219 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11220 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11221 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11222 | else |
ce2cded5 L |
11223 | ac_check_lib_save_LIBS=$LIBS |
11224 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11226 | /* end confdefs.h. */ |
11227 | ||
81ecdfbb RW |
11228 | /* Override any GCC internal prototype to avoid an error. |
11229 | Use char because int might match the return type of a GCC | |
11230 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11231 | #ifdef __cplusplus |
11232 | extern "C" | |
11233 | #endif | |
ce2cded5 L |
11234 | char dlopen (); |
11235 | int | |
11236 | main () | |
11237 | { | |
81ecdfbb | 11238 | return dlopen (); |
ce2cded5 L |
11239 | ; |
11240 | return 0; | |
11241 | } | |
11242 | _ACEOF | |
81ecdfbb | 11243 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11244 | ac_cv_lib_dl_dlopen=yes |
11245 | else | |
81ecdfbb | 11246 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11247 | fi |
81ecdfbb RW |
11248 | rm -f core conftest.err conftest.$ac_objext \ |
11249 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11250 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11251 | fi |
81ecdfbb RW |
11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11253 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11254 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11255 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11256 | else |
d7040cdb | 11257 | |
ce2cded5 L |
11258 | lt_cv_dlopen="dyld" |
11259 | lt_cv_dlopen_libs= | |
11260 | lt_cv_dlopen_self=yes | |
11261 | ||
d7040cdb | 11262 | fi |
ce2cded5 L |
11263 | |
11264 | ;; | |
11265 | ||
11266 | *) | |
81ecdfbb RW |
11267 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11268 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
11269 | lt_cv_dlopen="shl_load" |
11270 | else | |
81ecdfbb RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11272 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11273 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11274 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11275 | else |
11276 | ac_check_lib_save_LIBS=$LIBS | |
11277 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11279 | /* end confdefs.h. */ |
d7040cdb | 11280 | |
81ecdfbb RW |
11281 | /* Override any GCC internal prototype to avoid an error. |
11282 | Use char because int might match the return type of a GCC | |
11283 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11284 | #ifdef __cplusplus |
11285 | extern "C" | |
11286 | #endif | |
ce2cded5 L |
11287 | char shl_load (); |
11288 | int | |
11289 | main () | |
11290 | { | |
81ecdfbb | 11291 | return shl_load (); |
ce2cded5 L |
11292 | ; |
11293 | return 0; | |
11294 | } | |
11295 | _ACEOF | |
81ecdfbb | 11296 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11297 | ac_cv_lib_dld_shl_load=yes |
11298 | else | |
81ecdfbb | 11299 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 11300 | fi |
81ecdfbb RW |
11301 | rm -f core conftest.err conftest.$ac_objext \ |
11302 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11303 | LIBS=$ac_check_lib_save_LIBS |
11304 | fi | |
81ecdfbb RW |
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11306 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11307 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 11308 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11309 | else |
81ecdfbb RW |
11310 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11311 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
11312 | lt_cv_dlopen="dlopen" |
11313 | else | |
81ecdfbb RW |
11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11315 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11316 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11317 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11318 | else |
ce2cded5 L |
11319 | ac_check_lib_save_LIBS=$LIBS |
11320 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11322 | /* end confdefs.h. */ |
11323 | ||
81ecdfbb RW |
11324 | /* Override any GCC internal prototype to avoid an error. |
11325 | Use char because int might match the return type of a GCC | |
11326 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11327 | #ifdef __cplusplus |
11328 | extern "C" | |
11329 | #endif | |
ce2cded5 | 11330 | char dlopen (); |
d7040cdb SE |
11331 | int |
11332 | main () | |
11333 | { | |
81ecdfbb | 11334 | return dlopen (); |
d7040cdb SE |
11335 | ; |
11336 | return 0; | |
11337 | } | |
11338 | _ACEOF | |
81ecdfbb | 11339 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11340 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 11341 | else |
81ecdfbb | 11342 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11343 | fi |
81ecdfbb RW |
11344 | rm -f core conftest.err conftest.$ac_objext \ |
11345 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11346 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11347 | fi |
81ecdfbb RW |
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11349 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11350 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11351 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11352 | else |
81ecdfbb RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11354 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11355 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11356 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11357 | else |
ce2cded5 L |
11358 | ac_check_lib_save_LIBS=$LIBS |
11359 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11361 | /* end confdefs.h. */ |
d7040cdb | 11362 | |
81ecdfbb RW |
11363 | /* Override any GCC internal prototype to avoid an error. |
11364 | Use char because int might match the return type of a GCC | |
11365 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11366 | #ifdef __cplusplus |
11367 | extern "C" | |
11368 | #endif | |
ce2cded5 | 11369 | char dlopen (); |
d7040cdb SE |
11370 | int |
11371 | main () | |
11372 | { | |
81ecdfbb | 11373 | return dlopen (); |
d7040cdb SE |
11374 | ; |
11375 | return 0; | |
11376 | } | |
11377 | _ACEOF | |
81ecdfbb | 11378 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11379 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11380 | else |
81ecdfbb | 11381 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11382 | fi |
81ecdfbb RW |
11383 | rm -f core conftest.err conftest.$ac_objext \ |
11384 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11385 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11386 | fi |
81ecdfbb RW |
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11388 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11389 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
11390 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11391 | else | |
81ecdfbb RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11393 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11394 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11395 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11396 | else |
11397 | ac_check_lib_save_LIBS=$LIBS | |
11398 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11400 | /* end confdefs.h. */ |
11401 | ||
81ecdfbb RW |
11402 | /* Override any GCC internal prototype to avoid an error. |
11403 | Use char because int might match the return type of a GCC | |
11404 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11405 | #ifdef __cplusplus |
11406 | extern "C" | |
11407 | #endif | |
ce2cded5 | 11408 | char dld_link (); |
d7040cdb SE |
11409 | int |
11410 | main () | |
11411 | { | |
81ecdfbb | 11412 | return dld_link (); |
d7040cdb SE |
11413 | ; |
11414 | return 0; | |
11415 | } | |
11416 | _ACEOF | |
81ecdfbb | 11417 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11418 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 11419 | else |
81ecdfbb | 11420 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11421 | fi |
81ecdfbb RW |
11422 | rm -f core conftest.err conftest.$ac_objext \ |
11423 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11424 | LIBS=$ac_check_lib_save_LIBS |
11425 | fi | |
81ecdfbb RW |
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11427 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11428 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 11429 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11430 | fi |
11431 | ||
11432 | ||
11433 | fi | |
11434 | ||
11435 | ||
11436 | fi | |
11437 | ||
11438 | ||
11439 | fi | |
11440 | ||
11441 | ||
11442 | fi | |
11443 | ||
11444 | ||
11445 | fi | |
11446 | ||
11447 | ;; | |
11448 | esac | |
11449 | ||
11450 | if test "x$lt_cv_dlopen" != xno; then | |
11451 | enable_dlopen=yes | |
11452 | else | |
11453 | enable_dlopen=no | |
11454 | fi | |
11455 | ||
11456 | case $lt_cv_dlopen in | |
11457 | dlopen) | |
11458 | save_CPPFLAGS="$CPPFLAGS" | |
11459 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11460 | ||
11461 | save_LDFLAGS="$LDFLAGS" | |
11462 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11463 | ||
11464 | save_LIBS="$LIBS" | |
11465 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11466 | ||
81ecdfbb RW |
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11468 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11469 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11470 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11471 | else |
11472 | if test "$cross_compiling" = yes; then : | |
11473 | lt_cv_dlopen_self=cross | |
11474 | else | |
11475 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11476 | lt_status=$lt_dlunknown | |
11477 | cat > conftest.$ac_ext <<_LT_EOF | |
da2f07f1 | 11478 | #line 11478 "configure" |
ce2cded5 L |
11479 | #include "confdefs.h" |
11480 | ||
11481 | #if HAVE_DLFCN_H | |
11482 | #include <dlfcn.h> | |
11483 | #endif | |
11484 | ||
11485 | #include <stdio.h> | |
11486 | ||
11487 | #ifdef RTLD_GLOBAL | |
11488 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11489 | #else | |
11490 | # ifdef DL_GLOBAL | |
11491 | # define LT_DLGLOBAL DL_GLOBAL | |
11492 | # else | |
11493 | # define LT_DLGLOBAL 0 | |
11494 | # endif | |
11495 | #endif | |
11496 | ||
11497 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11498 | find out it does not work in some platform. */ | |
11499 | #ifndef LT_DLLAZY_OR_NOW | |
11500 | # ifdef RTLD_LAZY | |
11501 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11502 | # else | |
11503 | # ifdef DL_LAZY | |
11504 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11505 | # else | |
11506 | # ifdef RTLD_NOW | |
11507 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11508 | # else | |
11509 | # ifdef DL_NOW | |
11510 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11511 | # else | |
11512 | # define LT_DLLAZY_OR_NOW 0 | |
11513 | # endif | |
11514 | # endif | |
11515 | # endif | |
11516 | # endif | |
11517 | #endif | |
11518 | ||
ce2cded5 L |
11519 | void fnord() { int i=42;} |
11520 | int main () | |
d7040cdb | 11521 | { |
ce2cded5 L |
11522 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11523 | int status = $lt_dlunknown; | |
11524 | ||
11525 | if (self) | |
11526 | { | |
11527 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11528 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11529 | /* dlclose (self); */ | |
11530 | } | |
11531 | else | |
11532 | puts (dlerror ()); | |
11533 | ||
b214d478 | 11534 | return status; |
d7040cdb | 11535 | } |
ce2cded5 | 11536 | _LT_EOF |
81ecdfbb | 11537 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11538 | (eval $ac_link) 2>&5 |
d7040cdb | 11539 | ac_status=$? |
81ecdfbb RW |
11540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11541 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11542 | (./conftest; exit; ) >&5 2>/dev/null |
11543 | lt_status=$? | |
11544 | case x$lt_status in | |
11545 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11546 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11547 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11548 | esac | |
11549 | else : | |
11550 | # compilation failed | |
11551 | lt_cv_dlopen_self=no | |
11552 | fi | |
11553 | fi | |
11554 | rm -fr conftest* | |
11555 | ||
11556 | ||
11557 | fi | |
81ecdfbb RW |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11559 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11560 | |
11561 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11562 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11564 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11565 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11566 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11567 | else |
11568 | if test "$cross_compiling" = yes; then : | |
11569 | lt_cv_dlopen_self_static=cross | |
11570 | else | |
11571 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11572 | lt_status=$lt_dlunknown | |
11573 | cat > conftest.$ac_ext <<_LT_EOF | |
da2f07f1 | 11574 | #line 11574 "configure" |
ce2cded5 L |
11575 | #include "confdefs.h" |
11576 | ||
11577 | #if HAVE_DLFCN_H | |
11578 | #include <dlfcn.h> | |
11579 | #endif | |
11580 | ||
11581 | #include <stdio.h> | |
11582 | ||
11583 | #ifdef RTLD_GLOBAL | |
11584 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11585 | #else | |
11586 | # ifdef DL_GLOBAL | |
11587 | # define LT_DLGLOBAL DL_GLOBAL | |
11588 | # else | |
11589 | # define LT_DLGLOBAL 0 | |
11590 | # endif | |
11591 | #endif | |
11592 | ||
11593 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11594 | find out it does not work in some platform. */ | |
11595 | #ifndef LT_DLLAZY_OR_NOW | |
11596 | # ifdef RTLD_LAZY | |
11597 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11598 | # else | |
11599 | # ifdef DL_LAZY | |
11600 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11601 | # else | |
11602 | # ifdef RTLD_NOW | |
11603 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11604 | # else | |
11605 | # ifdef DL_NOW | |
11606 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11607 | # else | |
11608 | # define LT_DLLAZY_OR_NOW 0 | |
11609 | # endif | |
11610 | # endif | |
11611 | # endif | |
11612 | # endif | |
11613 | #endif | |
11614 | ||
ce2cded5 L |
11615 | void fnord() { int i=42;} |
11616 | int main () | |
11617 | { | |
11618 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11619 | int status = $lt_dlunknown; | |
11620 | ||
11621 | if (self) | |
11622 | { | |
11623 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11624 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11625 | /* dlclose (self); */ | |
11626 | } | |
11627 | else | |
11628 | puts (dlerror ()); | |
11629 | ||
b214d478 | 11630 | return status; |
ce2cded5 L |
11631 | } |
11632 | _LT_EOF | |
81ecdfbb | 11633 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11634 | (eval $ac_link) 2>&5 |
d7040cdb | 11635 | ac_status=$? |
81ecdfbb RW |
11636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11637 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11638 | (./conftest; exit; ) >&5 2>/dev/null |
11639 | lt_status=$? | |
11640 | case x$lt_status in | |
11641 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11642 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11643 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11644 | esac | |
11645 | else : | |
11646 | # compilation failed | |
11647 | lt_cv_dlopen_self_static=no | |
11648 | fi | |
11649 | fi | |
11650 | rm -fr conftest* | |
11651 | ||
d7040cdb SE |
11652 | |
11653 | fi | |
81ecdfbb RW |
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11655 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
11656 | fi |
11657 | ||
11658 | CPPFLAGS="$save_CPPFLAGS" | |
11659 | LDFLAGS="$save_LDFLAGS" | |
11660 | LIBS="$save_LIBS" | |
11661 | ;; | |
11662 | esac | |
11663 | ||
11664 | case $lt_cv_dlopen_self in | |
11665 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11666 | *) enable_dlopen_self=unknown ;; | |
11667 | esac | |
11668 | ||
11669 | case $lt_cv_dlopen_self_static in | |
11670 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11671 | *) enable_dlopen_self_static=unknown ;; | |
11672 | esac | |
d7040cdb SE |
11673 | fi |
11674 | ||
ce2cded5 L |
11675 | |
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | striplib= | |
11692 | old_striplib= | |
81ecdfbb RW |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11694 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
11695 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11696 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11697 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11699 | $as_echo "yes" >&6; } | |
d7040cdb | 11700 | else |
ce2cded5 L |
11701 | # FIXME - insert some real tests, host_os isn't really good enough |
11702 | case $host_os in | |
11703 | darwin*) | |
11704 | if test -n "$STRIP" ; then | |
11705 | striplib="$STRIP -x" | |
11706 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11708 | $as_echo "yes" >&6; } | |
ce2cded5 | 11709 | else |
81ecdfbb RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11711 | $as_echo "no" >&6; } | |
ce2cded5 L |
11712 | fi |
11713 | ;; | |
11714 | *) | |
81ecdfbb RW |
11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11716 | $as_echo "no" >&6; } | |
ce2cded5 L |
11717 | ;; |
11718 | esac | |
11719 | fi | |
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
11732 | # Report which library types will actually be built | |
81ecdfbb RW |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11734 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11736 | $as_echo "$can_build_shared" >&6; } | |
ce2cded5 | 11737 | |
81ecdfbb RW |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11739 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 L |
11740 | test "$can_build_shared" = "no" && enable_shared=no |
11741 | ||
11742 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11743 | # are all built from PIC. | |
11744 | case $host_os in | |
11745 | aix3*) | |
11746 | test "$enable_shared" = yes && enable_static=no | |
11747 | if test -n "$RANLIB"; then | |
11748 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11749 | postinstall_cmds='$RANLIB $lib' | |
11750 | fi | |
11751 | ;; | |
11752 | ||
50e7d84b | 11753 | aix[4-9]*) |
ce2cded5 L |
11754 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11755 | test "$enable_shared" = yes && enable_static=no | |
11756 | fi | |
11757 | ;; | |
11758 | esac | |
81ecdfbb RW |
11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11760 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 11761 | |
81ecdfbb RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11763 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
11764 | # Make sure either enable_shared or enable_static is yes. |
11765 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11767 | $as_echo "$enable_static" >&6; } | |
ce2cded5 L |
11768 | |
11769 | ||
11770 | ||
d7040cdb SE |
11771 | |
11772 | fi | |
d7040cdb SE |
11773 | ac_ext=c |
11774 | ac_cpp='$CPP $CPPFLAGS' | |
11775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11778 | ||
ce2cded5 | 11779 | CC="$lt_save_CC" |
67310ccd | 11780 | |
67310ccd AM |
11781 | |
11782 | ||
d7040cdb SE |
11783 | |
11784 | ||
d7040cdb | 11785 | |
d7040cdb | 11786 | |
d7040cdb | 11787 | |
ce2cded5 L |
11788 | |
11789 | ||
11790 | ||
11791 | ||
11792 | ||
81ecdfbb | 11793 | ac_config_commands="$ac_config_commands libtool" |
ce2cded5 L |
11794 | |
11795 | ||
11796 | ||
11797 | ||
11798 | # Only expand once: | |
11799 | ||
d7040cdb SE |
11800 | |
11801 | ||
8cc9115f | 11802 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id" |
d7040cdb SE |
11803 | # If we haven't got the data from the intl directory, |
11804 | # assume NLS is disabled. | |
11805 | USE_NLS=no | |
11806 | LIBINTL= | |
11807 | LIBINTL_DEP= | |
11808 | INCINTL= | |
11809 | XGETTEXT= | |
11810 | GMSGFMT= | |
11811 | POSUB= | |
11812 | ||
11813 | if test -f ../intl/config.intl; then | |
11814 | . ../intl/config.intl | |
11815 | fi | |
81ecdfbb RW |
11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11817 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 11818 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11820 | $as_echo "no" >&6; } | |
d7040cdb | 11821 | else |
81ecdfbb RW |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11823 | $as_echo "yes" >&6; } | |
d7040cdb | 11824 | |
81ecdfbb | 11825 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
11826 | |
11827 | ||
81ecdfbb RW |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
11829 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
11830 | # Look for .po and .gmo files in the source directory. |
11831 | CATALOGS= | |
11832 | XLINGUAS= | |
11833 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11834 | # If there aren't any .gmo files the shell will give us the | |
11835 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11836 | # weeded out. | |
11837 | case "$cat" in *\**) | |
11838 | continue;; | |
11839 | esac | |
11840 | # The quadruple backslash is collapsed to a double backslash | |
11841 | # by the backticks, then collapsed again by the double quotes, | |
11842 | # leaving us with one backslash in the sed expression (right | |
11843 | # before the dot that mustn't act as a wildcard). | |
11844 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11845 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11846 | # The user is allowed to set LINGUAS to a list of languages to | |
11847 | # install catalogs for. If it's empty that means "all of them." | |
11848 | if test "x$LINGUAS" = x; then | |
11849 | CATALOGS="$CATALOGS $cat" | |
11850 | XLINGUAS="$XLINGUAS $lang" | |
11851 | else | |
11852 | case "$LINGUAS" in *$lang*) | |
11853 | CATALOGS="$CATALOGS $cat" | |
11854 | XLINGUAS="$XLINGUAS $lang" | |
11855 | ;; | |
11856 | esac | |
11857 | fi | |
11858 | done | |
11859 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
11861 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
11862 | |
11863 | ||
11864 | DATADIRNAME=share | |
11865 | ||
11866 | INSTOBJEXT=.mo | |
11867 | ||
11868 | GENCAT=gencat | |
11869 | ||
11870 | CATOBJEXT=.gmo | |
11871 | ||
11872 | fi | |
11873 | ||
11874 | MKINSTALLDIRS= | |
11875 | if test -n "$ac_aux_dir"; then | |
11876 | case "$ac_aux_dir" in | |
11877 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11878 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11879 | esac | |
11880 | fi | |
11881 | if test -z "$MKINSTALLDIRS"; then | |
11882 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11883 | fi | |
11884 | ||
11885 | ||
11886 | ||
81ecdfbb RW |
11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11888 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11889 | # Check whether --enable-nls was given. | |
11890 | if test "${enable_nls+set}" = set; then : | |
11891 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11892 | else |
11893 | USE_NLS=yes | |
81ecdfbb RW |
11894 | fi |
11895 | ||
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11897 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11898 | |
11899 | ||
11900 | ||
11901 | ||
11902 | ||
11903 | ||
11904 | # Prepare PATH_SEPARATOR. | |
11905 | # The user is always right. | |
11906 | if test "${PATH_SEPARATOR+set}" != set; then | |
11907 | echo "#! /bin/sh" >conf$$.sh | |
11908 | echo "exit 0" >>conf$$.sh | |
11909 | chmod +x conf$$.sh | |
11910 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11911 | PATH_SEPARATOR=';' | |
11912 | else | |
11913 | PATH_SEPARATOR=: | |
11914 | fi | |
11915 | rm -f conf$$.sh | |
11916 | fi | |
11917 | ||
11918 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11919 | # as systems may use methods other than mode bits to determine executability. | |
11920 | cat >conf$$.file <<_ASEOF | |
11921 | #! /bin/sh | |
11922 | exit 0 | |
11923 | _ASEOF | |
11924 | chmod +x conf$$.file | |
11925 | if test -x conf$$.file >/dev/null 2>&1; then | |
11926 | ac_executable_p="test -x" | |
11927 | else | |
11928 | ac_executable_p="test -f" | |
11929 | fi | |
11930 | rm -f conf$$.file | |
11931 | ||
11932 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
11933 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11935 | $as_echo_n "checking for $ac_word... " >&6; } | |
11936 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
11937 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11938 | else |
11939 | case "$MSGFMT" in | |
11940 | [\\/]* | ?:[\\/]*) | |
11941 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11942 | ;; | |
11943 | *) | |
11944 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11945 | for ac_dir in $PATH; do | |
11946 | IFS="$ac_save_IFS" | |
11947 | test -z "$ac_dir" && ac_dir=. | |
11948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11949 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11950 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11951 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11952 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11953 | break 2 | |
11954 | fi | |
11955 | fi | |
11956 | done | |
11957 | done | |
11958 | IFS="$ac_save_IFS" | |
11959 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11960 | ;; | |
11961 | esac | |
11962 | fi | |
11963 | MSGFMT="$ac_cv_path_MSGFMT" | |
11964 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11966 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11967 | else |
81ecdfbb RW |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11969 | $as_echo "no" >&6; } | |
d7040cdb SE |
11970 | fi |
11971 | ||
11972 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
11973 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11975 | $as_echo_n "checking for $ac_word... " >&6; } | |
11976 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
11977 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11978 | else |
11979 | case $GMSGFMT in | |
11980 | [\\/]* | ?:[\\/]*) | |
11981 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11982 | ;; | |
11983 | *) | |
11984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11985 | for as_dir in $PATH | |
11986 | do | |
11987 | IFS=$as_save_IFS | |
11988 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11989 | for ac_exec_ext in '' $ac_executable_extensions; do |
11990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 11991 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11993 | break 2 |
11994 | fi | |
11995 | done | |
81ecdfbb RW |
11996 | done |
11997 | IFS=$as_save_IFS | |
d7040cdb SE |
11998 | |
11999 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
12000 | ;; | |
12001 | esac | |
12002 | fi | |
12003 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 12004 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
12006 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 12007 | else |
81ecdfbb RW |
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12009 | $as_echo "no" >&6; } | |
20e95c23 | 12010 | fi |
42ecbf5e | 12011 | |
20e95c23 | 12012 | |
252b5132 | 12013 | |
81ecdfbb | 12014 | |
d7040cdb SE |
12015 | # Prepare PATH_SEPARATOR. |
12016 | # The user is always right. | |
12017 | if test "${PATH_SEPARATOR+set}" != set; then | |
12018 | echo "#! /bin/sh" >conf$$.sh | |
12019 | echo "exit 0" >>conf$$.sh | |
12020 | chmod +x conf$$.sh | |
12021 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12022 | PATH_SEPARATOR=';' | |
12023 | else | |
12024 | PATH_SEPARATOR=: | |
12025 | fi | |
12026 | rm -f conf$$.sh | |
20e95c23 | 12027 | fi |
252b5132 | 12028 | |
d7040cdb SE |
12029 | # Find out how to test for executable files. Don't use a zero-byte file, |
12030 | # as systems may use methods other than mode bits to determine executability. | |
12031 | cat >conf$$.file <<_ASEOF | |
12032 | #! /bin/sh | |
12033 | exit 0 | |
12034 | _ASEOF | |
12035 | chmod +x conf$$.file | |
12036 | if test -x conf$$.file >/dev/null 2>&1; then | |
12037 | ac_executable_p="test -x" | |
20e95c23 | 12038 | else |
d7040cdb SE |
12039 | ac_executable_p="test -f" |
12040 | fi | |
12041 | rm -f conf$$.file | |
20e95c23 | 12042 | |
d7040cdb SE |
12043 | # Extract the first word of "xgettext", so it can be a program name with args. |
12044 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12046 | $as_echo_n "checking for $ac_word... " >&6; } | |
12047 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
12048 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12049 | else |
d7040cdb SE |
12050 | case "$XGETTEXT" in |
12051 | [\\/]* | ?:[\\/]*) | |
12052 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12053 | ;; | |
12054 | *) | |
12055 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12056 | for ac_dir in $PATH; do | |
12057 | IFS="$ac_save_IFS" | |
12058 | test -z "$ac_dir" && ac_dir=. | |
12059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12060 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12061 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12062 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12063 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12064 | break 2 | |
12065 | fi | |
12066 | fi | |
12067 | done | |
12068 | done | |
12069 | IFS="$ac_save_IFS" | |
12070 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12071 | ;; | |
12072 | esac | |
252b5132 | 12073 | fi |
d7040cdb SE |
12074 | XGETTEXT="$ac_cv_path_XGETTEXT" |
12075 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
12077 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 12078 | else |
81ecdfbb RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12080 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
12081 | fi |
12082 | ||
d7040cdb | 12083 | rm -f messages.po |
d5fbea21 | 12084 | |
20e95c23 | 12085 | |
d7040cdb SE |
12086 | # Prepare PATH_SEPARATOR. |
12087 | # The user is always right. | |
12088 | if test "${PATH_SEPARATOR+set}" != set; then | |
12089 | echo "#! /bin/sh" >conf$$.sh | |
12090 | echo "exit 0" >>conf$$.sh | |
12091 | chmod +x conf$$.sh | |
12092 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12093 | PATH_SEPARATOR=';' | |
12094 | else | |
12095 | PATH_SEPARATOR=: | |
12096 | fi | |
12097 | rm -f conf$$.sh | |
12098 | fi | |
20e95c23 | 12099 | |
d7040cdb SE |
12100 | # Find out how to test for executable files. Don't use a zero-byte file, |
12101 | # as systems may use methods other than mode bits to determine executability. | |
12102 | cat >conf$$.file <<_ASEOF | |
12103 | #! /bin/sh | |
12104 | exit 0 | |
12105 | _ASEOF | |
12106 | chmod +x conf$$.file | |
12107 | if test -x conf$$.file >/dev/null 2>&1; then | |
12108 | ac_executable_p="test -x" | |
12109 | else | |
12110 | ac_executable_p="test -f" | |
12111 | fi | |
12112 | rm -f conf$$.file | |
20e95c23 | 12113 | |
d7040cdb SE |
12114 | # Extract the first word of "msgmerge", so it can be a program name with args. |
12115 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12117 | $as_echo_n "checking for $ac_word... " >&6; } | |
12118 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
12119 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
12120 | else |
12121 | case "$MSGMERGE" in | |
12122 | [\\/]* | ?:[\\/]*) | |
12123 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12124 | ;; | |
12125 | *) | |
12126 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12127 | for ac_dir in $PATH; do | |
12128 | IFS="$ac_save_IFS" | |
12129 | test -z "$ac_dir" && ac_dir=. | |
12130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12131 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12132 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12133 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12134 | break 2 | |
12135 | fi | |
12136 | fi | |
12137 | done | |
12138 | done | |
12139 | IFS="$ac_save_IFS" | |
12140 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12141 | ;; | |
12142 | esac | |
12143 | fi | |
12144 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
12145 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12147 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 12148 | else |
81ecdfbb RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12150 | $as_echo "no" >&6; } | |
d7040cdb | 12151 | fi |
20e95c23 DJ |
12152 | |
12153 | ||
d7040cdb SE |
12154 | if test "$GMSGFMT" != ":"; then |
12155 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12156 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12157 | : ; | |
12158 | else | |
12159 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12161 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12162 | GMSGFMT=":" |
12163 | fi | |
12164 | fi | |
20e95c23 | 12165 | |
d7040cdb SE |
12166 | if test "$XGETTEXT" != ":"; then |
12167 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12168 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12169 | : ; | |
12170 | else | |
81ecdfbb RW |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12172 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12173 | XGETTEXT=":" |
12174 | fi | |
12175 | rm -f messages.po | |
20e95c23 | 12176 | fi |
42ecbf5e | 12177 | |
81ecdfbb | 12178 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 12179 | |
42ecbf5e | 12180 | |
252b5132 | 12181 | |
42ecbf5e DJ |
12182 | |
12183 | ||
d7040cdb | 12184 | for ac_prog in 'bison -y' byacc |
20e95c23 | 12185 | do |
d7040cdb SE |
12186 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
12187 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12189 | $as_echo_n "checking for $ac_word... " >&6; } | |
12190 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
12191 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 12192 | else |
d7040cdb SE |
12193 | if test -n "$YACC"; then |
12194 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 12195 | else |
d7040cdb SE |
12196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12197 | for as_dir in $PATH | |
12198 | do | |
12199 | IFS=$as_save_IFS | |
12200 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12201 | for ac_exec_ext in '' $ac_executable_extensions; do |
12202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12203 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12205 | break 2 |
12206 | fi | |
12207 | done | |
81ecdfbb RW |
12208 | done |
12209 | IFS=$as_save_IFS | |
42ecbf5e | 12210 | |
42ecbf5e | 12211 | fi |
e5a52504 | 12212 | fi |
d7040cdb SE |
12213 | YACC=$ac_cv_prog_YACC |
12214 | if test -n "$YACC"; then | |
81ecdfbb RW |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12216 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 12217 | else |
81ecdfbb RW |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12219 | $as_echo "no" >&6; } | |
42ecbf5e | 12220 | fi |
252b5132 | 12221 | |
81ecdfbb | 12222 | |
d7040cdb | 12223 | test -n "$YACC" && break |
42ecbf5e | 12224 | done |
d7040cdb | 12225 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 12226 | |
d7040cdb SE |
12227 | for ac_prog in flex lex |
12228 | do | |
12229 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12230 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12232 | $as_echo_n "checking for $ac_word... " >&6; } | |
12233 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
12234 | $as_echo_n "(cached) " >&6 | |
d15b04bd | 12235 | else |
d7040cdb SE |
12236 | if test -n "$LEX"; then |
12237 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12238 | else | |
12239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12240 | for as_dir in $PATH | |
12241 | do | |
12242 | IFS=$as_save_IFS | |
12243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12244 | for ac_exec_ext in '' $ac_executable_extensions; do |
12245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12246 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12248 | break 2 |
12249 | fi | |
12250 | done | |
81ecdfbb RW |
12251 | done |
12252 | IFS=$as_save_IFS | |
d7040cdb SE |
12253 | |
12254 | fi | |
12255 | fi | |
12256 | LEX=$ac_cv_prog_LEX | |
12257 | if test -n "$LEX"; then | |
81ecdfbb RW |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12259 | $as_echo "$LEX" >&6; } | |
d7040cdb | 12260 | else |
81ecdfbb RW |
12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12262 | $as_echo "no" >&6; } | |
d15b04bd | 12263 | fi |
e5a52504 | 12264 | |
81ecdfbb | 12265 | |
d7040cdb SE |
12266 | test -n "$LEX" && break |
12267 | done | |
12268 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 12269 | |
81ecdfbb RW |
12270 | if test "x$LEX" != "x:"; then |
12271 | cat >conftest.l <<_ACEOF | |
12272 | %% | |
12273 | a { ECHO; } | |
12274 | b { REJECT; } | |
12275 | c { yymore (); } | |
12276 | d { yyless (1); } | |
12277 | e { yyless (input () != 0); } | |
12278 | f { unput (yytext[0]); } | |
12279 | . { BEGIN INITIAL; } | |
12280 | %% | |
12281 | #ifdef YYTEXT_POINTER | |
12282 | extern char *yytext; | |
d7040cdb | 12283 | #endif |
42ecbf5e | 12284 | int |
81ecdfbb | 12285 | main (void) |
42ecbf5e | 12286 | { |
81ecdfbb | 12287 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
12288 | } |
12289 | _ACEOF | |
81ecdfbb RW |
12290 | { { ac_try="$LEX conftest.l" |
12291 | case "(($ac_try" in | |
12292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12293 | *) ac_try_echo=$ac_try;; | |
12294 | esac | |
12295 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12296 | $as_echo "$ac_try_echo"; } >&5 | |
12297 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 12298 | ac_status=$? |
81ecdfbb RW |
12299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12300 | test $ac_status = 0; } | |
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12302 | $as_echo_n "checking lex output file root... " >&6; } | |
12303 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
12304 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 12305 | else |
42ecbf5e | 12306 | |
81ecdfbb RW |
12307 | if test -f lex.yy.c; then |
12308 | ac_cv_prog_lex_root=lex.yy | |
12309 | elif test -f lexyy.c; then | |
12310 | ac_cv_prog_lex_root=lexyy | |
12311 | else | |
12312 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
42ecbf5e | 12313 | fi |
42ecbf5e | 12314 | fi |
81ecdfbb RW |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12316 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12317 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 12318 | |
81ecdfbb RW |
12319 | if test -z "${LEXLIB+set}"; then |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12321 | $as_echo_n "checking lex library... " >&6; } | |
12322 | if test "${ac_cv_lib_lex+set}" = set; then : | |
12323 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12324 | else |
20e95c23 | 12325 | |
81ecdfbb RW |
12326 | ac_save_LIBS=$LIBS |
12327 | ac_cv_lib_lex='none needed' | |
12328 | for ac_lib in '' -lfl -ll; do | |
12329 | LIBS="$ac_lib $ac_save_LIBS" | |
12330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12331 | /* end confdefs.h. */ | |
12332 | `cat $LEX_OUTPUT_ROOT.c` | |
12333 | _ACEOF | |
12334 | if ac_fn_c_try_link "$LINENO"; then : | |
12335 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 12336 | fi |
81ecdfbb RW |
12337 | rm -f core conftest.err conftest.$ac_objext \ |
12338 | conftest$ac_exeext conftest.$ac_ext | |
12339 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12340 | done | |
12341 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
12342 | |
12343 | fi | |
81ecdfbb RW |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12345 | $as_echo "$ac_cv_lib_lex" >&6; } | |
12346 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 12347 | fi |
20e95c23 | 12348 | |
20e95c23 | 12349 | |
81ecdfbb RW |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12351 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
12352 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
12353 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
12354 | else |
12355 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 12356 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
12357 | # not all implementations provide the %pointer and %array declarations. |
12358 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 12359 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
12360 | LIBS="$LEXLIB $ac_save_LIBS" |
12361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12362 | /* end confdefs.h. */ | |
12363 | #define YYTEXT_POINTER 1 | |
d7040cdb | 12364 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 12365 | _ACEOF |
81ecdfbb | 12366 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 12367 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 12368 | fi |
81ecdfbb RW |
12369 | rm -f core conftest.err conftest.$ac_objext \ |
12370 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 12371 | LIBS=$ac_save_LIBS |
d7040cdb SE |
12372 | |
12373 | fi | |
81ecdfbb RW |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12375 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
12376 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12377 | ||
81ecdfbb | 12378 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
12379 | |
12380 | fi | |
81ecdfbb | 12381 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb SE |
12382 | |
12383 | fi | |
12384 | if test "$LEX" = :; then | |
12385 | LEX=${am_missing_run}flex | |
12386 | fi | |
12387 | ||
81ecdfbb RW |
12388 | |
12389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12390 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
12391 | # Check whether --enable-maintainer-mode was given. | |
12392 | if test "${enable_maintainer_mode+set}" = set; then : | |
12393 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 12394 | else |
d7040cdb | 12395 | USE_MAINTAINER_MODE=no |
81ecdfbb | 12396 | fi |
d7040cdb | 12397 | |
81ecdfbb RW |
12398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
12399 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
12400 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
12401 | MAINTAINER_MODE_TRUE= |
12402 | MAINTAINER_MODE_FALSE='#' | |
12403 | else | |
12404 | MAINTAINER_MODE_TRUE='#' | |
12405 | MAINTAINER_MODE_FALSE= | |
252b5132 | 12406 | fi |
252b5132 | 12407 | |
d7040cdb SE |
12408 | MAINT=$MAINTAINER_MODE_TRUE |
12409 | ||
12410 | ||
81ecdfbb | 12411 | if false; then |
d7040cdb SE |
12412 | GENINSRC_NEVER_TRUE= |
12413 | GENINSRC_NEVER_FALSE='#' | |
12414 | else | |
12415 | GENINSRC_NEVER_TRUE='#' | |
12416 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
12417 | fi |
12418 | ||
81ecdfbb RW |
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
12420 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
12421 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
12422 | $as_echo_n "(cached) " >&6 | |
eccbf555 AM |
12423 | else |
12424 | echo abfoo >t1 | |
12425 | echo cdfoo >t2 | |
12426 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
12427 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
12428 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
12429 | : | |
12430 | else | |
12431 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
12432 | fi | |
12433 | fi | |
12434 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
12435 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
12436 | : | |
12437 | else | |
12438 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
12439 | fi | |
12440 | fi | |
12441 | rm t1 t2 | |
12442 | ||
12443 | fi | |
81ecdfbb RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
12445 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
12446 | do_compare="$gcc_cv_prog_cmp_skip" |
12447 | ||
12448 | ||
d7040cdb SE |
12449 | |
12450 | . ${srcdir}/configure.host | |
12451 | ||
12452 | ||
12453 | ||
12454 | ||
252b5132 RH |
12455 | |
12456 | ||
a3ffa599 | 12457 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h |
81ecdfbb RW |
12458 | do : |
12459 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12460 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12461 | eval as_val=\$$as_ac_Header | |
12462 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 12463 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12464 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
12465 | _ACEOF |
12466 | ||
12467 | fi | |
12468 | ||
252b5132 RH |
12469 | done |
12470 | ||
dc27aea4 | 12471 | for ac_func in glob mkstemp realpath sbrk waitpid |
81ecdfbb RW |
12472 | do : |
12473 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12474 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12475 | eval as_val=\$$as_ac_var | |
12476 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 12477 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12478 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 12479 | _ACEOF |
252b5132 | 12480 | |
252b5132 RH |
12481 | fi |
12482 | done | |
12483 | ||
12484 | ac_header_dirent=no | |
42ecbf5e | 12485 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
12486 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
12488 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
12489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
12490 | $as_echo_n "(cached) " >&6 | |
12491 | else | |
12492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 12493 | /* end confdefs.h. */ |
252b5132 RH |
12494 | #include <sys/types.h> |
12495 | #include <$ac_hdr> | |
42ecbf5e DJ |
12496 | |
12497 | int | |
12498 | main () | |
12499 | { | |
12500 | if ((DIR *) 0) | |
12501 | return 0; | |
12502 | ; | |
12503 | return 0; | |
12504 | } | |
12505 | _ACEOF | |
81ecdfbb | 12506 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
12507 | eval "$as_ac_Header=yes" |
12508 | else | |
81ecdfbb | 12509 | eval "$as_ac_Header=no" |
42ecbf5e | 12510 | fi |
81ecdfbb | 12511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 12512 | fi |
81ecdfbb RW |
12513 | eval ac_res=\$$as_ac_Header |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
12515 | $as_echo "$ac_res" >&6; } | |
12516 | eval as_val=\$$as_ac_Header | |
12517 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 12518 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12519 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
12520 | _ACEOF |
12521 | ||
12522 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 12523 | fi |
42ecbf5e | 12524 | |
d15b04bd L |
12525 | done |
12526 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
12527 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
12529 | $as_echo_n "checking for library containing opendir... " >&6; } | |
12530 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12531 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
12532 | else |
12533 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 12534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
12535 | /* end confdefs.h. */ |
12536 | ||
81ecdfbb RW |
12537 | /* Override any GCC internal prototype to avoid an error. |
12538 | Use char because int might match the return type of a GCC | |
12539 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
12540 | #ifdef __cplusplus |
12541 | extern "C" | |
12542 | #endif | |
42ecbf5e DJ |
12543 | char opendir (); |
12544 | int | |
12545 | main () | |
12546 | { | |
81ecdfbb | 12547 | return opendir (); |
42ecbf5e DJ |
12548 | ; |
12549 | return 0; | |
12550 | } | |
12551 | _ACEOF | |
81ecdfbb RW |
12552 | for ac_lib in '' dir; do |
12553 | if test -z "$ac_lib"; then | |
12554 | ac_res="none required" | |
12555 | else | |
12556 | ac_res=-l$ac_lib | |
42ecbf5e | 12557 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
12558 | fi |
12559 | if ac_fn_c_try_link "$LINENO"; then : | |
12560 | ac_cv_search_opendir=$ac_res | |
12561 | fi | |
12562 | rm -f core conftest.err conftest.$ac_objext \ | |
12563 | conftest$ac_exeext | |
12564 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12565 | break | |
12566 | fi | |
12567 | done | |
12568 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e5a52504 | 12569 | |
42ecbf5e | 12570 | else |
81ecdfbb | 12571 | ac_cv_search_opendir=no |
252b5132 | 12572 | fi |
81ecdfbb | 12573 | rm conftest.$ac_ext |
42ecbf5e DJ |
12574 | LIBS=$ac_func_search_save_LIBS |
12575 | fi | |
81ecdfbb RW |
12576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
12577 | $as_echo "$ac_cv_search_opendir" >&6; } | |
12578 | ac_res=$ac_cv_search_opendir | |
12579 | if test "$ac_res" != no; then : | |
12580 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 12581 | |
d15b04bd | 12582 | fi |
252b5132 RH |
12583 | |
12584 | else | |
81ecdfbb RW |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
12586 | $as_echo_n "checking for library containing opendir... " >&6; } | |
12587 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12588 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12589 | else |
42ecbf5e | 12590 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 12591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
12592 | /* end confdefs.h. */ |
12593 | ||
81ecdfbb RW |
12594 | /* Override any GCC internal prototype to avoid an error. |
12595 | Use char because int might match the return type of a GCC | |
12596 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
12597 | #ifdef __cplusplus |
12598 | extern "C" | |
12599 | #endif | |
42ecbf5e DJ |
12600 | char opendir (); |
12601 | int | |
12602 | main () | |
12603 | { | |
81ecdfbb | 12604 | return opendir (); |
42ecbf5e DJ |
12605 | ; |
12606 | return 0; | |
12607 | } | |
12608 | _ACEOF | |
81ecdfbb RW |
12609 | for ac_lib in '' x; do |
12610 | if test -z "$ac_lib"; then | |
12611 | ac_res="none required" | |
12612 | else | |
12613 | ac_res=-l$ac_lib | |
42ecbf5e | 12614 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
12615 | fi |
12616 | if ac_fn_c_try_link "$LINENO"; then : | |
12617 | ac_cv_search_opendir=$ac_res | |
12618 | fi | |
12619 | rm -f core conftest.err conftest.$ac_objext \ | |
12620 | conftest$ac_exeext | |
12621 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12622 | break | |
12623 | fi | |
12624 | done | |
12625 | if test "${ac_cv_search_opendir+set}" = set; then : | |
252b5132 | 12626 | |
42ecbf5e | 12627 | else |
81ecdfbb | 12628 | ac_cv_search_opendir=no |
252b5132 | 12629 | fi |
81ecdfbb | 12630 | rm conftest.$ac_ext |
42ecbf5e | 12631 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 12632 | fi |
81ecdfbb RW |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
12634 | $as_echo "$ac_cv_search_opendir" >&6; } | |
12635 | ac_res=$ac_cv_search_opendir | |
12636 | if test "$ac_res" != no; then : | |
12637 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 12638 | |
d15b04bd | 12639 | fi |
252b5132 RH |
12640 | |
12641 | fi | |
12642 | ||
12643 | ||
81ecdfbb RW |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
12645 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
12646 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : | |
12647 | $as_echo_n "(cached) " >&6 | |
34875e64 | 12648 | else |
81ecdfbb | 12649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 12650 | /* end confdefs.h. */ |
34875e64 | 12651 | #include <unistd.h> |
42ecbf5e DJ |
12652 | int |
12653 | main () | |
12654 | { | |
34875e64 | 12655 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
12656 | ; |
12657 | return 0; | |
12658 | } | |
12659 | _ACEOF | |
81ecdfbb | 12660 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
12661 | ld_cv_decl_getopt_unistd_h=yes |
12662 | else | |
81ecdfbb | 12663 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 12664 | fi |
81ecdfbb | 12665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
12666 | fi |
12667 | ||
81ecdfbb RW |
12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
12669 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 12670 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 12671 | |
81ecdfbb | 12672 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
12673 | |
12674 | fi | |
42ecbf5e | 12675 | |
252b5132 RH |
12676 | |
12677 | case "${host}" in | |
a8100d5b | 12678 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 12679 | |
81ecdfbb | 12680 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
12681 | ;; |
12682 | esac | |
12683 | ||
81ecdfbb RW |
12684 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
12685 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
12686 | ac_have_decl=1 | |
252b5132 | 12687 | else |
81ecdfbb RW |
12688 | ac_have_decl=0 |
12689 | fi | |
502bdb00 | 12690 | |
81ecdfbb RW |
12691 | cat >>confdefs.h <<_ACEOF |
12692 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 12693 | _ACEOF |
81ecdfbb RW |
12694 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
12695 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
12696 | ac_have_decl=1 | |
252b5132 | 12697 | else |
81ecdfbb | 12698 | ac_have_decl=0 |
252b5132 RH |
12699 | fi |
12700 | ||
502bdb00 | 12701 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12702 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 12703 | _ACEOF |
81ecdfbb RW |
12704 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
12705 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then : | |
12706 | ac_have_decl=1 | |
12707 | else | |
12708 | ac_have_decl=0 | |
12709 | fi | |
42ecbf5e | 12710 | |
81ecdfbb RW |
12711 | cat >>confdefs.h <<_ACEOF |
12712 | #define HAVE_DECL_SBRK $ac_have_decl | |
12713 | _ACEOF | |
12714 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
12715 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
12716 | ac_have_decl=1 | |
12717 | else | |
12718 | ac_have_decl=0 | |
12719 | fi | |
502bdb00 | 12720 | |
81ecdfbb RW |
12721 | cat >>confdefs.h <<_ACEOF |
12722 | #define HAVE_DECL_GETENV $ac_have_decl | |
12723 | _ACEOF | |
12724 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
12725 | if test "x$ac_cv_have_decl_environ" = x""yes; then : | |
12726 | ac_have_decl=1 | |
502bdb00 | 12727 | else |
81ecdfbb RW |
12728 | ac_have_decl=0 |
12729 | fi | |
12730 | ||
12731 | cat >>confdefs.h <<_ACEOF | |
12732 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 12733 | _ACEOF |
252b5132 | 12734 | |
252b5132 | 12735 | |
81ecdfbb RW |
12736 | # Link in zlib if we can. This is needed only for the bootstrap tests |
12737 | # right now, since those tests use libbfd, which depends on zlib. | |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
12739 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
12740 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
12741 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12742 | else |
81ecdfbb RW |
12743 | ac_func_search_save_LIBS=$LIBS |
12744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 12745 | /* end confdefs.h. */ |
502bdb00 | 12746 | |
81ecdfbb RW |
12747 | /* Override any GCC internal prototype to avoid an error. |
12748 | Use char because int might match the return type of a GCC | |
4474d12b | 12749 | builtin and then its argument prototype would still apply. */ |
4474d12b CS |
12750 | #ifdef __cplusplus |
12751 | extern "C" | |
12752 | #endif | |
4474d12b CS |
12753 | char zlibVersion (); |
12754 | int | |
12755 | main () | |
12756 | { | |
81ecdfbb | 12757 | return zlibVersion (); |
4474d12b CS |
12758 | ; |
12759 | return 0; | |
12760 | } | |
12761 | _ACEOF | |
81ecdfbb RW |
12762 | for ac_lib in '' z; do |
12763 | if test -z "$ac_lib"; then | |
12764 | ac_res="none required" | |
4474d12b | 12765 | else |
81ecdfbb RW |
12766 | ac_res=-l$ac_lib |
12767 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4474d12b | 12768 | fi |
81ecdfbb RW |
12769 | if ac_fn_c_try_link "$LINENO"; then : |
12770 | ac_cv_search_zlibVersion=$ac_res | |
4474d12b | 12771 | fi |
81ecdfbb RW |
12772 | rm -f core conftest.err conftest.$ac_objext \ |
12773 | conftest$ac_exeext | |
12774 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
12775 | break | |
4474d12b | 12776 | fi |
81ecdfbb RW |
12777 | done |
12778 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
4474d12b | 12779 | |
4474d12b | 12780 | else |
81ecdfbb | 12781 | ac_cv_search_zlibVersion=no |
4474d12b | 12782 | fi |
81ecdfbb RW |
12783 | rm conftest.$ac_ext |
12784 | LIBS=$ac_func_search_save_LIBS | |
4474d12b | 12785 | fi |
81ecdfbb RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
12787 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
12788 | ac_res=$ac_cv_search_zlibVersion | |
12789 | if test "$ac_res" != no; then : | |
12790 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12791 | for ac_header in zlib.h | |
12792 | do : | |
12793 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
12794 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
4474d12b | 12795 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12796 | #define HAVE_ZLIB_H 1 |
4474d12b CS |
12797 | _ACEOF |
12798 | ||
12799 | fi | |
12800 | ||
12801 | done | |
12802 | ||
12803 | fi | |
12804 | ||
12805 | ||
597e2591 ILT |
12806 | # When converting linker scripts into strings for use in emulation |
12807 | # files, use astring.sed if the compiler supports ANSI string | |
12808 | # concatenation, or ostring.sed otherwise. This is to support the | |
12809 | # broken Microsoft MSVC compiler, which limits the length of string | |
12810 | # constants, while still supporting pre-ANSI compilers which do not | |
12811 | # support string concatenation. | |
81ecdfbb RW |
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
12813 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
12814 | if test "${ld_cv_string_concatenation+set}" = set; then : | |
12815 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 12816 | else |
81ecdfbb | 12817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 12818 | /* end confdefs.h. */ |
81ecdfbb | 12819 | |
314e9a4e L |
12820 | int |
12821 | main () | |
12822 | { | |
81ecdfbb | 12823 | char *a = "a" "a"; |
314e9a4e L |
12824 | ; |
12825 | return 0; | |
12826 | } | |
12827 | _ACEOF | |
81ecdfbb RW |
12828 | if ac_fn_c_try_compile "$LINENO"; then : |
12829 | ld_cv_string_concatenation=yes | |
314e9a4e | 12830 | else |
81ecdfbb | 12831 | ld_cv_string_concatenation=no |
314e9a4e | 12832 | fi |
81ecdfbb | 12833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 12834 | fi |
81ecdfbb RW |
12835 | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
12837 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
12838 | if test "$ld_cv_string_concatenation" = "yes"; then | |
12839 | STRINGIFY=astring.sed | |
12840 | else | |
12841 | STRINGIFY=ostring.sed | |
314e9a4e | 12842 | fi |
81ecdfbb RW |
12843 | |
12844 | ||
12845 | # target-specific stuff: | |
12846 | ||
12847 | all_targets= | |
12848 | EMUL= | |
12849 | all_emuls= | |
12850 | all_emul_extras= | |
12851 | all_libpath= | |
12852 | ||
12853 | rm -f tdirs | |
12854 | ||
12855 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
12856 | do | |
12857 | if test "$targ_alias" = "all"; then | |
12858 | all_targets=true | |
12859 | else | |
12860 | # Canonicalize the secondary target names. | |
12861 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
12862 | if test -n "$result"; then | |
12863 | targ=$result | |
12864 | else | |
12865 | targ=$targ_alias | |
12866 | fi | |
12867 | ||
12868 | . ${srcdir}/configure.tgt | |
12869 | ||
12870 | if test "$targ" = "$target"; then | |
12871 | EMUL=$targ_emul | |
12872 | fi | |
12873 | ||
12874 | if test x${want64} = xfalse; then | |
12875 | . ${srcdir}/../bfd/config.bfd | |
12876 | fi | |
12877 | ||
12878 | if test x${want64} = xtrue; then | |
12879 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
12880 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
12881 | fi | |
12882 | ||
12883 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
12884 | case " $all_emuls " in | |
12885 | *" e${i}.o "*) ;; | |
12886 | *) | |
12887 | all_emuls="$all_emuls e${i}.o" | |
12888 | eval result=\$tdir_$i | |
12889 | test -z "$result" && result=$targ_alias | |
12890 | echo tdir_$i=$result >> tdirs | |
12891 | ;; | |
12892 | esac | |
12893 | done | |
12894 | ||
12895 | for i in $targ_emul $targ_extra_libpath; do | |
12896 | case " $all_libpath " in | |
12897 | *" ${i} "*) ;; | |
12898 | *) | |
12899 | if test -z "$all_libpath"; then | |
12900 | all_libpath=${i} | |
12901 | else | |
12902 | all_libpath="$all_libpath ${i}" | |
12903 | fi | |
12904 | ;; | |
12905 | esac | |
12906 | done | |
12907 | ||
12908 | for i in $targ_extra_ofiles; do | |
12909 | case " $all_emul_extras " in | |
12910 | *" ${i} "*) ;; | |
12911 | *) | |
12912 | all_emul_extras="$all_emul_extras ${i}" | |
12913 | ;; | |
12914 | esac | |
12915 | done | |
12916 | fi | |
12917 | done | |
12918 | ||
12919 | ||
12920 | ||
12921 | TDIRS=tdirs | |
12922 | ||
12923 | ||
12924 | if test x${all_targets} = xtrue; then | |
12925 | if test x${want64} = xfalse; then | |
12926 | # The cast to long int works around a bug in the HP C Compiler | |
12927 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12928 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12929 | # This bug is HP SR number 8606223364. | |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12931 | $as_echo_n "checking size of long... " >&6; } | |
12932 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
12933 | $as_echo_n "(cached) " >&6 | |
12934 | else | |
12935 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12936 | ||
314e9a4e | 12937 | else |
81ecdfbb RW |
12938 | if test "$ac_cv_type_long" = yes; then |
12939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12941 | { as_fn_set_status 77 | |
12942 | as_fn_error "cannot compute sizeof (long) | |
12943 | See \`config.log' for more details." "$LINENO" 5; }; } | |
12944 | else | |
12945 | ac_cv_sizeof_long=0 | |
12946 | fi | |
314e9a4e | 12947 | fi |
81ecdfbb | 12948 | |
314e9a4e | 12949 | fi |
81ecdfbb RW |
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
12951 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
12952 | ||
12953 | ||
12954 | ||
314e9a4e L |
12955 | cat >>confdefs.h <<_ACEOF |
12956 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12957 | _ACEOF | |
12958 | ||
12959 | ||
12960 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
12961 | want64=true | |
12962 | fi | |
12963 | fi | |
42ecbf5e DJ |
12964 | if test x${want64} = xtrue; then |
12965 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
12966 | else | |
12967 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
12968 | fi | |
12969 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' | |
12970 | else | |
12971 | EMULATION_OFILES=$all_emuls | |
12972 | EMUL_EXTRA_OFILES=$all_emul_extras | |
12973 | fi | |
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | EMULATION_LIBPATH=$all_libpath | |
12979 | ||
12980 | ||
12981 | if test x${enable_static} = xno; then | |
12982 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
12983 | else | |
12984 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
12985 | fi | |
12986 | ||
12987 | ||
12988 | target_vendor=${target_vendor=$host_vendor} | |
12989 | case "$target_vendor" in | |
12990 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
12991 | *) EXTRA_SHLIB_EXTENSION= ;; | |
12992 | esac | |
12993 | ||
12994 | case "$target_os" in | |
12995 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
12996 | esac | |
12997 | ||
12998 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
12999 | ||
13000 | cat >>confdefs.h <<_ACEOF | |
13001 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
13002 | _ACEOF | |
13003 | ||
13004 | fi | |
13005 | ||
108a6f8e CD |
13006 | |
13007 | ||
13008 | ||
13009 | ||
31dd3154 | 13010 | |
81ecdfbb | 13011 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 13012 | |
42ecbf5e DJ |
13013 | cat >confcache <<\_ACEOF |
13014 | # This file is a shell script that caches the results of configure | |
13015 | # tests run on this system so they can be shared between configure | |
13016 | # scripts and configure runs, see configure's option --config-cache. | |
13017 | # It is not useful on other systems. If it contains results you don't | |
13018 | # want to keep, you may remove or edit it. | |
13019 | # | |
13020 | # config.status only pays attention to the cache file if you give it | |
13021 | # the --recheck option to rerun configure. | |
13022 | # | |
13023 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13024 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13025 | # following values. | |
13026 | ||
13027 | _ACEOF | |
13028 | ||
13029 | # The following way of writing the cache mishandles newlines in values, | |
13030 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 13031 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
13032 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13033 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
13034 | ( |
13035 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13036 | eval ac_val=\$$ac_var | |
13037 | case $ac_val in #( | |
13038 | *${as_nl}*) | |
13039 | case $ac_var in #( | |
13040 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13041 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13042 | esac | |
13043 | case $ac_var in #( | |
13044 | _ | IFS | as_nl) ;; #( | |
13045 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13046 | *) { eval $ac_var=; unset $ac_var;} ;; | |
13047 | esac ;; | |
13048 | esac | |
13049 | done | |
13050 | ||
42ecbf5e | 13051 | (set) 2>&1 | |
81ecdfbb RW |
13052 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13053 | *${as_nl}ac_space=\ *) | |
13054 | # `set' does not quote correctly, so add quotes: double-quote | |
13055 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
13056 | sed -n \ |
13057 | "s/'/'\\\\''/g; | |
13058 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 13059 | ;; #( |
42ecbf5e DJ |
13060 | *) |
13061 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 13062 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 13063 | ;; |
81ecdfbb RW |
13064 | esac | |
13065 | sort | |
13066 | ) | | |
42ecbf5e | 13067 | sed ' |
81ecdfbb | 13068 | /^ac_cv_env_/b end |
42ecbf5e | 13069 | t clear |
81ecdfbb | 13070 | :clear |
42ecbf5e DJ |
13071 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13072 | t end | |
81ecdfbb RW |
13073 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13074 | :end' >>confcache | |
13075 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13076 | if test -w "$cache_file"; then | |
13077 | test "x$cache_file" != "x/dev/null" && | |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
13079 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
42ecbf5e DJ |
13080 | cat confcache >$cache_file |
13081 | else | |
81ecdfbb RW |
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
13083 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
13084 | fi |
13085 | fi | |
13086 | rm -f confcache | |
13087 | ||
13088 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13089 | # Let make expand exec_prefix. | |
13090 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13091 | ||
42ecbf5e DJ |
13092 | DEFS=-DHAVE_CONFIG_H |
13093 | ||
13094 | ac_libobjs= | |
13095 | ac_ltlibobjs= | |
13096 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
13097 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
13098 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13099 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13100 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13101 | # will be set to the directory where LIBOBJS objects are built. | |
13102 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13103 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
13104 | done |
13105 | LIBOBJS=$ac_libobjs | |
13106 | ||
13107 | LTLIBOBJS=$ac_ltlibobjs | |
13108 | ||
13109 | ||
13110 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
13111 | as_fn_error "conditional \"AMDEP\" was never defined. |
13112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e DJ |
13113 | fi |
13114 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
13115 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
13116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13117 | fi | |
13118 | if test -n "$EXEEXT"; then | |
13119 | am__EXEEXT_TRUE= | |
13120 | am__EXEEXT_FALSE='#' | |
13121 | else | |
13122 | am__EXEEXT_TRUE='#' | |
13123 | am__EXEEXT_FALSE= | |
42ecbf5e | 13124 | fi |
81ecdfbb | 13125 | |
64ac50ac RW |
13126 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
13127 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
13128 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13129 | fi | |
42ecbf5e | 13130 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
13131 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
13132 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e | 13133 | fi |
d5fbea21 | 13134 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
13135 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
13136 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 13137 | fi |
42ecbf5e DJ |
13138 | |
13139 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 13140 | ac_write_fail=0 |
42ecbf5e DJ |
13141 | ac_clean_files_save=$ac_clean_files |
13142 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
13144 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13145 | as_write_fail=0 | |
13146 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
13147 | #! $SHELL |
13148 | # Generated by $as_me. | |
13149 | # Run this file to recreate the current configuration. | |
13150 | # Compiler output produced by configure, useful for debugging | |
13151 | # configure, is in config.log if it exists. | |
13152 | ||
13153 | debug=false | |
13154 | ac_cs_recheck=false | |
13155 | ac_cs_silent=false | |
42ecbf5e | 13156 | |
81ecdfbb RW |
13157 | SHELL=\${CONFIG_SHELL-$SHELL} |
13158 | export SHELL | |
13159 | _ASEOF | |
13160 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13161 | ## -------------------- ## | |
13162 | ## M4sh Initialization. ## | |
13163 | ## -------------------- ## | |
42ecbf5e | 13164 | |
81ecdfbb RW |
13165 | # Be more Bourne compatible |
13166 | DUALCASE=1; export DUALCASE # for MKS sh | |
13167 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
13168 | emulate sh |
13169 | NULLCMD=: | |
81ecdfbb | 13170 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
13171 | # is contrary to our usage. Disable this feature. |
13172 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
13173 | setopt NO_GLOB_SUBST |
13174 | else | |
13175 | case `(set -o) 2>/dev/null` in #( | |
13176 | *posix*) : | |
13177 | set -o posix ;; #( | |
13178 | *) : | |
13179 | ;; | |
13180 | esac | |
42ecbf5e | 13181 | fi |
42ecbf5e | 13182 | |
81ecdfbb RW |
13183 | |
13184 | as_nl=' | |
13185 | ' | |
13186 | export as_nl | |
13187 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13188 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13189 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13190 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13191 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
13192 | # but without wasting forks for bash or zsh. | |
13193 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13194 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13195 | as_echo='print -r --' | |
13196 | as_echo_n='print -rn --' | |
13197 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13198 | as_echo='printf %s\n' | |
13199 | as_echo_n='printf %s' | |
13200 | else | |
13201 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13202 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13203 | as_echo_n='/usr/ucb/echo -n' | |
13204 | else | |
13205 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13206 | as_echo_n_body='eval | |
13207 | arg=$1; | |
13208 | case $arg in #( | |
13209 | *"$as_nl"*) | |
13210 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13211 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13212 | esac; | |
13213 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13214 | ' | |
13215 | export as_echo_n_body | |
13216 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13217 | fi | |
13218 | export as_echo_body | |
13219 | as_echo='sh -c $as_echo_body as_echo' | |
13220 | fi | |
13221 | ||
13222 | # The user is always right. | |
13223 | if test "${PATH_SEPARATOR+set}" != set; then | |
13224 | PATH_SEPARATOR=: | |
13225 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13226 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13227 | PATH_SEPARATOR=';' | |
13228 | } | |
42ecbf5e DJ |
13229 | fi |
13230 | ||
13231 | ||
81ecdfbb RW |
13232 | # IFS |
13233 | # We need space, tab and new line, in precisely that order. Quoting is | |
13234 | # there to prevent editors from complaining about space-tab. | |
13235 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13236 | # splitting by setting IFS to empty value.) | |
13237 | IFS=" "" $as_nl" | |
13238 | ||
13239 | # Find who we are. Look in the path if we contain no directory separator. | |
13240 | case $0 in #(( | |
13241 | *[\\/]* ) as_myself=$0 ;; | |
13242 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13243 | for as_dir in $PATH | |
13244 | do | |
13245 | IFS=$as_save_IFS | |
13246 | test -z "$as_dir" && as_dir=. | |
13247 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13248 | done | |
13249 | IFS=$as_save_IFS | |
13250 | ||
13251 | ;; | |
13252 | esac | |
13253 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13254 | # in which case we are not to be found in the path. | |
13255 | if test "x$as_myself" = x; then | |
13256 | as_myself=$0 | |
13257 | fi | |
13258 | if test ! -f "$as_myself"; then | |
13259 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13260 | exit 1 | |
13261 | fi | |
13262 | ||
13263 | # Unset variables that we do not need and which cause bugs (e.g. in | |
13264 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13265 | # suppresses any "Segmentation fault" message there. '((' could | |
13266 | # trigger a bug in pdksh 5.2.14. | |
13267 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13268 | do eval test x\${$as_var+set} = xset \ | |
13269 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
13270 | done | |
42ecbf5e DJ |
13271 | PS1='$ ' |
13272 | PS2='> ' | |
13273 | PS4='+ ' | |
13274 | ||
13275 | # NLS nuisances. | |
81ecdfbb RW |
13276 | LC_ALL=C |
13277 | export LC_ALL | |
13278 | LANGUAGE=C | |
13279 | export LANGUAGE | |
13280 | ||
13281 | # CDPATH. | |
13282 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13283 | ||
13284 | ||
13285 | # as_fn_error ERROR [LINENO LOG_FD] | |
13286 | # --------------------------------- | |
13287 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13288 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13289 | # script with status $?, using 1 if that was 0. | |
13290 | as_fn_error () | |
13291 | { | |
13292 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
13293 | if test "$3"; then | |
13294 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13295 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
42ecbf5e | 13296 | fi |
81ecdfbb RW |
13297 | $as_echo "$as_me: error: $1" >&2 |
13298 | as_fn_exit $as_status | |
13299 | } # as_fn_error | |
13300 | ||
13301 | ||
13302 | # as_fn_set_status STATUS | |
13303 | # ----------------------- | |
13304 | # Set $? to STATUS, without forking. | |
13305 | as_fn_set_status () | |
13306 | { | |
13307 | return $1 | |
13308 | } # as_fn_set_status | |
13309 | ||
13310 | # as_fn_exit STATUS | |
13311 | # ----------------- | |
13312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13313 | as_fn_exit () | |
13314 | { | |
13315 | set +e | |
13316 | as_fn_set_status $1 | |
13317 | exit $1 | |
13318 | } # as_fn_exit | |
13319 | ||
13320 | # as_fn_unset VAR | |
13321 | # --------------- | |
13322 | # Portably unset VAR. | |
13323 | as_fn_unset () | |
13324 | { | |
13325 | { eval $1=; unset $1;} | |
13326 | } | |
13327 | as_unset=as_fn_unset | |
13328 | # as_fn_append VAR VALUE | |
13329 | # ---------------------- | |
13330 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13331 | # advantage of any shell optimizations that allow amortized linear growth over | |
13332 | # repeated appends, instead of the typical quadratic growth present in naive | |
13333 | # implementations. | |
13334 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13335 | eval 'as_fn_append () | |
13336 | { | |
13337 | eval $1+=\$2 | |
13338 | }' | |
13339 | else | |
13340 | as_fn_append () | |
13341 | { | |
13342 | eval $1=\$$1\$2 | |
13343 | } | |
13344 | fi # as_fn_append | |
13345 | ||
13346 | # as_fn_arith ARG... | |
13347 | # ------------------ | |
13348 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13349 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13350 | # must be portable across $(()) and expr. | |
13351 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13352 | eval 'as_fn_arith () | |
13353 | { | |
13354 | as_val=$(( $* )) | |
13355 | }' | |
13356 | else | |
13357 | as_fn_arith () | |
13358 | { | |
13359 | as_val=`expr "$@" || test $? -eq 1` | |
13360 | } | |
13361 | fi # as_fn_arith | |
13362 | ||
42ecbf5e | 13363 | |
81ecdfbb RW |
13364 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13365 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
13366 | as_expr=expr |
13367 | else | |
13368 | as_expr=false | |
13369 | fi | |
13370 | ||
81ecdfbb | 13371 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
13372 | as_basename=basename |
13373 | else | |
13374 | as_basename=false | |
13375 | fi | |
13376 | ||
81ecdfbb RW |
13377 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13378 | as_dirname=dirname | |
13379 | else | |
13380 | as_dirname=false | |
13381 | fi | |
42ecbf5e | 13382 | |
81ecdfbb | 13383 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
13384 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13385 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13386 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13387 | $as_echo X/"$0" | | |
13388 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13389 | s//\1/ | |
13390 | q | |
13391 | } | |
13392 | /^X\/\(\/\/\)$/{ | |
13393 | s//\1/ | |
13394 | q | |
13395 | } | |
13396 | /^X\/\(\/\).*/{ | |
13397 | s//\1/ | |
13398 | q | |
13399 | } | |
13400 | s/.*/./; q'` | |
42ecbf5e | 13401 | |
42ecbf5e DJ |
13402 | # Avoid depending upon Character Ranges. |
13403 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13404 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13405 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13406 | as_cr_digits='0123456789' | |
13407 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13408 | ||
81ecdfbb RW |
13409 | ECHO_C= ECHO_N= ECHO_T= |
13410 | case `echo -n x` in #((((( | |
13411 | -n*) | |
13412 | case `echo 'xy\c'` in | |
13413 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13414 | xy) ECHO_C='\c';; | |
13415 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13416 | ECHO_T=' ';; | |
13417 | esac;; | |
13418 | *) | |
13419 | ECHO_N='-n';; | |
42ecbf5e | 13420 | esac |
252b5132 | 13421 | |
81ecdfbb RW |
13422 | rm -f conf$$ conf$$.exe conf$$.file |
13423 | if test -d conf$$.dir; then | |
13424 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 13425 | else |
81ecdfbb RW |
13426 | rm -f conf$$.dir |
13427 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 13428 | fi |
81ecdfbb RW |
13429 | if (echo >conf$$.file) 2>/dev/null; then |
13430 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 13431 | as_ln_s='ln -s' |
81ecdfbb RW |
13432 | # ... but there are two gotchas: |
13433 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13434 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13435 | # In both cases, we have to default to `cp -p'. | |
13436 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13437 | as_ln_s='cp -p' | |
13438 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13439 | as_ln_s=ln | |
13440 | else | |
13441 | as_ln_s='cp -p' | |
252b5132 | 13442 | fi |
e5a52504 | 13443 | else |
42ecbf5e | 13444 | as_ln_s='cp -p' |
e5a52504 | 13445 | fi |
81ecdfbb RW |
13446 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13447 | rmdir conf$$.dir 2>/dev/null | |
13448 | ||
13449 | ||
13450 | # as_fn_mkdir_p | |
13451 | # ------------- | |
13452 | # Create "$as_dir" as a directory, including parents if necessary. | |
13453 | as_fn_mkdir_p () | |
13454 | { | |
13455 | ||
13456 | case $as_dir in #( | |
13457 | -*) as_dir=./$as_dir;; | |
13458 | esac | |
13459 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13460 | as_dirs= | |
13461 | while :; do | |
13462 | case $as_dir in #( | |
13463 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13464 | *) as_qdir=$as_dir;; | |
13465 | esac | |
13466 | as_dirs="'$as_qdir' $as_dirs" | |
13467 | as_dir=`$as_dirname -- "$as_dir" || | |
13468 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13469 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13470 | X"$as_dir" : 'X\(//\)$' \| \ | |
13471 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13472 | $as_echo X"$as_dir" | | |
13473 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13474 | s//\1/ | |
13475 | q | |
13476 | } | |
13477 | /^X\(\/\/\)[^/].*/{ | |
13478 | s//\1/ | |
13479 | q | |
13480 | } | |
13481 | /^X\(\/\/\)$/{ | |
13482 | s//\1/ | |
13483 | q | |
13484 | } | |
13485 | /^X\(\/\).*/{ | |
13486 | s//\1/ | |
13487 | q | |
13488 | } | |
13489 | s/.*/./; q'` | |
13490 | test -d "$as_dir" && break | |
13491 | done | |
13492 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13493 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
13494 | ||
252b5132 | 13495 | |
81ecdfbb | 13496 | } # as_fn_mkdir_p |
42ecbf5e | 13497 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 13498 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
13499 | else |
13500 | test -d ./-p && rmdir ./-p | |
13501 | as_mkdir_p=false | |
13502 | fi | |
252b5132 | 13503 | |
81ecdfbb RW |
13504 | if test -x / >/dev/null 2>&1; then |
13505 | as_test_x='test -x' | |
13506 | else | |
13507 | if ls -dL / >/dev/null 2>&1; then | |
13508 | as_ls_L_option=L | |
13509 | else | |
13510 | as_ls_L_option= | |
13511 | fi | |
13512 | as_test_x=' | |
13513 | eval sh -c '\'' | |
13514 | if test -d "$1"; then | |
13515 | test -d "$1/."; | |
13516 | else | |
13517 | case $1 in #( | |
13518 | -*)set "./$1";; | |
13519 | esac; | |
13520 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
13521 | ???[sx]*):;;*)false;;esac;fi | |
13522 | '\'' sh | |
13523 | ' | |
13524 | fi | |
13525 | as_executable_p=$as_test_x | |
252b5132 | 13526 | |
42ecbf5e DJ |
13527 | # Sed expression to map a string onto a valid CPP name. |
13528 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 13529 | |
42ecbf5e DJ |
13530 | # Sed expression to map a string onto a valid variable name. |
13531 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 13532 | |
e5a52504 | 13533 | |
42ecbf5e | 13534 | exec 6>&1 |
81ecdfbb RW |
13535 | ## ----------------------------------- ## |
13536 | ## Main body of $CONFIG_STATUS script. ## | |
13537 | ## ----------------------------------- ## | |
13538 | _ASEOF | |
13539 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 13540 | |
81ecdfbb RW |
13541 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13542 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 13543 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
13544 | # values after options handling. |
13545 | ac_log=" | |
42ecbf5e | 13546 | This file was extended by $as_me, which was |
81ecdfbb | 13547 | generated by GNU Autoconf 2.64. Invocation command line was |
42ecbf5e DJ |
13548 | |
13549 | CONFIG_FILES = $CONFIG_FILES | |
13550 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13551 | CONFIG_LINKS = $CONFIG_LINKS | |
13552 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13553 | $ $0 $@ | |
e5a52504 | 13554 | |
81ecdfbb RW |
13555 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13556 | " | |
13557 | ||
42ecbf5e DJ |
13558 | _ACEOF |
13559 | ||
81ecdfbb RW |
13560 | case $ac_config_files in *" |
13561 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13562 | esac | |
e5a52504 | 13563 | |
81ecdfbb RW |
13564 | case $ac_config_headers in *" |
13565 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13566 | esac | |
42ecbf5e | 13567 | |
42ecbf5e | 13568 | |
81ecdfbb RW |
13569 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13570 | # Files that config.status was made for. | |
13571 | config_files="$ac_config_files" | |
13572 | config_headers="$ac_config_headers" | |
13573 | config_commands="$ac_config_commands" | |
42ecbf5e | 13574 | |
81ecdfbb | 13575 | _ACEOF |
42ecbf5e | 13576 | |
81ecdfbb | 13577 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 13578 | ac_cs_usage="\ |
81ecdfbb RW |
13579 | \`$as_me' instantiates files and other configuration actions |
13580 | from templates according to the current configuration. Unless the files | |
13581 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 13582 | |
81ecdfbb | 13583 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
13584 | |
13585 | -h, --help print this help, then exit | |
81ecdfbb RW |
13586 | -V, --version print version number and configuration settings, then exit |
13587 | -q, --quiet, --silent | |
13588 | do not print progress messages | |
42ecbf5e DJ |
13589 | -d, --debug don't remove temporary files |
13590 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
13591 | --file=FILE[:TEMPLATE] |
13592 | instantiate the configuration file FILE | |
13593 | --header=FILE[:TEMPLATE] | |
13594 | instantiate the configuration header FILE | |
42ecbf5e DJ |
13595 | |
13596 | Configuration files: | |
13597 | $config_files | |
13598 | ||
13599 | Configuration headers: | |
13600 | $config_headers | |
13601 | ||
13602 | Configuration commands: | |
13603 | $config_commands | |
13604 | ||
81ecdfbb | 13605 | Report bugs to the package provider." |
42ecbf5e | 13606 | |
81ecdfbb RW |
13607 | _ACEOF |
13608 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42ecbf5e DJ |
13609 | ac_cs_version="\\ |
13610 | config.status | |
81ecdfbb RW |
13611 | configured by $0, generated by GNU Autoconf 2.64, |
13612 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
42ecbf5e | 13613 | |
81ecdfbb | 13614 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
13615 | This config.status script is free software; the Free Software Foundation |
13616 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
13617 | |
13618 | ac_pwd='$ac_pwd' | |
13619 | srcdir='$srcdir' | |
13620 | INSTALL='$INSTALL' | |
13621 | MKDIR_P='$MKDIR_P' | |
13622 | AWK='$AWK' | |
13623 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
13624 | _ACEOF |
13625 | ||
81ecdfbb RW |
13626 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13627 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
13628 | ac_need_defaults=: |
13629 | while test $# != 0 | |
13630 | do | |
13631 | case $1 in | |
13632 | --*=*) | |
81ecdfbb RW |
13633 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13634 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 13635 | ac_shift=: |
252b5132 | 13636 | ;; |
81ecdfbb | 13637 | *) |
42ecbf5e DJ |
13638 | ac_option=$1 |
13639 | ac_optarg=$2 | |
13640 | ac_shift=shift | |
252b5132 | 13641 | ;; |
42ecbf5e | 13642 | esac |
252b5132 | 13643 | |
42ecbf5e DJ |
13644 | case $ac_option in |
13645 | # Handling of the options. | |
42ecbf5e DJ |
13646 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13647 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
13648 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13649 | $as_echo "$ac_cs_version"; exit ;; | |
13650 | --debug | --debu | --deb | --de | --d | -d ) | |
42ecbf5e DJ |
13651 | debug=: ;; |
13652 | --file | --fil | --fi | --f ) | |
13653 | $ac_shift | |
81ecdfbb RW |
13654 | case $ac_optarg in |
13655 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13656 | esac | |
13657 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
13658 | ac_need_defaults=false;; |
13659 | --header | --heade | --head | --hea ) | |
13660 | $ac_shift | |
81ecdfbb RW |
13661 | case $ac_optarg in |
13662 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13663 | esac | |
13664 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 13665 | ac_need_defaults=false;; |
81ecdfbb RW |
13666 | --he | --h) |
13667 | # Conflict between --help and --header | |
13668 | as_fn_error "ambiguous option: \`$1' | |
13669 | Try \`$0 --help' for more information.";; | |
13670 | --help | --hel | -h ) | |
13671 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
13672 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13673 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13674 | ac_cs_silent=: ;; | |
252b5132 | 13675 | |
42ecbf5e | 13676 | # This is an error. |
81ecdfbb RW |
13677 | -*) as_fn_error "unrecognized option: \`$1' |
13678 | Try \`$0 --help' for more information." ;; | |
252b5132 | 13679 | |
81ecdfbb RW |
13680 | *) as_fn_append ac_config_targets " $1" |
13681 | ac_need_defaults=false ;; | |
252b5132 | 13682 | |
42ecbf5e DJ |
13683 | esac |
13684 | shift | |
13685 | done | |
d15b04bd | 13686 | |
42ecbf5e | 13687 | ac_configure_extra_args= |
e5a52504 | 13688 | |
42ecbf5e DJ |
13689 | if $ac_cs_silent; then |
13690 | exec 6>/dev/null | |
13691 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13692 | fi | |
e5a52504 | 13693 | |
42ecbf5e | 13694 | _ACEOF |
81ecdfbb | 13695 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 13696 | if \$ac_cs_recheck; then |
81ecdfbb RW |
13697 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13698 | shift | |
13699 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13700 | CONFIG_SHELL='$SHELL' | |
13701 | export CONFIG_SHELL | |
13702 | exec "\$@" | |
42ecbf5e DJ |
13703 | fi |
13704 | ||
13705 | _ACEOF | |
81ecdfbb RW |
13706 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13707 | exec 5>>config.log | |
13708 | { | |
13709 | echo | |
13710 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13711 | ## Running $as_me. ## | |
13712 | _ASBOX | |
13713 | $as_echo "$ac_log" | |
13714 | } >&5 | |
42ecbf5e | 13715 | |
81ecdfbb RW |
13716 | _ACEOF |
13717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 13718 | # |
81ecdfbb | 13719 | # INIT-COMMANDS |
252b5132 | 13720 | # |
42ecbf5e | 13721 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
13722 | |
13723 | ||
13724 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13725 | # if CDPATH is set. | |
13726 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13727 | ||
13728 | sed_quote_subst='$sed_quote_subst' | |
13729 | double_quote_subst='$double_quote_subst' | |
13730 | delay_variable_subst='$delay_variable_subst' | |
13731 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13732 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
13733 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
13734 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13735 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
13736 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
13737 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13738 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
13739 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13740 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13741 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
13742 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13743 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
13744 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
13745 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13746 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13747 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13748 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
13749 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
13750 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
13751 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
13752 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
13753 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
13754 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
13755 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
13756 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
13757 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13758 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 | 13759 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
13760 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
13761 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
13762 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
13763 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13764 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
13765 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
13766 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13767 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13768 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13769 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
13770 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13771 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
13772 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
13773 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
13774 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
13775 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 | 13776 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
13777 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
13778 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13779 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13780 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13781 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13782 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13783 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13784 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13785 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13786 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 SE |
13787 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
13788 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
13789 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
13790 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
13791 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
13792 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
13793 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13794 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13795 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13796 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13797 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13798 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13799 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13800 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13801 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13802 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13803 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13804 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13805 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13806 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13807 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13808 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13809 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13810 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13811 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13812 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13813 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13814 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13815 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13816 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13817 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13818 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13819 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13820 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13821 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13822 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13823 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13824 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13825 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13826 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13827 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13828 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13829 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13830 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13831 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13832 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13833 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13834 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13835 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13836 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13837 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13838 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13839 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13840 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13841 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13842 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13843 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13844 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
13845 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
13846 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13847 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13848 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13849 | ||
13850 | LTCC='$LTCC' | |
13851 | LTCFLAGS='$LTCFLAGS' | |
13852 | compiler='$compiler_DEFAULT' | |
13853 | ||
13854 | # Quote evaled strings. | |
13855 | for var in SED \ | |
13856 | GREP \ | |
13857 | EGREP \ | |
13858 | FGREP \ | |
13859 | LD \ | |
13860 | NM \ | |
13861 | LN_S \ | |
13862 | lt_SP2NL \ | |
13863 | lt_NL2SP \ | |
13864 | reload_flag \ | |
b214d478 | 13865 | OBJDUMP \ |
d7040cdb SE |
13866 | deplibs_check_method \ |
13867 | file_magic_cmd \ | |
13868 | AR \ | |
13869 | AR_FLAGS \ | |
13870 | STRIP \ | |
13871 | RANLIB \ | |
13872 | CC \ | |
13873 | CFLAGS \ | |
13874 | compiler \ | |
13875 | lt_cv_sys_global_symbol_pipe \ | |
13876 | lt_cv_sys_global_symbol_to_cdecl \ | |
13877 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 13878 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
13879 | SHELL \ |
13880 | ECHO \ | |
13881 | lt_prog_compiler_no_builtin_flag \ | |
13882 | lt_prog_compiler_wl \ | |
13883 | lt_prog_compiler_pic \ | |
13884 | lt_prog_compiler_static \ | |
13885 | lt_cv_prog_compiler_c_o \ | |
13886 | need_locks \ | |
b214d478 SE |
13887 | DSYMUTIL \ |
13888 | NMEDIT \ | |
13889 | LIPO \ | |
13890 | OTOOL \ | |
13891 | OTOOL64 \ | |
d7040cdb SE |
13892 | shrext_cmds \ |
13893 | export_dynamic_flag_spec \ | |
13894 | whole_archive_flag_spec \ | |
13895 | compiler_needs_object \ | |
13896 | with_gnu_ld \ | |
13897 | allow_undefined_flag \ | |
13898 | no_undefined_flag \ | |
13899 | hardcode_libdir_flag_spec \ | |
13900 | hardcode_libdir_flag_spec_ld \ | |
13901 | hardcode_libdir_separator \ | |
13902 | fix_srcfile_path \ | |
13903 | exclude_expsyms \ | |
13904 | include_expsyms \ | |
13905 | file_list_spec \ | |
13906 | variables_saved_for_relink \ | |
13907 | libname_spec \ | |
13908 | library_names_spec \ | |
13909 | soname_spec \ | |
13910 | finish_eval \ | |
13911 | old_striplib \ | |
13912 | striplib; do | |
13913 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13914 | *[\\\\\\\`\\"\\\$]*) | |
13915 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13916 | ;; | |
13917 | *) | |
13918 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13919 | ;; | |
13920 | esac | |
13921 | done | |
13922 | ||
13923 | # Double-quote double-evaled strings. | |
13924 | for var in reload_cmds \ | |
13925 | old_postinstall_cmds \ | |
13926 | old_postuninstall_cmds \ | |
13927 | old_archive_cmds \ | |
13928 | extract_expsyms_cmds \ | |
13929 | old_archive_from_new_cmds \ | |
13930 | old_archive_from_expsyms_cmds \ | |
13931 | archive_cmds \ | |
13932 | archive_expsym_cmds \ | |
13933 | module_cmds \ | |
13934 | module_expsym_cmds \ | |
13935 | export_symbols_cmds \ | |
13936 | prelink_cmds \ | |
13937 | postinstall_cmds \ | |
13938 | postuninstall_cmds \ | |
13939 | finish_cmds \ | |
13940 | sys_lib_search_path_spec \ | |
13941 | sys_lib_dlsearch_path_spec; do | |
13942 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13943 | *[\\\\\\\`\\"\\\$]*) | |
13944 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13945 | ;; | |
13946 | *) | |
13947 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13948 | ;; | |
13949 | esac | |
13950 | done | |
13951 | ||
13952 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
13953 | case \$lt_ECHO in | |
13954 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
13955 | ;; | |
13956 | esac | |
13957 | ||
13958 | ac_aux_dir='$ac_aux_dir' | |
13959 | xsi_shell='$xsi_shell' | |
13960 | lt_shell_append='$lt_shell_append' | |
13961 | ||
13962 | # See if we are running on zsh, and set the options which allow our | |
13963 | # commands through without removal of \ escapes INIT. | |
13964 | if test -n "\${ZSH_VERSION+set}" ; then | |
13965 | setopt NO_GLOB_SUBST | |
13966 | fi | |
13967 | ||
13968 | ||
13969 | PACKAGE='$PACKAGE' | |
13970 | VERSION='$VERSION' | |
13971 | TIMESTAMP='$TIMESTAMP' | |
13972 | RM='$RM' | |
13973 | ofile='$ofile' | |
13974 | ||
13975 | ||
13976 | ||
20e95c23 DJ |
13977 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13978 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
13979 | # from automake. | |
13980 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13981 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13982 | LINGUAS="${LINGUAS-%UNSET%}" | |
13983 | ||
42ecbf5e DJ |
13984 | |
13985 | _ACEOF | |
13986 | ||
81ecdfbb | 13987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 13988 | |
81ecdfbb | 13989 | # Handling of arguments. |
42ecbf5e | 13990 | for ac_config_target in $ac_config_targets |
252b5132 | 13991 | do |
81ecdfbb RW |
13992 | case $ac_config_target in |
13993 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13994 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13995 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13996 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
13997 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13998 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
13999 | ||
14000 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
14001 | esac |
14002 | done | |
14003 | ||
81ecdfbb | 14004 | |
42ecbf5e DJ |
14005 | # If the user did not use the arguments to specify the items to instantiate, |
14006 | # then the envvar interface is used. Set only those that are not. | |
14007 | # We use the long form for the default assignment because of an extremely | |
14008 | # bizarre bug on SunOS 4.1.3. | |
14009 | if $ac_need_defaults; then | |
14010 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14011 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14012 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14013 | fi | |
14014 | ||
14015 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14016 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 14017 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14018 | # Hook for its removal unless debugging. |
14019 | # Note that there is a small window in which the directory will not be cleaned: | |
14020 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
14021 | $debug || |
14022 | { | |
81ecdfbb RW |
14023 | tmp= |
14024 | trap 'exit_status=$? | |
14025 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14026 | ' 0 | |
14027 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 14028 | } |
42ecbf5e | 14029 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 14030 | |
42ecbf5e | 14031 | { |
81ecdfbb | 14032 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
42ecbf5e DJ |
14033 | test -n "$tmp" && test -d "$tmp" |
14034 | } || | |
14035 | { | |
81ecdfbb RW |
14036 | tmp=./conf$$-$RANDOM |
14037 | (umask 077 && mkdir "$tmp") | |
14038 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14039 | ||
14040 | # Set up the scripts for CONFIG_FILES section. | |
14041 | # No need to generate them if there are no CONFIG_FILES. | |
14042 | # This happens for instance with `./config.status config.h'. | |
14043 | if test -n "$CONFIG_FILES"; then | |
14044 | ||
14045 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14046 | ac_cs_awk_getline=: | |
14047 | ac_cs_awk_pipe_init= | |
14048 | ac_cs_awk_read_file=' | |
14049 | while ((getline aline < (F[key])) > 0) | |
14050 | print(aline) | |
14051 | close(F[key])' | |
14052 | ac_cs_awk_pipe_fini= | |
14053 | else | |
14054 | ac_cs_awk_getline=false | |
14055 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14056 | ac_cs_awk_read_file=' | |
14057 | print "|#_!!_#|" | |
14058 | print "cat " F[key] " &&" | |
14059 | '$ac_cs_awk_pipe_init | |
14060 | # The final `:' finishes the AND list. | |
14061 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14062 | fi | |
14063 | ac_cr=`echo X | tr X '\015'` | |
14064 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14065 | # But we know of no other shell where ac_cr would be empty at this | |
14066 | # point, so we can use a bashism as a fallback. | |
14067 | if test "x$ac_cr" = x; then | |
14068 | eval ac_cr=\$\'\\r\' | |
14069 | fi | |
14070 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14071 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14072 | ac_cs_awk_cr='\r' | |
14073 | else | |
14074 | ac_cs_awk_cr=$ac_cr | |
14075 | fi | |
14076 | ||
14077 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14078 | _ACEOF | |
14079 | ||
14080 | # Create commands to substitute file output variables. | |
42ecbf5e | 14081 | { |
81ecdfbb RW |
14082 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14083 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14084 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14085 | echo "_ACAWK" && | |
14086 | echo "_ACEOF" | |
14087 | } >conf$$files.sh && | |
14088 | . ./conf$$files.sh || | |
14089 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14090 | rm -f conf$$files.sh | |
e5a52504 | 14091 | |
81ecdfbb RW |
14092 | { |
14093 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14094 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14095 | echo "_ACEOF" | |
14096 | } >conf$$subs.sh || | |
14097 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14098 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14099 | ac_delim='%!_!# ' | |
14100 | for ac_last_try in false false false false false :; do | |
14101 | . ./conf$$subs.sh || | |
14102 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14103 | ||
14104 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14105 | if test $ac_delim_n = $ac_delim_num; then | |
14106 | break | |
14107 | elif $ac_last_try; then | |
14108 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14109 | else | |
14110 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14111 | fi | |
14112 | done | |
14113 | rm -f conf$$subs.sh | |
14114 | ||
14115 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14116 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
14117 | _ACEOF | |
14118 | sed -n ' | |
14119 | h | |
14120 | s/^/S["/; s/!.*/"]=/ | |
14121 | p | |
14122 | g | |
14123 | s/^[^!]*!// | |
14124 | :repl | |
14125 | t repl | |
14126 | s/'"$ac_delim"'$// | |
14127 | t delim | |
14128 | :nl | |
14129 | h | |
14130 | s/\(.\{148\}\).*/\1/ | |
14131 | t more1 | |
14132 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14133 | p | |
14134 | n | |
14135 | b repl | |
14136 | :more1 | |
14137 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14138 | p | |
14139 | g | |
14140 | s/.\{148\}// | |
14141 | t nl | |
14142 | :delim | |
14143 | h | |
14144 | s/\(.\{148\}\).*/\1/ | |
14145 | t more2 | |
14146 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14147 | p | |
14148 | b | |
14149 | :more2 | |
14150 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14151 | p | |
14152 | g | |
14153 | s/.\{148\}// | |
14154 | t delim | |
14155 | ' <conf$$subs.awk | sed ' | |
14156 | /^[^""]/{ | |
14157 | N | |
14158 | s/\n// | |
14159 | } | |
14160 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14161 | rm -f conf$$subs.awk | |
14162 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14163 | _ACAWK | |
14164 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14165 | for (key in S) S_is_set[key] = 1 | |
14166 | FS = "\a" | |
14167 | \$ac_cs_awk_pipe_init | |
14168 | } | |
14169 | { | |
14170 | line = $ 0 | |
14171 | nfields = split(line, field, "@") | |
14172 | substed = 0 | |
14173 | len = length(field[1]) | |
14174 | for (i = 2; i < nfields; i++) { | |
14175 | key = field[i] | |
14176 | keylen = length(key) | |
14177 | if (S_is_set[key]) { | |
14178 | value = S[key] | |
14179 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14180 | len += length(value) + length(field[++i]) | |
14181 | substed = 1 | |
14182 | } else | |
14183 | len += 1 + keylen | |
14184 | } | |
14185 | if (nfields == 3 && !substed) { | |
14186 | key = field[2] | |
14187 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14188 | \$ac_cs_awk_read_file | |
14189 | next | |
14190 | } | |
14191 | } | |
14192 | print line | |
14193 | } | |
14194 | \$ac_cs_awk_pipe_fini | |
14195 | _ACAWK | |
14196 | _ACEOF | |
14197 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14198 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14199 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14200 | else | |
14201 | cat | |
14202 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14203 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 14204 | _ACEOF |
d15b04bd | 14205 | |
81ecdfbb RW |
14206 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
14207 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14208 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14209 | # (actually we leave an empty line to preserve line numbers). | |
14210 | if test "x$srcdir" = x.; then | |
14211 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14212 | s/:*\$(srcdir):*/:/ | |
14213 | s/:*\${srcdir}:*/:/ | |
14214 | s/:*@srcdir@:*/:/ | |
14215 | s/^\([^=]*=[ ]*\):*/\1/ | |
14216 | s/:*$// | |
14217 | s/^[^=]*=[ ]*$// | |
14218 | }' | |
14219 | fi | |
14220 | ||
14221 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14222 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 14223 | |
81ecdfbb RW |
14224 | # Set up the scripts for CONFIG_HEADERS section. |
14225 | # No need to generate them if there are no CONFIG_HEADERS. | |
14226 | # This happens for instance with `./config.status Makefile'. | |
14227 | if test -n "$CONFIG_HEADERS"; then | |
14228 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
14229 | BEGIN { | |
14230 | _ACEOF | |
42ecbf5e | 14231 | |
81ecdfbb RW |
14232 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14233 | # here-document in config.status, that substitutes the proper values into | |
14234 | # config.h.in to produce config.h. | |
252b5132 | 14235 | |
81ecdfbb RW |
14236 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14237 | # handling of long lines. | |
14238 | ac_delim='%!_!# ' | |
14239 | for ac_last_try in false false :; do | |
14240 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
14241 | if test -z "$ac_t"; then | |
14242 | break | |
14243 | elif $ac_last_try; then | |
14244 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
14245 | else | |
14246 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14247 | fi | |
14248 | done | |
14249 | ||
14250 | # For the awk script, D is an array of macro values keyed by name, | |
14251 | # likewise P contains macro parameters if any. Preserve backslash | |
14252 | # newline sequences. | |
14253 | ||
14254 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14255 | sed -n ' | |
14256 | s/.\{148\}/&'"$ac_delim"'/g | |
14257 | t rset | |
14258 | :rset | |
14259 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14260 | t def | |
14261 | d | |
14262 | :def | |
14263 | s/\\$// | |
14264 | t bsnl | |
14265 | s/["\\]/\\&/g | |
14266 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14267 | D["\1"]=" \3"/p | |
14268 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14269 | d | |
14270 | :bsnl | |
14271 | s/["\\]/\\&/g | |
14272 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14273 | D["\1"]=" \3\\\\\\n"\\/p | |
14274 | t cont | |
14275 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14276 | t cont | |
14277 | d | |
14278 | :cont | |
14279 | n | |
14280 | s/.\{148\}/&'"$ac_delim"'/g | |
14281 | t clear | |
14282 | :clear | |
14283 | s/\\$// | |
14284 | t bsnlc | |
14285 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14286 | d | |
14287 | :bsnlc | |
14288 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14289 | b cont | |
14290 | ' <confdefs.h | sed ' | |
14291 | s/'"$ac_delim"'/"\\\ | |
14292 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14293 | ||
14294 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14295 | for (key in D) D_is_set[key] = 1 | |
14296 | FS = "\a" | |
14297 | } | |
14298 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14299 | line = \$ 0 | |
14300 | split(line, arg, " ") | |
14301 | if (arg[1] == "#") { | |
14302 | defundef = arg[2] | |
14303 | mac1 = arg[3] | |
14304 | } else { | |
14305 | defundef = substr(arg[1], 2) | |
14306 | mac1 = arg[2] | |
14307 | } | |
14308 | split(mac1, mac2, "(") #) | |
14309 | macro = mac2[1] | |
14310 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14311 | if (D_is_set[macro]) { | |
14312 | # Preserve the white space surrounding the "#". | |
14313 | print prefix "define", macro P[macro] D[macro] | |
14314 | next | |
14315 | } else { | |
14316 | # Replace #undef with comments. This is necessary, for example, | |
14317 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14318 | # on some systems where configure will not decide to define it. | |
14319 | if (defundef == "undef") { | |
14320 | print "/*", prefix defundef, macro, "*/" | |
14321 | next | |
14322 | } | |
14323 | } | |
14324 | } | |
14325 | { print } | |
14326 | _ACAWK | |
42ecbf5e | 14327 | _ACEOF |
81ecdfbb RW |
14328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14329 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
14330 | fi # test -n "$CONFIG_HEADERS" | |
42ecbf5e | 14331 | |
81ecdfbb RW |
14332 | |
14333 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
14334 | shift | |
14335 | for ac_tag | |
14336 | do | |
14337 | case $ac_tag in | |
14338 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14339 | esac | |
14340 | case $ac_mode$ac_tag in | |
14341 | :[FHL]*:*);; | |
14342 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14343 | :[FH]-) ac_tag=-:-;; | |
14344 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14345 | esac | |
14346 | ac_save_IFS=$IFS | |
14347 | IFS=: | |
14348 | set x $ac_tag | |
14349 | IFS=$ac_save_IFS | |
14350 | shift | |
14351 | ac_file=$1 | |
14352 | shift | |
14353 | ||
14354 | case $ac_mode in | |
14355 | :L) ac_source=$1;; | |
14356 | :[FH]) | |
14357 | ac_file_inputs= | |
14358 | for ac_f | |
14359 | do | |
14360 | case $ac_f in | |
14361 | -) ac_f="$tmp/stdin";; | |
14362 | *) # Look for the file first in the build tree, then in the source tree | |
14363 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14364 | # because $ac_f cannot contain `:'. | |
14365 | test -f "$ac_f" || | |
14366 | case $ac_f in | |
14367 | [\\/$]*) false;; | |
14368 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14369 | esac || | |
14370 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
14371 | esac | |
14372 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14373 | as_fn_append ac_file_inputs " '$ac_f'" | |
14374 | done | |
14375 | ||
14376 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14377 | # use $as_me), people would be surprised to read: | |
14378 | # /* config.h. Generated by config.status. */ | |
14379 | configure_input='Generated from '` | |
14380 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14381 | `' by configure.' | |
14382 | if test x"$ac_file" != x-; then | |
14383 | configure_input="$ac_file. $configure_input" | |
14384 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
14385 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 14386 | fi |
81ecdfbb RW |
14387 | # Neutralize special characters interpreted by sed in replacement strings. |
14388 | case $configure_input in #( | |
14389 | *\&* | *\|* | *\\* ) | |
14390 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14391 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14392 | *) ac_sed_conf_input=$configure_input;; | |
14393 | esac | |
252b5132 | 14394 | |
81ecdfbb RW |
14395 | case $ac_tag in |
14396 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
14397 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
14398 | esac | |
14399 | ;; | |
252b5132 RH |
14400 | esac |
14401 | ||
81ecdfbb | 14402 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
14403 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14404 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14405 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14406 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
14407 | $as_echo X"$ac_file" | | |
14408 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14409 | s//\1/ | |
14410 | q | |
14411 | } | |
14412 | /^X\(\/\/\)[^/].*/{ | |
14413 | s//\1/ | |
14414 | q | |
14415 | } | |
14416 | /^X\(\/\/\)$/{ | |
14417 | s//\1/ | |
14418 | q | |
14419 | } | |
14420 | /^X\(\/\).*/{ | |
14421 | s//\1/ | |
14422 | q | |
14423 | } | |
14424 | s/.*/./; q'` | |
14425 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
14426 | ac_builddir=. |
14427 | ||
81ecdfbb RW |
14428 | case "$ac_dir" in |
14429 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14430 | *) | |
14431 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14432 | # A ".." for each directory in $ac_dir_suffix. | |
14433 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14434 | case $ac_top_builddir_sub in | |
14435 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14436 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14437 | esac ;; | |
14438 | esac | |
14439 | ac_abs_top_builddir=$ac_pwd | |
14440 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14441 | # for backward compatibility: | |
14442 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 14443 | |
42ecbf5e | 14444 | case $srcdir in |
81ecdfbb | 14445 | .) # We are building in place. |
42ecbf5e | 14446 | ac_srcdir=. |
81ecdfbb RW |
14447 | ac_top_srcdir=$ac_top_builddir_sub |
14448 | ac_abs_top_srcdir=$ac_pwd ;; | |
14449 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 14450 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
14451 | ac_top_srcdir=$srcdir |
14452 | ac_abs_top_srcdir=$srcdir ;; | |
14453 | *) # Relative name. | |
14454 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14455 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14456 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 14457 | esac |
81ecdfbb | 14458 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 14459 | |
252b5132 | 14460 | |
81ecdfbb RW |
14461 | case $ac_mode in |
14462 | :F) | |
14463 | # | |
14464 | # CONFIG_FILE | |
14465 | # | |
e5a52504 | 14466 | |
42ecbf5e DJ |
14467 | case $INSTALL in |
14468 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
14469 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14470 | esac | |
14471 | ac_MKDIR_P=$MKDIR_P | |
14472 | case $MKDIR_P in | |
14473 | [\\/$]* | ?:[\\/]* ) ;; | |
14474 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 14475 | esac |
81ecdfbb | 14476 | _ACEOF |
e5a52504 | 14477 | |
81ecdfbb RW |
14478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14479 | # If the template does not know about datarootdir, expand it. | |
14480 | # FIXME: This hack should be removed a few years after 2.60. | |
14481 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
14482 | ac_sed_dataroot=' | |
14483 | /datarootdir/ { | |
14484 | p | |
14485 | q | |
14486 | } | |
14487 | /@datadir@/p | |
14488 | /@docdir@/p | |
14489 | /@infodir@/p | |
14490 | /@localedir@/p | |
14491 | /@mandir@/p' | |
14492 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
14493 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14494 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14496 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14497 | _ACEOF | |
14498 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14499 | ac_datarootdir_hack=' | |
14500 | s&@datadir@&$datadir&g | |
14501 | s&@docdir@&$docdir&g | |
14502 | s&@infodir@&$infodir&g | |
14503 | s&@localedir@&$localedir&g | |
14504 | s&@mandir@&$mandir&g | |
14505 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14506 | esac | |
42ecbf5e | 14507 | _ACEOF |
81ecdfbb RW |
14508 | |
14509 | # Neutralize VPATH when `$srcdir' = `.'. | |
14510 | # Shell code in configure.ac might set extrasub. | |
14511 | # FIXME: do we really want to maintain this feature? | |
14512 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14513 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
14514 | $extrasub |
14515 | _ACEOF | |
81ecdfbb | 14516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
14517 | :t |
14518 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
14519 | s|@configure_input@|$ac_sed_conf_input|;t t |
14520 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14521 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14522 | s&@srcdir@&$ac_srcdir&;t t | |
14523 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14524 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14525 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14526 | s&@builddir@&$ac_builddir&;t t | |
14527 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14528 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14529 | s&@INSTALL@&$ac_INSTALL&;t t | |
14530 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14531 | $ac_datarootdir_hack | |
14532 | " | |
14533 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
14534 | if $ac_cs_awk_getline; then | |
14535 | $AWK -f "$tmp/subs.awk" | |
14536 | else | |
14537 | $AWK -f "$tmp/subs.awk" | $SHELL | |
14538 | fi >$tmp/out \ | |
14539 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14540 | ||
14541 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14542 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14543 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14545 | which seems to be undefined. Please make sure it is defined." >&5 | |
14546 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14547 | which seems to be undefined. Please make sure it is defined." >&2;} | |
14548 | ||
14549 | rm -f "$tmp/stdin" | |
42ecbf5e | 14550 | case $ac_file in |
81ecdfbb RW |
14551 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
14552 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14553 | esac \ | |
14554 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14555 | ;; | |
14556 | :H) | |
14557 | # | |
14558 | # CONFIG_HEADER | |
14559 | # | |
42ecbf5e | 14560 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
14561 | { |
14562 | $as_echo "/* $configure_input */" \ | |
14563 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14564 | } >"$tmp/config.h" \ | |
14565 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14566 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
14568 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 14569 | else |
81ecdfbb RW |
14570 | rm -f "$ac_file" |
14571 | mv "$tmp/config.h" "$ac_file" \ | |
14572 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 14573 | fi |
42ecbf5e | 14574 | else |
81ecdfbb RW |
14575 | $as_echo "/* $configure_input */" \ |
14576 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14577 | || as_fn_error "could not create -" "$LINENO" 5 | |
e5a52504 | 14578 | fi |
81ecdfbb RW |
14579 | # Compute "$ac_file"'s index in $config_headers. |
14580 | _am_arg="$ac_file" | |
42ecbf5e DJ |
14581 | _am_stamp_count=1 |
14582 | for _am_header in $config_headers :; do | |
14583 | case $_am_header in | |
81ecdfbb | 14584 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
14585 | break ;; |
14586 | * ) | |
14587 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14588 | esac | |
14589 | done | |
81ecdfbb RW |
14590 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14591 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14592 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14593 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14594 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14595 | $as_echo X"$_am_arg" | | |
14596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14597 | s//\1/ | |
14598 | q | |
14599 | } | |
14600 | /^X\(\/\/\)[^/].*/{ | |
14601 | s//\1/ | |
14602 | q | |
14603 | } | |
14604 | /^X\(\/\/\)$/{ | |
14605 | s//\1/ | |
14606 | q | |
14607 | } | |
14608 | /^X\(\/\).*/{ | |
14609 | s//\1/ | |
14610 | q | |
14611 | } | |
14612 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14613 | ;; | |
42ecbf5e | 14614 | |
81ecdfbb RW |
14615 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14616 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14617 | ;; | |
14618 | esac | |
42ecbf5e DJ |
14619 | |
14620 | ||
81ecdfbb RW |
14621 | case $ac_file$ac_mode in |
14622 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
14623 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14624 | # are listed without --file. Let's play safe and only enable the eval | |
14625 | # if we detect the quoting. | |
14626 | case $CONFIG_FILES in | |
14627 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14628 | *) set x $CONFIG_FILES ;; | |
14629 | esac | |
14630 | shift | |
14631 | for mf | |
14632 | do | |
14633 | # Strip MF so we end up with the name of the file. | |
14634 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14635 | # Check whether this is an Automake generated Makefile or not. | |
14636 | # We used to match only the files named `Makefile.in', but | |
14637 | # some people rename them; so instead we look at the file content. | |
14638 | # Grep'ing the first line is not enough: some people post-process | |
14639 | # each Makefile.in and add a new line on top of each file to say so. | |
14640 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14641 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14642 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14643 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
14644 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14645 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14646 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14647 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14648 | $as_echo X"$mf" | | |
14649 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14650 | s//\1/ | |
14651 | q | |
14652 | } | |
14653 | /^X\(\/\/\)[^/].*/{ | |
14654 | s//\1/ | |
14655 | q | |
14656 | } | |
14657 | /^X\(\/\/\)$/{ | |
14658 | s//\1/ | |
14659 | q | |
14660 | } | |
14661 | /^X\(\/\).*/{ | |
14662 | s//\1/ | |
14663 | q | |
14664 | } | |
14665 | s/.*/./; q'` | |
14666 | else | |
14667 | continue | |
14668 | fi | |
14669 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14670 | # from the Makefile without running `make'. | |
14671 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14672 | test -z "$DEPDIR" && continue | |
14673 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14674 | test -z "am__include" && continue | |
14675 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14676 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14677 | U=`sed -n 's/^U = //p' < "$mf"` | |
14678 | # Find all dependency output files, they are included files with | |
14679 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14680 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14681 | # expansion. | |
14682 | for file in `sed -n " | |
14683 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14684 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14685 | # Make sure the directory exists. | |
14686 | test -f "$dirpart/$file" && continue | |
14687 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
14688 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14689 | X"$file" : 'X\(//\)[^/]' \| \ | |
14690 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14691 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14692 | $as_echo X"$file" | | |
14693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14694 | s//\1/ | |
14695 | q | |
14696 | } | |
14697 | /^X\(\/\/\)[^/].*/{ | |
14698 | s//\1/ | |
14699 | q | |
14700 | } | |
14701 | /^X\(\/\/\)$/{ | |
14702 | s//\1/ | |
14703 | q | |
14704 | } | |
14705 | /^X\(\/\).*/{ | |
14706 | s//\1/ | |
14707 | q | |
14708 | } | |
14709 | s/.*/./; q'` | |
14710 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14711 | # echo "creating $dirpart/$file" | |
14712 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 14713 | done |
42ecbf5e | 14714 | done |
81ecdfbb | 14715 | } |
d7040cdb | 14716 | ;; |
81ecdfbb | 14717 | "libtool":C) |
d7040cdb SE |
14718 | |
14719 | # See if we are running on zsh, and set the options which allow our | |
14720 | # commands through without removal of \ escapes. | |
14721 | if test -n "${ZSH_VERSION+set}" ; then | |
14722 | setopt NO_GLOB_SUBST | |
14723 | fi | |
14724 | ||
14725 | cfgfile="${ofile}T" | |
14726 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14727 | $RM "$cfgfile" | |
14728 | ||
14729 | cat <<_LT_EOF >> "$cfgfile" | |
14730 | #! $SHELL | |
14731 | ||
14732 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 14733 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
14734 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14735 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14736 | # | |
b214d478 SE |
14737 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
14738 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
14739 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 14740 | # |
b214d478 | 14741 | # This file is part of GNU Libtool. |
d7040cdb | 14742 | # |
b214d478 SE |
14743 | # GNU Libtool is free software; you can redistribute it and/or |
14744 | # modify it under the terms of the GNU General Public License as | |
14745 | # published by the Free Software Foundation; either version 2 of | |
14746 | # the License, or (at your option) any later version. | |
d7040cdb | 14747 | # |
b214d478 SE |
14748 | # As a special exception to the GNU General Public License, |
14749 | # if you distribute this file as part of a program or library that | |
14750 | # is built using GNU Libtool, you may include this file under the | |
14751 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 14752 | # |
b214d478 SE |
14753 | # GNU Libtool is distributed in the hope that it will be useful, |
14754 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14755 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14756 | # GNU General Public License for more details. | |
d7040cdb | 14757 | # |
b214d478 SE |
14758 | # You should have received a copy of the GNU General Public License |
14759 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14760 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14761 | # obtained by writing to the Free Software Foundation, Inc., | |
14762 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
14763 | |
14764 | ||
14765 | # The names of the tagged configurations supported by this script. | |
14766 | available_tags="" | |
14767 | ||
14768 | # ### BEGIN LIBTOOL CONFIG | |
14769 | ||
14770 | # Which release of libtool.m4 was used? | |
14771 | macro_version=$macro_version | |
14772 | macro_revision=$macro_revision | |
14773 | ||
14774 | # Whether or not to build shared libraries. | |
14775 | build_libtool_libs=$enable_shared | |
14776 | ||
14777 | # Whether or not to build static libraries. | |
14778 | build_old_libs=$enable_static | |
14779 | ||
14780 | # What type of objects to build. | |
14781 | pic_mode=$pic_mode | |
14782 | ||
14783 | # Whether or not to optimize for fast installation. | |
14784 | fast_install=$enable_fast_install | |
14785 | ||
14786 | # The host system. | |
14787 | host_alias=$host_alias | |
14788 | host=$host | |
14789 | host_os=$host_os | |
14790 | ||
14791 | # The build system. | |
14792 | build_alias=$build_alias | |
14793 | build=$build | |
14794 | build_os=$build_os | |
14795 | ||
14796 | # A sed program that does not truncate output. | |
14797 | SED=$lt_SED | |
14798 | ||
14799 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14800 | Xsed="\$SED -e 1s/^X//" | |
14801 | ||
14802 | # A grep program that handles long lines. | |
14803 | GREP=$lt_GREP | |
14804 | ||
14805 | # An ERE matcher. | |
14806 | EGREP=$lt_EGREP | |
14807 | ||
14808 | # A literal string matcher. | |
14809 | FGREP=$lt_FGREP | |
14810 | ||
14811 | # A BSD- or MS-compatible name lister. | |
14812 | NM=$lt_NM | |
14813 | ||
14814 | # Whether we need soft or hard links. | |
14815 | LN_S=$lt_LN_S | |
14816 | ||
14817 | # What is the maximum length of a command? | |
14818 | max_cmd_len=$max_cmd_len | |
14819 | ||
14820 | # Object file suffix (normally "o"). | |
14821 | objext=$ac_objext | |
14822 | ||
14823 | # Executable file suffix (normally ""). | |
14824 | exeext=$exeext | |
14825 | ||
14826 | # whether the shell understands "unset". | |
14827 | lt_unset=$lt_unset | |
14828 | ||
14829 | # turn spaces into newlines. | |
14830 | SP2NL=$lt_lt_SP2NL | |
14831 | ||
14832 | # turn newlines into spaces. | |
14833 | NL2SP=$lt_lt_NL2SP | |
14834 | ||
14835 | # How to create reloadable object files. | |
14836 | reload_flag=$lt_reload_flag | |
14837 | reload_cmds=$lt_reload_cmds | |
14838 | ||
b214d478 SE |
14839 | # An object symbol dumper. |
14840 | OBJDUMP=$lt_OBJDUMP | |
14841 | ||
d7040cdb SE |
14842 | # Method to check whether dependent libraries are shared objects. |
14843 | deplibs_check_method=$lt_deplibs_check_method | |
14844 | ||
14845 | # Command to use when deplibs_check_method == "file_magic". | |
14846 | file_magic_cmd=$lt_file_magic_cmd | |
14847 | ||
14848 | # The archiver. | |
14849 | AR=$lt_AR | |
14850 | AR_FLAGS=$lt_AR_FLAGS | |
14851 | ||
14852 | # A symbol stripping program. | |
14853 | STRIP=$lt_STRIP | |
14854 | ||
14855 | # Commands used to install an old-style archive. | |
14856 | RANLIB=$lt_RANLIB | |
14857 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14858 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14859 | ||
14860 | # A C compiler. | |
14861 | LTCC=$lt_CC | |
14862 | ||
14863 | # LTCC compiler flags. | |
14864 | LTCFLAGS=$lt_CFLAGS | |
14865 | ||
14866 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14867 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14868 | ||
14869 | # Transform the output of nm in a proper C declaration. | |
14870 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14871 | ||
14872 | # Transform the output of nm in a C name address pair. | |
14873 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14874 | ||
b214d478 SE |
14875 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14876 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14877 | ||
d7040cdb SE |
14878 | # The name of the directory that contains temporary libtool files. |
14879 | objdir=$objdir | |
14880 | ||
14881 | # Shell to use when invoking shell scripts. | |
14882 | SHELL=$lt_SHELL | |
14883 | ||
14884 | # An echo program that does not interpret backslashes. | |
14885 | ECHO=$lt_ECHO | |
14886 | ||
14887 | # Used to examine libraries when file_magic_cmd begins with "file". | |
14888 | MAGIC_CMD=$MAGIC_CMD | |
14889 | ||
14890 | # Must we lock files when doing compilation? | |
14891 | need_locks=$lt_need_locks | |
14892 | ||
b214d478 SE |
14893 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14894 | DSYMUTIL=$lt_DSYMUTIL | |
14895 | ||
14896 | # Tool to change global to local symbols on Mac OS X. | |
14897 | NMEDIT=$lt_NMEDIT | |
14898 | ||
14899 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14900 | LIPO=$lt_LIPO | |
14901 | ||
14902 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14903 | OTOOL=$lt_OTOOL | |
14904 | ||
14905 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14906 | OTOOL64=$lt_OTOOL64 | |
14907 | ||
d7040cdb SE |
14908 | # Old archive suffix (normally "a"). |
14909 | libext=$libext | |
14910 | ||
14911 | # Shared library suffix (normally ".so"). | |
14912 | shrext_cmds=$lt_shrext_cmds | |
14913 | ||
14914 | # The commands to extract the exported symbol list from a shared archive. | |
14915 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14916 | ||
14917 | # Variables whose values should be saved in libtool wrapper scripts and | |
14918 | # restored at link time. | |
14919 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14920 | ||
14921 | # Do we need the "lib" prefix for modules? | |
14922 | need_lib_prefix=$need_lib_prefix | |
14923 | ||
14924 | # Do we need a version for libraries? | |
14925 | need_version=$need_version | |
14926 | ||
14927 | # Library versioning type. | |
14928 | version_type=$version_type | |
14929 | ||
14930 | # Shared library runtime path variable. | |
14931 | runpath_var=$runpath_var | |
14932 | ||
14933 | # Shared library path variable. | |
14934 | shlibpath_var=$shlibpath_var | |
14935 | ||
14936 | # Is shlibpath searched before the hard-coded library search path? | |
14937 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14938 | ||
14939 | # Format of library name prefix. | |
14940 | libname_spec=$lt_libname_spec | |
14941 | ||
14942 | # List of archive names. First name is the real one, the rest are links. | |
14943 | # The last name is the one that the linker finds with -lNAME | |
14944 | library_names_spec=$lt_library_names_spec | |
14945 | ||
14946 | # The coded name of the library, if different from the real name. | |
14947 | soname_spec=$lt_soname_spec | |
14948 | ||
14949 | # Command to use after installation of a shared archive. | |
14950 | postinstall_cmds=$lt_postinstall_cmds | |
14951 | ||
14952 | # Command to use after uninstallation of a shared archive. | |
14953 | postuninstall_cmds=$lt_postuninstall_cmds | |
14954 | ||
14955 | # Commands used to finish a libtool library installation in a directory. | |
14956 | finish_cmds=$lt_finish_cmds | |
14957 | ||
14958 | # As "finish_cmds", except a single script fragment to be evaled but | |
14959 | # not shown. | |
14960 | finish_eval=$lt_finish_eval | |
14961 | ||
14962 | # Whether we should hardcode library paths into libraries. | |
14963 | hardcode_into_libs=$hardcode_into_libs | |
14964 | ||
14965 | # Compile-time system search path for libraries. | |
14966 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14967 | ||
14968 | # Run-time system search path for libraries. | |
14969 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14970 | ||
14971 | # Whether dlopen is supported. | |
14972 | dlopen_support=$enable_dlopen | |
14973 | ||
14974 | # Whether dlopen of programs is supported. | |
14975 | dlopen_self=$enable_dlopen_self | |
14976 | ||
14977 | # Whether dlopen of statically linked programs is supported. | |
14978 | dlopen_self_static=$enable_dlopen_self_static | |
14979 | ||
14980 | # Commands to strip libraries. | |
14981 | old_striplib=$lt_old_striplib | |
14982 | striplib=$lt_striplib | |
14983 | ||
14984 | ||
14985 | # The linker used to build libraries. | |
14986 | LD=$lt_LD | |
14987 | ||
14988 | # Commands used to build an old-style archive. | |
14989 | old_archive_cmds=$lt_old_archive_cmds | |
14990 | ||
14991 | # A language specific compiler. | |
14992 | CC=$lt_compiler | |
14993 | ||
14994 | # Is the compiler the GNU compiler? | |
14995 | with_gcc=$GCC | |
14996 | ||
14997 | # Compiler flag to turn off builtin functions. | |
14998 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14999 | ||
15000 | # How to pass a linker flag through the compiler. | |
15001 | wl=$lt_lt_prog_compiler_wl | |
15002 | ||
15003 | # Additional compiler flags for building library objects. | |
15004 | pic_flag=$lt_lt_prog_compiler_pic | |
15005 | ||
15006 | # Compiler flag to prevent dynamic linking. | |
15007 | link_static_flag=$lt_lt_prog_compiler_static | |
15008 | ||
15009 | # Does compiler simultaneously support -c and -o options? | |
15010 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15011 | ||
15012 | # Whether or not to add -lc for building shared libraries. | |
15013 | build_libtool_need_lc=$archive_cmds_need_lc | |
15014 | ||
15015 | # Whether or not to disallow shared libs when runtime libs are static. | |
15016 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15017 | ||
15018 | # Compiler flag to allow reflexive dlopens. | |
15019 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
15020 | ||
15021 | # Compiler flag to generate shared objects directly from archives. | |
15022 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
15023 | ||
15024 | # Whether the compiler copes with passing no objects directly. | |
15025 | compiler_needs_object=$lt_compiler_needs_object | |
15026 | ||
15027 | # Create an old-style archive from a shared archive. | |
15028 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
15029 | ||
15030 | # Create a temporary old-style archive to link instead of a shared archive. | |
15031 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
15032 | ||
15033 | # Commands used to build a shared archive. | |
15034 | archive_cmds=$lt_archive_cmds | |
15035 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
15036 | ||
15037 | # Commands used to build a loadable module if different from building | |
15038 | # a shared archive. | |
15039 | module_cmds=$lt_module_cmds | |
15040 | module_expsym_cmds=$lt_module_expsym_cmds | |
15041 | ||
15042 | # Whether we are building with GNU ld or not. | |
15043 | with_gnu_ld=$lt_with_gnu_ld | |
15044 | ||
15045 | # Flag that allows shared libraries with undefined symbols to be built. | |
15046 | allow_undefined_flag=$lt_allow_undefined_flag | |
15047 | ||
15048 | # Flag that enforces no undefined symbols. | |
15049 | no_undefined_flag=$lt_no_undefined_flag | |
15050 | ||
15051 | # Flag to hardcode \$libdir into a binary during linking. | |
15052 | # This must work even if \$libdir does not exist | |
15053 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
15054 | ||
15055 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
15056 | # during linking. This must work even if \$libdir does not exist. | |
15057 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
15058 | ||
15059 | # Whether we need a single "-rpath" flag with a separated argument. | |
15060 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
15061 | ||
15062 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15063 | # DIR into the resulting binary. | |
15064 | hardcode_direct=$hardcode_direct | |
15065 | ||
15066 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15067 | # DIR into the resulting binary and the resulting library dependency is | |
15068 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15069 | # library is relocated. | |
15070 | hardcode_direct_absolute=$hardcode_direct_absolute | |
15071 | ||
15072 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
15073 | # into the resulting binary. | |
15074 | hardcode_minus_L=$hardcode_minus_L | |
15075 | ||
15076 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
15077 | # into the resulting binary. | |
15078 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
15079 | ||
15080 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
15081 | # into the library and all subsequent libraries and executables linked | |
15082 | # against it. | |
15083 | hardcode_automatic=$hardcode_automatic | |
15084 | ||
15085 | # Set to yes if linker adds runtime paths of dependent libraries | |
15086 | # to runtime path list. | |
15087 | inherit_rpath=$inherit_rpath | |
15088 | ||
15089 | # Whether libtool must link a program against all its dependency libraries. | |
15090 | link_all_deplibs=$link_all_deplibs | |
15091 | ||
15092 | # Fix the shell variable \$srcfile for the compiler. | |
15093 | fix_srcfile_path=$lt_fix_srcfile_path | |
15094 | ||
15095 | # Set to "yes" if exported symbols are required. | |
15096 | always_export_symbols=$always_export_symbols | |
15097 | ||
15098 | # The commands to list exported symbols. | |
15099 | export_symbols_cmds=$lt_export_symbols_cmds | |
15100 | ||
15101 | # Symbols that should not be listed in the preloaded symbols. | |
15102 | exclude_expsyms=$lt_exclude_expsyms | |
15103 | ||
15104 | # Symbols that must always be exported. | |
15105 | include_expsyms=$lt_include_expsyms | |
15106 | ||
15107 | # Commands necessary for linking programs (against libraries) with templates. | |
15108 | prelink_cmds=$lt_prelink_cmds | |
15109 | ||
15110 | # Specify filename containing input files. | |
15111 | file_list_spec=$lt_file_list_spec | |
15112 | ||
15113 | # How to hardcode a shared library path into an executable. | |
15114 | hardcode_action=$hardcode_action | |
15115 | ||
15116 | # ### END LIBTOOL CONFIG | |
15117 | ||
15118 | _LT_EOF | |
15119 | ||
15120 | case $host_os in | |
15121 | aix3*) | |
15122 | cat <<\_LT_EOF >> "$cfgfile" | |
15123 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15124 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15125 | # vanish in a puff of smoke. | |
15126 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15127 | COLLECT_NAMES= | |
15128 | export COLLECT_NAMES | |
15129 | fi | |
15130 | _LT_EOF | |
15131 | ;; | |
15132 | esac | |
15133 | ||
15134 | ||
15135 | ltmain="$ac_aux_dir/ltmain.sh" | |
15136 | ||
15137 | ||
15138 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15139 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15140 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15141 | # is reportedly fixed, but why not run on old versions too? | |
15142 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15143 | || (rm -f "$cfgfile"; exit 1) | |
15144 | ||
15145 | case $xsi_shell in | |
15146 | yes) | |
15147 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 15148 | |
d7040cdb SE |
15149 | # func_dirname file append nondir_replacement |
15150 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15151 | # otherwise set result to NONDIR_REPLACEMENT. | |
15152 | func_dirname () | |
15153 | { | |
15154 | case ${1} in | |
15155 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15156 | * ) func_dirname_result="${3}" ;; | |
15157 | esac | |
15158 | } | |
15159 | ||
15160 | # func_basename file | |
15161 | func_basename () | |
15162 | { | |
15163 | func_basename_result="${1##*/}" | |
15164 | } | |
15165 | ||
b214d478 SE |
15166 | # func_dirname_and_basename file append nondir_replacement |
15167 | # perform func_basename and func_dirname in a single function | |
15168 | # call: | |
15169 | # dirname: Compute the dirname of FILE. If nonempty, | |
15170 | # add APPEND to the result, otherwise set result | |
15171 | # to NONDIR_REPLACEMENT. | |
15172 | # value returned in "$func_dirname_result" | |
15173 | # basename: Compute filename of FILE. | |
15174 | # value retuned in "$func_basename_result" | |
15175 | # Implementation must be kept synchronized with func_dirname | |
15176 | # and func_basename. For efficiency, we do not delegate to | |
15177 | # those functions but instead duplicate the functionality here. | |
15178 | func_dirname_and_basename () | |
15179 | { | |
15180 | case ${1} in | |
15181 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15182 | * ) func_dirname_result="${3}" ;; | |
15183 | esac | |
15184 | func_basename_result="${1##*/}" | |
15185 | } | |
15186 | ||
d7040cdb SE |
15187 | # func_stripname prefix suffix name |
15188 | # strip PREFIX and SUFFIX off of NAME. | |
15189 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15190 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15191 | # dot (in which case that matches only a dot). | |
15192 | func_stripname () | |
15193 | { | |
15194 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15195 | # positional parameters, so assign one to ordinary parameter first. | |
15196 | func_stripname_result=${3} | |
15197 | func_stripname_result=${func_stripname_result#"${1}"} | |
15198 | func_stripname_result=${func_stripname_result%"${2}"} | |
15199 | } | |
15200 | ||
15201 | # func_opt_split | |
15202 | func_opt_split () | |
15203 | { | |
15204 | func_opt_split_opt=${1%%=*} | |
15205 | func_opt_split_arg=${1#*=} | |
15206 | } | |
15207 | ||
15208 | # func_lo2o object | |
15209 | func_lo2o () | |
15210 | { | |
15211 | case ${1} in | |
15212 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15213 | *) func_lo2o_result=${1} ;; | |
15214 | esac | |
15215 | } | |
b214d478 SE |
15216 | |
15217 | # func_xform libobj-or-source | |
15218 | func_xform () | |
15219 | { | |
15220 | func_xform_result=${1%.*}.lo | |
15221 | } | |
15222 | ||
15223 | # func_arith arithmetic-term... | |
15224 | func_arith () | |
15225 | { | |
15226 | func_arith_result=$(( $* )) | |
15227 | } | |
15228 | ||
15229 | # func_len string | |
15230 | # STRING may not start with a hyphen. | |
15231 | func_len () | |
15232 | { | |
15233 | func_len_result=${#1} | |
15234 | } | |
15235 | ||
d7040cdb SE |
15236 | _LT_EOF |
15237 | ;; | |
15238 | *) # Bourne compatible functions. | |
15239 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 15240 | |
d7040cdb SE |
15241 | # func_dirname file append nondir_replacement |
15242 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15243 | # otherwise set result to NONDIR_REPLACEMENT. | |
15244 | func_dirname () | |
15245 | { | |
15246 | # Extract subdirectory from the argument. | |
15247 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
15248 | if test "X$func_dirname_result" = "X${1}"; then | |
15249 | func_dirname_result="${3}" | |
15250 | else | |
15251 | func_dirname_result="$func_dirname_result${2}" | |
15252 | fi | |
15253 | } | |
15254 | ||
15255 | # func_basename file | |
15256 | func_basename () | |
15257 | { | |
15258 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
15259 | } | |
15260 | ||
b214d478 | 15261 | |
d7040cdb SE |
15262 | # func_stripname prefix suffix name |
15263 | # strip PREFIX and SUFFIX off of NAME. | |
15264 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15265 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15266 | # dot (in which case that matches only a dot). | |
15267 | # func_strip_suffix prefix name | |
15268 | func_stripname () | |
15269 | { | |
15270 | case ${2} in | |
15271 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
15272 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
15273 | *) func_stripname_result=`$ECHO "X${3}" \ | |
15274 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
15275 | esac | |
15276 | } | |
15277 | ||
15278 | # sed scripts: | |
15279 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15280 | my_sed_long_arg='1s/^-[^=]*=//' | |
15281 | ||
15282 | # func_opt_split | |
15283 | func_opt_split () | |
15284 | { | |
15285 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
15286 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
15287 | } | |
15288 | ||
15289 | # func_lo2o object | |
15290 | func_lo2o () | |
15291 | { | |
15292 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
15293 | } | |
b214d478 SE |
15294 | |
15295 | # func_xform libobj-or-source | |
15296 | func_xform () | |
15297 | { | |
15298 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
15299 | } | |
15300 | ||
15301 | # func_arith arithmetic-term... | |
15302 | func_arith () | |
15303 | { | |
15304 | func_arith_result=`expr "$@"` | |
15305 | } | |
15306 | ||
15307 | # func_len string | |
15308 | # STRING may not start with a hyphen. | |
15309 | func_len () | |
15310 | { | |
15311 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15312 | } | |
15313 | ||
d7040cdb SE |
15314 | _LT_EOF |
15315 | esac | |
15316 | ||
15317 | case $lt_shell_append in | |
15318 | yes) | |
15319 | cat << \_LT_EOF >> "$cfgfile" | |
15320 | ||
15321 | # func_append var value | |
15322 | # Append VALUE to the end of shell variable VAR. | |
15323 | func_append () | |
15324 | { | |
15325 | eval "$1+=\$2" | |
15326 | } | |
15327 | _LT_EOF | |
15328 | ;; | |
15329 | *) | |
15330 | cat << \_LT_EOF >> "$cfgfile" | |
15331 | ||
15332 | # func_append var value | |
15333 | # Append VALUE to the end of shell variable VAR. | |
15334 | func_append () | |
15335 | { | |
15336 | eval "$1=\$$1\$2" | |
15337 | } | |
b214d478 | 15338 | |
d7040cdb SE |
15339 | _LT_EOF |
15340 | ;; | |
15341 | esac | |
15342 | ||
15343 | ||
15344 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15345 | || (rm -f "$cfgfile"; exit 1) | |
15346 | ||
15347 | mv -f "$cfgfile" "$ofile" || | |
15348 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15349 | chmod +x "$ofile" | |
15350 | ||
42ecbf5e | 15351 | ;; |
81ecdfbb | 15352 | "default-1":C) |
20e95c23 DJ |
15353 | for ac_file in $CONFIG_FILES; do |
15354 | # Support "outfile[:infile[:infile...]]" | |
15355 | case "$ac_file" in | |
15356 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15357 | esac | |
15358 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
15359 | case "$ac_file" in */Makefile.in) | |
15360 | # Adjust a relative srcdir. | |
15361 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
15362 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
15363 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
15364 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
15365 | # In autoconf-2.50 it is called $srcdir. | |
15366 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
15367 | case "$ac_given_srcdir" in | |
15368 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
15369 | /*) top_srcdir="$ac_given_srcdir" ;; | |
15370 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15371 | esac | |
15372 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
15373 | rm -f "$ac_dir/POTFILES" | |
15374 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
15375 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
15376 | POMAKEFILEDEPS="POTFILES.in" | |
15377 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
15378 | # on $ac_dir but don't depend on user-specified configuration | |
15379 | # parameters. | |
15380 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
15381 | # The LINGUAS file contains the set of available languages. | |
15382 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
15383 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
15384 | fi | |
15385 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
15386 | # Hide the ALL_LINGUAS assigment from automake. | |
15387 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
15388 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
15389 | else | |
15390 | # The set of available languages was given in configure.in. | |
15391 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
15392 | fi | |
15393 | case "$ac_given_srcdir" in | |
15394 | .) srcdirpre= ;; | |
15395 | *) srcdirpre='$(srcdir)/' ;; | |
15396 | esac | |
15397 | POFILES= | |
15398 | GMOFILES= | |
15399 | UPDATEPOFILES= | |
15400 | DUMMYPOFILES= | |
15401 | for lang in $ALL_LINGUAS; do | |
15402 | POFILES="$POFILES $srcdirpre$lang.po" | |
15403 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
15404 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
15405 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
15406 | done | |
15407 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
15408 | # environment variable. | |
15409 | INST_LINGUAS= | |
15410 | if test -n "$ALL_LINGUAS"; then | |
15411 | for presentlang in $ALL_LINGUAS; do | |
15412 | useit=no | |
15413 | if test "%UNSET%" != "$LINGUAS"; then | |
15414 | desiredlanguages="$LINGUAS" | |
15415 | else | |
15416 | desiredlanguages="$ALL_LINGUAS" | |
15417 | fi | |
15418 | for desiredlang in $desiredlanguages; do | |
15419 | # Use the presentlang catalog if desiredlang is | |
15420 | # a. equal to presentlang, or | |
15421 | # b. a variant of presentlang (because in this case, | |
15422 | # presentlang can be used as a fallback for messages | |
15423 | # which are not translated in the desiredlang catalog). | |
15424 | case "$desiredlang" in | |
15425 | "$presentlang"*) useit=yes;; | |
15426 | esac | |
15427 | done | |
15428 | if test $useit = yes; then | |
15429 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
15430 | fi | |
15431 | done | |
15432 | fi | |
15433 | CATALOGS= | |
15434 | if test -n "$INST_LINGUAS"; then | |
15435 | for lang in $INST_LINGUAS; do | |
15436 | CATALOGS="$CATALOGS $lang.gmo" | |
15437 | done | |
15438 | fi | |
15439 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
15440 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
15441 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
15442 | if test -f "$f"; then | |
15443 | case "$f" in | |
15444 | *.orig | *.bak | *~) ;; | |
15445 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
15446 | esac | |
15447 | fi | |
15448 | done | |
15449 | fi | |
15450 | ;; | |
15451 | esac | |
15452 | done ;; | |
81ecdfbb | 15453 | |
42ecbf5e | 15454 | esac |
81ecdfbb | 15455 | done # for ac_tag |
42ecbf5e | 15456 | |
42ecbf5e | 15457 | |
81ecdfbb | 15458 | as_fn_exit 0 |
42ecbf5e | 15459 | _ACEOF |
42ecbf5e DJ |
15460 | ac_clean_files=$ac_clean_files_save |
15461 | ||
81ecdfbb RW |
15462 | test $ac_write_fail = 0 || |
15463 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15464 | ||
42ecbf5e DJ |
15465 | |
15466 | # configure is writing to config.log, and then calls config.status. | |
15467 | # config.status does its own redirection, appending to config.log. | |
15468 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15469 | # by configure, so config.status won't be able to write to it; its | |
15470 | # output is simply discarded. So we exec the FD to /dev/null, | |
15471 | # effectively closing config.log, so it can be properly (re)opened and | |
15472 | # appended to by config.status. When coming back to configure, we | |
15473 | # need to make the FD available again. | |
15474 | if test "$no_create" != yes; then | |
15475 | ac_cs_success=: | |
15476 | ac_config_status_args= | |
15477 | test "$silent" = yes && | |
15478 | ac_config_status_args="$ac_config_status_args --quiet" | |
15479 | exec 5>/dev/null | |
15480 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15481 | exec 5>>config.log | |
15482 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15483 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15484 | $ac_cs_success || as_fn_exit $? |
15485 | fi | |
15486 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15488 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 15489 | fi |
252b5132 | 15490 |