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 | ## -------------------- ## | |
979273e3 | 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 : | |
979273e3 NN |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
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 | |
979273e3 | 31 | fi |
979273e3 | 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 | } | |
979273e3 NN |
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 | |
979273e3 NN |
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 | |
3725885a RW |
172 | test \$(( 1 + 1 )) = 2 || exit 1 |
173 | ||
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
979273e3 | 192 | do |
81ecdfbb RW |
193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
979273e3 | 236 | else |
81ecdfbb RW |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
979273e3 | 241 | fi |
81ecdfbb RW |
242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
979273e3 | 380 | |
81ecdfbb RW |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
81ecdfbb | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
81ecdfbb RW |
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
979273e3 | 399 | |
81ecdfbb | 400 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
979273e3 | 418 | |
979273e3 NN |
419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
979273e3 | 426 | |
81ecdfbb RW |
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
979273e3 | 436 | sed ' |
81ecdfbb RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
979273e3 | 441 | N |
81ecdfbb RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
979273e3 | 444 | t loop |
81ecdfbb | 445 | s/-\n.*// |
979273e3 | 446 | ' >$as_me.lineno && |
81ecdfbb RW |
447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
979273e3 NN |
449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
979273e3 NN |
454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
81ecdfbb RW |
458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
979273e3 NN |
469 | esac |
470 | ||
81ecdfbb RW |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 474 | else |
81ecdfbb RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 477 | fi |
81ecdfbb RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 480 | as_ln_s='ln -s' |
81ecdfbb RW |
481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
979273e3 | 491 | fi |
979273e3 NN |
492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
81ecdfbb RW |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
979273e3 NN |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
81ecdfbb RW |
505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
979273e3 NN |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
d7040cdb SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
d7040cdb | 536 | |
81ecdfbb RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
979273e3 NN |
539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 543 | |
979273e3 NN |
544 | # |
545 | # Initializations. | |
546 | # | |
252b5132 | 547 | ac_default_prefix=/usr/local |
81ecdfbb | 548 | ac_clean_files= |
979273e3 | 549 | ac_config_libobj_dir=. |
81ecdfbb | 550 | LIBOBJS= |
979273e3 NN |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
979273e3 NN |
555 | |
556 | # Identity of this package. | |
557 | PACKAGE_NAME= | |
558 | PACKAGE_TARNAME= | |
559 | PACKAGE_VERSION= | |
560 | PACKAGE_STRING= | |
561 | PACKAGE_BUGREPORT= | |
81ecdfbb | 562 | PACKAGE_URL= |
979273e3 NN |
563 | |
564 | ac_unique_file="z8k-dis.c" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
81ecdfbb | 568 | #ifdef HAVE_SYS_TYPES_H |
979273e3 NN |
569 | # include <sys/types.h> |
570 | #endif | |
81ecdfbb | 571 | #ifdef HAVE_SYS_STAT_H |
979273e3 NN |
572 | # include <sys/stat.h> |
573 | #endif | |
81ecdfbb | 574 | #ifdef STDC_HEADERS |
979273e3 NN |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
81ecdfbb | 578 | # ifdef HAVE_STDLIB_H |
979273e3 NN |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
81ecdfbb RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
979273e3 NN |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
81ecdfbb | 588 | #ifdef HAVE_STRINGS_H |
979273e3 NN |
589 | # include <strings.h> |
590 | #endif | |
81ecdfbb | 591 | #ifdef HAVE_INTTYPES_H |
979273e3 | 592 | # include <inttypes.h> |
979273e3 | 593 | #endif |
81ecdfbb RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
979273e3 NN |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
81ecdfbb RW |
601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | BFD_MACHINES | |
606 | archdefs | |
607 | SHARED_DEPENDENCIES | |
608 | SHARED_LIBADD | |
609 | SHARED_LDFLAGS | |
2eee5593 AM |
610 | BUILD_LIB_DEPS |
611 | BUILD_LIBS | |
81ecdfbb RW |
612 | LIBM |
613 | cgendir | |
614 | CGEN_MAINT_FALSE | |
615 | CGEN_MAINT_TRUE | |
616 | HDEFINES | |
617 | EXEEXT_FOR_BUILD | |
618 | CC_FOR_BUILD | |
619 | MSGMERGE | |
620 | MSGFMT | |
621 | MKINSTALLDIRS | |
622 | CATOBJEXT | |
623 | GENCAT | |
624 | INSTOBJEXT | |
625 | DATADIRNAME | |
626 | CATALOGS | |
627 | POSUB | |
628 | GMSGFMT | |
629 | XGETTEXT | |
630 | INCINTL | |
631 | LIBINTL_DEP | |
632 | LIBINTL | |
633 | USE_NLS | |
634 | bfdincludedir | |
635 | bfdlibdir | |
636 | target_noncanonical | |
637 | host_noncanonical | |
638 | INSTALL_LIBBFD_FALSE | |
639 | INSTALL_LIBBFD_TRUE | |
640 | MAINT | |
641 | MAINTAINER_MODE_FALSE | |
642 | MAINTAINER_MODE_TRUE | |
643 | NO_WERROR | |
644 | WARN_CFLAGS | |
645 | OTOOL64 | |
646 | OTOOL | |
647 | LIPO | |
648 | NMEDIT | |
649 | DSYMUTIL | |
81ecdfbb RW |
650 | OBJDUMP |
651 | LN_S | |
652 | NM | |
653 | ac_ct_DUMPBIN | |
654 | DUMPBIN | |
655 | LD | |
656 | FGREP | |
657 | SED | |
658 | LIBTOOL | |
659 | RANLIB | |
660 | AR | |
661 | EGREP | |
662 | GREP | |
663 | CPP | |
664 | am__fastdepCC_FALSE | |
665 | am__fastdepCC_TRUE | |
666 | CCDEPMODE | |
667 | AMDEPBACKSLASH | |
668 | AMDEP_FALSE | |
669 | AMDEP_TRUE | |
670 | am__quote | |
671 | am__include | |
672 | DEPDIR | |
673 | am__untar | |
674 | am__tar | |
675 | AMTAR | |
676 | am__leading_dot | |
677 | SET_MAKE | |
678 | AWK | |
679 | mkdir_p | |
680 | MKDIR_P | |
681 | INSTALL_STRIP_PROGRAM | |
682 | STRIP | |
683 | install_sh | |
684 | MAKEINFO | |
685 | AUTOHEADER | |
686 | AUTOMAKE | |
687 | AUTOCONF | |
688 | ACLOCAL | |
689 | VERSION | |
690 | PACKAGE | |
691 | CYGPATH_W | |
692 | am__isrc | |
693 | INSTALL_DATA | |
694 | INSTALL_SCRIPT | |
695 | INSTALL_PROGRAM | |
696 | OBJEXT | |
697 | EXEEXT | |
698 | ac_ct_CC | |
699 | CPPFLAGS | |
700 | LDFLAGS | |
701 | CFLAGS | |
702 | CC | |
703 | target_os | |
704 | target_vendor | |
705 | target_cpu | |
706 | target | |
707 | host_os | |
708 | host_vendor | |
709 | host_cpu | |
710 | host | |
711 | build_os | |
712 | build_vendor | |
713 | build_cpu | |
714 | build | |
715 | target_alias | |
716 | host_alias | |
717 | build_alias | |
718 | LIBS | |
719 | ECHO_T | |
720 | ECHO_N | |
721 | ECHO_C | |
722 | DEFS | |
723 | mandir | |
724 | localedir | |
725 | libdir | |
726 | psdir | |
727 | pdfdir | |
728 | dvidir | |
729 | htmldir | |
730 | infodir | |
731 | docdir | |
732 | oldincludedir | |
733 | includedir | |
734 | localstatedir | |
735 | sharedstatedir | |
736 | sysconfdir | |
737 | datadir | |
738 | datarootdir | |
739 | libexecdir | |
740 | sbindir | |
741 | bindir | |
742 | program_transform_name | |
743 | prefix | |
744 | exec_prefix | |
745 | PACKAGE_URL | |
746 | PACKAGE_BUGREPORT | |
747 | PACKAGE_STRING | |
748 | PACKAGE_VERSION | |
749 | PACKAGE_TARNAME | |
750 | PACKAGE_NAME | |
751 | PATH_SEPARATOR | |
752 | SHELL' | |
979273e3 | 753 | ac_subst_files='' |
81ecdfbb RW |
754 | ac_user_opts=' |
755 | enable_option_checking | |
756 | enable_dependency_tracking | |
757 | enable_shared | |
758 | enable_static | |
759 | with_pic | |
760 | enable_fast_install | |
761 | with_gnu_ld | |
762 | enable_libtool_lock | |
763 | enable_targets | |
764 | enable_werror | |
765 | enable_build_warnings | |
766 | enable_maintainer_mode | |
767 | enable_install_libbfd | |
768 | enable_nls | |
769 | enable_cgen_maint | |
770 | ' | |
771 | ac_precious_vars='build_alias | |
772 | host_alias | |
773 | target_alias | |
774 | CC | |
775 | CFLAGS | |
776 | LDFLAGS | |
777 | LIBS | |
778 | CPPFLAGS | |
779 | CPP' | |
780 | ||
252b5132 RH |
781 | |
782 | # Initialize some variables set by options. | |
979273e3 NN |
783 | ac_init_help= |
784 | ac_init_version=false | |
81ecdfbb RW |
785 | ac_unrecognized_opts= |
786 | ac_unrecognized_sep= | |
252b5132 RH |
787 | # The variables have the same names as the options, with |
788 | # dashes changed to underlines. | |
979273e3 | 789 | cache_file=/dev/null |
252b5132 | 790 | exec_prefix=NONE |
252b5132 | 791 | no_create= |
252b5132 RH |
792 | no_recursion= |
793 | prefix=NONE | |
794 | program_prefix=NONE | |
795 | program_suffix=NONE | |
796 | program_transform_name=s,x,x, | |
797 | silent= | |
798 | site= | |
799 | srcdir= | |
252b5132 RH |
800 | verbose= |
801 | x_includes=NONE | |
802 | x_libraries=NONE | |
979273e3 NN |
803 | |
804 | # Installation directory options. | |
805 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
806 | # and all the variables that are supposed to be based on exec_prefix | |
807 | # by default will actually change. | |
808 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 809 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
810 | bindir='${exec_prefix}/bin' |
811 | sbindir='${exec_prefix}/sbin' | |
812 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
813 | datarootdir='${prefix}/share' |
814 | datadir='${datarootdir}' | |
252b5132 RH |
815 | sysconfdir='${prefix}/etc' |
816 | sharedstatedir='${prefix}/com' | |
817 | localstatedir='${prefix}/var' | |
252b5132 RH |
818 | includedir='${prefix}/include' |
819 | oldincludedir='/usr/include' | |
81ecdfbb RW |
820 | docdir='${datarootdir}/doc/${PACKAGE}' |
821 | infodir='${datarootdir}/info' | |
822 | htmldir='${docdir}' | |
823 | dvidir='${docdir}' | |
824 | pdfdir='${docdir}' | |
825 | psdir='${docdir}' | |
826 | libdir='${exec_prefix}/lib' | |
827 | localedir='${datarootdir}/locale' | |
828 | mandir='${datarootdir}/man' | |
252b5132 | 829 | |
252b5132 | 830 | ac_prev= |
81ecdfbb | 831 | ac_dashdash= |
252b5132 RH |
832 | for ac_option |
833 | do | |
252b5132 RH |
834 | # If the previous option needs an argument, assign it. |
835 | if test -n "$ac_prev"; then | |
81ecdfbb | 836 | eval $ac_prev=\$ac_option |
252b5132 RH |
837 | ac_prev= |
838 | continue | |
839 | fi | |
840 | ||
81ecdfbb RW |
841 | case $ac_option in |
842 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
843 | *) ac_optarg=yes ;; | |
844 | esac | |
252b5132 RH |
845 | |
846 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
847 | ||
81ecdfbb RW |
848 | case $ac_dashdash$ac_option in |
849 | --) | |
850 | ac_dashdash=yes ;; | |
252b5132 RH |
851 | |
852 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
853 | ac_prev=bindir ;; | |
854 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
979273e3 | 855 | bindir=$ac_optarg ;; |
252b5132 RH |
856 | |
857 | -build | --build | --buil | --bui | --bu) | |
979273e3 | 858 | ac_prev=build_alias ;; |
252b5132 | 859 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
979273e3 | 860 | build_alias=$ac_optarg ;; |
252b5132 RH |
861 | |
862 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
863 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
864 | ac_prev=cache_file ;; | |
865 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
866 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
979273e3 NN |
867 | cache_file=$ac_optarg ;; |
868 | ||
869 | --config-cache | -C) | |
870 | cache_file=config.cache ;; | |
252b5132 | 871 | |
81ecdfbb | 872 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 873 | ac_prev=datadir ;; |
81ecdfbb | 874 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
979273e3 | 875 | datadir=$ac_optarg ;; |
252b5132 | 876 | |
81ecdfbb RW |
877 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
878 | | --dataroo | --dataro | --datar) | |
879 | ac_prev=datarootdir ;; | |
880 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
881 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
882 | datarootdir=$ac_optarg ;; | |
883 | ||
252b5132 | 884 | -disable-* | --disable-*) |
81ecdfbb | 885 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 886 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
887 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
888 | as_fn_error "invalid feature name: $ac_useropt" | |
889 | ac_useropt_orig=$ac_useropt | |
890 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
891 | case $ac_user_opts in | |
892 | *" | |
893 | "enable_$ac_useropt" | |
894 | "*) ;; | |
895 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
896 | ac_unrecognized_sep=', ';; | |
897 | esac | |
898 | eval enable_$ac_useropt=no ;; | |
899 | ||
900 | -docdir | --docdir | --docdi | --doc | --do) | |
901 | ac_prev=docdir ;; | |
902 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
903 | docdir=$ac_optarg ;; | |
904 | ||
905 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
906 | ac_prev=dvidir ;; | |
907 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
908 | dvidir=$ac_optarg ;; | |
252b5132 RH |
909 | |
910 | -enable-* | --enable-*) | |
81ecdfbb | 911 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 912 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
913 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
914 | as_fn_error "invalid feature name: $ac_useropt" | |
915 | ac_useropt_orig=$ac_useropt | |
916 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
917 | case $ac_user_opts in | |
918 | *" | |
919 | "enable_$ac_useropt" | |
920 | "*) ;; | |
921 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
922 | ac_unrecognized_sep=', ';; | |
252b5132 | 923 | esac |
81ecdfbb | 924 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
925 | |
926 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
927 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
928 | | --exec | --exe | --ex) | |
929 | ac_prev=exec_prefix ;; | |
930 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
931 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
932 | | --exec=* | --exe=* | --ex=*) | |
979273e3 | 933 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
934 | |
935 | -gas | --gas | --ga | --g) | |
936 | # Obsolete; use --with-gas. | |
937 | with_gas=yes ;; | |
938 | ||
979273e3 NN |
939 | -help | --help | --hel | --he | -h) |
940 | ac_init_help=long ;; | |
941 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
942 | ac_init_help=recursive ;; | |
943 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
944 | ac_init_help=short ;; | |
252b5132 RH |
945 | |
946 | -host | --host | --hos | --ho) | |
979273e3 | 947 | ac_prev=host_alias ;; |
252b5132 | 948 | -host=* | --host=* | --hos=* | --ho=*) |
979273e3 | 949 | host_alias=$ac_optarg ;; |
252b5132 | 950 | |
81ecdfbb RW |
951 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
952 | ac_prev=htmldir ;; | |
953 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
954 | | --ht=*) | |
955 | htmldir=$ac_optarg ;; | |
956 | ||
252b5132 RH |
957 | -includedir | --includedir | --includedi | --included | --include \ |
958 | | --includ | --inclu | --incl | --inc) | |
959 | ac_prev=includedir ;; | |
960 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
961 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
979273e3 | 962 | includedir=$ac_optarg ;; |
252b5132 RH |
963 | |
964 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
965 | ac_prev=infodir ;; | |
966 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
979273e3 | 967 | infodir=$ac_optarg ;; |
252b5132 RH |
968 | |
969 | -libdir | --libdir | --libdi | --libd) | |
970 | ac_prev=libdir ;; | |
971 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
979273e3 | 972 | libdir=$ac_optarg ;; |
252b5132 RH |
973 | |
974 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
975 | | --libexe | --libex | --libe) | |
976 | ac_prev=libexecdir ;; | |
977 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
978 | | --libexe=* | --libex=* | --libe=*) | |
979273e3 | 979 | libexecdir=$ac_optarg ;; |
252b5132 | 980 | |
81ecdfbb RW |
981 | -localedir | --localedir | --localedi | --localed | --locale) |
982 | ac_prev=localedir ;; | |
983 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
984 | localedir=$ac_optarg ;; | |
985 | ||
252b5132 | 986 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 987 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
988 | ac_prev=localstatedir ;; |
989 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 990 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
979273e3 | 991 | localstatedir=$ac_optarg ;; |
252b5132 RH |
992 | |
993 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
994 | ac_prev=mandir ;; | |
995 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
979273e3 | 996 | mandir=$ac_optarg ;; |
252b5132 RH |
997 | |
998 | -nfp | --nfp | --nf) | |
999 | # Obsolete; use --without-fp. | |
1000 | with_fp=no ;; | |
1001 | ||
1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
979273e3 | 1003 | | --no-cr | --no-c | -n) |
252b5132 RH |
1004 | no_create=yes ;; |
1005 | ||
1006 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1007 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1008 | no_recursion=yes ;; | |
1009 | ||
1010 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1011 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1012 | | --oldin | --oldi | --old | --ol | --o) | |
1013 | ac_prev=oldincludedir ;; | |
1014 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1015 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1016 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
979273e3 | 1017 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1018 | |
1019 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1020 | ac_prev=prefix ;; | |
1021 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
979273e3 | 1022 | prefix=$ac_optarg ;; |
252b5132 RH |
1023 | |
1024 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1025 | | --program-pre | --program-pr | --program-p) | |
1026 | ac_prev=program_prefix ;; | |
1027 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1028 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
979273e3 | 1029 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1030 | |
1031 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1032 | | --program-suf | --program-su | --program-s) | |
1033 | ac_prev=program_suffix ;; | |
1034 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1035 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
979273e3 | 1036 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1037 | |
1038 | -program-transform-name | --program-transform-name \ | |
1039 | | --program-transform-nam | --program-transform-na \ | |
1040 | | --program-transform-n | --program-transform- \ | |
1041 | | --program-transform | --program-transfor \ | |
1042 | | --program-transfo | --program-transf \ | |
1043 | | --program-trans | --program-tran \ | |
1044 | | --progr-tra | --program-tr | --program-t) | |
1045 | ac_prev=program_transform_name ;; | |
1046 | -program-transform-name=* | --program-transform-name=* \ | |
1047 | | --program-transform-nam=* | --program-transform-na=* \ | |
1048 | | --program-transform-n=* | --program-transform-=* \ | |
1049 | | --program-transform=* | --program-transfor=* \ | |
1050 | | --program-transfo=* | --program-transf=* \ | |
1051 | | --program-trans=* | --program-tran=* \ | |
1052 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
979273e3 | 1053 | program_transform_name=$ac_optarg ;; |
252b5132 | 1054 | |
81ecdfbb RW |
1055 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1056 | ac_prev=pdfdir ;; | |
1057 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1058 | pdfdir=$ac_optarg ;; | |
1059 | ||
1060 | -psdir | --psdir | --psdi | --psd | --ps) | |
1061 | ac_prev=psdir ;; | |
1062 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1063 | psdir=$ac_optarg ;; | |
1064 | ||
252b5132 RH |
1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1066 | | -silent | --silent | --silen | --sile | --sil) | |
1067 | silent=yes ;; | |
1068 | ||
1069 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1070 | ac_prev=sbindir ;; | |
1071 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1072 | | --sbi=* | --sb=*) | |
979273e3 | 1073 | sbindir=$ac_optarg ;; |
252b5132 RH |
1074 | |
1075 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1076 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1077 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1078 | | --sha | --sh) | |
1079 | ac_prev=sharedstatedir ;; | |
1080 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1081 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1082 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1083 | | --sha=* | --sh=*) | |
979273e3 | 1084 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1085 | |
1086 | -site | --site | --sit) | |
1087 | ac_prev=site ;; | |
1088 | -site=* | --site=* | --sit=*) | |
979273e3 | 1089 | site=$ac_optarg ;; |
1fe1f39c | 1090 | |
252b5132 RH |
1091 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1092 | ac_prev=srcdir ;; | |
1093 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
979273e3 | 1094 | srcdir=$ac_optarg ;; |
252b5132 RH |
1095 | |
1096 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1097 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1098 | ac_prev=sysconfdir ;; | |
1099 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1100 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
979273e3 | 1101 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1102 | |
1103 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
979273e3 | 1104 | ac_prev=target_alias ;; |
252b5132 | 1105 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
979273e3 | 1106 | target_alias=$ac_optarg ;; |
252b5132 RH |
1107 | |
1108 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1109 | verbose=yes ;; | |
1110 | ||
979273e3 NN |
1111 | -version | --version | --versio | --versi | --vers | -V) |
1112 | ac_init_version=: ;; | |
252b5132 RH |
1113 | |
1114 | -with-* | --with-*) | |
81ecdfbb | 1115 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1116 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1117 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1118 | as_fn_error "invalid package name: $ac_useropt" | |
1119 | ac_useropt_orig=$ac_useropt | |
1120 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1121 | case $ac_user_opts in | |
1122 | *" | |
1123 | "with_$ac_useropt" | |
1124 | "*) ;; | |
1125 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1126 | ac_unrecognized_sep=', ';; | |
252b5132 | 1127 | esac |
81ecdfbb | 1128 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1129 | |
1130 | -without-* | --without-*) | |
81ecdfbb | 1131 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1132 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1134 | as_fn_error "invalid package name: $ac_useropt" | |
1135 | ac_useropt_orig=$ac_useropt | |
1136 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1137 | case $ac_user_opts in | |
1138 | *" | |
1139 | "with_$ac_useropt" | |
1140 | "*) ;; | |
1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1142 | ac_unrecognized_sep=', ';; | |
1143 | esac | |
1144 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1145 | |
1146 | --x) | |
1147 | # Obsolete; use --with-x. | |
1148 | with_x=yes ;; | |
1149 | ||
1150 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1151 | | --x-incl | --x-inc | --x-in | --x-i) | |
1152 | ac_prev=x_includes ;; | |
1153 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1154 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
979273e3 | 1155 | x_includes=$ac_optarg ;; |
252b5132 RH |
1156 | |
1157 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1158 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1159 | ac_prev=x_libraries ;; | |
1160 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1161 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
979273e3 | 1162 | x_libraries=$ac_optarg ;; |
252b5132 | 1163 | |
81ecdfbb RW |
1164 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1165 | Try \`$0 --help' for more information." | |
252b5132 RH |
1166 | ;; |
1167 | ||
979273e3 NN |
1168 | *=*) |
1169 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1170 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1171 | case $ac_envvar in #( |
1172 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1173 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1174 | esac | |
1175 | eval $ac_envvar=\$ac_optarg | |
979273e3 NN |
1176 | export $ac_envvar ;; |
1177 | ||
252b5132 | 1178 | *) |
979273e3 | 1179 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1180 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
979273e3 | 1181 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1182 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
979273e3 | 1183 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1184 | ;; |
1185 | ||
1186 | esac | |
1187 | done | |
1188 | ||
1189 | if test -n "$ac_prev"; then | |
979273e3 | 1190 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1191 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1192 | fi |
252b5132 | 1193 | |
81ecdfbb RW |
1194 | if test -n "$ac_unrecognized_opts"; then |
1195 | case $enable_option_checking in | |
1196 | no) ;; | |
1197 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1198 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
979273e3 | 1199 | esac |
81ecdfbb | 1200 | fi |
252b5132 | 1201 | |
81ecdfbb RW |
1202 | # Check all directory arguments for consistency. |
1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1206 | libdir localedir mandir | |
252b5132 | 1207 | do |
81ecdfbb RW |
1208 | eval ac_val=\$$ac_var |
1209 | # Remove trailing slashes. | |
1210 | case $ac_val in | |
1211 | */ ) | |
1212 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1213 | eval $ac_var=\$ac_val;; | |
1214 | esac | |
1215 | # Be sure to have absolute directory names. | |
979273e3 | 1216 | case $ac_val in |
81ecdfbb RW |
1217 | [\\/$]* | ?:[\\/]* ) continue;; |
1218 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1219 | esac |
81ecdfbb | 1220 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1221 | done |
1222 | ||
979273e3 NN |
1223 | # There might be people who depend on the old broken behavior: `$host' |
1224 | # used to hold the argument of --host etc. | |
1225 | # FIXME: To remove some day. | |
1226 | build=$build_alias | |
1227 | host=$host_alias | |
1228 | target=$target_alias | |
1229 | ||
1230 | # FIXME: To remove some day. | |
1231 | if test "x$host_alias" != x; then | |
1232 | if test "x$build_alias" = x; then | |
1233 | cross_compiling=maybe | |
81ecdfbb | 1234 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
979273e3 NN |
1235 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1236 | elif test "x$build_alias" != "x$host_alias"; then | |
1237 | cross_compiling=yes | |
1238 | fi | |
1239 | fi | |
252b5132 | 1240 | |
979273e3 NN |
1241 | ac_tool_prefix= |
1242 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1243 | ||
1244 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1245 | |
252b5132 | 1246 | |
81ecdfbb RW |
1247 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1248 | ac_ls_di=`ls -di .` && | |
1249 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1250 | as_fn_error "working directory cannot be determined" | |
1251 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1252 | as_fn_error "pwd does not report name of working directory" | |
1253 | ||
1254 | ||
252b5132 RH |
1255 | # Find the source files, if location was not specified. |
1256 | if test -z "$srcdir"; then | |
1257 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1258 | # Try the directory containing this script, then the parent directory. |
1259 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1260 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1261 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1262 | X"$as_myself" : 'X\(//\)$' \| \ | |
1263 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1264 | $as_echo X"$as_myself" | | |
1265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1266 | s//\1/ | |
1267 | q | |
1268 | } | |
1269 | /^X\(\/\/\)[^/].*/{ | |
1270 | s//\1/ | |
1271 | q | |
1272 | } | |
1273 | /^X\(\/\/\)$/{ | |
1274 | s//\1/ | |
1275 | q | |
1276 | } | |
1277 | /^X\(\/\).*/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | s/.*/./; q'` | |
252b5132 | 1282 | srcdir=$ac_confdir |
81ecdfbb | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1284 | srcdir=.. |
1285 | fi | |
1286 | else | |
1287 | ac_srcdir_defaulted=no | |
1288 | fi | |
81ecdfbb RW |
1289 | if test ! -r "$srcdir/$ac_unique_file"; then |
1290 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1291 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1292 | fi | |
1293 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1294 | ac_abs_confdir=`( | |
1295 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1296 | pwd)` | |
1297 | # When building in place, set srcdir=. | |
1298 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1299 | srcdir=. | |
1300 | fi | |
1301 | # Remove unnecessary trailing slashes from srcdir. | |
1302 | # Double slashes in file names in object file debugging info | |
1303 | # mess up M-x gdb in Emacs. | |
1304 | case $srcdir in | |
1305 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1306 | esac | |
1307 | for ac_var in $ac_precious_vars; do | |
1308 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1309 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1310 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1311 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1312 | done | |
252b5132 | 1313 | |
979273e3 NN |
1314 | # |
1315 | # Report the --help message. | |
1316 | # | |
1317 | if test "$ac_init_help" = "long"; then | |
1318 | # Omit some internal or obsolete options to make the list less imposing. | |
1319 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1320 | cat <<_ACEOF | |
1321 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 1322 | |
979273e3 | 1323 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1324 | |
979273e3 NN |
1325 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1326 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1327 | |
979273e3 | 1328 | Defaults for the options are specified in brackets. |
ac48eca1 | 1329 | |
979273e3 NN |
1330 | Configuration: |
1331 | -h, --help display this help and exit | |
1332 | --help=short display options specific to this package | |
1333 | --help=recursive display the short help of all the included packages | |
1334 | -V, --version display version information and exit | |
1335 | -q, --quiet, --silent do not print \`checking...' messages | |
1336 | --cache-file=FILE cache test results in FILE [disabled] | |
1337 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1338 | -n, --no-create do not create output files | |
1339 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1340 | ||
979273e3 NN |
1341 | Installation directories: |
1342 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1343 | [$ac_default_prefix] |
979273e3 | 1344 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1345 | [PREFIX] |
ac48eca1 | 1346 | |
979273e3 NN |
1347 | By default, \`make install' will install all the files in |
1348 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1349 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1350 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1351 | |
979273e3 | 1352 | For better control, use the options below. |
ac48eca1 | 1353 | |
979273e3 | 1354 | Fine tuning of the installation directories: |
81ecdfbb RW |
1355 | --bindir=DIR user executables [EPREFIX/bin] |
1356 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1357 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1358 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1359 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1360 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1361 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1362 | --includedir=DIR C header files [PREFIX/include] | |
1363 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1364 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1365 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1366 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1367 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1368 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1369 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1370 | --htmldir=DIR html documentation [DOCDIR] | |
1371 | --dvidir=DIR dvi documentation [DOCDIR] | |
1372 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1373 | --psdir=DIR ps documentation [DOCDIR] | |
979273e3 | 1374 | _ACEOF |
ac48eca1 | 1375 | |
979273e3 | 1376 | cat <<\_ACEOF |
252b5132 | 1377 | |
979273e3 NN |
1378 | Program names: |
1379 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1380 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1381 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1382 | |
979273e3 NN |
1383 | System types: |
1384 | --build=BUILD configure for building on BUILD [guessed] | |
1385 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1386 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1387 | _ACEOF | |
252b5132 | 1388 | fi |
252b5132 | 1389 | |
979273e3 | 1390 | if test -n "$ac_init_help"; then |
252b5132 | 1391 | |
979273e3 | 1392 | cat <<\_ACEOF |
252b5132 | 1393 | |
979273e3 | 1394 | Optional Features: |
81ecdfbb | 1395 | --disable-option-checking ignore unrecognized --enable/--with options |
979273e3 NN |
1396 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1397 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8ae85421 AM |
1398 | --disable-dependency-tracking speeds up one-time build |
1399 | --enable-dependency-tracking do not reject slow dependency extractors | |
81ecdfbb RW |
1400 | --enable-shared[=PKGS] build shared libraries [default=no] |
1401 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1402 | --enable-fast-install[=PKGS] |
1403 | optimize for fast installation [default=yes] | |
979273e3 NN |
1404 | --disable-libtool-lock avoid locking (might break parallel builds) |
1405 | --enable-targets alternative target configurations | |
241a6c40 AM |
1406 | --enable-werror treat compile warnings as errors |
1407 | --enable-build-warnings enable build-time compiler warnings | |
8ae85421 AM |
1408 | --enable-maintainer-mode enable make rules and dependencies not useful |
1409 | (and sometimes confusing) to the casual installer | |
979273e3 NN |
1410 | --enable-install-libbfd controls installation of libbfd and related headers |
1411 | --disable-nls do not use Native Language Support | |
1412 | --enable-cgen-maint=dir build cgen generated files | |
1413 | ||
1414 | Optional Packages: | |
1415 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1416 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1417 | --with-pic try to use only PIC/non-PIC objects [default=use |
1418 | both] | |
1419 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
252b5132 | 1420 | |
979273e3 NN |
1421 | Some influential environment variables: |
1422 | CC C compiler command | |
1423 | CFLAGS C compiler flags | |
1424 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1425 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1426 | LIBS libraries to pass to the linker, e.g. -l<library> |
1427 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1428 | you have headers in a nonstandard directory <include dir> | |
979273e3 | 1429 | CPP C preprocessor |
a2d91340 | 1430 | |
979273e3 NN |
1431 | Use these variables to override the choices made by `configure' or to help |
1432 | it to find libraries and programs with nonstandard names/locations. | |
1433 | ||
81ecdfbb | 1434 | Report bugs to the package provider. |
979273e3 | 1435 | _ACEOF |
81ecdfbb | 1436 | ac_status=$? |
a2d91340 AC |
1437 | fi |
1438 | ||
979273e3 NN |
1439 | if test "$ac_init_help" = "recursive"; then |
1440 | # If there are subdirs, report their specific --help. | |
979273e3 | 1441 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1442 | test -d "$ac_dir" || |
1443 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1444 | continue | |
979273e3 NN |
1445 | ac_builddir=. |
1446 | ||
81ecdfbb RW |
1447 | case "$ac_dir" in |
1448 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1449 | *) | |
1450 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1451 | # A ".." for each directory in $ac_dir_suffix. | |
1452 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1453 | case $ac_top_builddir_sub in | |
1454 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1455 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1456 | esac ;; | |
1457 | esac | |
1458 | ac_abs_top_builddir=$ac_pwd | |
1459 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1460 | # for backward compatibility: | |
1461 | ac_top_builddir=$ac_top_build_prefix | |
a2d91340 | 1462 | |
979273e3 | 1463 | case $srcdir in |
81ecdfbb | 1464 | .) # We are building in place. |
979273e3 | 1465 | ac_srcdir=. |
81ecdfbb RW |
1466 | ac_top_srcdir=$ac_top_builddir_sub |
1467 | ac_abs_top_srcdir=$ac_pwd ;; | |
1468 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 1469 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1470 | ac_top_srcdir=$srcdir |
1471 | ac_abs_top_srcdir=$srcdir ;; | |
1472 | *) # Relative name. | |
1473 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1474 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1475 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a2d91340 | 1476 | esac |
81ecdfbb RW |
1477 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1478 | ||
1479 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1480 | # Check for guested configure. | |
1481 | if test -f "$ac_srcdir/configure.gnu"; then | |
1482 | echo && | |
1483 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1484 | elif test -f "$ac_srcdir/configure"; then | |
1485 | echo && | |
1486 | $SHELL "$ac_srcdir/configure" --help=recursive | |
979273e3 | 1487 | else |
81ecdfbb RW |
1488 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1489 | fi || ac_status=$? | |
1490 | cd "$ac_pwd" || { ac_status=$?; break; } | |
979273e3 NN |
1491 | done |
1492 | fi | |
a2d91340 | 1493 | |
81ecdfbb | 1494 | test -n "$ac_init_help" && exit $ac_status |
979273e3 NN |
1495 | if $ac_init_version; then |
1496 | cat <<\_ACEOF | |
81ecdfbb RW |
1497 | configure |
1498 | generated by GNU Autoconf 2.64 | |
252b5132 | 1499 | |
81ecdfbb | 1500 | Copyright (C) 2009 Free Software Foundation, Inc. |
979273e3 NN |
1501 | This configure script is free software; the Free Software Foundation |
1502 | gives unlimited permission to copy, distribute and modify it. | |
1503 | _ACEOF | |
81ecdfbb | 1504 | exit |
979273e3 | 1505 | fi |
2c73f9d8 | 1506 | |
81ecdfbb RW |
1507 | ## ------------------------ ## |
1508 | ## Autoconf initialization. ## | |
1509 | ## ------------------------ ## | |
252b5132 | 1510 | |
81ecdfbb RW |
1511 | # ac_fn_c_try_compile LINENO |
1512 | # -------------------------- | |
1513 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1514 | ac_fn_c_try_compile () | |
1515 | { | |
1516 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1517 | rm -f conftest.$ac_objext | |
1518 | if { { ac_try="$ac_compile" | |
1519 | case "(($ac_try" in | |
1520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1521 | *) ac_try_echo=$ac_try;; | |
1522 | esac | |
1523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1524 | $as_echo "$ac_try_echo"; } >&5 | |
1525 | (eval "$ac_compile") 2>conftest.err | |
1526 | ac_status=$? | |
1527 | if test -s conftest.err; then | |
1528 | grep -v '^ *+' conftest.err >conftest.er1 | |
1529 | cat conftest.er1 >&5 | |
1530 | mv -f conftest.er1 conftest.err | |
1531 | fi | |
1532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1533 | test $ac_status = 0; } && { | |
1534 | test -z "$ac_c_werror_flag" || | |
1535 | test ! -s conftest.err | |
1536 | } && test -s conftest.$ac_objext; then : | |
1537 | ac_retval=0 | |
1538 | else | |
1539 | $as_echo "$as_me: failed program was:" >&5 | |
1540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 1541 | |
81ecdfbb RW |
1542 | ac_retval=1 |
1543 | fi | |
1544 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1545 | return $ac_retval | |
1546 | ||
1547 | } # ac_fn_c_try_compile | |
1548 | ||
1549 | # ac_fn_c_try_link LINENO | |
1550 | # ----------------------- | |
1551 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1552 | ac_fn_c_try_link () | |
979273e3 | 1553 | { |
81ecdfbb RW |
1554 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1556 | if { { ac_try="$ac_link" | |
1557 | case "(($ac_try" in | |
1558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1559 | *) ac_try_echo=$ac_try;; | |
1560 | esac | |
1561 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1562 | $as_echo "$ac_try_echo"; } >&5 | |
1563 | (eval "$ac_link") 2>conftest.err | |
1564 | ac_status=$? | |
1565 | if test -s conftest.err; then | |
1566 | grep -v '^ *+' conftest.err >conftest.er1 | |
1567 | cat conftest.er1 >&5 | |
1568 | mv -f conftest.er1 conftest.err | |
1569 | fi | |
1570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1571 | test $ac_status = 0; } && { | |
1572 | test -z "$ac_c_werror_flag" || | |
1573 | test ! -s conftest.err | |
1574 | } && test -s conftest$ac_exeext && { | |
1575 | test "$cross_compiling" = yes || | |
1576 | $as_test_x conftest$ac_exeext | |
1577 | }; then : | |
1578 | ac_retval=0 | |
1579 | else | |
1580 | $as_echo "$as_me: failed program was:" >&5 | |
1581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
979273e3 | 1582 | |
81ecdfbb RW |
1583 | ac_retval=1 |
1584 | fi | |
1585 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1586 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1587 | # interfere with the next link command; also delete a directory that is | |
1588 | # left behind by Apple's compiler. We do this before executing the actions. | |
1589 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1590 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1591 | return $ac_retval | |
979273e3 | 1592 | |
81ecdfbb RW |
1593 | } # ac_fn_c_try_link |
1594 | ||
1595 | # ac_fn_c_try_cpp LINENO | |
1596 | # ---------------------- | |
1597 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1598 | ac_fn_c_try_cpp () | |
1599 | { | |
1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1601 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1602 | case "(($ac_try" in | |
1603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1604 | *) ac_try_echo=$ac_try;; | |
1605 | esac | |
1606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1607 | $as_echo "$ac_try_echo"; } >&5 | |
1608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1609 | ac_status=$? | |
1610 | if test -s conftest.err; then | |
1611 | grep -v '^ *+' conftest.err >conftest.er1 | |
1612 | cat conftest.er1 >&5 | |
1613 | mv -f conftest.er1 conftest.err | |
1614 | fi | |
1615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1616 | test $ac_status = 0; } >/dev/null && { | |
1617 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1618 | test ! -s conftest.err | |
1619 | }; then : | |
1620 | ac_retval=0 | |
1621 | else | |
1622 | $as_echo "$as_me: failed program was:" >&5 | |
1623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1624 | ||
1625 | ac_retval=1 | |
1626 | fi | |
1627 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1628 | return $ac_retval | |
1629 | ||
1630 | } # ac_fn_c_try_cpp | |
1631 | ||
1632 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1633 | # ------------------------------------------------------- | |
1634 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1635 | # the include files in INCLUDES and setting the cache variable VAR | |
1636 | # accordingly. | |
1637 | ac_fn_c_check_header_mongrel () | |
1638 | { | |
1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1640 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1642 | $as_echo_n "checking for $2... " >&6; } | |
1643 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1644 | $as_echo_n "(cached) " >&6 | |
1645 | fi | |
1646 | eval ac_res=\$$3 | |
1647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1648 | $as_echo "$ac_res" >&6; } | |
1649 | else | |
1650 | # Is the header compilable? | |
1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1652 | $as_echo_n "checking $2 usability... " >&6; } | |
1653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1654 | /* end confdefs.h. */ | |
1655 | $4 | |
1656 | #include <$2> | |
1657 | _ACEOF | |
1658 | if ac_fn_c_try_compile "$LINENO"; then : | |
1659 | ac_header_compiler=yes | |
1660 | else | |
1661 | ac_header_compiler=no | |
1662 | fi | |
1663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1665 | $as_echo "$ac_header_compiler" >&6; } | |
1666 | ||
1667 | # Is the header present? | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1669 | $as_echo_n "checking $2 presence... " >&6; } | |
1670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1671 | /* end confdefs.h. */ | |
1672 | #include <$2> | |
1673 | _ACEOF | |
1674 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1675 | ac_header_preproc=yes | |
1676 | else | |
1677 | ac_header_preproc=no | |
1678 | fi | |
1679 | rm -f conftest.err conftest.$ac_ext | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1681 | $as_echo "$ac_header_preproc" >&6; } | |
1682 | ||
1683 | # So? What about this header? | |
1684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1685 | yes:no: ) | |
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1687 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1689 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1690 | ;; | |
1691 | no:yes:* ) | |
1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1693 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1695 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1697 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1699 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1701 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1702 | ;; | |
1703 | esac | |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1705 | $as_echo_n "checking for $2... " >&6; } | |
1706 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1707 | $as_echo_n "(cached) " >&6 | |
1708 | else | |
1709 | eval "$3=\$ac_header_compiler" | |
1710 | fi | |
1711 | eval ac_res=\$$3 | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1713 | $as_echo "$ac_res" >&6; } | |
1714 | fi | |
1715 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1716 | ||
1717 | } # ac_fn_c_check_header_mongrel | |
1718 | ||
1719 | # ac_fn_c_try_run LINENO | |
1720 | # ---------------------- | |
1721 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1722 | # that executables *can* be run. | |
1723 | ac_fn_c_try_run () | |
1724 | { | |
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1726 | if { { ac_try="$ac_link" | |
1727 | case "(($ac_try" in | |
1728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1729 | *) ac_try_echo=$ac_try;; | |
1730 | esac | |
1731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1732 | $as_echo "$ac_try_echo"; } >&5 | |
1733 | (eval "$ac_link") 2>&5 | |
1734 | ac_status=$? | |
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1736 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1737 | { { case "(($ac_try" in | |
1738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1739 | *) ac_try_echo=$ac_try;; | |
1740 | esac | |
1741 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1742 | $as_echo "$ac_try_echo"; } >&5 | |
1743 | (eval "$ac_try") 2>&5 | |
1744 | ac_status=$? | |
1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1746 | test $ac_status = 0; }; }; then : | |
1747 | ac_retval=0 | |
1748 | else | |
1749 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1750 | $as_echo "$as_me: failed program was:" >&5 | |
1751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1752 | ||
1753 | ac_retval=$ac_status | |
1754 | fi | |
1755 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1756 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1757 | return $ac_retval | |
1758 | ||
1759 | } # ac_fn_c_try_run | |
1760 | ||
1761 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1762 | # ------------------------------------------------------- | |
1763 | # Tests whether HEADER exists and can be compiled using the include files in | |
1764 | # INCLUDES, setting the cache variable VAR accordingly. | |
1765 | ac_fn_c_check_header_compile () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1769 | $as_echo_n "checking for $2... " >&6; } | |
1770 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1771 | $as_echo_n "(cached) " >&6 | |
1772 | else | |
1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1774 | /* end confdefs.h. */ | |
1775 | $4 | |
1776 | #include <$2> | |
1777 | _ACEOF | |
1778 | if ac_fn_c_try_compile "$LINENO"; then : | |
1779 | eval "$3=yes" | |
1780 | else | |
1781 | eval "$3=no" | |
1782 | fi | |
1783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1784 | fi | |
1785 | eval ac_res=\$$3 | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1787 | $as_echo "$ac_res" >&6; } | |
1788 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1789 | ||
1790 | } # ac_fn_c_check_header_compile | |
1791 | ||
1792 | # ac_fn_c_check_func LINENO FUNC VAR | |
1793 | # ---------------------------------- | |
1794 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1795 | ac_fn_c_check_func () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1799 | $as_echo_n "checking for $2... " >&6; } | |
1800 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1801 | $as_echo_n "(cached) " >&6 | |
1802 | else | |
1803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1804 | /* end confdefs.h. */ | |
1805 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1807 | #define $2 innocuous_$2 | |
1808 | ||
1809 | /* System header to define __stub macros and hopefully few prototypes, | |
1810 | which can conflict with char $2 (); below. | |
1811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1812 | <limits.h> exists even on freestanding compilers. */ | |
1813 | ||
1814 | #ifdef __STDC__ | |
1815 | # include <limits.h> | |
1816 | #else | |
1817 | # include <assert.h> | |
1818 | #endif | |
1819 | ||
1820 | #undef $2 | |
1821 | ||
1822 | /* Override any GCC internal prototype to avoid an error. | |
1823 | Use char because int might match the return type of a GCC | |
1824 | builtin and then its argument prototype would still apply. */ | |
1825 | #ifdef __cplusplus | |
1826 | extern "C" | |
1827 | #endif | |
1828 | char $2 (); | |
1829 | /* The GNU C library defines this for functions which it implements | |
1830 | to always fail with ENOSYS. Some functions are actually named | |
1831 | something starting with __ and the normal name is an alias. */ | |
1832 | #if defined __stub_$2 || defined __stub___$2 | |
1833 | choke me | |
1834 | #endif | |
1835 | ||
1836 | int | |
1837 | main () | |
1838 | { | |
1839 | return $2 (); | |
1840 | ; | |
1841 | return 0; | |
1842 | } | |
1843 | _ACEOF | |
1844 | if ac_fn_c_try_link "$LINENO"; then : | |
1845 | eval "$3=yes" | |
1846 | else | |
1847 | eval "$3=no" | |
1848 | fi | |
1849 | rm -f core conftest.err conftest.$ac_objext \ | |
1850 | conftest$ac_exeext conftest.$ac_ext | |
1851 | fi | |
1852 | eval ac_res=\$$3 | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1854 | $as_echo "$ac_res" >&6; } | |
1855 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1856 | ||
1857 | } # ac_fn_c_check_func | |
1858 | ||
1859 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1860 | # ------------------------------------ | |
1861 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1862 | ac_fn_c_check_decl () | |
1863 | { | |
1864 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
1865 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1866 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1868 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1869 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1870 | $as_echo_n "(cached) " >&6 | |
1871 | else | |
1872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1873 | /* end confdefs.h. */ | |
1874 | $4 | |
1875 | int | |
1876 | main () | |
1877 | { | |
360cfc9c AM |
1878 | #ifndef $as_decl_name |
1879 | #ifdef __cplusplus | |
1880 | (void) $as_decl_use; | |
1881 | #else | |
1882 | (void) $as_decl_name; | |
1883 | #endif | |
81ecdfbb RW |
1884 | #endif |
1885 | ||
1886 | ; | |
1887 | return 0; | |
1888 | } | |
1889 | _ACEOF | |
1890 | if ac_fn_c_try_compile "$LINENO"; then : | |
1891 | eval "$3=yes" | |
1892 | else | |
1893 | eval "$3=no" | |
1894 | fi | |
1895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1896 | fi | |
1897 | eval ac_res=\$$3 | |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1899 | $as_echo "$ac_res" >&6; } | |
1900 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1901 | ||
1902 | } # ac_fn_c_check_decl | |
1903 | cat >config.log <<_ACEOF | |
1904 | This file contains any messages produced by compilers while | |
1905 | running configure, to aid debugging if configure makes a mistake. | |
1906 | ||
1907 | It was created by $as_me, which was | |
1908 | generated by GNU Autoconf 2.64. Invocation command line was | |
1909 | ||
1910 | $ $0 $@ | |
1911 | ||
1912 | _ACEOF | |
1913 | exec 5>>config.log | |
1914 | { | |
1915 | cat <<_ASUNAME | |
1916 | ## --------- ## | |
1917 | ## Platform. ## | |
1918 | ## --------- ## | |
1919 | ||
1920 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1921 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1922 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1923 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1924 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1925 | ||
1926 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1927 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
979273e3 NN |
1928 | |
1929 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1930 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1931 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1932 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
979273e3 NN |
1933 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1934 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1935 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1936 | ||
1937 | _ASUNAME | |
1938 | ||
1939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1940 | for as_dir in $PATH | |
1941 | do | |
1942 | IFS=$as_save_IFS | |
1943 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1944 | $as_echo "PATH: $as_dir" |
1945 | done | |
1946 | IFS=$as_save_IFS | |
252b5132 | 1947 | |
979273e3 | 1948 | } >&5 |
75798298 | 1949 | |
979273e3 | 1950 | cat >&5 <<_ACEOF |
252b5132 | 1951 | |
252b5132 | 1952 | |
979273e3 NN |
1953 | ## ----------- ## |
1954 | ## Core tests. ## | |
1955 | ## ----------- ## | |
1956 | ||
1957 | _ACEOF | |
1958 | ||
1959 | ||
1960 | # Keep a trace of the command line. | |
1961 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1962 | # Strip out --silent because we don't want to record it for future runs. | |
1963 | # Also quote any args containing shell meta-characters. | |
1964 | # Make two passes to allow for proper duplicate-argument suppression. | |
1965 | ac_configure_args= | |
1966 | ac_configure_args0= | |
1967 | ac_configure_args1= | |
979273e3 NN |
1968 | ac_must_keep_next=false |
1969 | for ac_pass in 1 2 | |
1970 | do | |
1971 | for ac_arg | |
1972 | do | |
1973 | case $ac_arg in | |
1974 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1975 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1976 | | -silent | --silent | --silen | --sile | --sil) | |
1977 | continue ;; | |
81ecdfbb RW |
1978 | *\'*) |
1979 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
979273e3 NN |
1980 | esac |
1981 | case $ac_pass in | |
81ecdfbb | 1982 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
979273e3 | 1983 | 2) |
81ecdfbb | 1984 | as_fn_append ac_configure_args1 " '$ac_arg'" |
979273e3 NN |
1985 | if test $ac_must_keep_next = true; then |
1986 | ac_must_keep_next=false # Got value, back to normal. | |
1987 | else | |
1988 | case $ac_arg in | |
1989 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1990 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1991 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1992 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1993 | case "$ac_configure_args0 " in | |
1994 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1995 | esac | |
1996 | ;; | |
1997 | -* ) ac_must_keep_next=true ;; | |
1998 | esac | |
1999 | fi | |
81ecdfbb | 2000 | as_fn_append ac_configure_args " '$ac_arg'" |
979273e3 NN |
2001 | ;; |
2002 | esac | |
2003 | done | |
2004 | done | |
81ecdfbb RW |
2005 | { ac_configure_args0=; unset ac_configure_args0;} |
2006 | { ac_configure_args1=; unset ac_configure_args1;} | |
979273e3 NN |
2007 | |
2008 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2009 | # config.log. We remove comments because anyway the quotes in there | |
2010 | # would cause problems or look ugly. | |
81ecdfbb RW |
2011 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2012 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
979273e3 NN |
2013 | trap 'exit_status=$? |
2014 | # Save into config.log some information that might help in debugging. | |
2015 | { | |
2016 | echo | |
2017 | ||
2018 | cat <<\_ASBOX | |
2019 | ## ---------------- ## | |
2020 | ## Cache variables. ## | |
2021 | ## ---------------- ## | |
2022 | _ASBOX | |
2023 | echo | |
2024 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2025 | ( |
2026 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2027 | eval ac_val=\$$ac_var | |
2028 | case $ac_val in #( | |
2029 | *${as_nl}*) | |
2030 | case $ac_var in #( | |
2031 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2032 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2033 | esac | |
2034 | case $ac_var in #( | |
2035 | _ | IFS | as_nl) ;; #( | |
2036 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2037 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2038 | esac ;; | |
2039 | esac | |
2040 | done | |
979273e3 | 2041 | (set) 2>&1 | |
81ecdfbb RW |
2042 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2043 | *${as_nl}ac_space=\ *) | |
979273e3 | 2044 | sed -n \ |
81ecdfbb RW |
2045 | "s/'\''/'\''\\\\'\'''\''/g; |
2046 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2047 | ;; #( | |
979273e3 | 2048 | *) |
81ecdfbb | 2049 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 2050 | ;; |
81ecdfbb RW |
2051 | esac | |
2052 | sort | |
2053 | ) | |
979273e3 NN |
2054 | echo |
2055 | ||
2056 | cat <<\_ASBOX | |
2057 | ## ----------------- ## | |
2058 | ## Output variables. ## | |
2059 | ## ----------------- ## | |
2060 | _ASBOX | |
2061 | echo | |
2062 | for ac_var in $ac_subst_vars | |
2063 | do | |
81ecdfbb RW |
2064 | eval ac_val=\$$ac_var |
2065 | case $ac_val in | |
2066 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2067 | esac | |
2068 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2069 | done | sort |
2070 | echo | |
2071 | ||
2072 | if test -n "$ac_subst_files"; then | |
2073 | cat <<\_ASBOX | |
81ecdfbb RW |
2074 | ## ------------------- ## |
2075 | ## File substitutions. ## | |
2076 | ## ------------------- ## | |
979273e3 NN |
2077 | _ASBOX |
2078 | echo | |
2079 | for ac_var in $ac_subst_files | |
2080 | do | |
81ecdfbb RW |
2081 | eval ac_val=\$$ac_var |
2082 | case $ac_val in | |
2083 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2084 | esac | |
2085 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2086 | done | sort |
2087 | echo | |
2088 | fi | |
2089 | ||
2090 | if test -s confdefs.h; then | |
2091 | cat <<\_ASBOX | |
2092 | ## ----------- ## | |
2093 | ## confdefs.h. ## | |
2094 | ## ----------- ## | |
2095 | _ASBOX | |
2096 | echo | |
81ecdfbb | 2097 | cat confdefs.h |
979273e3 NN |
2098 | echo |
2099 | fi | |
2100 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2101 | $as_echo "$as_me: caught signal $ac_signal" |
2102 | $as_echo "$as_me: exit $exit_status" | |
979273e3 | 2103 | } >&5 |
81ecdfbb RW |
2104 | rm -f core *.core core.conftest.* && |
2105 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
979273e3 | 2106 | exit $exit_status |
81ecdfbb | 2107 | ' 0 |
979273e3 | 2108 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2109 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
979273e3 NN |
2110 | done |
2111 | ac_signal=0 | |
2112 | ||
2113 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2114 | rm -f -r conftest* confdefs.h |
2115 | ||
2116 | $as_echo "/* confdefs.h */" > confdefs.h | |
979273e3 NN |
2117 | |
2118 | # Predefined preprocessor variables. | |
2119 | ||
2120 | cat >>confdefs.h <<_ACEOF | |
2121 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2122 | _ACEOF | |
2123 | ||
979273e3 NN |
2124 | cat >>confdefs.h <<_ACEOF |
2125 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2126 | _ACEOF | |
2127 | ||
979273e3 NN |
2128 | cat >>confdefs.h <<_ACEOF |
2129 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2130 | _ACEOF | |
2131 | ||
979273e3 NN |
2132 | cat >>confdefs.h <<_ACEOF |
2133 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2134 | _ACEOF | |
2135 | ||
979273e3 NN |
2136 | cat >>confdefs.h <<_ACEOF |
2137 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2138 | _ACEOF | |
2139 | ||
81ecdfbb RW |
2140 | cat >>confdefs.h <<_ACEOF |
2141 | #define PACKAGE_URL "$PACKAGE_URL" | |
2142 | _ACEOF | |
2143 | ||
979273e3 NN |
2144 | |
2145 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2146 | # Prefer an explicitly selected file to automatically selected ones. |
2147 | ac_site_file1=NONE | |
2148 | ac_site_file2=NONE | |
2149 | if test -n "$CONFIG_SITE"; then | |
2150 | ac_site_file1=$CONFIG_SITE | |
2151 | elif test "x$prefix" != xNONE; then | |
2152 | ac_site_file1=$prefix/share/config.site | |
2153 | ac_site_file2=$prefix/etc/config.site | |
2154 | else | |
2155 | ac_site_file1=$ac_default_prefix/share/config.site | |
2156 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2157 | fi | |
2158 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2159 | do | |
2160 | test "x$ac_site_file" = xNONE && continue | |
979273e3 | 2161 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2163 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
979273e3 NN |
2164 | sed 's/^/| /' "$ac_site_file" >&5 |
2165 | . "$ac_site_file" | |
2166 | fi | |
2167 | done | |
2168 | ||
2169 | if test -r "$cache_file"; then | |
2170 | # Some versions of bash will fail to source /dev/null (special | |
2171 | # files actually), so we avoid doing that. | |
2172 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2174 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
979273e3 | 2175 | case $cache_file in |
81ecdfbb RW |
2176 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2177 | *) . "./$cache_file";; | |
979273e3 NN |
2178 | esac |
2179 | fi | |
2180 | else | |
81ecdfbb RW |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2182 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
979273e3 NN |
2183 | >$cache_file |
2184 | fi | |
2185 | ||
2186 | # Check that the precious variables saved in the cache have kept the same | |
2187 | # value. | |
2188 | ac_cache_corrupted=false | |
81ecdfbb | 2189 | for ac_var in $ac_precious_vars; do |
979273e3 NN |
2190 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2191 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2192 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2193 | eval ac_new_val=\$ac_env_${ac_var}_value | |
979273e3 NN |
2194 | case $ac_old_set,$ac_new_set in |
2195 | set,) | |
81ecdfbb RW |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2197 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
979273e3 NN |
2198 | ac_cache_corrupted=: ;; |
2199 | ,set) | |
81ecdfbb RW |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2201 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
979273e3 NN |
2202 | ac_cache_corrupted=: ;; |
2203 | ,);; | |
2204 | *) | |
2205 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2206 | # differences in whitespace do not lead to failure. |
2207 | ac_old_val_w=`echo x $ac_old_val` | |
2208 | ac_new_val_w=`echo x $ac_new_val` | |
2209 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2211 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2212 | ac_cache_corrupted=: | |
2213 | else | |
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2215 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2216 | eval $ac_var=\$ac_old_val | |
2217 | fi | |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2219 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2221 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
979273e3 NN |
2222 | fi;; |
2223 | esac | |
2224 | # Pass precious variables to config.status. | |
2225 | if test "$ac_new_set" = set; then | |
2226 | case $ac_new_val in | |
81ecdfbb | 2227 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
979273e3 NN |
2228 | *) ac_arg=$ac_var=$ac_new_val ;; |
2229 | esac | |
2230 | case " $ac_configure_args " in | |
2231 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2232 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
979273e3 NN |
2233 | esac |
2234 | fi | |
2235 | done | |
2236 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2240 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2241 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
979273e3 | 2242 | fi |
81ecdfbb RW |
2243 | ## -------------------- ## |
2244 | ## Main body of script. ## | |
2245 | ## -------------------- ## | |
979273e3 NN |
2246 | |
2247 | ac_ext=c | |
2248 | ac_cpp='$CPP $CPPFLAGS' | |
2249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2252 | ||
2253 | ||
2254 | ||
979273e3 NN |
2255 | |
2256 | ||
2257 | ||
2258 | ||
2259 | ac_aux_dir= | |
81ecdfbb RW |
2260 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2261 | for ac_t in install-sh install.sh shtool; do | |
2262 | if test -f "$ac_dir/$ac_t"; then | |
2263 | ac_aux_dir=$ac_dir | |
2264 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2265 | break 2 | |
2266 | fi | |
2267 | done | |
979273e3 NN |
2268 | done |
2269 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2270 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
979273e3 | 2271 | fi |
81ecdfbb RW |
2272 | |
2273 | # These three variables are undocumented and unsupported, | |
2274 | # and are intended to be withdrawn in a future Autoconf release. | |
2275 | # They can cause serious problems if a builder's source tree is in a directory | |
2276 | # whose full name contains unusual characters. | |
2277 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2278 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2279 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2280 | ||
979273e3 NN |
2281 | |
2282 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2283 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2284 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2285 | ||
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2287 | $as_echo_n "checking build system type... " >&6; } | |
2288 | if test "${ac_cv_build+set}" = set; then : | |
2289 | $as_echo_n "(cached) " >&6 | |
2290 | else | |
2291 | ac_build_alias=$build_alias | |
2292 | test "x$ac_build_alias" = x && | |
2293 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2294 | test "x$ac_build_alias" = x && | |
2295 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2296 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2297 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2298 | ||
2299 | fi | |
2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2301 | $as_echo "$ac_cv_build" >&6; } | |
2302 | case $ac_cv_build in | |
2303 | *-*-*) ;; | |
2304 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2305 | esac | |
979273e3 | 2306 | build=$ac_cv_build |
81ecdfbb RW |
2307 | ac_save_IFS=$IFS; IFS='-' |
2308 | set x $ac_cv_build | |
2309 | shift | |
2310 | build_cpu=$1 | |
2311 | build_vendor=$2 | |
2312 | shift; shift | |
2313 | # Remember, the first character of IFS is used to create $*, | |
2314 | # except with old shells: | |
2315 | build_os=$* | |
2316 | IFS=$ac_save_IFS | |
2317 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2318 | |
2319 | ||
81ecdfbb RW |
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2321 | $as_echo_n "checking host system type... " >&6; } | |
2322 | if test "${ac_cv_host+set}" = set; then : | |
2323 | $as_echo_n "(cached) " >&6 | |
979273e3 | 2324 | else |
81ecdfbb RW |
2325 | if test "x$host_alias" = x; then |
2326 | ac_cv_host=$ac_cv_build | |
2327 | else | |
2328 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2329 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2330 | fi | |
979273e3 NN |
2331 | |
2332 | fi | |
81ecdfbb RW |
2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2334 | $as_echo "$ac_cv_host" >&6; } | |
2335 | case $ac_cv_host in | |
2336 | *-*-*) ;; | |
2337 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2338 | esac | |
979273e3 | 2339 | host=$ac_cv_host |
81ecdfbb RW |
2340 | ac_save_IFS=$IFS; IFS='-' |
2341 | set x $ac_cv_host | |
2342 | shift | |
2343 | host_cpu=$1 | |
2344 | host_vendor=$2 | |
2345 | shift; shift | |
2346 | # Remember, the first character of IFS is used to create $*, | |
2347 | # except with old shells: | |
2348 | host_os=$* | |
2349 | IFS=$ac_save_IFS | |
2350 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2351 | |
2352 | ||
81ecdfbb RW |
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2354 | $as_echo_n "checking target system type... " >&6; } | |
2355 | if test "${ac_cv_target+set}" = set; then : | |
2356 | $as_echo_n "(cached) " >&6 | |
2357 | else | |
2358 | if test "x$target_alias" = x; then | |
2359 | ac_cv_target=$ac_cv_host | |
979273e3 | 2360 | else |
81ecdfbb RW |
2361 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2362 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2363 | fi | |
979273e3 NN |
2364 | |
2365 | fi | |
81ecdfbb RW |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2367 | $as_echo "$ac_cv_target" >&6; } | |
2368 | case $ac_cv_target in | |
2369 | *-*-*) ;; | |
2370 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2371 | esac | |
979273e3 | 2372 | target=$ac_cv_target |
81ecdfbb RW |
2373 | ac_save_IFS=$IFS; IFS='-' |
2374 | set x $ac_cv_target | |
2375 | shift | |
2376 | target_cpu=$1 | |
2377 | target_vendor=$2 | |
2378 | shift; shift | |
2379 | # Remember, the first character of IFS is used to create $*, | |
2380 | # except with old shells: | |
2381 | target_os=$* | |
2382 | IFS=$ac_save_IFS | |
2383 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2384 | |
2385 | ||
2386 | # The aliases save the names the user supplied, while $host etc. | |
2387 | # will get canonicalized. | |
2388 | test -n "$target_alias" && | |
2389 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2390 | NONENONEs,x,x, && | |
2391 | program_prefix=${target_alias}- | |
2392 | ac_ext=c | |
2393 | ac_cpp='$CPP $CPPFLAGS' | |
2394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2397 | if test -n "$ac_tool_prefix"; then | |
2398 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2399 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2401 | $as_echo_n "checking for $ac_word... " >&6; } | |
2402 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2403 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2404 | else |
2405 | if test -n "$CC"; then | |
2406 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2407 | else | |
2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2409 | for as_dir in $PATH | |
2410 | do | |
2411 | IFS=$as_save_IFS | |
2412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do |
2414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2415 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2417 | break 2 |
2418 | fi | |
2419 | done | |
81ecdfbb RW |
2420 | done |
2421 | IFS=$as_save_IFS | |
979273e3 NN |
2422 | |
2423 | fi | |
2424 | fi | |
2425 | CC=$ac_cv_prog_CC | |
2426 | if test -n "$CC"; then | |
81ecdfbb RW |
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2428 | $as_echo "$CC" >&6; } | |
979273e3 | 2429 | else |
81ecdfbb RW |
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2431 | $as_echo "no" >&6; } | |
979273e3 NN |
2432 | fi |
2433 | ||
81ecdfbb | 2434 | |
979273e3 NN |
2435 | fi |
2436 | if test -z "$ac_cv_prog_CC"; then | |
2437 | ac_ct_CC=$CC | |
2438 | # Extract the first word of "gcc", so it can be a program name with args. | |
2439 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2441 | $as_echo_n "checking for $ac_word... " >&6; } | |
2442 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2443 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2444 | else |
2445 | if test -n "$ac_ct_CC"; then | |
2446 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2447 | else | |
2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2449 | for as_dir in $PATH | |
2450 | do | |
2451 | IFS=$as_save_IFS | |
2452 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2453 | for ac_exec_ext in '' $ac_executable_extensions; do |
2454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2455 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2457 | break 2 |
2458 | fi | |
2459 | done | |
81ecdfbb RW |
2460 | done |
2461 | IFS=$as_save_IFS | |
979273e3 NN |
2462 | |
2463 | fi | |
2464 | fi | |
2465 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2466 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2468 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 2469 | else |
81ecdfbb RW |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2471 | $as_echo "no" >&6; } | |
979273e3 NN |
2472 | fi |
2473 | ||
81ecdfbb RW |
2474 | if test "x$ac_ct_CC" = x; then |
2475 | CC="" | |
2476 | else | |
2477 | case $cross_compiling:$ac_tool_warned in | |
2478 | yes:) | |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2481 | ac_tool_warned=yes ;; | |
2482 | esac | |
2483 | CC=$ac_ct_CC | |
2484 | fi | |
979273e3 NN |
2485 | else |
2486 | CC="$ac_cv_prog_CC" | |
2487 | fi | |
2488 | ||
2489 | if test -z "$CC"; then | |
81ecdfbb RW |
2490 | if test -n "$ac_tool_prefix"; then |
2491 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
979273e3 | 2492 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2494 | $as_echo_n "checking for $ac_word... " >&6; } | |
2495 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2496 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2497 | else |
2498 | if test -n "$CC"; then | |
2499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2500 | else | |
2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2502 | for as_dir in $PATH | |
2503 | do | |
2504 | IFS=$as_save_IFS | |
2505 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2506 | for ac_exec_ext in '' $ac_executable_extensions; do |
2507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2508 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2510 | break 2 |
2511 | fi | |
2512 | done | |
81ecdfbb RW |
2513 | done |
2514 | IFS=$as_save_IFS | |
979273e3 NN |
2515 | |
2516 | fi | |
2517 | fi | |
2518 | CC=$ac_cv_prog_CC | |
2519 | if test -n "$CC"; then | |
81ecdfbb RW |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2521 | $as_echo "$CC" >&6; } | |
979273e3 | 2522 | else |
81ecdfbb RW |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2524 | $as_echo "no" >&6; } | |
979273e3 NN |
2525 | fi |
2526 | ||
979273e3 | 2527 | |
81ecdfbb | 2528 | fi |
979273e3 NN |
2529 | fi |
2530 | if test -z "$CC"; then | |
2531 | # Extract the first word of "cc", so it can be a program name with args. | |
2532 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2534 | $as_echo_n "checking for $ac_word... " >&6; } | |
2535 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2536 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2537 | else |
2538 | if test -n "$CC"; then | |
2539 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2540 | else | |
2541 | ac_prog_rejected=no | |
2542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2543 | for as_dir in $PATH | |
2544 | do | |
2545 | IFS=$as_save_IFS | |
2546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2547 | for ac_exec_ext in '' $ac_executable_extensions; do |
2548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 NN |
2549 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2550 | ac_prog_rejected=yes | |
2551 | continue | |
2552 | fi | |
2553 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2555 | break 2 |
2556 | fi | |
2557 | done | |
81ecdfbb RW |
2558 | done |
2559 | IFS=$as_save_IFS | |
979273e3 NN |
2560 | |
2561 | if test $ac_prog_rejected = yes; then | |
2562 | # We found a bogon in the path, so make sure we never use it. | |
2563 | set dummy $ac_cv_prog_CC | |
2564 | shift | |
2565 | if test $# != 0; then | |
2566 | # We chose a different compiler from the bogus one. | |
2567 | # However, it has the same basename, so the bogon will be chosen | |
2568 | # first if we set CC to just the basename; use the full file name. | |
2569 | shift | |
2570 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2571 | fi | |
2572 | fi | |
2573 | fi | |
2574 | fi | |
2575 | CC=$ac_cv_prog_CC | |
2576 | if test -n "$CC"; then | |
81ecdfbb RW |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2578 | $as_echo "$CC" >&6; } | |
979273e3 | 2579 | else |
81ecdfbb RW |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2581 | $as_echo "no" >&6; } | |
979273e3 NN |
2582 | fi |
2583 | ||
81ecdfbb | 2584 | |
979273e3 NN |
2585 | fi |
2586 | if test -z "$CC"; then | |
2587 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2588 | for ac_prog in cl.exe |
979273e3 NN |
2589 | do |
2590 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2591 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2593 | $as_echo_n "checking for $ac_word... " >&6; } | |
2594 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2595 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2596 | else |
2597 | if test -n "$CC"; then | |
2598 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2599 | else | |
2600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2601 | for as_dir in $PATH | |
2602 | do | |
2603 | IFS=$as_save_IFS | |
2604 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2605 | for ac_exec_ext in '' $ac_executable_extensions; do |
2606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2607 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2609 | break 2 |
2610 | fi | |
2611 | done | |
81ecdfbb RW |
2612 | done |
2613 | IFS=$as_save_IFS | |
979273e3 NN |
2614 | |
2615 | fi | |
2616 | fi | |
2617 | CC=$ac_cv_prog_CC | |
2618 | if test -n "$CC"; then | |
81ecdfbb RW |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2620 | $as_echo "$CC" >&6; } | |
979273e3 | 2621 | else |
81ecdfbb RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2623 | $as_echo "no" >&6; } | |
979273e3 NN |
2624 | fi |
2625 | ||
81ecdfbb | 2626 | |
979273e3 NN |
2627 | test -n "$CC" && break |
2628 | done | |
2629 | fi | |
2630 | if test -z "$CC"; then | |
2631 | ac_ct_CC=$CC | |
81ecdfbb | 2632 | for ac_prog in cl.exe |
979273e3 NN |
2633 | do |
2634 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2635 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2637 | $as_echo_n "checking for $ac_word... " >&6; } | |
2638 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2639 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2640 | else |
2641 | if test -n "$ac_ct_CC"; then | |
2642 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2643 | else | |
2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2645 | for as_dir in $PATH | |
2646 | do | |
2647 | IFS=$as_save_IFS | |
2648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
2650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2651 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2653 | break 2 |
2654 | fi | |
2655 | done | |
81ecdfbb RW |
2656 | done |
2657 | IFS=$as_save_IFS | |
2658 | ||
979273e3 NN |
2659 | fi |
2660 | fi | |
2661 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2662 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2664 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 2665 | else |
81ecdfbb RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2667 | $as_echo "no" >&6; } | |
979273e3 NN |
2668 | fi |
2669 | ||
81ecdfbb | 2670 | |
979273e3 NN |
2671 | test -n "$ac_ct_CC" && break |
2672 | done | |
2673 | ||
81ecdfbb RW |
2674 | if test "x$ac_ct_CC" = x; then |
2675 | CC="" | |
2676 | else | |
2677 | case $cross_compiling:$ac_tool_warned in | |
2678 | yes:) | |
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2681 | ac_tool_warned=yes ;; | |
2682 | esac | |
2683 | CC=$ac_ct_CC | |
2684 | fi | |
979273e3 NN |
2685 | fi |
2686 | ||
2687 | fi | |
2688 | ||
2689 | ||
81ecdfbb RW |
2690 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2692 | as_fn_error "no acceptable C compiler found in \$PATH | |
2693 | See \`config.log' for more details." "$LINENO" 5; } | |
979273e3 NN |
2694 | |
2695 | # Provide some information about the compiler. | |
81ecdfbb RW |
2696 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2697 | set X $ac_compile | |
2698 | ac_compiler=$2 | |
2699 | for ac_option in --version -v -V -qversion; do | |
2700 | { { ac_try="$ac_compiler $ac_option >&5" | |
2701 | case "(($ac_try" in | |
2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2703 | *) ac_try_echo=$ac_try;; | |
2704 | esac | |
2705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2706 | $as_echo "$ac_try_echo"; } >&5 | |
2707 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
979273e3 | 2708 | ac_status=$? |
81ecdfbb RW |
2709 | if test -s conftest.err; then |
2710 | sed '10a\ | |
2711 | ... rest of stderr output deleted ... | |
2712 | 10q' conftest.err >conftest.er1 | |
2713 | cat conftest.er1 >&5 | |
2714 | rm -f conftest.er1 conftest.err | |
2715 | fi | |
2716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2717 | test $ac_status = 0; } | |
2718 | done | |
979273e3 | 2719 | |
81ecdfbb | 2720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
2721 | /* end confdefs.h. */ |
2722 | ||
2723 | int | |
2724 | main () | |
2725 | { | |
2726 | ||
2727 | ; | |
2728 | return 0; | |
2729 | } | |
2730 | _ACEOF | |
2731 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2732 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
979273e3 NN |
2733 | # Try to create an executable without -o first, disregard a.out. |
2734 | # It will help us diagnose broken compilers, and finding out an intuition | |
2735 | # of exeext. | |
81ecdfbb RW |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2737 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2738 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2739 | ||
2740 | # The possible output files: | |
2741 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2742 | ||
2743 | ac_rmfiles= | |
2744 | for ac_file in $ac_files | |
2745 | do | |
2746 | case $ac_file in | |
2747 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2748 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2749 | esac | |
2750 | done | |
2751 | rm -f $ac_rmfiles | |
2752 | ||
2753 | if { { ac_try="$ac_link_default" | |
2754 | case "(($ac_try" in | |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2756 | *) ac_try_echo=$ac_try;; | |
2757 | esac | |
2758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2759 | $as_echo "$ac_try_echo"; } >&5 | |
2760 | (eval "$ac_link_default") 2>&5 | |
2761 | ac_status=$? | |
2762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2763 | test $ac_status = 0; }; then : | |
2764 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2765 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2766 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2767 | # so that the user can short-circuit this test for compilers unknown to | |
2768 | # Autoconf. | |
2769 | for ac_file in $ac_files '' | |
979273e3 NN |
2770 | do |
2771 | test -f "$ac_file" || continue | |
2772 | case $ac_file in | |
81ecdfbb | 2773 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
979273e3 NN |
2774 | ;; |
2775 | [ab].out ) | |
2776 | # We found the default executable, but exeext='' is most | |
2777 | # certainly right. | |
2778 | break;; | |
2779 | *.* ) | |
81ecdfbb RW |
2780 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2781 | then :; else | |
2782 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2783 | fi | |
2784 | # We set ac_cv_exeext here because the later test for it is not | |
2785 | # safe: cross compilers may not add the suffix if given an `-o' | |
2786 | # argument, so we may need to know it at that point already. | |
2787 | # Even if this section looks crufty: it has the advantage of | |
2788 | # actually working. | |
979273e3 NN |
2789 | break;; |
2790 | * ) | |
2791 | break;; | |
2792 | esac | |
2793 | done | |
81ecdfbb RW |
2794 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2795 | ||
979273e3 | 2796 | else |
81ecdfbb RW |
2797 | ac_file='' |
2798 | fi | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2800 | $as_echo "$ac_file" >&6; } | |
2801 | if test -z "$ac_file"; then : | |
2802 | $as_echo "$as_me: failed program was:" >&5 | |
979273e3 NN |
2803 | sed 's/^/| /' conftest.$ac_ext >&5 |
2804 | ||
81ecdfbb RW |
2805 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2807 | { as_fn_set_status 77 | |
2808 | as_fn_error "C compiler cannot create executables | |
2809 | See \`config.log' for more details." "$LINENO" 5; }; } | |
979273e3 | 2810 | fi |
979273e3 | 2811 | ac_exeext=$ac_cv_exeext |
979273e3 | 2812 | |
81ecdfbb | 2813 | # Check that the compiler produces executables we can run. If not, either |
979273e3 | 2814 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2816 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
979273e3 NN |
2817 | # If not cross compiling, check that we can run a simple program. |
2818 | if test "$cross_compiling" != yes; then | |
2819 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2820 | { { case "(($ac_try" in |
2821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2822 | *) ac_try_echo=$ac_try;; | |
2823 | esac | |
2824 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2825 | $as_echo "$ac_try_echo"; } >&5 | |
2826 | (eval "$ac_try") 2>&5 | |
979273e3 | 2827 | ac_status=$? |
81ecdfbb RW |
2828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2829 | test $ac_status = 0; }; }; then | |
979273e3 NN |
2830 | cross_compiling=no |
2831 | else | |
2832 | if test "$cross_compiling" = maybe; then | |
2833 | cross_compiling=yes | |
2834 | else | |
81ecdfbb RW |
2835 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2837 | as_fn_error "cannot run C compiled programs. | |
979273e3 | 2838 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2839 | See \`config.log' for more details." "$LINENO" 5; } |
979273e3 NN |
2840 | fi |
2841 | fi | |
2842 | fi | |
81ecdfbb RW |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2844 | $as_echo "yes" >&6; } | |
979273e3 | 2845 | |
81ecdfbb | 2846 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
979273e3 | 2847 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2848 | # Check that the compiler produces executables we can run. If not, either |
979273e3 | 2849 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2851 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2853 | $as_echo "$cross_compiling" >&6; } | |
2854 | ||
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2856 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2857 | if { { ac_try="$ac_link" | |
2858 | case "(($ac_try" in | |
2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2860 | *) ac_try_echo=$ac_try;; | |
2861 | esac | |
2862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2863 | $as_echo "$ac_try_echo"; } >&5 | |
2864 | (eval "$ac_link") 2>&5 | |
979273e3 | 2865 | ac_status=$? |
81ecdfbb RW |
2866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2867 | test $ac_status = 0; }; then : | |
979273e3 NN |
2868 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2869 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2870 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2871 | # `rm'. | |
2872 | for ac_file in conftest.exe conftest conftest.*; do | |
2873 | test -f "$ac_file" || continue | |
2874 | case $ac_file in | |
81ecdfbb | 2875 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
979273e3 | 2876 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
979273e3 NN |
2877 | break;; |
2878 | * ) break;; | |
2879 | esac | |
2880 | done | |
2881 | else | |
81ecdfbb RW |
2882 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2883 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2884 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2885 | See \`config.log' for more details." "$LINENO" 5; } | |
979273e3 | 2886 | fi |
979273e3 | 2887 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2889 | $as_echo "$ac_cv_exeext" >&6; } | |
979273e3 NN |
2890 | |
2891 | rm -f conftest.$ac_ext | |
2892 | EXEEXT=$ac_cv_exeext | |
2893 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2895 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2896 | if test "${ac_cv_objext+set}" = set; then : | |
2897 | $as_echo_n "(cached) " >&6 | |
979273e3 | 2898 | else |
81ecdfbb | 2899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
2900 | /* end confdefs.h. */ |
2901 | ||
2902 | int | |
2903 | main () | |
2904 | { | |
2905 | ||
2906 | ; | |
2907 | return 0; | |
2908 | } | |
2909 | _ACEOF | |
2910 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2911 | if { { ac_try="$ac_compile" |
2912 | case "(($ac_try" in | |
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2914 | *) ac_try_echo=$ac_try;; | |
2915 | esac | |
2916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2917 | $as_echo "$ac_try_echo"; } >&5 | |
2918 | (eval "$ac_compile") 2>&5 | |
2919 | ac_status=$? | |
2920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2921 | test $ac_status = 0; }; then : | |
2922 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2923 | test -f "$ac_file" || continue; | |
979273e3 | 2924 | case $ac_file in |
81ecdfbb | 2925 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
979273e3 NN |
2926 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2927 | break;; | |
2928 | esac | |
2929 | done | |
2930 | else | |
81ecdfbb | 2931 | $as_echo "$as_me: failed program was:" >&5 |
979273e3 NN |
2932 | sed 's/^/| /' conftest.$ac_ext >&5 |
2933 | ||
81ecdfbb RW |
2934 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2936 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2937 | See \`config.log' for more details." "$LINENO" 5; } | |
979273e3 | 2938 | fi |
979273e3 NN |
2939 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2940 | fi | |
81ecdfbb RW |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2942 | $as_echo "$ac_cv_objext" >&6; } | |
979273e3 NN |
2943 | OBJEXT=$ac_cv_objext |
2944 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2946 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2947 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2948 | $as_echo_n "(cached) " >&6 | |
979273e3 | 2949 | else |
81ecdfbb | 2950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
2951 | /* end confdefs.h. */ |
2952 | ||
2953 | int | |
2954 | main () | |
2955 | { | |
2956 | #ifndef __GNUC__ | |
2957 | choke me | |
2958 | #endif | |
2959 | ||
2960 | ; | |
2961 | return 0; | |
2962 | } | |
2963 | _ACEOF | |
81ecdfbb | 2964 | if ac_fn_c_try_compile "$LINENO"; then : |
979273e3 NN |
2965 | ac_compiler_gnu=yes |
2966 | else | |
81ecdfbb | 2967 | ac_compiler_gnu=no |
979273e3 | 2968 | fi |
81ecdfbb | 2969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
979273e3 NN |
2970 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2971 | ||
2972 | fi | |
81ecdfbb RW |
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2974 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2975 | if test $ac_compiler_gnu = yes; then | |
2976 | GCC=yes | |
2977 | else | |
2978 | GCC= | |
2979 | fi | |
979273e3 NN |
2980 | ac_test_CFLAGS=${CFLAGS+set} |
2981 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2983 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2984 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2985 | $as_echo_n "(cached) " >&6 | |
2986 | else | |
2987 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2988 | ac_c_werror_flag=yes | |
2989 | ac_cv_prog_cc_g=no | |
2990 | CFLAGS="-g" | |
2991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
979273e3 NN |
2992 | /* end confdefs.h. */ |
2993 | ||
2994 | int | |
2995 | main () | |
2996 | { | |
2997 | ||
2998 | ; | |
2999 | return 0; | |
3000 | } | |
3001 | _ACEOF | |
81ecdfbb | 3002 | if ac_fn_c_try_compile "$LINENO"; then : |
979273e3 NN |
3003 | ac_cv_prog_cc_g=yes |
3004 | else | |
81ecdfbb RW |
3005 | CFLAGS="" |
3006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3007 | /* end confdefs.h. */ | |
3008 | ||
3009 | int | |
3010 | main () | |
3011 | { | |
3012 | ||
3013 | ; | |
3014 | return 0; | |
3015 | } | |
3016 | _ACEOF | |
3017 | if ac_fn_c_try_compile "$LINENO"; then : | |
3018 | ||
3019 | else | |
3020 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3021 | CFLAGS="-g" | |
3022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3023 | /* end confdefs.h. */ | |
979273e3 | 3024 | |
81ecdfbb RW |
3025 | int |
3026 | main () | |
3027 | { | |
3028 | ||
3029 | ; | |
3030 | return 0; | |
3031 | } | |
3032 | _ACEOF | |
3033 | if ac_fn_c_try_compile "$LINENO"; then : | |
3034 | ac_cv_prog_cc_g=yes | |
979273e3 | 3035 | fi |
81ecdfbb | 3036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
979273e3 | 3037 | fi |
81ecdfbb RW |
3038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3039 | fi | |
3040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3041 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3042 | fi | |
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3044 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
979273e3 NN |
3045 | if test "$ac_test_CFLAGS" = set; then |
3046 | CFLAGS=$ac_save_CFLAGS | |
3047 | elif test $ac_cv_prog_cc_g = yes; then | |
3048 | if test "$GCC" = yes; then | |
3049 | CFLAGS="-g -O2" | |
3050 | else | |
3051 | CFLAGS="-g" | |
3052 | fi | |
3053 | else | |
3054 | if test "$GCC" = yes; then | |
3055 | CFLAGS="-O2" | |
3056 | else | |
3057 | CFLAGS= | |
3058 | fi | |
3059 | fi | |
81ecdfbb RW |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3061 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3062 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3063 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3064 | else |
81ecdfbb | 3065 | ac_cv_prog_cc_c89=no |
979273e3 | 3066 | ac_save_CC=$CC |
81ecdfbb | 3067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
3068 | /* end confdefs.h. */ |
3069 | #include <stdarg.h> | |
3070 | #include <stdio.h> | |
3071 | #include <sys/types.h> | |
3072 | #include <sys/stat.h> | |
3073 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3074 | struct buf { int x; }; | |
3075 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3076 | static char *e (p, i) | |
3077 | char **p; | |
3078 | int i; | |
3079 | { | |
3080 | return p[i]; | |
3081 | } | |
3082 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3083 | { | |
3084 | char *s; | |
3085 | va_list v; | |
3086 | va_start (v,p); | |
3087 | s = g (p, va_arg (v,int)); | |
3088 | va_end (v); | |
3089 | return s; | |
3090 | } | |
3091 | ||
3092 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3093 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3094 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3095 | as 'x'. The following induces an error, until -std is added to get |
979273e3 NN |
3096 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3097 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3098 | that's true only with -std. */ |
979273e3 NN |
3099 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3100 | ||
81ecdfbb RW |
3101 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3102 | inside strings and character constants. */ | |
3103 | #define FOO(x) 'x' | |
3104 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3105 | ||
979273e3 NN |
3106 | int test (int i, double x); |
3107 | struct s1 {int (*f) (int a);}; | |
3108 | struct s2 {int (*f) (double a);}; | |
3109 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3110 | int argc; | |
3111 | char **argv; | |
3112 | int | |
3113 | main () | |
3114 | { | |
3115 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3116 | ; | |
3117 | return 0; | |
3118 | } | |
3119 | _ACEOF | |
81ecdfbb RW |
3120 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3121 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
979273e3 NN |
3122 | do |
3123 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3124 | if ac_fn_c_try_compile "$LINENO"; then : |
3125 | ac_cv_prog_cc_c89=$ac_arg | |
979273e3 | 3126 | fi |
81ecdfbb RW |
3127 | rm -f core conftest.err conftest.$ac_objext |
3128 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
979273e3 | 3129 | done |
81ecdfbb | 3130 | rm -f conftest.$ac_ext |
979273e3 NN |
3131 | CC=$ac_save_CC |
3132 | ||
3133 | fi | |
81ecdfbb RW |
3134 | # AC_CACHE_VAL |
3135 | case "x$ac_cv_prog_cc_c89" in | |
3136 | x) | |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3138 | $as_echo "none needed" >&6; } ;; | |
3139 | xno) | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3141 | $as_echo "unsupported" >&6; } ;; | |
979273e3 | 3142 | *) |
81ecdfbb RW |
3143 | CC="$CC $ac_cv_prog_cc_c89" |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3145 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
979273e3 | 3146 | esac |
81ecdfbb | 3147 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
979273e3 | 3148 | |
979273e3 NN |
3149 | fi |
3150 | ||
979273e3 NN |
3151 | ac_ext=c |
3152 | ac_cpp='$CPP $CPPFLAGS' | |
3153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3156 | ||
3157 | ||
81ecdfbb RW |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3159 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3160 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3161 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3162 | else |
8ae85421 | 3163 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 3164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
3165 | /* end confdefs.h. */ |
3166 | ||
81ecdfbb RW |
3167 | /* Override any GCC internal prototype to avoid an error. |
3168 | Use char because int might match the return type of a GCC | |
3169 | builtin and then its argument prototype would still apply. */ | |
979273e3 NN |
3170 | #ifdef __cplusplus |
3171 | extern "C" | |
3172 | #endif | |
979273e3 NN |
3173 | char strerror (); |
3174 | int | |
3175 | main () | |
3176 | { | |
81ecdfbb | 3177 | return strerror (); |
979273e3 NN |
3178 | ; |
3179 | return 0; | |
3180 | } | |
3181 | _ACEOF | |
81ecdfbb RW |
3182 | for ac_lib in '' cposix; do |
3183 | if test -z "$ac_lib"; then | |
3184 | ac_res="none required" | |
3185 | else | |
3186 | ac_res=-l$ac_lib | |
8ae85421 | 3187 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3188 | fi |
3189 | if ac_fn_c_try_link "$LINENO"; then : | |
3190 | ac_cv_search_strerror=$ac_res | |
3191 | fi | |
3192 | rm -f core conftest.err conftest.$ac_objext \ | |
3193 | conftest$ac_exeext | |
3194 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3195 | break | |
3196 | fi | |
3197 | done | |
3198 | if test "${ac_cv_search_strerror+set}" = set; then : | |
8ae85421 | 3199 | |
8ae85421 | 3200 | else |
81ecdfbb | 3201 | ac_cv_search_strerror=no |
979273e3 | 3202 | fi |
81ecdfbb | 3203 | rm conftest.$ac_ext |
8ae85421 AM |
3204 | LIBS=$ac_func_search_save_LIBS |
3205 | fi | |
81ecdfbb RW |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3207 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3208 | ac_res=$ac_cv_search_strerror | |
3209 | if test "$ac_res" != no; then : | |
3210 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
979273e3 | 3211 | |
8ae85421 | 3212 | fi |
979273e3 NN |
3213 | |
3214 | ||
3215 | # We currently only use the version number for the name of any shared | |
3216 | # library. For user convenience, we always use the same version | |
3217 | # number that BFD is using. | |
3218 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
3219 | ||
81ecdfbb RW |
3220 | am__api_version='1.11' |
3221 | ||
979273e3 NN |
3222 | # Find a good install program. We prefer a C program (faster), |
3223 | # so one script is as good as another. But avoid the broken or | |
3224 | # incompatible versions: | |
3225 | # SysV /etc/install, /usr/sbin/install | |
3226 | # SunOS /usr/etc/install | |
3227 | # IRIX /sbin/install | |
3228 | # AIX /bin/install | |
3229 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3230 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3231 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
252b5132 | 3232 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
979273e3 | 3233 | # OS/2's system install, which has a completely different semantic |
252b5132 | 3234 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3235 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3237 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
252b5132 | 3238 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3239 | if test "${ac_cv_path_install+set}" = set; then : |
3240 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3241 | else |
979273e3 NN |
3242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3243 | for as_dir in $PATH | |
3244 | do | |
3245 | IFS=$as_save_IFS | |
3246 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3247 | # Account for people who put trailing slashes in PATH elements. |
3248 | case $as_dir/ in #(( | |
3249 | ./ | .// | /[cC]/* | \ | |
979273e3 | 3250 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3251 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
979273e3 NN |
3252 | /usr/ucb/* ) ;; |
3253 | *) | |
3254 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3255 | # Don't use installbsd from OSF since it installs stuff as root | |
3256 | # by default. | |
3257 | for ac_prog in ginstall scoinst install; do | |
3258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3259 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3260 | if test $ac_prog = install && |
979273e3 | 3261 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3262 | # AIX install. It has an incompatible calling convention. |
3263 | : | |
979273e3 NN |
3264 | elif test $ac_prog = install && |
3265 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3266 | # program-specific install script used by HP pwplus--don't use. | |
3267 | : | |
252b5132 | 3268 | else |
58c85be7 RW |
3269 | rm -rf conftest.one conftest.two conftest.dir |
3270 | echo one > conftest.one | |
3271 | echo two > conftest.two | |
3272 | mkdir conftest.dir | |
3273 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3274 | test -s conftest.one && test -s conftest.two && | |
3275 | test -s conftest.dir/conftest.one && | |
3276 | test -s conftest.dir/conftest.two | |
3277 | then | |
3278 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3279 | break 3 | |
3280 | fi | |
252b5132 RH |
3281 | fi |
3282 | fi | |
3283 | done | |
979273e3 NN |
3284 | done |
3285 | ;; | |
3286 | esac | |
81ecdfbb RW |
3287 | |
3288 | done | |
3289 | IFS=$as_save_IFS | |
979273e3 | 3290 | |
58c85be7 | 3291 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3292 | |
3293 | fi | |
3294 | if test "${ac_cv_path_install+set}" = set; then | |
979273e3 | 3295 | INSTALL=$ac_cv_path_install |
252b5132 | 3296 | else |
58c85be7 RW |
3297 | # As a last resort, use the slow shell script. Don't cache a |
3298 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3299 | # break other packages using the cache if that directory is |
58c85be7 | 3300 | # removed, or if the value is a relative name. |
979273e3 | 3301 | INSTALL=$ac_install_sh |
252b5132 RH |
3302 | fi |
3303 | fi | |
81ecdfbb RW |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3305 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3306 | |
3307 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3308 | # It thinks the first close brace ends the variable substitution. | |
3309 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3310 | ||
979273e3 | 3311 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3312 | |
3313 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3314 | ||
81ecdfbb RW |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3316 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3317 | # Just in case |
3318 | sleep 1 | |
8ae85421 | 3319 | echo timestamp > conftest.file |
81ecdfbb RW |
3320 | # Reject unsafe characters in $srcdir or the absolute working directory |
3321 | # name. Accept space and tab only in the latter. | |
3322 | am_lf=' | |
3323 | ' | |
3324 | case `pwd` in | |
3325 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3326 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3327 | esac | |
3328 | case $srcdir in | |
3329 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3330 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3331 | esac | |
3332 | ||
252b5132 RH |
3333 | # Do `set' in a subshell so we don't clobber the current shell's |
3334 | # arguments. Must try -L first in case configure is actually a | |
3335 | # symlink; some systems play weird games with the mod time of symlinks | |
3336 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3337 | # directory). | |
3338 | if ( | |
81ecdfbb | 3339 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3340 | if test "$*" = "X"; then |
3341 | # -L didn't work. | |
81ecdfbb | 3342 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3343 | fi |
8ae85421 AM |
3344 | rm -f conftest.file |
3345 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3346 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3347 | |
3348 | # If neither matched, then we have a broken ls. This can happen | |
3349 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3350 | # broken ls alias from the environment. This has actually | |
3351 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3352 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3353 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3354 | fi |
3355 | ||
8ae85421 | 3356 | test "$2" = conftest.file |
252b5132 RH |
3357 | ) |
3358 | then | |
3359 | # Ok. | |
3360 | : | |
3361 | else | |
81ecdfbb RW |
3362 | as_fn_error "newly created file is older than distributed files! |
3363 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3364 | fi |
81ecdfbb RW |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3366 | $as_echo "yes" >&6; } | |
252b5132 | 3367 | test "$program_prefix" != NONE && |
81ecdfbb | 3368 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3369 | # Use a double $ so make ignores it. |
3370 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3371 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3372 | # Double any \ or $. | |
979273e3 | 3373 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3374 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3375 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
979273e3 | 3376 | |
8ae85421 AM |
3377 | # expand $ac_aux_dir to an absolute path |
3378 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3379 | ||
81ecdfbb RW |
3380 | if test x"${MISSING+set}" != xset; then |
3381 | case $am_aux_dir in | |
3382 | *\ * | *\ *) | |
3383 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3384 | *) | |
3385 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3386 | esac | |
3387 | fi | |
8ae85421 AM |
3388 | # Use eval to expand $SHELL |
3389 | if eval "$MISSING --run true"; then | |
3390 | am_missing_run="$MISSING --run " | |
3391 | else | |
3392 | am_missing_run= | |
81ecdfbb RW |
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3394 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3395 | fi | |
3396 | ||
3397 | if test x"${install_sh}" != xset; then | |
3398 | case $am_aux_dir in | |
3399 | *\ * | *\ *) | |
3400 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3401 | *) | |
3402 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3403 | esac | |
3404 | fi | |
3405 | ||
3406 | # Installed binaries are usually stripped using `strip' when the user | |
3407 | # run `make install-strip'. However `strip' might not be the right | |
3408 | # tool to use in cross-compilation environments, therefore Automake | |
3409 | # will honor the `STRIP' environment variable to overrule this program. | |
3410 | if test "$cross_compiling" != no; then | |
3411 | if test -n "$ac_tool_prefix"; then | |
3412 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3413 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3415 | $as_echo_n "checking for $ac_word... " >&6; } | |
3416 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3417 | $as_echo_n "(cached) " >&6 | |
3418 | else | |
3419 | if test -n "$STRIP"; then | |
3420 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3421 | else | |
3422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3423 | for as_dir in $PATH | |
3424 | do | |
3425 | IFS=$as_save_IFS | |
3426 | test -z "$as_dir" && as_dir=. | |
3427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3429 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3431 | break 2 | |
3432 | fi | |
3433 | done | |
3434 | done | |
3435 | IFS=$as_save_IFS | |
3436 | ||
3437 | fi | |
3438 | fi | |
3439 | STRIP=$ac_cv_prog_STRIP | |
3440 | if test -n "$STRIP"; then | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3442 | $as_echo "$STRIP" >&6; } | |
3443 | else | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3445 | $as_echo "no" >&6; } | |
3446 | fi | |
3447 | ||
3448 | ||
3449 | fi | |
3450 | if test -z "$ac_cv_prog_STRIP"; then | |
3451 | ac_ct_STRIP=$STRIP | |
3452 | # Extract the first word of "strip", so it can be a program name with args. | |
3453 | set dummy strip; ac_word=$2 | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3455 | $as_echo_n "checking for $ac_word... " >&6; } | |
3456 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3457 | $as_echo_n "(cached) " >&6 | |
3458 | else | |
3459 | if test -n "$ac_ct_STRIP"; then | |
3460 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3461 | else | |
3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3463 | for as_dir in $PATH | |
3464 | do | |
3465 | IFS=$as_save_IFS | |
3466 | test -z "$as_dir" && as_dir=. | |
3467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3469 | ac_cv_prog_ac_ct_STRIP="strip" | |
3470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3471 | break 2 | |
3472 | fi | |
3473 | done | |
8ae85421 | 3474 | done |
81ecdfbb RW |
3475 | IFS=$as_save_IFS |
3476 | ||
3477 | fi | |
3478 | fi | |
3479 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3480 | if test -n "$ac_ct_STRIP"; then | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3482 | $as_echo "$ac_ct_STRIP" >&6; } | |
3483 | else | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3485 | $as_echo "no" >&6; } | |
3486 | fi | |
3487 | ||
3488 | if test "x$ac_ct_STRIP" = x; then | |
3489 | STRIP=":" | |
3490 | else | |
3491 | case $cross_compiling:$ac_tool_warned in | |
3492 | yes:) | |
3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3494 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3495 | ac_tool_warned=yes ;; | |
3496 | esac | |
3497 | STRIP=$ac_ct_STRIP | |
3498 | fi | |
3499 | else | |
3500 | STRIP="$ac_cv_prog_STRIP" | |
3501 | fi | |
3502 | ||
3503 | fi | |
3504 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3505 | ||
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3507 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3508 | if test -z "$MKDIR_P"; then | |
3509 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3510 | $as_echo_n "(cached) " >&6 | |
3511 | else | |
3512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3513 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3514 | do | |
3515 | IFS=$as_save_IFS | |
3516 | test -z "$as_dir" && as_dir=. | |
3517 | for ac_prog in mkdir gmkdir; do | |
3518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3519 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3520 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3521 | 'mkdir (GNU coreutils) '* | \ | |
3522 | 'mkdir (coreutils) '* | \ | |
3523 | 'mkdir (fileutils) '4.1*) | |
3524 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3525 | break 3;; | |
3526 | esac | |
3527 | done | |
3528 | done | |
3529 | done | |
3530 | IFS=$as_save_IFS | |
3531 | ||
3532 | fi | |
3533 | ||
3534 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3535 | MKDIR_P="$ac_cv_path_mkdir -p" | |
8ae85421 | 3536 | else |
81ecdfbb RW |
3537 | # As a last resort, use the slow shell script. Don't cache a |
3538 | # value for MKDIR_P within a source directory, because that will | |
3539 | # break other packages using the cache if that directory is | |
3540 | # removed, or if the value is a relative name. | |
3541 | test -d ./--version && rmdir ./--version | |
3542 | MKDIR_P="$ac_install_sh -d" | |
8ae85421 AM |
3543 | fi |
3544 | fi | |
81ecdfbb RW |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3546 | $as_echo "$MKDIR_P" >&6; } | |
3547 | ||
3548 | mkdir_p="$MKDIR_P" | |
3549 | case $mkdir_p in | |
3550 | [\\/$]* | ?:[\\/]*) ;; | |
3551 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3552 | esac | |
8ae85421 AM |
3553 | |
3554 | for ac_prog in gawk mawk nawk awk | |
3555 | do | |
3556 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3557 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3559 | $as_echo_n "checking for $ac_word... " >&6; } | |
3560 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3561 | $as_echo_n "(cached) " >&6 | |
8ae85421 AM |
3562 | else |
3563 | if test -n "$AWK"; then | |
3564 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3565 | else | |
3566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3567 | for as_dir in $PATH | |
3568 | do | |
3569 | IFS=$as_save_IFS | |
3570 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3571 | for ac_exec_ext in '' $ac_executable_extensions; do |
3572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8ae85421 | 3573 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ae85421 AM |
3575 | break 2 |
3576 | fi | |
3577 | done | |
81ecdfbb RW |
3578 | done |
3579 | IFS=$as_save_IFS | |
8ae85421 AM |
3580 | |
3581 | fi | |
3582 | fi | |
3583 | AWK=$ac_cv_prog_AWK | |
3584 | if test -n "$AWK"; then | |
81ecdfbb RW |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3586 | $as_echo "$AWK" >&6; } | |
8ae85421 | 3587 | else |
81ecdfbb RW |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3589 | $as_echo "no" >&6; } | |
8ae85421 AM |
3590 | fi |
3591 | ||
81ecdfbb | 3592 | |
8ae85421 AM |
3593 | test -n "$AWK" && break |
3594 | done | |
3595 | ||
81ecdfbb RW |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3597 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3598 | set x ${MAKE-make} | |
3599 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3600 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3601 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
3602 | else |
3603 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3604 | SHELL = /bin/sh |
252b5132 | 3605 | all: |
81ecdfbb | 3606 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
979273e3 | 3607 | _ACEOF |
252b5132 | 3608 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3609 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3610 | *@@@%%%=?*=@@@%%%*) | |
3611 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3612 | *) | |
3613 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3614 | esac | |
979273e3 | 3615 | rm -f conftest.make |
252b5132 | 3616 | fi |
81ecdfbb RW |
3617 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3619 | $as_echo "yes" >&6; } | |
252b5132 RH |
3620 | SET_MAKE= |
3621 | else | |
81ecdfbb RW |
3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3623 | $as_echo "no" >&6; } | |
252b5132 RH |
3624 | SET_MAKE="MAKE=${MAKE-make}" |
3625 | fi | |
3626 | ||
8ae85421 AM |
3627 | rm -rf .tst 2>/dev/null |
3628 | mkdir .tst 2>/dev/null | |
3629 | if test -d .tst; then | |
3630 | am__leading_dot=. | |
3631 | else | |
3632 | am__leading_dot=_ | |
3633 | fi | |
3634 | rmdir .tst 2>/dev/null | |
3635 | ||
3636 | DEPDIR="${am__leading_dot}deps" | |
3637 | ||
81ecdfbb | 3638 | ac_config_commands="$ac_config_commands depfiles" |
8ae85421 AM |
3639 | |
3640 | ||
3641 | am_make=${MAKE-make} | |
3642 | cat > confinc << 'END' | |
3643 | am__doit: | |
81ecdfbb | 3644 | @echo this is the am__doit target |
8ae85421 AM |
3645 | .PHONY: am__doit |
3646 | END | |
3647 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3649 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
8ae85421 AM |
3650 | am__include="#" |
3651 | am__quote= | |
3652 | _am_result=none | |
3653 | # First try GNU make style include. | |
3654 | echo "include confinc" > confmf | |
81ecdfbb RW |
3655 | # Ignore all kinds of additional output from `make'. |
3656 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3657 | *the\ am__doit\ target*) | |
3658 | am__include=include | |
3659 | am__quote= | |
3660 | _am_result=GNU | |
3661 | ;; | |
3662 | esac | |
8ae85421 AM |
3663 | # Now try BSD make style include. |
3664 | if test "$am__include" = "#"; then | |
3665 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3666 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3667 | *the\ am__doit\ target*) | |
3668 | am__include=.include | |
3669 | am__quote="\"" | |
3670 | _am_result=BSD | |
3671 | ;; | |
3672 | esac | |
8ae85421 AM |
3673 | fi |
3674 | ||
3675 | ||
81ecdfbb RW |
3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3677 | $as_echo "$_am_result" >&6; } | |
8ae85421 AM |
3678 | rm -f confinc confmf |
3679 | ||
81ecdfbb RW |
3680 | # Check whether --enable-dependency-tracking was given. |
3681 | if test "${enable_dependency_tracking+set}" = set; then : | |
3682 | enableval=$enable_dependency_tracking; | |
3683 | fi | |
8ae85421 | 3684 | |
8ae85421 AM |
3685 | if test "x$enable_dependency_tracking" != xno; then |
3686 | am_depcomp="$ac_aux_dir/depcomp" | |
3687 | AMDEPBACKSLASH='\' | |
3688 | fi | |
81ecdfbb | 3689 | if test "x$enable_dependency_tracking" != xno; then |
8ae85421 AM |
3690 | AMDEP_TRUE= |
3691 | AMDEP_FALSE='#' | |
3692 | else | |
3693 | AMDEP_TRUE='#' | |
3694 | AMDEP_FALSE= | |
3695 | fi | |
252b5132 | 3696 | |
252b5132 | 3697 | |
81ecdfbb RW |
3698 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3699 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3700 | # is not polluted with repeated "-I." | |
3701 | am__isrc=' -I$(srcdir)' | |
3702 | # test to see if srcdir already configured | |
3703 | if test -f $srcdir/config.status; then | |
3704 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3705 | fi | |
252b5132 | 3706 | fi |
979273e3 | 3707 | |
8ae85421 AM |
3708 | # test whether we have cygpath |
3709 | if test -z "$CYGPATH_W"; then | |
3710 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3711 | CYGPATH_W='cygpath -w' | |
3712 | else | |
3713 | CYGPATH_W=echo | |
3714 | fi | |
3715 | fi | |
3716 | ||
3717 | ||
3718 | # Define the identity of the package. | |
3719 | PACKAGE=opcodes | |
3720 | VERSION=${BFD_VERSION} | |
3721 | ||
3722 | ||
979273e3 | 3723 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3724 | #define PACKAGE "$PACKAGE" |
979273e3 | 3725 | _ACEOF |
252b5132 | 3726 | |
979273e3 NN |
3727 | |
3728 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3729 | #define VERSION "$VERSION" |
979273e3 | 3730 | _ACEOF |
252b5132 | 3731 | |
8ae85421 | 3732 | # Some tools Automake needs. |
252b5132 | 3733 | |
8ae85421 | 3734 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
252b5132 | 3735 | |
8ae85421 AM |
3736 | |
3737 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3738 | ||
3739 | ||
3740 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3741 | ||
3742 | ||
3743 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3744 | ||
3745 | ||
3746 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3747 | ||
8ae85421 AM |
3748 | # We need awk for the "check" target. The system "awk" is bad on |
3749 | # some platforms. | |
3750 | # Always define AMTAR for backward compatibility. | |
3751 | ||
3752 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3753 | ||
3754 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3755 | ||
3756 | ||
3757 | ||
3758 | ||
3759 | depcc="$CC" am_compiler_list= | |
3760 | ||
81ecdfbb RW |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3762 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3763 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3764 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3765 | else |
8ae85421 AM |
3766 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3767 | # We make a subdir and do the tests there. Otherwise we can end up | |
3768 | # making bogus files that we don't know about and never remove. For | |
3769 | # instance it was reported that on HP-UX the gcc test will end up | |
3770 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3771 | # in D'. | |
3772 | mkdir conftest.dir | |
3773 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3774 | # using a relative directory. | |
3775 | cp "$am_depcomp" conftest.dir | |
3776 | cd conftest.dir | |
3777 | # We will build objects and dependencies in a subdirectory because | |
3778 | # it helps to detect inapplicable dependency modes. For instance | |
3779 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3780 | # side effect of compilation, but ICC will put the dependencies in | |
3781 | # the current directory while Tru64 will put them in the object | |
3782 | # directory. | |
3783 | mkdir sub | |
3784 | ||
3785 | am_cv_CC_dependencies_compiler_type=none | |
3786 | if test "$am_compiler_list" = ""; then | |
3787 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3788 | fi | |
81ecdfbb RW |
3789 | am__universal=false |
3790 | case " $depcc " in #( | |
3791 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3792 | esac | |
3793 | ||
8ae85421 AM |
3794 | for depmode in $am_compiler_list; do |
3795 | # Setup a source with many dependencies, because some compilers | |
3796 | # like to wrap large dependency lists on column 80 (with \), and | |
3797 | # we should not choose a depcomp mode which is confused by this. | |
3798 | # | |
3799 | # We need to recreate these files for each test, as the compiler may | |
3800 | # overwrite some of them when testing with obscure command lines. | |
3801 | # This happens at least with the AIX C compiler. | |
3802 | : > sub/conftest.c | |
3803 | for i in 1 2 3 4 5 6; do | |
3804 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3805 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3806 | # Solaris 8's {/usr,}/bin/sh. | |
3807 | touch sub/conftst$i.h | |
3808 | done | |
3809 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3810 | ||
81ecdfbb RW |
3811 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3812 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3813 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3814 | # versions had trouble with output in subdirs | |
3815 | am__obj=sub/conftest.${OBJEXT-o} | |
3816 | am__minus_obj="-o $am__obj" | |
8ae85421 | 3817 | case $depmode in |
81ecdfbb RW |
3818 | gcc) |
3819 | # This depmode causes a compiler race in universal mode. | |
3820 | test "$am__universal" = false || continue | |
3821 | ;; | |
8ae85421 AM |
3822 | nosideeffect) |
3823 | # after this tag, mechanisms are not by side-effect, so they'll | |
3824 | # only be used when explicitly requested | |
3825 | if test "x$enable_dependency_tracking" = xyes; then | |
3826 | continue | |
3827 | else | |
3828 | break | |
3829 | fi | |
3830 | ;; | |
81ecdfbb RW |
3831 | msvisualcpp | msvcmsys) |
3832 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3833 | # not run yet. These depmodes are late enough in the game, and | |
3834 | # so weak that their functioning should not be impacted. | |
3835 | am__obj=conftest.${OBJEXT-o} | |
3836 | am__minus_obj= | |
3837 | ;; | |
8ae85421 AM |
3838 | none) break ;; |
3839 | esac | |
8ae85421 | 3840 | if depmode=$depmode \ |
81ecdfbb | 3841 | source=sub/conftest.c object=$am__obj \ |
8ae85421 | 3842 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 3843 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
8ae85421 | 3844 | >/dev/null 2>conftest.err && |
81ecdfbb | 3845 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
8ae85421 | 3846 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 3847 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
8ae85421 AM |
3848 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3849 | # icc doesn't choke on unknown options, it will just issue warnings | |
3850 | # or remarks (even with -Werror). So we grep stderr for any message | |
3851 | # that says an option was ignored or not supported. | |
3852 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3853 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3854 | # The diagnosis changed in icc 8.0: | |
3855 | # icc: Command line remark: option '-MP' not supported | |
3856 | if (grep 'ignoring option' conftest.err || | |
3857 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3858 | am_cv_CC_dependencies_compiler_type=$depmode | |
3859 | break | |
3860 | fi | |
3861 | fi | |
3862 | done | |
3863 | ||
3864 | cd .. | |
3865 | rm -rf conftest.dir | |
3866 | else | |
3867 | am_cv_CC_dependencies_compiler_type=none | |
3868 | fi | |
3869 | ||
252b5132 | 3870 | fi |
81ecdfbb RW |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3872 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
8ae85421 AM |
3873 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3874 | ||
81ecdfbb | 3875 | if |
8ae85421 AM |
3876 | test "x$enable_dependency_tracking" != xno \ |
3877 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3878 | am__fastdepCC_TRUE= | |
3879 | am__fastdepCC_FALSE='#' | |
252b5132 | 3880 | else |
8ae85421 AM |
3881 | am__fastdepCC_TRUE='#' |
3882 | am__fastdepCC_FALSE= | |
252b5132 RH |
3883 | fi |
3884 | ||
3885 | ||
3886 | ||
8ae85421 | 3887 | |
dabbade6 L |
3888 | ac_ext=c |
3889 | ac_cpp='$CPP $CPPFLAGS' | |
3890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
979273e3 | 3893 | if test -n "$ac_tool_prefix"; then |
dabbade6 L |
3894 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3895 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3897 | $as_echo_n "checking for $ac_word... " >&6; } | |
3898 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3899 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3900 | else |
dabbade6 L |
3901 | if test -n "$CC"; then |
3902 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3903 | else |
979273e3 NN |
3904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3905 | for as_dir in $PATH | |
3906 | do | |
3907 | IFS=$as_save_IFS | |
3908 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do |
3910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 3911 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3913 | break 2 |
3914 | fi | |
3915 | done | |
81ecdfbb RW |
3916 | done |
3917 | IFS=$as_save_IFS | |
979273e3 | 3918 | |
252b5132 RH |
3919 | fi |
3920 | fi | |
dabbade6 L |
3921 | CC=$ac_cv_prog_CC |
3922 | if test -n "$CC"; then | |
81ecdfbb RW |
3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3924 | $as_echo "$CC" >&6; } | |
252b5132 | 3925 | else |
81ecdfbb RW |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3927 | $as_echo "no" >&6; } | |
979273e3 NN |
3928 | fi |
3929 | ||
81ecdfbb | 3930 | |
252b5132 | 3931 | fi |
dabbade6 L |
3932 | if test -z "$ac_cv_prog_CC"; then |
3933 | ac_ct_CC=$CC | |
3934 | # Extract the first word of "gcc", so it can be a program name with args. | |
3935 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3937 | $as_echo_n "checking for $ac_word... " >&6; } | |
3938 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3939 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3940 | else |
dabbade6 L |
3941 | if test -n "$ac_ct_CC"; then |
3942 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
979273e3 NN |
3943 | else |
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 | for as_dir in $PATH | |
3946 | do | |
3947 | IFS=$as_save_IFS | |
3948 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3949 | for ac_exec_ext in '' $ac_executable_extensions; do |
3950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 3951 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3953 | break 2 |
3954 | fi | |
3955 | done | |
81ecdfbb RW |
3956 | done |
3957 | IFS=$as_save_IFS | |
252b5132 | 3958 | |
979273e3 NN |
3959 | fi |
3960 | fi | |
dabbade6 L |
3961 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3962 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3964 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 3965 | else |
81ecdfbb RW |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3967 | $as_echo "no" >&6; } | |
979273e3 | 3968 | fi |
252b5132 | 3969 | |
81ecdfbb RW |
3970 | if test "x$ac_ct_CC" = x; then |
3971 | CC="" | |
3972 | else | |
3973 | case $cross_compiling:$ac_tool_warned in | |
3974 | yes:) | |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3976 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3977 | ac_tool_warned=yes ;; | |
3978 | esac | |
3979 | CC=$ac_ct_CC | |
3980 | fi | |
979273e3 | 3981 | else |
dabbade6 | 3982 | CC="$ac_cv_prog_CC" |
979273e3 | 3983 | fi |
252b5132 | 3984 | |
dabbade6 | 3985 | if test -z "$CC"; then |
81ecdfbb RW |
3986 | if test -n "$ac_tool_prefix"; then |
3987 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
dabbade6 | 3988 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3990 | $as_echo_n "checking for $ac_word... " >&6; } | |
3991 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3992 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3993 | else |
dabbade6 L |
3994 | if test -n "$CC"; then |
3995 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3996 | else |
979273e3 NN |
3997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3998 | for as_dir in $PATH | |
3999 | do | |
4000 | IFS=$as_save_IFS | |
4001 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4002 | for ac_exec_ext in '' $ac_executable_extensions; do |
4003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4004 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
4006 | break 2 |
4007 | fi | |
4008 | done | |
81ecdfbb RW |
4009 | done |
4010 | IFS=$as_save_IFS | |
979273e3 | 4011 | |
252b5132 RH |
4012 | fi |
4013 | fi | |
dabbade6 L |
4014 | CC=$ac_cv_prog_CC |
4015 | if test -n "$CC"; then | |
81ecdfbb RW |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4017 | $as_echo "$CC" >&6; } | |
252b5132 | 4018 | else |
81ecdfbb RW |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4020 | $as_echo "no" >&6; } | |
252b5132 RH |
4021 | fi |
4022 | ||
252b5132 | 4023 | |
81ecdfbb | 4024 | fi |
dabbade6 L |
4025 | fi |
4026 | if test -z "$CC"; then | |
4027 | # Extract the first word of "cc", so it can be a program name with args. | |
4028 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4030 | $as_echo_n "checking for $ac_word... " >&6; } | |
4031 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4032 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
4033 | else |
4034 | if test -n "$CC"; then | |
4035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4036 | else | |
4037 | ac_prog_rejected=no | |
4038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4039 | for as_dir in $PATH | |
4040 | do | |
4041 | IFS=$as_save_IFS | |
4042 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4043 | for ac_exec_ext in '' $ac_executable_extensions; do |
4044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 L |
4045 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4046 | ac_prog_rejected=yes | |
4047 | continue | |
4048 | fi | |
4049 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
4051 | break 2 |
4052 | fi | |
4053 | done | |
81ecdfbb RW |
4054 | done |
4055 | IFS=$as_save_IFS | |
252b5132 | 4056 | |
dabbade6 L |
4057 | if test $ac_prog_rejected = yes; then |
4058 | # We found a bogon in the path, so make sure we never use it. | |
4059 | set dummy $ac_cv_prog_CC | |
4060 | shift | |
4061 | if test $# != 0; then | |
4062 | # We chose a different compiler from the bogus one. | |
4063 | # However, it has the same basename, so the bogon will be chosen | |
4064 | # first if we set CC to just the basename; use the full file name. | |
4065 | shift | |
4066 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4067 | fi | |
4068 | fi | |
4069 | fi | |
4070 | fi | |
4071 | CC=$ac_cv_prog_CC | |
4072 | if test -n "$CC"; then | |
81ecdfbb RW |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4074 | $as_echo "$CC" >&6; } | |
252b5132 | 4075 | else |
81ecdfbb RW |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4077 | $as_echo "no" >&6; } | |
dabbade6 | 4078 | fi |
252b5132 | 4079 | |
81ecdfbb | 4080 | |
dabbade6 L |
4081 | fi |
4082 | if test -z "$CC"; then | |
4083 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4084 | for ac_prog in cl.exe |
dabbade6 L |
4085 | do |
4086 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4087 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4089 | $as_echo_n "checking for $ac_word... " >&6; } | |
4090 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4091 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
4092 | else |
4093 | if test -n "$CC"; then | |
4094 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4095 | else | |
4096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4097 | for as_dir in $PATH | |
4098 | do | |
4099 | IFS=$as_save_IFS | |
4100 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4101 | for ac_exec_ext in '' $ac_executable_extensions; do |
4102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4103 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
4105 | break 2 |
4106 | fi | |
4107 | done | |
81ecdfbb RW |
4108 | done |
4109 | IFS=$as_save_IFS | |
d7040cdb | 4110 | |
dabbade6 L |
4111 | fi |
4112 | fi | |
4113 | CC=$ac_cv_prog_CC | |
4114 | if test -n "$CC"; then | |
81ecdfbb RW |
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4116 | $as_echo "$CC" >&6; } | |
dabbade6 | 4117 | else |
81ecdfbb RW |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4119 | $as_echo "no" >&6; } | |
dabbade6 | 4120 | fi |
d7040cdb | 4121 | |
81ecdfbb | 4122 | |
dabbade6 L |
4123 | test -n "$CC" && break |
4124 | done | |
4125 | fi | |
4126 | if test -z "$CC"; then | |
4127 | ac_ct_CC=$CC | |
81ecdfbb | 4128 | for ac_prog in cl.exe |
dabbade6 L |
4129 | do |
4130 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4131 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4133 | $as_echo_n "checking for $ac_word... " >&6; } | |
4134 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4135 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
4136 | else |
4137 | if test -n "$ac_ct_CC"; then | |
4138 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4139 | else | |
4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4141 | for as_dir in $PATH | |
4142 | do | |
4143 | IFS=$as_save_IFS | |
4144 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4145 | for ac_exec_ext in '' $ac_executable_extensions; do |
4146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4147 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
4149 | break 2 |
4150 | fi | |
4151 | done | |
81ecdfbb RW |
4152 | done |
4153 | IFS=$as_save_IFS | |
d7040cdb | 4154 | |
dabbade6 L |
4155 | fi |
4156 | fi | |
4157 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4158 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4160 | $as_echo "$ac_ct_CC" >&6; } | |
dabbade6 | 4161 | else |
81ecdfbb RW |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4163 | $as_echo "no" >&6; } | |
dabbade6 | 4164 | fi |
d7040cdb | 4165 | |
81ecdfbb | 4166 | |
dabbade6 L |
4167 | test -n "$ac_ct_CC" && break |
4168 | done | |
d7040cdb | 4169 | |
81ecdfbb RW |
4170 | if test "x$ac_ct_CC" = x; then |
4171 | CC="" | |
4172 | else | |
4173 | case $cross_compiling:$ac_tool_warned in | |
4174 | yes:) | |
4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4176 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4177 | ac_tool_warned=yes ;; | |
4178 | esac | |
4179 | CC=$ac_ct_CC | |
4180 | fi | |
dabbade6 | 4181 | fi |
d7040cdb | 4182 | |
dabbade6 | 4183 | fi |
d7040cdb SE |
4184 | |
4185 | ||
81ecdfbb RW |
4186 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4188 | as_fn_error "no acceptable C compiler found in \$PATH | |
4189 | See \`config.log' for more details." "$LINENO" 5; } | |
d7040cdb | 4190 | |
dabbade6 | 4191 | # Provide some information about the compiler. |
81ecdfbb RW |
4192 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4193 | set X $ac_compile | |
4194 | ac_compiler=$2 | |
4195 | for ac_option in --version -v -V -qversion; do | |
4196 | { { ac_try="$ac_compiler $ac_option >&5" | |
4197 | case "(($ac_try" in | |
4198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4199 | *) ac_try_echo=$ac_try;; | |
4200 | esac | |
4201 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4202 | $as_echo "$ac_try_echo"; } >&5 | |
4203 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
dabbade6 | 4204 | ac_status=$? |
81ecdfbb RW |
4205 | if test -s conftest.err; then |
4206 | sed '10a\ | |
4207 | ... rest of stderr output deleted ... | |
4208 | 10q' conftest.err >conftest.er1 | |
4209 | cat conftest.er1 >&5 | |
4210 | rm -f conftest.er1 conftest.err | |
4211 | fi | |
4212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4213 | test $ac_status = 0; } | |
4214 | done | |
d7040cdb | 4215 | |
81ecdfbb RW |
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4217 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4218 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4219 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4220 | else |
81ecdfbb | 4221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 4222 | /* end confdefs.h. */ |
d7040cdb | 4223 | |
dabbade6 L |
4224 | int |
4225 | main () | |
4226 | { | |
4227 | #ifndef __GNUC__ | |
4228 | choke me | |
4229 | #endif | |
d7040cdb | 4230 | |
dabbade6 L |
4231 | ; |
4232 | return 0; | |
4233 | } | |
4234 | _ACEOF | |
81ecdfbb | 4235 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 | 4236 | ac_compiler_gnu=yes |
d7040cdb | 4237 | else |
81ecdfbb | 4238 | ac_compiler_gnu=no |
dabbade6 | 4239 | fi |
81ecdfbb | 4240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 4241 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4242 | |
dabbade6 | 4243 | fi |
81ecdfbb RW |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4245 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4246 | if test $ac_compiler_gnu = yes; then | |
4247 | GCC=yes | |
4248 | else | |
4249 | GCC= | |
4250 | fi | |
dabbade6 L |
4251 | ac_test_CFLAGS=${CFLAGS+set} |
4252 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4254 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4255 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4256 | $as_echo_n "(cached) " >&6 | |
4257 | else | |
4258 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4259 | ac_c_werror_flag=yes | |
4260 | ac_cv_prog_cc_g=no | |
4261 | CFLAGS="-g" | |
4262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dabbade6 | 4263 | /* end confdefs.h. */ |
d7040cdb | 4264 | |
dabbade6 L |
4265 | int |
4266 | main () | |
4267 | { | |
d7040cdb | 4268 | |
dabbade6 L |
4269 | ; |
4270 | return 0; | |
4271 | } | |
4272 | _ACEOF | |
81ecdfbb | 4273 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 L |
4274 | ac_cv_prog_cc_g=yes |
4275 | else | |
81ecdfbb RW |
4276 | CFLAGS="" |
4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4278 | /* end confdefs.h. */ | |
d7040cdb | 4279 | |
81ecdfbb RW |
4280 | int |
4281 | main () | |
4282 | { | |
4283 | ||
4284 | ; | |
4285 | return 0; | |
4286 | } | |
4287 | _ACEOF | |
4288 | if ac_fn_c_try_compile "$LINENO"; then : | |
4289 | ||
4290 | else | |
4291 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4292 | CFLAGS="-g" | |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4294 | /* end confdefs.h. */ | |
4295 | ||
4296 | int | |
4297 | main () | |
4298 | { | |
4299 | ||
4300 | ; | |
4301 | return 0; | |
4302 | } | |
4303 | _ACEOF | |
4304 | if ac_fn_c_try_compile "$LINENO"; then : | |
4305 | ac_cv_prog_cc_g=yes | |
4306 | fi | |
4307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dabbade6 | 4308 | fi |
81ecdfbb | 4309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 4310 | fi |
81ecdfbb RW |
4311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4312 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4313 | fi | |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4315 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
dabbade6 L |
4316 | if test "$ac_test_CFLAGS" = set; then |
4317 | CFLAGS=$ac_save_CFLAGS | |
4318 | elif test $ac_cv_prog_cc_g = yes; then | |
4319 | if test "$GCC" = yes; then | |
4320 | CFLAGS="-g -O2" | |
4321 | else | |
4322 | CFLAGS="-g" | |
4323 | fi | |
4324 | else | |
4325 | if test "$GCC" = yes; then | |
4326 | CFLAGS="-O2" | |
4327 | else | |
4328 | CFLAGS= | |
4329 | fi | |
4330 | fi | |
81ecdfbb RW |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4332 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4333 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4334 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4335 | else |
81ecdfbb | 4336 | ac_cv_prog_cc_c89=no |
dabbade6 | 4337 | ac_save_CC=$CC |
81ecdfbb | 4338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 L |
4339 | /* end confdefs.h. */ |
4340 | #include <stdarg.h> | |
4341 | #include <stdio.h> | |
4342 | #include <sys/types.h> | |
4343 | #include <sys/stat.h> | |
4344 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4345 | struct buf { int x; }; | |
4346 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4347 | static char *e (p, i) | |
4348 | char **p; | |
4349 | int i; | |
4350 | { | |
4351 | return p[i]; | |
4352 | } | |
4353 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4354 | { | |
4355 | char *s; | |
4356 | va_list v; | |
4357 | va_start (v,p); | |
4358 | s = g (p, va_arg (v,int)); | |
4359 | va_end (v); | |
4360 | return s; | |
4361 | } | |
d7040cdb | 4362 | |
dabbade6 L |
4363 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4364 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4365 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4366 | as 'x'. The following induces an error, until -std is added to get |
dabbade6 L |
4367 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4368 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4369 | that's true only with -std. */ |
dabbade6 | 4370 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 4371 | |
81ecdfbb RW |
4372 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4373 | inside strings and character constants. */ | |
4374 | #define FOO(x) 'x' | |
4375 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4376 | ||
dabbade6 L |
4377 | int test (int i, double x); |
4378 | struct s1 {int (*f) (int a);}; | |
4379 | struct s2 {int (*f) (double a);}; | |
4380 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4381 | int argc; | |
4382 | char **argv; | |
4383 | int | |
4384 | main () | |
4385 | { | |
4386 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4387 | ; | |
4388 | return 0; | |
4389 | } | |
4390 | _ACEOF | |
81ecdfbb RW |
4391 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4392 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
dabbade6 L |
4393 | do |
4394 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4395 | if ac_fn_c_try_compile "$LINENO"; then : |
4396 | ac_cv_prog_cc_c89=$ac_arg | |
d7040cdb | 4397 | fi |
81ecdfbb RW |
4398 | rm -f core conftest.err conftest.$ac_objext |
4399 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
dabbade6 | 4400 | done |
81ecdfbb | 4401 | rm -f conftest.$ac_ext |
dabbade6 | 4402 | CC=$ac_save_CC |
d7040cdb | 4403 | |
dabbade6 | 4404 | fi |
81ecdfbb RW |
4405 | # AC_CACHE_VAL |
4406 | case "x$ac_cv_prog_cc_c89" in | |
4407 | x) | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4409 | $as_echo "none needed" >&6; } ;; | |
4410 | xno) | |
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4412 | $as_echo "unsupported" >&6; } ;; | |
252b5132 | 4413 | *) |
81ecdfbb RW |
4414 | CC="$CC $ac_cv_prog_cc_c89" |
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4416 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
dabbade6 | 4417 | esac |
81ecdfbb | 4418 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
ac48eca1 | 4419 | |
dabbade6 | 4420 | fi |
252b5132 | 4421 | |
dabbade6 L |
4422 | ac_ext=c |
4423 | ac_cpp='$CPP $CPPFLAGS' | |
4424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4427 | |
7357c5b6 AM |
4428 | ac_ext=c |
4429 | ac_cpp='$CPP $CPPFLAGS' | |
4430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4434 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4435 | # On Suns, sometimes $CPP names a directory. |
4436 | if test -n "$CPP" && test -d "$CPP"; then | |
4437 | CPP= | |
4438 | fi | |
4439 | if test -z "$CPP"; then | |
81ecdfbb RW |
4440 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4441 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 4442 | else |
7357c5b6 AM |
4443 | # Double quotes because CPP needs to be expanded |
4444 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4445 | do | |
4446 | ac_preproc_ok=false | |
4447 | for ac_c_preproc_warn_flag in '' yes | |
dabbade6 | 4448 | do |
7357c5b6 AM |
4449 | # Use a header file that comes with gcc, so configuring glibc |
4450 | # with a fresh cross-compiler works. | |
4451 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4452 | # <limits.h> exists even on freestanding compilers. | |
4453 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4454 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4456 | /* end confdefs.h. */ |
4457 | #ifdef __STDC__ | |
4458 | # include <limits.h> | |
4459 | #else | |
4460 | # include <assert.h> | |
4461 | #endif | |
4462 | Syntax error | |
4463 | _ACEOF | |
81ecdfbb | 4464 | if ac_fn_c_try_cpp "$LINENO"; then : |
dabbade6 | 4465 | |
81ecdfbb | 4466 | else |
7357c5b6 AM |
4467 | # Broken: fails on valid input. |
4468 | continue | |
252b5132 | 4469 | fi |
7357c5b6 AM |
4470 | rm -f conftest.err conftest.$ac_ext |
4471 | ||
81ecdfbb | 4472 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4473 | # can be detected and how. |
81ecdfbb | 4474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4475 | /* end confdefs.h. */ |
4476 | #include <ac_nonexistent.h> | |
4477 | _ACEOF | |
81ecdfbb | 4478 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4479 | # Broken: success on invalid input. |
4480 | continue | |
dabbade6 | 4481 | else |
7357c5b6 AM |
4482 | # Passes both tests. |
4483 | ac_preproc_ok=: | |
4484 | break | |
dabbade6 | 4485 | fi |
7357c5b6 | 4486 | rm -f conftest.err conftest.$ac_ext |
dabbade6 | 4487 | |
d7040cdb | 4488 | done |
7357c5b6 AM |
4489 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4490 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 4491 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4492 | break |
4493 | fi | |
4494 | ||
4495 | done | |
4496 | ac_cv_prog_CPP=$CPP | |
d7040cdb SE |
4497 | |
4498 | fi | |
7357c5b6 AM |
4499 | CPP=$ac_cv_prog_CPP |
4500 | else | |
4501 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4502 | fi |
81ecdfbb RW |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4504 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4505 | ac_preproc_ok=false |
4506 | for ac_c_preproc_warn_flag in '' yes | |
4507 | do | |
4508 | # Use a header file that comes with gcc, so configuring glibc | |
4509 | # with a fresh cross-compiler works. | |
4510 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4511 | # <limits.h> exists even on freestanding compilers. | |
4512 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4513 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4515 | /* end confdefs.h. */ |
4516 | #ifdef __STDC__ | |
4517 | # include <limits.h> | |
4518 | #else | |
4519 | # include <assert.h> | |
4520 | #endif | |
4521 | Syntax error | |
4522 | _ACEOF | |
81ecdfbb | 4523 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4524 | |
81ecdfbb | 4525 | else |
7357c5b6 AM |
4526 | # Broken: fails on valid input. |
4527 | continue | |
d7040cdb | 4528 | fi |
7357c5b6 | 4529 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 4530 | |
81ecdfbb | 4531 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4532 | # can be detected and how. |
81ecdfbb | 4533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4534 | /* end confdefs.h. */ |
4535 | #include <ac_nonexistent.h> | |
4536 | _ACEOF | |
81ecdfbb | 4537 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4538 | # Broken: success on invalid input. |
4539 | continue | |
dabbade6 | 4540 | else |
7357c5b6 AM |
4541 | # Passes both tests. |
4542 | ac_preproc_ok=: | |
4543 | break | |
4544 | fi | |
4545 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4546 | |
7357c5b6 AM |
4547 | done |
4548 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4549 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
4550 | if $ac_preproc_ok; then : |
4551 | ||
4552 | else | |
4553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4555 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4556 | See \`config.log' for more details." "$LINENO" 5; } | |
4557 | fi | |
4558 | ||
4559 | ac_ext=c | |
4560 | ac_cpp='$CPP $CPPFLAGS' | |
4561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4564 | ||
4565 | ||
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4567 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4568 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4569 | $as_echo_n "(cached) " >&6 | |
4570 | else | |
4571 | if test -z "$GREP"; then | |
4572 | ac_path_GREP_found=false | |
4573 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4575 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4576 | do | |
4577 | IFS=$as_save_IFS | |
4578 | test -z "$as_dir" && as_dir=. | |
4579 | for ac_prog in grep ggrep; do | |
4580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4581 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4582 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4583 | # Check for GNU ac_path_GREP and select it if it is found. | |
4584 | # Check for GNU $ac_path_GREP | |
4585 | case `"$ac_path_GREP" --version 2>&1` in | |
4586 | *GNU*) | |
4587 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4588 | *) | |
4589 | ac_count=0 | |
4590 | $as_echo_n 0123456789 >"conftest.in" | |
4591 | while : | |
4592 | do | |
4593 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4594 | mv "conftest.tmp" "conftest.in" | |
4595 | cp "conftest.in" "conftest.nl" | |
4596 | $as_echo 'GREP' >> "conftest.nl" | |
4597 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4598 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4599 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4600 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4601 | # Best one so far, save it but keep looking for a better one | |
4602 | ac_cv_path_GREP="$ac_path_GREP" | |
4603 | ac_path_GREP_max=$ac_count | |
4604 | fi | |
4605 | # 10*(2^10) chars as input seems more than enough | |
4606 | test $ac_count -gt 10 && break | |
4607 | done | |
4608 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4609 | esac | |
4610 | ||
4611 | $ac_path_GREP_found && break 3 | |
4612 | done | |
4613 | done | |
4614 | done | |
4615 | IFS=$as_save_IFS | |
4616 | if test -z "$ac_cv_path_GREP"; then | |
4617 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4618 | fi | |
dabbade6 | 4619 | else |
81ecdfbb | 4620 | ac_cv_path_GREP=$GREP |
7357c5b6 | 4621 | fi |
d7040cdb | 4622 | |
81ecdfbb RW |
4623 | fi |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4625 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4626 | GREP="$ac_cv_path_GREP" | |
d7040cdb SE |
4627 | |
4628 | ||
81ecdfbb RW |
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4630 | $as_echo_n "checking for egrep... " >&6; } | |
4631 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4632 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4633 | else |
81ecdfbb RW |
4634 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4635 | then ac_cv_path_EGREP="$GREP -E" | |
4636 | else | |
4637 | if test -z "$EGREP"; then | |
4638 | ac_path_EGREP_found=false | |
4639 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4641 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4642 | do | |
4643 | IFS=$as_save_IFS | |
4644 | test -z "$as_dir" && as_dir=. | |
4645 | for ac_prog in egrep; do | |
4646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4647 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4648 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4649 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4650 | # Check for GNU $ac_path_EGREP | |
4651 | case `"$ac_path_EGREP" --version 2>&1` in | |
4652 | *GNU*) | |
4653 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4654 | *) | |
4655 | ac_count=0 | |
4656 | $as_echo_n 0123456789 >"conftest.in" | |
4657 | while : | |
4658 | do | |
4659 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4660 | mv "conftest.tmp" "conftest.in" | |
4661 | cp "conftest.in" "conftest.nl" | |
4662 | $as_echo 'EGREP' >> "conftest.nl" | |
4663 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4664 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4665 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4666 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4667 | # Best one so far, save it but keep looking for a better one | |
4668 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4669 | ac_path_EGREP_max=$ac_count | |
7357c5b6 | 4670 | fi |
81ecdfbb RW |
4671 | # 10*(2^10) chars as input seems more than enough |
4672 | test $ac_count -gt 10 && break | |
4673 | done | |
4674 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4675 | esac | |
4676 | ||
4677 | $ac_path_EGREP_found && break 3 | |
4678 | done | |
4679 | done | |
4680 | done | |
4681 | IFS=$as_save_IFS | |
4682 | if test -z "$ac_cv_path_EGREP"; then | |
4683 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4684 | fi | |
4685 | else | |
4686 | ac_cv_path_EGREP=$EGREP | |
4687 | fi | |
4688 | ||
4689 | fi | |
7357c5b6 | 4690 | fi |
81ecdfbb RW |
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4692 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4693 | EGREP="$ac_cv_path_EGREP" | |
d7040cdb SE |
4694 | |
4695 | ||
81ecdfbb RW |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4697 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4698 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4699 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4700 | else |
81ecdfbb | 4701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4702 | /* end confdefs.h. */ |
4703 | #include <stdlib.h> | |
4704 | #include <stdarg.h> | |
4705 | #include <string.h> | |
4706 | #include <float.h> | |
d7040cdb | 4707 | |
7357c5b6 AM |
4708 | int |
4709 | main () | |
4710 | { | |
d7040cdb | 4711 | |
7357c5b6 AM |
4712 | ; |
4713 | return 0; | |
4714 | } | |
4715 | _ACEOF | |
81ecdfbb | 4716 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4717 | ac_cv_header_stdc=yes |
4718 | else | |
81ecdfbb | 4719 | ac_cv_header_stdc=no |
7357c5b6 | 4720 | fi |
81ecdfbb | 4721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4722 | |
7357c5b6 AM |
4723 | if test $ac_cv_header_stdc = yes; then |
4724 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4726 | /* end confdefs.h. */ |
4727 | #include <string.h> | |
d7040cdb | 4728 | |
7357c5b6 AM |
4729 | _ACEOF |
4730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4731 | $EGREP "memchr" >/dev/null 2>&1; then : |
4732 | ||
7357c5b6 AM |
4733 | else |
4734 | ac_cv_header_stdc=no | |
4735 | fi | |
4736 | rm -f conftest* | |
d7040cdb | 4737 | |
7357c5b6 | 4738 | fi |
d7040cdb | 4739 | |
7357c5b6 AM |
4740 | if test $ac_cv_header_stdc = yes; then |
4741 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4743 | /* end confdefs.h. */ |
4744 | #include <stdlib.h> | |
d7040cdb | 4745 | |
7357c5b6 AM |
4746 | _ACEOF |
4747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4748 | $EGREP "free" >/dev/null 2>&1; then : |
4749 | ||
7357c5b6 AM |
4750 | else |
4751 | ac_cv_header_stdc=no | |
4752 | fi | |
4753 | rm -f conftest* | |
d7040cdb | 4754 | |
7357c5b6 | 4755 | fi |
d7040cdb | 4756 | |
7357c5b6 AM |
4757 | if test $ac_cv_header_stdc = yes; then |
4758 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4759 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4760 | : |
4761 | else | |
81ecdfbb | 4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4763 | /* end confdefs.h. */ |
4764 | #include <ctype.h> | |
81ecdfbb | 4765 | #include <stdlib.h> |
7357c5b6 AM |
4766 | #if ((' ' & 0x0FF) == 0x020) |
4767 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4768 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4769 | #else | |
4770 | # define ISLOWER(c) \ | |
4771 | (('a' <= (c) && (c) <= 'i') \ | |
4772 | || ('j' <= (c) && (c) <= 'r') \ | |
4773 | || ('s' <= (c) && (c) <= 'z')) | |
4774 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4775 | #endif | |
d7040cdb | 4776 | |
7357c5b6 AM |
4777 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4778 | int | |
4779 | main () | |
4780 | { | |
4781 | int i; | |
4782 | for (i = 0; i < 256; i++) | |
4783 | if (XOR (islower (i), ISLOWER (i)) | |
4784 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4785 | return 2; |
4786 | return 0; | |
7357c5b6 AM |
4787 | } |
4788 | _ACEOF | |
81ecdfbb | 4789 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4790 | |
81ecdfbb RW |
4791 | else |
4792 | ac_cv_header_stdc=no | |
7357c5b6 | 4793 | fi |
81ecdfbb RW |
4794 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4795 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4796 | fi |
81ecdfbb | 4797 | |
7357c5b6 AM |
4798 | fi |
4799 | fi | |
81ecdfbb RW |
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4801 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4802 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4803 | |
81ecdfbb | 4804 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4805 | |
7357c5b6 | 4806 | fi |
d7040cdb | 4807 | |
7357c5b6 | 4808 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4809 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4810 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4811 | do : |
4812 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4813 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4814 | " | |
4815 | eval as_val=\$$as_ac_Header | |
4816 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 4817 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4818 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4819 | _ACEOF |
d7040cdb | 4820 | |
7357c5b6 | 4821 | fi |
d7040cdb | 4822 | |
7357c5b6 | 4823 | done |
d7040cdb SE |
4824 | |
4825 | ||
4826 | ||
81ecdfbb RW |
4827 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4828 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 AM |
4829 | MINIX=yes |
4830 | else | |
4831 | MINIX= | |
4832 | fi | |
d7040cdb SE |
4833 | |
4834 | ||
7357c5b6 | 4835 | if test "$MINIX" = yes; then |
d7040cdb | 4836 | |
81ecdfbb | 4837 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
dabbade6 | 4838 | |
252b5132 | 4839 | |
81ecdfbb | 4840 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4841 | |
4842 | ||
81ecdfbb | 4843 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4844 | |
7357c5b6 | 4845 | fi |
d7040cdb SE |
4846 | |
4847 | ||
81ecdfbb RW |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4849 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4850 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4851 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4852 | else |
81ecdfbb | 4853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4854 | /* end confdefs.h. */ |
ac48eca1 | 4855 | |
7357c5b6 AM |
4856 | # define __EXTENSIONS__ 1 |
4857 | $ac_includes_default | |
4858 | int | |
4859 | main () | |
4860 | { | |
87e6d782 | 4861 | |
7357c5b6 AM |
4862 | ; |
4863 | return 0; | |
4864 | } | |
4865 | _ACEOF | |
81ecdfbb | 4866 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4867 | ac_cv_safe_to_define___extensions__=yes |
4868 | else | |
81ecdfbb | 4869 | ac_cv_safe_to_define___extensions__=no |
7357c5b6 | 4870 | fi |
81ecdfbb | 4871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4872 | fi |
81ecdfbb RW |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4874 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4875 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4876 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
ac48eca1 | 4877 | |
81ecdfbb | 4878 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d7040cdb | 4879 | |
81ecdfbb RW |
4880 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4881 | ||
4882 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4883 | ||
4884 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
d7040cdb | 4885 | |
ac48eca1 | 4886 | |
ac48eca1 | 4887 | |
ac48eca1 | 4888 | |
87e6d782 | 4889 | |
7357c5b6 AM |
4890 | if test -n "$ac_tool_prefix"; then |
4891 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4892 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4894 | $as_echo_n "checking for $ac_word... " >&6; } | |
4895 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4896 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 4897 | else |
7357c5b6 AM |
4898 | if test -n "$AR"; then |
4899 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4900 | else | |
4901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4902 | for as_dir in $PATH | |
4903 | do | |
4904 | IFS=$as_save_IFS | |
4905 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4906 | for ac_exec_ext in '' $ac_executable_extensions; do |
4907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 4908 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4910 | break 2 |
4911 | fi | |
4912 | done | |
81ecdfbb RW |
4913 | done |
4914 | IFS=$as_save_IFS | |
ac48eca1 | 4915 | |
7357c5b6 AM |
4916 | fi |
4917 | fi | |
4918 | AR=$ac_cv_prog_AR | |
4919 | if test -n "$AR"; then | |
81ecdfbb RW |
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4921 | $as_echo "$AR" >&6; } | |
dabbade6 | 4922 | else |
81ecdfbb RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4924 | $as_echo "no" >&6; } | |
dabbade6 | 4925 | fi |
6be7c12c | 4926 | |
81ecdfbb | 4927 | |
7357c5b6 AM |
4928 | fi |
4929 | if test -z "$ac_cv_prog_AR"; then | |
4930 | ac_ct_AR=$AR | |
4931 | # Extract the first word of "ar", so it can be a program name with args. | |
4932 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4934 | $as_echo_n "checking for $ac_word... " >&6; } | |
4935 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4936 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
4937 | else |
4938 | if test -n "$ac_ct_AR"; then | |
4939 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4940 | else | |
4941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4942 | for as_dir in $PATH | |
4943 | do | |
4944 | IFS=$as_save_IFS | |
4945 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4946 | for ac_exec_ext in '' $ac_executable_extensions; do |
4947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 4948 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 4949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4950 | break 2 |
4951 | fi | |
4952 | done | |
81ecdfbb RW |
4953 | done |
4954 | IFS=$as_save_IFS | |
7357c5b6 AM |
4955 | |
4956 | fi | |
4957 | fi | |
4958 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4959 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4961 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 4962 | else |
81ecdfbb RW |
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4964 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4965 | fi |
4966 | ||
81ecdfbb RW |
4967 | if test "x$ac_ct_AR" = x; then |
4968 | AR="" | |
4969 | else | |
4970 | case $cross_compiling:$ac_tool_warned in | |
4971 | yes:) | |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4974 | ac_tool_warned=yes ;; | |
4975 | esac | |
4976 | AR=$ac_ct_AR | |
4977 | fi | |
7357c5b6 AM |
4978 | else |
4979 | AR="$ac_cv_prog_AR" | |
4980 | fi | |
4981 | ||
4982 | if test -n "$ac_tool_prefix"; then | |
4983 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4984 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4986 | $as_echo_n "checking for $ac_word... " >&6; } | |
4987 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4988 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
4989 | else |
4990 | if test -n "$RANLIB"; then | |
4991 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4992 | else | |
4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4994 | for as_dir in $PATH | |
4995 | do | |
4996 | IFS=$as_save_IFS | |
4997 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4998 | for ac_exec_ext in '' $ac_executable_extensions; do |
4999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5000 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
5002 | break 2 |
5003 | fi | |
5004 | done | |
81ecdfbb RW |
5005 | done |
5006 | IFS=$as_save_IFS | |
7357c5b6 AM |
5007 | |
5008 | fi | |
5009 | fi | |
5010 | RANLIB=$ac_cv_prog_RANLIB | |
5011 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5013 | $as_echo "$RANLIB" >&6; } | |
7357c5b6 | 5014 | else |
81ecdfbb RW |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5016 | $as_echo "no" >&6; } | |
7357c5b6 AM |
5017 | fi |
5018 | ||
81ecdfbb | 5019 | |
7357c5b6 AM |
5020 | fi |
5021 | if test -z "$ac_cv_prog_RANLIB"; then | |
5022 | ac_ct_RANLIB=$RANLIB | |
5023 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5024 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5026 | $as_echo_n "checking for $ac_word... " >&6; } | |
5027 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5028 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
5029 | else |
5030 | if test -n "$ac_ct_RANLIB"; then | |
5031 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5032 | else | |
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5034 | for as_dir in $PATH | |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5038 | for ac_exec_ext in '' $ac_executable_extensions; do |
5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5040 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
5042 | break 2 |
5043 | fi | |
5044 | done | |
81ecdfbb RW |
5045 | done |
5046 | IFS=$as_save_IFS | |
7357c5b6 | 5047 | |
7357c5b6 AM |
5048 | fi |
5049 | fi | |
5050 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5051 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5053 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7357c5b6 | 5054 | else |
81ecdfbb RW |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5056 | $as_echo "no" >&6; } | |
7357c5b6 AM |
5057 | fi |
5058 | ||
81ecdfbb RW |
5059 | if test "x$ac_ct_RANLIB" = x; then |
5060 | RANLIB=":" | |
5061 | else | |
5062 | case $cross_compiling:$ac_tool_warned in | |
5063 | yes:) | |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5065 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5066 | ac_tool_warned=yes ;; | |
5067 | esac | |
5068 | RANLIB=$ac_ct_RANLIB | |
5069 | fi | |
7357c5b6 AM |
5070 | else |
5071 | RANLIB="$ac_cv_prog_RANLIB" | |
5072 | fi | |
5073 | ||
5074 | ||
81ecdfbb RW |
5075 | # Check whether --enable-shared was given. |
5076 | if test "${enable_shared+set}" = set; then : | |
5077 | enableval=$enable_shared; p=${PACKAGE-default} | |
7357c5b6 AM |
5078 | case $enableval in |
5079 | yes) enable_shared=yes ;; | |
5080 | no) enable_shared=no ;; | |
5081 | *) | |
5082 | enable_shared=no | |
5083 | # Look at the argument we got. We use all the common list separators. | |
5084 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5085 | for pkg in $enableval; do | |
5086 | IFS="$lt_save_ifs" | |
5087 | if test "X$pkg" = "X$p"; then | |
5088 | enable_shared=yes | |
5089 | fi | |
5090 | done | |
5091 | IFS="$lt_save_ifs" | |
5092 | ;; | |
5093 | esac | |
5094 | else | |
5095 | enable_shared=no | |
81ecdfbb RW |
5096 | fi |
5097 | ||
7357c5b6 AM |
5098 | |
5099 | ||
5100 | ||
5101 | ||
5102 | ||
5103 | ||
5104 | ||
5105 | ||
5106 | ||
1927a18f L |
5107 | case `pwd` in |
5108 | *\ * | *\ *) | |
81ecdfbb RW |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5110 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
1927a18f | 5111 | esac |
7357c5b6 AM |
5112 | |
5113 | ||
7357c5b6 | 5114 | |
3725885a RW |
5115 | macro_version='2.2.7a' |
5116 | macro_revision='1.3134' | |
7357c5b6 AM |
5117 | |
5118 | ||
5119 | ||
5120 | ||
5121 | ||
5122 | ||
7357c5b6 AM |
5123 | |
5124 | ||
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | ||
1927a18f | 5130 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 5131 | |
3725885a RW |
5132 | # Backslashify metacharacters that are still active within |
5133 | # double-quoted strings. | |
5134 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5135 | ||
5136 | # Same as above, but do not quote variable references. | |
5137 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5138 | ||
5139 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5140 | # double_quote_subst'ed string. | |
5141 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5142 | ||
5143 | # Sed substitution to delay expansion of an escaped single quote. | |
5144 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5145 | ||
5146 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5147 | no_glob_subst='s/\*/\\\*/g' | |
5148 | ||
5149 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5150 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5151 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5152 | ||
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5154 | $as_echo_n "checking how to print strings... " >&6; } | |
5155 | # Test print first, because it will be a builtin if present. | |
5156 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5157 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5158 | ECHO='print -r --' | |
5159 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5160 | ECHO='printf %s\n' | |
5161 | else | |
5162 | # Use this function as a fallback that always works. | |
5163 | func_fallback_echo () | |
5164 | { | |
5165 | eval 'cat <<_LTECHO_EOF | |
5166 | $1 | |
5167 | _LTECHO_EOF' | |
5168 | } | |
5169 | ECHO='func_fallback_echo' | |
5170 | fi | |
5171 | ||
5172 | # func_echo_all arg... | |
5173 | # Invoke $ECHO with all args, space-separated. | |
5174 | func_echo_all () | |
5175 | { | |
5176 | $ECHO "" | |
5177 | } | |
5178 | ||
5179 | case "$ECHO" in | |
5180 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5181 | $as_echo "printf" >&6; } ;; | |
5182 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5183 | $as_echo "print -r" >&6; } ;; | |
5184 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5185 | $as_echo "cat" >&6; } ;; | |
5186 | esac | |
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | ||
5200 | ||
81ecdfbb RW |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5202 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5203 | if test "${ac_cv_path_SED+set}" = set; then : | |
5204 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5205 | else |
81ecdfbb RW |
5206 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5207 | for ac_i in 1 2 3 4 5 6 7; do | |
5208 | ac_script="$ac_script$as_nl$ac_script" | |
5209 | done | |
5210 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5211 | { ac_script=; unset ac_script;} | |
5212 | if test -z "$SED"; then | |
5213 | ac_path_SED_found=false | |
5214 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5216 | for as_dir in $PATH |
5217 | do | |
5218 | IFS=$as_save_IFS | |
5219 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5220 | for ac_prog in sed gsed; do |
7357c5b6 | 5221 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5222 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5223 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5224 | # Check for GNU ac_path_SED and select it if it is found. | |
5225 | # Check for GNU $ac_path_SED | |
5226 | case `"$ac_path_SED" --version 2>&1` in | |
5227 | *GNU*) | |
5228 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5229 | *) | |
5230 | ac_count=0 | |
5231 | $as_echo_n 0123456789 >"conftest.in" | |
5232 | while : | |
5233 | do | |
5234 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5235 | mv "conftest.tmp" "conftest.in" | |
5236 | cp "conftest.in" "conftest.nl" | |
5237 | $as_echo '' >> "conftest.nl" | |
5238 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5239 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5240 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5241 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5242 | # Best one so far, save it but keep looking for a better one | |
5243 | ac_cv_path_SED="$ac_path_SED" | |
5244 | ac_path_SED_max=$ac_count | |
5245 | fi | |
5246 | # 10*(2^10) chars as input seems more than enough | |
5247 | test $ac_count -gt 10 && break | |
5248 | done | |
5249 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5250 | esac | |
5251 | ||
5252 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5253 | done |
5254 | done | |
81ecdfbb | 5255 | done |
7357c5b6 | 5256 | IFS=$as_save_IFS |
81ecdfbb RW |
5257 | if test -z "$ac_cv_path_SED"; then |
5258 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
7357c5b6 | 5259 | fi |
81ecdfbb RW |
5260 | else |
5261 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5262 | fi |
5263 | ||
81ecdfbb RW |
5264 | fi |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5266 | $as_echo "$ac_cv_path_SED" >&6; } | |
5267 | SED="$ac_cv_path_SED" | |
5268 | rm -f conftest.sed | |
7357c5b6 AM |
5269 | |
5270 | test -z "$SED" && SED=sed | |
5271 | Xsed="$SED -e 1s/^X//" | |
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
81ecdfbb RW |
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5284 | $as_echo_n "checking for fgrep... " >&6; } | |
5285 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5286 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5287 | else |
81ecdfbb RW |
5288 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5289 | then ac_cv_path_FGREP="$GREP -F" | |
5290 | else | |
5291 | if test -z "$FGREP"; then | |
5292 | ac_path_FGREP_found=false | |
5293 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5295 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5296 | do | |
5297 | IFS=$as_save_IFS | |
5298 | test -z "$as_dir" && as_dir=. | |
5299 | for ac_prog in fgrep; do | |
5300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5301 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5302 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5303 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5304 | # Check for GNU $ac_path_FGREP | |
5305 | case `"$ac_path_FGREP" --version 2>&1` in | |
5306 | *GNU*) | |
5307 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5308 | *) | |
5309 | ac_count=0 | |
5310 | $as_echo_n 0123456789 >"conftest.in" | |
5311 | while : | |
5312 | do | |
5313 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5314 | mv "conftest.tmp" "conftest.in" | |
5315 | cp "conftest.in" "conftest.nl" | |
5316 | $as_echo 'FGREP' >> "conftest.nl" | |
5317 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5318 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5319 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5320 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5321 | # Best one so far, save it but keep looking for a better one | |
5322 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5323 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5324 | fi |
81ecdfbb RW |
5325 | # 10*(2^10) chars as input seems more than enough |
5326 | test $ac_count -gt 10 && break | |
5327 | done | |
5328 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5329 | esac | |
5330 | ||
5331 | $ac_path_FGREP_found && break 3 | |
5332 | done | |
5333 | done | |
5334 | done | |
5335 | IFS=$as_save_IFS | |
5336 | if test -z "$ac_cv_path_FGREP"; then | |
5337 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5338 | fi | |
5339 | else | |
5340 | ac_cv_path_FGREP=$FGREP | |
5341 | fi | |
5342 | ||
5343 | fi | |
7357c5b6 | 5344 | fi |
81ecdfbb RW |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5346 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5347 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5348 | |
5349 | ||
5350 | test -z "$GREP" && GREP=grep | |
d7040cdb | 5351 | |
d7040cdb | 5352 | |
d7040cdb | 5353 | |
ac48eca1 AO |
5354 | |
5355 | ||
5356 | ||
ac48eca1 | 5357 | |
ac48eca1 | 5358 | |
ac48eca1 | 5359 | |
ac48eca1 | 5360 | |
ac48eca1 | 5361 | |
ac48eca1 | 5362 | |
ac48eca1 | 5363 | |
ac48eca1 | 5364 | |
ac48eca1 | 5365 | |
ac48eca1 | 5366 | |
dabbade6 L |
5367 | |
5368 | ||
5369 | ||
81ecdfbb RW |
5370 | # Check whether --with-gnu-ld was given. |
5371 | if test "${with_gnu_ld+set}" = set; then : | |
5372 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
dabbade6 L |
5373 | else |
5374 | with_gnu_ld=no | |
81ecdfbb RW |
5375 | fi |
5376 | ||
dabbade6 L |
5377 | ac_prog=ld |
5378 | if test "$GCC" = yes; then | |
5379 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5381 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
dabbade6 L |
5382 | case $host in |
5383 | *-*-mingw*) | |
5384 | # gcc leaves a trailing carriage return which upsets mingw | |
5385 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5386 | *) | |
5387 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5388 | esac | |
5389 | case $ac_prog in | |
5390 | # Accept absolute paths. | |
5391 | [\\/]* | ?:[\\/]*) | |
5392 | re_direlt='/[^/][^/]*/\.\./' | |
5393 | # Canonicalize the pathname of ld | |
5394 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5395 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5396 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5397 | done | |
5398 | test -z "$LD" && LD="$ac_prog" | |
5399 | ;; | |
5400 | "") | |
5401 | # If it fails, then pretend we aren't using GCC. | |
5402 | ac_prog=ld | |
5403 | ;; | |
5404 | *) | |
5405 | # If it is relative, then search for the first ld in PATH. | |
5406 | with_gnu_ld=unknown | |
5407 | ;; | |
5408 | esac | |
5409 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5411 | $as_echo_n "checking for GNU ld... " >&6; } | |
dabbade6 | 5412 | else |
81ecdfbb RW |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5414 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
dabbade6 | 5415 | fi |
81ecdfbb RW |
5416 | if test "${lt_cv_path_LD+set}" = set; then : |
5417 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5418 | else |
dabbade6 L |
5419 | if test -z "$LD"; then |
5420 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5421 | for ac_dir in $PATH; do | |
5422 | IFS="$lt_save_ifs" | |
5423 | test -z "$ac_dir" && ac_dir=. | |
5424 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5425 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5426 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5427 | # but apparently some variants of GNU ld only accept -v. | |
5428 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5429 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5430 | *GNU* | *'with BFD'*) | |
5431 | test "$with_gnu_ld" != no && break | |
5432 | ;; | |
5433 | *) | |
5434 | test "$with_gnu_ld" != yes && break | |
5435 | ;; | |
5436 | esac | |
5437 | fi | |
5438 | done | |
5439 | IFS="$lt_save_ifs" | |
ac48eca1 | 5440 | else |
dabbade6 | 5441 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ac48eca1 AO |
5442 | fi |
5443 | fi | |
dabbade6 L |
5444 | |
5445 | LD="$lt_cv_path_LD" | |
5446 | if test -n "$LD"; then | |
81ecdfbb RW |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5448 | $as_echo "$LD" >&6; } | |
ac48eca1 | 5449 | else |
81ecdfbb RW |
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5451 | $as_echo "no" >&6; } | |
ac48eca1 | 5452 | fi |
81ecdfbb RW |
5453 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5455 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5456 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5457 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5458 | else |
dabbade6 L |
5459 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5460 | case `$LD -v 2>&1 </dev/null` in | |
5461 | *GNU* | *'with BFD'*) | |
5462 | lt_cv_prog_gnu_ld=yes | |
5463 | ;; | |
5464 | *) | |
5465 | lt_cv_prog_gnu_ld=no | |
5466 | ;; | |
5467 | esac | |
ac48eca1 | 5468 | fi |
81ecdfbb RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5470 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
dabbade6 | 5471 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5472 | |
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
81ecdfbb RW |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5482 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5483 | if test "${lt_cv_path_NM+set}" = set; then : | |
5484 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5485 | else |
dabbade6 L |
5486 | if test -n "$NM"; then |
5487 | # Let the user override the test. | |
5488 | lt_cv_path_NM="$NM" | |
ac48eca1 | 5489 | else |
dabbade6 L |
5490 | lt_nm_to_check="${ac_tool_prefix}nm" |
5491 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5492 | lt_nm_to_check="$lt_nm_to_check nm" | |
979273e3 | 5493 | fi |
dabbade6 L |
5494 | for lt_tmp_nm in $lt_nm_to_check; do |
5495 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5496 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5497 | IFS="$lt_save_ifs" | |
5498 | test -z "$ac_dir" && ac_dir=. | |
5499 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5500 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5501 | # Check to see if the nm accepts a BSD-compat flag. | |
5502 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5503 | # nm: unknown option "B" ignored | |
5504 | # Tru64's nm complains that /dev/null is an invalid object file | |
5505 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5506 | */dev/null* | *'Invalid file or object type'*) | |
5507 | lt_cv_path_NM="$tmp_nm -B" | |
5508 | break | |
5509 | ;; | |
5510 | *) | |
5511 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5512 | */dev/null*) | |
5513 | lt_cv_path_NM="$tmp_nm -p" | |
5514 | break | |
5515 | ;; | |
5516 | *) | |
5517 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5518 | continue # so that we can try to find one that supports BSD flags | |
5519 | ;; | |
5520 | esac | |
5521 | ;; | |
5522 | esac | |
5523 | fi | |
5524 | done | |
5525 | IFS="$lt_save_ifs" | |
5526 | done | |
5527 | : ${lt_cv_path_NM=no} | |
ac48eca1 AO |
5528 | fi |
5529 | fi | |
81ecdfbb RW |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5531 | $as_echo "$lt_cv_path_NM" >&6; } | |
dabbade6 L |
5532 | if test "$lt_cv_path_NM" != "no"; then |
5533 | NM="$lt_cv_path_NM" | |
ac48eca1 | 5534 | else |
dabbade6 | 5535 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
5536 | if test -n "$DUMPBIN"; then : |
5537 | # Let the user override the test. | |
5538 | else | |
5539 | if test -n "$ac_tool_prefix"; then | |
5540 | for ac_prog in dumpbin "link -dump" | |
dabbade6 L |
5541 | do |
5542 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5543 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5545 | $as_echo_n "checking for $ac_word... " >&6; } | |
5546 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5547 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5548 | else |
dabbade6 L |
5549 | if test -n "$DUMPBIN"; then |
5550 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ac48eca1 | 5551 | else |
979273e3 NN |
5552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5553 | for as_dir in $PATH | |
5554 | do | |
5555 | IFS=$as_save_IFS | |
5556 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5557 | for ac_exec_ext in '' $ac_executable_extensions; do |
5558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 5559 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
5561 | break 2 |
5562 | fi | |
5563 | done | |
81ecdfbb RW |
5564 | done |
5565 | IFS=$as_save_IFS | |
979273e3 | 5566 | |
ac48eca1 AO |
5567 | fi |
5568 | fi | |
dabbade6 L |
5569 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5570 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5572 | $as_echo "$DUMPBIN" >&6; } | |
ac48eca1 | 5573 | else |
81ecdfbb RW |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5575 | $as_echo "no" >&6; } | |
ac48eca1 AO |
5576 | fi |
5577 | ||
81ecdfbb | 5578 | |
dabbade6 L |
5579 | test -n "$DUMPBIN" && break |
5580 | done | |
ac48eca1 | 5581 | fi |
dabbade6 L |
5582 | if test -z "$DUMPBIN"; then |
5583 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5584 | for ac_prog in dumpbin "link -dump" |
dabbade6 L |
5585 | do |
5586 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5587 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5589 | $as_echo_n "checking for $ac_word... " >&6; } | |
5590 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5591 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5592 | else |
dabbade6 L |
5593 | if test -n "$ac_ct_DUMPBIN"; then |
5594 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5595 | else |
5596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5597 | for as_dir in $PATH | |
5598 | do | |
5599 | IFS=$as_save_IFS | |
5600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5601 | for ac_exec_ext in '' $ac_executable_extensions; do |
5602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 5603 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5605 | break 2 |
252b5132 | 5606 | fi |
d7040cdb | 5607 | done |
81ecdfbb RW |
5608 | done |
5609 | IFS=$as_save_IFS | |
252b5132 | 5610 | |
d7040cdb SE |
5611 | fi |
5612 | fi | |
dabbade6 L |
5613 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5614 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5616 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d7040cdb | 5617 | else |
81ecdfbb RW |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5619 | $as_echo "no" >&6; } | |
d7040cdb | 5620 | fi |
4867be41 | 5621 | |
81ecdfbb | 5622 | |
dabbade6 | 5623 | test -n "$ac_ct_DUMPBIN" && break |
d7040cdb | 5624 | done |
32fba81d | 5625 | |
81ecdfbb RW |
5626 | if test "x$ac_ct_DUMPBIN" = x; then |
5627 | DUMPBIN=":" | |
5628 | else | |
5629 | case $cross_compiling:$ac_tool_warned in | |
5630 | yes:) | |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5632 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5633 | ac_tool_warned=yes ;; | |
5634 | esac | |
5635 | DUMPBIN=$ac_ct_DUMPBIN | |
5636 | fi | |
d7040cdb | 5637 | fi |
979273e3 | 5638 | |
3725885a RW |
5639 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5640 | *COFF*) | |
5641 | DUMPBIN="$DUMPBIN -symbols" | |
5642 | ;; | |
5643 | *) | |
5644 | DUMPBIN=: | |
5645 | ;; | |
5646 | esac | |
5647 | fi | |
979273e3 | 5648 | |
dabbade6 L |
5649 | if test "$DUMPBIN" != ":"; then |
5650 | NM="$DUMPBIN" | |
5651 | fi | |
5652 | fi | |
5653 | test -z "$NM" && NM=nm | |
ac48eca1 | 5654 | |
252b5132 | 5655 | |
252b5132 | 5656 | |
979273e3 | 5657 | |
ac48eca1 | 5658 | |
d7040cdb | 5659 | |
81ecdfbb RW |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5661 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5662 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5663 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
5664 | else |
5665 | lt_cv_nm_interface="BSD nm" | |
5666 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5667 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
dabbade6 L |
5668 | (eval "$ac_compile" 2>conftest.err) |
5669 | cat conftest.err >&5 | |
3725885a | 5670 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
dabbade6 L |
5671 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5672 | cat conftest.err >&5 | |
3725885a | 5673 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
dabbade6 L |
5674 | cat conftest.out >&5 |
5675 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5676 | lt_cv_nm_interface="MS dumpbin" | |
5677 | fi | |
5678 | rm -f conftest* | |
5679 | fi | |
81ecdfbb RW |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5681 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d7040cdb | 5682 | |
81ecdfbb RW |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5684 | $as_echo_n "checking whether ln -s works... " >&6; } | |
dabbade6 L |
5685 | LN_S=$as_ln_s |
5686 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5688 | $as_echo "yes" >&6; } | |
dabbade6 | 5689 | else |
81ecdfbb RW |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5691 | $as_echo "no, using $LN_S" >&6; } | |
dabbade6 L |
5692 | fi |
5693 | ||
5694 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5696 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5697 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5698 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
5699 | else |
5700 | i=0 | |
5701 | teststring="ABCD" | |
5702 | ||
5703 | case $build_os in | |
5704 | msdosdjgpp*) | |
5705 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5706 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5707 | # during glob expansion). Even if it were fixed, the result of this | |
5708 | # check would be larger than it should be. | |
5709 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5710 | ;; | |
5711 | ||
5712 | gnu*) | |
5713 | # Under GNU Hurd, this test is not required because there is | |
5714 | # no limit to the length of command line arguments. | |
5715 | # Libtool will interpret -1 as no limit whatsoever | |
5716 | lt_cv_sys_max_cmd_len=-1; | |
5717 | ;; | |
5718 | ||
1927a18f | 5719 | cygwin* | mingw* | cegcc*) |
dabbade6 L |
5720 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5721 | # about 5 minutes as the teststring grows exponentially. | |
5722 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5723 | # you end up with a "frozen" computer, even though with patience | |
5724 | # the test eventually succeeds (with a max line length of 256k). | |
5725 | # Instead, let's just punt: use the minimum linelength reported by | |
5726 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5727 | lt_cv_sys_max_cmd_len=8192; | |
5728 | ;; | |
5729 | ||
3725885a RW |
5730 | mint*) |
5731 | # On MiNT this can take a long time and run out of memory. | |
5732 | lt_cv_sys_max_cmd_len=8192; | |
5733 | ;; | |
5734 | ||
dabbade6 L |
5735 | amigaos*) |
5736 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5737 | # So we just punt and use a minimum line length of 8192. | |
5738 | lt_cv_sys_max_cmd_len=8192; | |
5739 | ;; | |
5740 | ||
5741 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5742 | # This has been around since 386BSD, at least. Likely further. | |
5743 | if test -x /sbin/sysctl; then | |
5744 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5745 | elif test -x /usr/sbin/sysctl; then | |
5746 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5747 | else | |
5748 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5749 | fi | |
5750 | # And add a safety zone | |
5751 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5752 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5753 | ;; | |
5754 | ||
5755 | interix*) | |
5756 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5757 | lt_cv_sys_max_cmd_len=196608 | |
5758 | ;; | |
5759 | ||
5760 | osf*) | |
5761 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5762 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5763 | # nice to cause kernel panics so lets avoid the loop below. | |
5764 | # First set a reasonable default. | |
5765 | lt_cv_sys_max_cmd_len=16384 | |
5766 | # | |
5767 | if test -x /sbin/sysconfig; then | |
5768 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5769 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5770 | esac | |
5771 | fi | |
5772 | ;; | |
5773 | sco3.2v5*) | |
5774 | lt_cv_sys_max_cmd_len=102400 | |
5775 | ;; | |
5776 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5777 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5778 | if test -n "$kargmax"; then | |
5779 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5780 | else | |
5781 | lt_cv_sys_max_cmd_len=32768 | |
5782 | fi | |
d7040cdb SE |
5783 | ;; |
5784 | *) | |
1927a18f L |
5785 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5786 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
dabbade6 L |
5787 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5788 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5789 | else | |
5790 | # Make teststring a little bigger before we do anything with it. | |
5791 | # a 1K string should be a reasonable start. | |
5792 | for i in 1 2 3 4 5 6 7 8 ; do | |
5793 | teststring=$teststring$teststring | |
5794 | done | |
5795 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5796 | # If test is not a shell built-in, we'll probably end up computing a | |
5797 | # maximum length that is only half of the actual maximum length, but | |
5798 | # we can't tell. | |
3725885a RW |
5799 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5800 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
dabbade6 L |
5801 | test $i != 17 # 1/2 MB should be enough |
5802 | do | |
5803 | i=`expr $i + 1` | |
5804 | teststring=$teststring$teststring | |
5805 | done | |
5806 | # Only check the string length outside the loop. | |
5807 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5808 | teststring= | |
5809 | # Add a significant safety factor because C++ compilers can tack on | |
5810 | # massive amounts of additional arguments before passing them to the | |
5811 | # linker. It appears as though 1/2 is a usable value. | |
5812 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5813 | fi | |
d7040cdb SE |
5814 | ;; |
5815 | esac | |
252b5132 | 5816 | |
dabbade6 | 5817 | fi |
252b5132 | 5818 | |
dabbade6 | 5819 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5821 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
dabbade6 | 5822 | else |
81ecdfbb RW |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5824 | $as_echo "none" >&6; } | |
dabbade6 L |
5825 | fi |
5826 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5827 | |
252b5132 | 5828 | |
979273e3 | 5829 | |
979273e3 | 5830 | |
252b5132 | 5831 | |
252b5132 | 5832 | |
dabbade6 L |
5833 | : ${CP="cp -f"} |
5834 | : ${MV="mv -f"} | |
5835 | : ${RM="rm -f"} | |
252b5132 | 5836 | |
81ecdfbb RW |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5838 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
dabbade6 L |
5839 | # Try some XSI features |
5840 | xsi_shell=no | |
5841 | ( _lt_dummy="a/b/c" | |
5842 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
1927a18f L |
5843 | = c,a/b,, \ |
5844 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5845 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
dabbade6 | 5846 | && xsi_shell=yes |
81ecdfbb RW |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5848 | $as_echo "$xsi_shell" >&6; } | |
252b5132 | 5849 | |
252b5132 | 5850 | |
81ecdfbb RW |
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5852 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
dabbade6 L |
5853 | lt_shell_append=no |
5854 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5855 | >/dev/null 2>&1 \ | |
5856 | && lt_shell_append=yes | |
81ecdfbb RW |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5858 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5859 | |
ac48eca1 | 5860 | |
dabbade6 L |
5861 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5862 | lt_unset=unset | |
5863 | else | |
5864 | lt_unset=false | |
5865 | fi | |
979273e3 NN |
5866 | |
5867 | ||
5868 | ||
5869 | ||
ac48eca1 | 5870 | |
dabbade6 L |
5871 | # test EBCDIC or ASCII |
5872 | case `echo X|tr X '\101'` in | |
5873 | A) # ASCII based system | |
5874 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5875 | lt_SP2NL='tr \040 \012' | |
5876 | lt_NL2SP='tr \015\012 \040\040' | |
5877 | ;; | |
5878 | *) # EBCDIC based system | |
5879 | lt_SP2NL='tr \100 \n' | |
5880 | lt_NL2SP='tr \r\n \100\100' | |
5881 | ;; | |
5882 | esac | |
9e9b66a9 | 5883 | |
1ad12f97 | 5884 | |
1ad12f97 | 5885 | |
9e9b66a9 | 5886 | |
1ad12f97 | 5887 | |
a541e3ce | 5888 | |
9e9b66a9 | 5889 | |
a2d91340 AC |
5890 | |
5891 | ||
81ecdfbb RW |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5893 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5894 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5895 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
5896 | else |
5897 | lt_cv_ld_reload_flag='-r' | |
5898 | fi | |
81ecdfbb RW |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5900 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
dabbade6 L |
5901 | reload_flag=$lt_cv_ld_reload_flag |
5902 | case $reload_flag in | |
5903 | "" | " "*) ;; | |
5904 | *) reload_flag=" $reload_flag" ;; | |
5905 | esac | |
5906 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5907 | case $host_os in | |
5908 | darwin*) | |
5909 | if test "$GCC" = yes; then | |
5910 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5911 | else | |
5912 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5913 | fi | |
5914 | ;; | |
5915 | esac | |
9e9b66a9 AM |
5916 | |
5917 | ||
5918 | ||
252b5132 | 5919 | |
252b5132 | 5920 | |
252b5132 | 5921 | |
252b5132 | 5922 | |
252b5132 | 5923 | |
d7040cdb | 5924 | |
1927a18f L |
5925 | if test -n "$ac_tool_prefix"; then |
5926 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5927 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5929 | $as_echo_n "checking for $ac_word... " >&6; } | |
5930 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5931 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
5932 | else |
5933 | if test -n "$OBJDUMP"; then | |
5934 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5935 | else | |
5936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5937 | for as_dir in $PATH | |
5938 | do | |
5939 | IFS=$as_save_IFS | |
5940 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5941 | for ac_exec_ext in '' $ac_executable_extensions; do |
5942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 5943 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5945 | break 2 |
5946 | fi | |
5947 | done | |
81ecdfbb RW |
5948 | done |
5949 | IFS=$as_save_IFS | |
1927a18f L |
5950 | |
5951 | fi | |
5952 | fi | |
5953 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5954 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5956 | $as_echo "$OBJDUMP" >&6; } | |
1927a18f | 5957 | else |
81ecdfbb RW |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5959 | $as_echo "no" >&6; } | |
1927a18f L |
5960 | fi |
5961 | ||
81ecdfbb | 5962 | |
1927a18f L |
5963 | fi |
5964 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5965 | ac_ct_OBJDUMP=$OBJDUMP | |
5966 | # Extract the first word of "objdump", so it can be a program name with args. | |
5967 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5969 | $as_echo_n "checking for $ac_word... " >&6; } | |
5970 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5971 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
5972 | else |
5973 | if test -n "$ac_ct_OBJDUMP"; then | |
5974 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5975 | else | |
5976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5977 | for as_dir in $PATH | |
5978 | do | |
5979 | IFS=$as_save_IFS | |
5980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5981 | for ac_exec_ext in '' $ac_executable_extensions; do |
5982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 5983 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5985 | break 2 |
5986 | fi | |
5987 | done | |
81ecdfbb RW |
5988 | done |
5989 | IFS=$as_save_IFS | |
1927a18f | 5990 | |
1927a18f L |
5991 | fi |
5992 | fi | |
5993 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5994 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5996 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
1927a18f | 5997 | else |
81ecdfbb RW |
5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5999 | $as_echo "no" >&6; } | |
1927a18f L |
6000 | fi |
6001 | ||
81ecdfbb RW |
6002 | if test "x$ac_ct_OBJDUMP" = x; then |
6003 | OBJDUMP="false" | |
6004 | else | |
6005 | case $cross_compiling:$ac_tool_warned in | |
6006 | yes:) | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6009 | ac_tool_warned=yes ;; | |
6010 | esac | |
6011 | OBJDUMP=$ac_ct_OBJDUMP | |
6012 | fi | |
1927a18f L |
6013 | else |
6014 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6015 | fi | |
6016 | ||
6017 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6018 | ||
6019 | ||
6020 | ||
6021 | ||
6022 | ||
6023 | ||
6024 | ||
6025 | ||
d7040cdb | 6026 | |
81ecdfbb RW |
6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6028 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6029 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6030 | $as_echo_n "(cached) " >&6 | |
252b5132 | 6031 | else |
dabbade6 L |
6032 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6033 | lt_cv_file_magic_test_file= | |
6034 | lt_cv_deplibs_check_method='unknown' | |
6035 | # Need to set the preceding variable on all platforms that support | |
6036 | # interlibrary dependencies. | |
6037 | # 'none' -- dependencies not supported. | |
6038 | # `unknown' -- same as none, but documents that we really don't know. | |
6039 | # 'pass_all' -- all dependencies passed with no checks. | |
6040 | # 'test_compile' -- check by making test program. | |
6041 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6042 | # which responds to the $file_magic_cmd with a given extended regex. | |
6043 | # If you have `file' or equivalent on your system and you're not sure | |
6044 | # whether `pass_all' will *always* work, you probably want this one. | |
8ae85421 | 6045 | |
dabbade6 | 6046 | case $host_os in |
50e7d84b | 6047 | aix[4-9]*) |
dabbade6 L |
6048 | lt_cv_deplibs_check_method=pass_all |
6049 | ;; | |
979273e3 | 6050 | |
dabbade6 L |
6051 | beos*) |
6052 | lt_cv_deplibs_check_method=pass_all | |
6053 | ;; | |
24443139 | 6054 | |
dabbade6 L |
6055 | bsdi[45]*) |
6056 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6057 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6058 | lt_cv_file_magic_test_file=/shlib/libc.so | |
d7040cdb | 6059 | ;; |
dabbade6 L |
6060 | |
6061 | cygwin*) | |
6062 | # func_win32_libid is a shell function defined in ltmain.sh | |
6063 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6064 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 6065 | ;; |
dabbade6 L |
6066 | |
6067 | mingw* | pw32*) | |
6068 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6069 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6070 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
6071 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6072 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
dabbade6 L |
6073 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6074 | lt_cv_file_magic_cmd='func_win32_libid' | |
6075 | else | |
6076 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6077 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
d7040cdb SE |
6078 | fi |
6079 | ;; | |
dabbade6 | 6080 | |
3725885a | 6081 | cegcc*) |
1927a18f L |
6082 | # use the weaker test based on 'objdump'. See mingw*. |
6083 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6084 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6085 | ;; | |
6086 | ||
dabbade6 L |
6087 | darwin* | rhapsody*) |
6088 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6089 | ;; |
dabbade6 L |
6090 | |
6091 | freebsd* | dragonfly*) | |
6092 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6093 | case $host_cpu in | |
6094 | i*86 ) | |
6095 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6096 | # Let's accept both of them until this is cleared up. | |
6097 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6098 | lt_cv_file_magic_cmd=/usr/bin/file | |
6099 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6100 | ;; | |
6101 | esac | |
6102 | else | |
6103 | lt_cv_deplibs_check_method=pass_all | |
6104 | fi | |
d7040cdb | 6105 | ;; |
dabbade6 L |
6106 | |
6107 | gnu*) | |
6108 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6109 | ;; |
dabbade6 | 6110 | |
3725885a RW |
6111 | haiku*) |
6112 | lt_cv_deplibs_check_method=pass_all | |
6113 | ;; | |
6114 | ||
dabbade6 L |
6115 | hpux10.20* | hpux11*) |
6116 | lt_cv_file_magic_cmd=/usr/bin/file | |
6117 | case $host_cpu in | |
6118 | ia64*) | |
6119 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6120 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6121 | ;; | |
6122 | hppa*64*) | |
3725885a | 6123 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
dabbade6 L |
6124 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6125 | ;; | |
6126 | *) | |
3725885a | 6127 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
dabbade6 L |
6128 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6129 | ;; | |
6130 | esac | |
d7040cdb | 6131 | ;; |
24443139 | 6132 | |
dabbade6 L |
6133 | interix[3-9]*) |
6134 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6135 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6136 | ;; | |
24443139 | 6137 | |
dabbade6 L |
6138 | irix5* | irix6* | nonstopux*) |
6139 | case $LD in | |
6140 | *-32|*"-32 ") libmagic=32-bit;; | |
6141 | *-n32|*"-n32 ") libmagic=N32;; | |
6142 | *-64|*"-64 ") libmagic=64-bit;; | |
6143 | *) libmagic=never-match;; | |
6144 | esac | |
6145 | lt_cv_deplibs_check_method=pass_all | |
6146 | ;; | |
8ae85421 | 6147 | |
dabbade6 | 6148 | # This must be Linux ELF. |
58e24671 | 6149 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
6150 | lt_cv_deplibs_check_method=pass_all |
6151 | ;; | |
24443139 | 6152 | |
dabbade6 L |
6153 | netbsd*) |
6154 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6155 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6156 | else | |
6157 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6158 | fi | |
d7040cdb | 6159 | ;; |
24443139 | 6160 | |
dabbade6 L |
6161 | newos6*) |
6162 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6163 | lt_cv_file_magic_cmd=/usr/bin/file | |
6164 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6165 | ;; | |
d7040cdb | 6166 | |
dabbade6 L |
6167 | *nto* | *qnx*) |
6168 | lt_cv_deplibs_check_method=pass_all | |
6169 | ;; | |
d7040cdb | 6170 | |
dabbade6 L |
6171 | openbsd*) |
6172 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6173 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
d7040cdb | 6174 | else |
dabbade6 | 6175 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
d7040cdb | 6176 | fi |
dabbade6 | 6177 | ;; |
24443139 | 6178 | |
dabbade6 L |
6179 | osf3* | osf4* | osf5*) |
6180 | lt_cv_deplibs_check_method=pass_all | |
6181 | ;; | |
24443139 | 6182 | |
dabbade6 L |
6183 | rdos*) |
6184 | lt_cv_deplibs_check_method=pass_all | |
6185 | ;; | |
81172ff2 | 6186 | |
dabbade6 L |
6187 | solaris*) |
6188 | lt_cv_deplibs_check_method=pass_all | |
6189 | ;; | |
81172ff2 | 6190 | |
dabbade6 L |
6191 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6192 | lt_cv_deplibs_check_method=pass_all | |
6193 | ;; | |
252b5132 | 6194 | |
dabbade6 L |
6195 | sysv4 | sysv4.3*) |
6196 | case $host_vendor in | |
6197 | motorola) | |
6198 | 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]' | |
6199 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6200 | ;; | |
6201 | ncr) | |
6202 | lt_cv_deplibs_check_method=pass_all | |
6203 | ;; | |
6204 | sequent) | |
6205 | lt_cv_file_magic_cmd='/bin/file' | |
6206 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6207 | ;; | |
6208 | sni) | |
6209 | lt_cv_file_magic_cmd='/bin/file' | |
6210 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6211 | lt_cv_file_magic_test_file=/lib/libc.so | |
6212 | ;; | |
6213 | siemens) | |
6214 | lt_cv_deplibs_check_method=pass_all | |
6215 | ;; | |
6216 | pc) | |
6217 | lt_cv_deplibs_check_method=pass_all | |
6218 | ;; | |
6219 | esac | |
6220 | ;; | |
252b5132 | 6221 | |
dabbade6 L |
6222 | tpf*) |
6223 | lt_cv_deplibs_check_method=pass_all | |
6224 | ;; | |
6225 | esac | |
979273e3 | 6226 | |
dabbade6 | 6227 | fi |
81ecdfbb RW |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6229 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
dabbade6 L |
6230 | file_magic_cmd=$lt_cv_file_magic_cmd |
6231 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6232 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6233 | |
979273e3 | 6234 | |
979273e3 | 6235 | |
dabbade6 L |
6236 | |
6237 | ||
6238 | ||
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | if test -n "$ac_tool_prefix"; then | |
6246 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6247 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6249 | $as_echo_n "checking for $ac_word... " >&6; } | |
6250 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6251 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
6252 | else |
6253 | if test -n "$AR"; then | |
6254 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6255 | else | |
6256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6257 | for as_dir in $PATH | |
6258 | do | |
6259 | IFS=$as_save_IFS | |
6260 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6261 | for ac_exec_ext in '' $ac_executable_extensions; do |
6262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6263 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6265 | break 2 |
252b5132 | 6266 | fi |
979273e3 | 6267 | done |
81ecdfbb RW |
6268 | done |
6269 | IFS=$as_save_IFS | |
979273e3 | 6270 | |
dabbade6 L |
6271 | fi |
6272 | fi | |
6273 | AR=$ac_cv_prog_AR | |
6274 | if test -n "$AR"; then | |
81ecdfbb RW |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6276 | $as_echo "$AR" >&6; } | |
dabbade6 | 6277 | else |
81ecdfbb RW |
6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6279 | $as_echo "no" >&6; } | |
979273e3 | 6280 | fi |
d7040cdb | 6281 | |
81ecdfbb | 6282 | |
252b5132 | 6283 | fi |
dabbade6 L |
6284 | if test -z "$ac_cv_prog_AR"; then |
6285 | ac_ct_AR=$AR | |
6286 | # Extract the first word of "ar", so it can be a program name with args. | |
6287 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6289 | $as_echo_n "checking for $ac_word... " >&6; } | |
6290 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6291 | $as_echo_n "(cached) " >&6 | |
979273e3 | 6292 | else |
dabbade6 L |
6293 | if test -n "$ac_ct_AR"; then |
6294 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6295 | else | |
6296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6297 | for as_dir in $PATH | |
6298 | do | |
6299 | IFS=$as_save_IFS | |
6300 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6301 | for ac_exec_ext in '' $ac_executable_extensions; do |
6302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6303 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6305 | break 2 |
6306 | fi | |
6307 | done | |
81ecdfbb RW |
6308 | done |
6309 | IFS=$as_save_IFS | |
dabbade6 | 6310 | |
dabbade6 L |
6311 | fi |
6312 | fi | |
6313 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6314 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6316 | $as_echo "$ac_ct_AR" >&6; } | |
dabbade6 | 6317 | else |
81ecdfbb RW |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6319 | $as_echo "no" >&6; } | |
252b5132 RH |
6320 | fi |
6321 | ||
81ecdfbb RW |
6322 | if test "x$ac_ct_AR" = x; then |
6323 | AR="false" | |
6324 | else | |
6325 | case $cross_compiling:$ac_tool_warned in | |
6326 | yes:) | |
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6329 | ac_tool_warned=yes ;; | |
6330 | esac | |
6331 | AR=$ac_ct_AR | |
6332 | fi | |
dabbade6 L |
6333 | else |
6334 | AR="$ac_cv_prog_AR" | |
6335 | fi | |
252b5132 | 6336 | |
dabbade6 L |
6337 | test -z "$AR" && AR=ar |
6338 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
252b5132 | 6339 | |
979273e3 | 6340 | |
979273e3 | 6341 | |
979273e3 | 6342 | |
252b5132 | 6343 | |
979273e3 | 6344 | |
979273e3 | 6345 | |
252b5132 | 6346 | |
979273e3 | 6347 | |
979273e3 | 6348 | |
979273e3 | 6349 | |
dabbade6 L |
6350 | if test -n "$ac_tool_prefix"; then |
6351 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6352 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6354 | $as_echo_n "checking for $ac_word... " >&6; } | |
6355 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6356 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
6357 | else |
6358 | if test -n "$STRIP"; then | |
6359 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6360 | else | |
6361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6362 | for as_dir in $PATH | |
6363 | do | |
6364 | IFS=$as_save_IFS | |
6365 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6366 | for ac_exec_ext in '' $ac_executable_extensions; do |
6367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6368 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6370 | break 2 |
6371 | fi | |
6372 | done | |
81ecdfbb RW |
6373 | done |
6374 | IFS=$as_save_IFS | |
979273e3 | 6375 | |
dabbade6 L |
6376 | fi |
6377 | fi | |
6378 | STRIP=$ac_cv_prog_STRIP | |
6379 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6381 | $as_echo "$STRIP" >&6; } | |
dabbade6 | 6382 | else |
81ecdfbb RW |
6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6384 | $as_echo "no" >&6; } | |
dabbade6 | 6385 | fi |
979273e3 | 6386 | |
81ecdfbb | 6387 | |
dabbade6 L |
6388 | fi |
6389 | if test -z "$ac_cv_prog_STRIP"; then | |
6390 | ac_ct_STRIP=$STRIP | |
6391 | # Extract the first word of "strip", so it can be a program name with args. | |
6392 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6394 | $as_echo_n "checking for $ac_word... " >&6; } | |
6395 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6396 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
6397 | else |
6398 | if test -n "$ac_ct_STRIP"; then | |
6399 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6400 | else | |
6401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6402 | for as_dir in $PATH | |
6403 | do | |
6404 | IFS=$as_save_IFS | |
6405 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6406 | for ac_exec_ext in '' $ac_executable_extensions; do |
6407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6408 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6410 | break 2 |
6411 | fi | |
6412 | done | |
81ecdfbb RW |
6413 | done |
6414 | IFS=$as_save_IFS | |
979273e3 | 6415 | |
dabbade6 L |
6416 | fi |
6417 | fi | |
6418 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6419 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6421 | $as_echo "$ac_ct_STRIP" >&6; } | |
dabbade6 | 6422 | else |
81ecdfbb RW |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6424 | $as_echo "no" >&6; } | |
dabbade6 | 6425 | fi |
979273e3 | 6426 | |
81ecdfbb RW |
6427 | if test "x$ac_ct_STRIP" = x; then |
6428 | STRIP=":" | |
6429 | else | |
6430 | case $cross_compiling:$ac_tool_warned in | |
6431 | yes:) | |
6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6433 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6434 | ac_tool_warned=yes ;; | |
6435 | esac | |
6436 | STRIP=$ac_ct_STRIP | |
6437 | fi | |
dabbade6 L |
6438 | else |
6439 | STRIP="$ac_cv_prog_STRIP" | |
6440 | fi | |
979273e3 | 6441 | |
dabbade6 | 6442 | test -z "$STRIP" && STRIP=: |
979273e3 | 6443 | |
d7040cdb | 6444 | |
979273e3 | 6445 | |
d7040cdb | 6446 | |
979273e3 | 6447 | |
979273e3 | 6448 | |
dabbade6 L |
6449 | if test -n "$ac_tool_prefix"; then |
6450 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6451 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6453 | $as_echo_n "checking for $ac_word... " >&6; } | |
6454 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6455 | $as_echo_n "(cached) " >&6 | |
979273e3 | 6456 | else |
dabbade6 L |
6457 | if test -n "$RANLIB"; then |
6458 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6459 | else | |
6460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6461 | for as_dir in $PATH | |
6462 | do | |
6463 | IFS=$as_save_IFS | |
6464 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6465 | for ac_exec_ext in '' $ac_executable_extensions; do |
6466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6467 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6469 | break 2 |
6470 | fi | |
6471 | done | |
81ecdfbb RW |
6472 | done |
6473 | IFS=$as_save_IFS | |
979273e3 | 6474 | |
979273e3 | 6475 | fi |
979273e3 | 6476 | fi |
dabbade6 L |
6477 | RANLIB=$ac_cv_prog_RANLIB |
6478 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6480 | $as_echo "$RANLIB" >&6; } | |
dabbade6 | 6481 | else |
81ecdfbb RW |
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6483 | $as_echo "no" >&6; } | |
dabbade6 | 6484 | fi |
d7040cdb | 6485 | |
81ecdfbb | 6486 | |
d7040cdb | 6487 | fi |
dabbade6 L |
6488 | if test -z "$ac_cv_prog_RANLIB"; then |
6489 | ac_ct_RANLIB=$RANLIB | |
6490 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6491 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6493 | $as_echo_n "checking for $ac_word... " >&6; } | |
6494 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6495 | $as_echo_n "(cached) " >&6 | |
979273e3 | 6496 | else |
dabbade6 L |
6497 | if test -n "$ac_ct_RANLIB"; then |
6498 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6499 | else | |
6500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6501 | for as_dir in $PATH | |
d7040cdb | 6502 | do |
dabbade6 L |
6503 | IFS=$as_save_IFS |
6504 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6505 | for ac_exec_ext in '' $ac_executable_extensions; do |
6506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6507 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6509 | break 2 |
979273e3 | 6510 | fi |
dabbade6 | 6511 | done |
81ecdfbb RW |
6512 | done |
6513 | IFS=$as_save_IFS | |
dabbade6 | 6514 | |
979273e3 | 6515 | fi |
dabbade6 L |
6516 | fi |
6517 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6518 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6520 | $as_echo "$ac_ct_RANLIB" >&6; } | |
979273e3 | 6521 | else |
81ecdfbb RW |
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6523 | $as_echo "no" >&6; } | |
d7040cdb | 6524 | fi |
d7040cdb | 6525 | |
81ecdfbb RW |
6526 | if test "x$ac_ct_RANLIB" = x; then |
6527 | RANLIB=":" | |
6528 | else | |
6529 | case $cross_compiling:$ac_tool_warned in | |
6530 | yes:) | |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6532 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6533 | ac_tool_warned=yes ;; | |
6534 | esac | |
6535 | RANLIB=$ac_ct_RANLIB | |
6536 | fi | |
d7040cdb | 6537 | else |
dabbade6 | 6538 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6539 | fi |
979273e3 | 6540 | |
dabbade6 | 6541 | test -z "$RANLIB" && RANLIB=: |
979273e3 | 6542 | |
252b5132 | 6543 | |
252b5132 | 6544 | |
d7040cdb | 6545 | |
d7040cdb | 6546 | |
d7040cdb | 6547 | |
dabbade6 | 6548 | # Determine commands to create old-style static archives. |
1927a18f | 6549 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
dabbade6 L |
6550 | old_postinstall_cmds='chmod 644 $oldlib' |
6551 | old_postuninstall_cmds= | |
d7040cdb | 6552 | |
dabbade6 L |
6553 | if test -n "$RANLIB"; then |
6554 | case $host_os in | |
6555 | openbsd*) | |
6556 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6557 | ;; | |
6558 | *) | |
6559 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6560 | ;; | |
6561 | esac | |
6562 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb SE |
6563 | fi |
6564 | ||
3725885a RW |
6565 | case $host_os in |
6566 | darwin*) | |
6567 | lock_old_archive_extraction=yes ;; | |
6568 | *) | |
6569 | lock_old_archive_extraction=no ;; | |
6570 | esac | |
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
d7040cdb SE |
6577 | |
6578 | ||
d7040cdb | 6579 | |
d7040cdb | 6580 | |
252b5132 | 6581 | |
d7040cdb | 6582 | |
d7040cdb | 6583 | |
d7040cdb SE |
6584 | |
6585 | ||
6586 | ||
d7040cdb | 6587 | |
d7040cdb | 6588 | |
d7040cdb | 6589 | |
252b5132 | 6590 | |
d7040cdb SE |
6591 | |
6592 | ||
6593 | ||
d7040cdb | 6594 | |
d7040cdb SE |
6595 | |
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | ||
dabbade6 L |
6610 | # If no C compiler was specified, use CC. |
6611 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 6612 | |
dabbade6 L |
6613 | # If no C compiler flags were specified, use CFLAGS. |
6614 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 6615 | |
dabbade6 L |
6616 | # Allow CC to be a program name with arguments. |
6617 | compiler=$CC | |
d7040cdb SE |
6618 | |
6619 | ||
dabbade6 | 6620 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6622 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6623 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6624 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 6625 | else |
d7040cdb | 6626 | |
dabbade6 L |
6627 | # These are sane defaults that work on at least a few old systems. |
6628 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 6629 | |
dabbade6 L |
6630 | # Character class describing NM global symbol codes. |
6631 | symcode='[BCDEGRST]' | |
d7040cdb | 6632 | |
dabbade6 L |
6633 | # Regexp to match symbols that can be accessed directly from C. |
6634 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d7040cdb | 6635 | |
dabbade6 L |
6636 | # Define system-specific variables. |
6637 | case $host_os in | |
6638 | aix*) | |
6639 | symcode='[BCDT]' | |
6640 | ;; | |
1927a18f | 6641 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
6642 | symcode='[ABCDGISTW]' |
6643 | ;; | |
6644 | hpux*) | |
6645 | if test "$host_cpu" = ia64; then | |
6646 | symcode='[ABCDEGRST]' | |
6647 | fi | |
6648 | ;; | |
6649 | irix* | nonstopux*) | |
6650 | symcode='[BCDEGRST]' | |
6651 | ;; | |
6652 | osf*) | |
6653 | symcode='[BCDEGQRST]' | |
6654 | ;; | |
6655 | solaris*) | |
6656 | symcode='[BDRT]' | |
6657 | ;; | |
6658 | sco3.2v5*) | |
6659 | symcode='[DT]' | |
6660 | ;; | |
6661 | sysv4.2uw2*) | |
6662 | symcode='[DT]' | |
6663 | ;; | |
6664 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6665 | symcode='[ABDT]' | |
6666 | ;; | |
6667 | sysv4) | |
6668 | symcode='[DFNSTU]' | |
6669 | ;; | |
6670 | esac | |
6671 | ||
6672 | # If we're using GNU nm, then use its standard symbol codes. | |
6673 | case `$NM -V 2>&1` in | |
6674 | *GNU* | *'with BFD'*) | |
6675 | symcode='[ABCDGIRSTW]' ;; | |
6676 | esac | |
d7040cdb | 6677 | |
dabbade6 L |
6678 | # Transform an extracted symbol line into a proper C declaration. |
6679 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6680 | # so use this general approach. | |
6681 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 6682 | |
dabbade6 | 6683 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6684 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
1927a18f | 6685 | 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'" |
d7040cdb | 6686 | |
7357c5b6 AM |
6687 | # Handle CRLF in mingw tool chain |
6688 | opt_cr= | |
6689 | case $build_os in | |
6690 | mingw*) | |
6691 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6692 | ;; | |
6693 | esac | |
d7040cdb | 6694 | |
7357c5b6 AM |
6695 | # Try without a prefix underscore, then with it. |
6696 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6697 | |
7357c5b6 AM |
6698 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6699 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6700 | |
7357c5b6 AM |
6701 | # Write the raw and C identifiers. |
6702 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6703 | # Fake it for dumpbin and say T for any non-static function | |
6704 | # and D for any global variable. | |
6705 | # Also find C++ and __fastcall symbols from MSVC++, | |
6706 | # which start with @ or ?. | |
6707 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6708 | " {last_section=section; section=\$ 3};"\ | |
6709 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6710 | " \$ 0!~/External *\|/{next};"\ | |
6711 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6712 | " {if(hide[section]) next};"\ | |
6713 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6714 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6715 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6716 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6717 | " ' prfx=^$ac_symprfx" | |
6718 | else | |
6719 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6720 | fi | |
d7040cdb | 6721 | |
7357c5b6 AM |
6722 | # Check to see that the pipe works correctly. |
6723 | pipe_works=no | |
d7040cdb | 6724 | |
7357c5b6 AM |
6725 | rm -f conftest* |
6726 | cat > conftest.$ac_ext <<_LT_EOF | |
6727 | #ifdef __cplusplus | |
6728 | extern "C" { | |
6729 | #endif | |
6730 | char nm_test_var; | |
6731 | void nm_test_func(void); | |
6732 | void nm_test_func(void){} | |
6733 | #ifdef __cplusplus | |
dabbade6 | 6734 | } |
7357c5b6 AM |
6735 | #endif |
6736 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6737 | _LT_EOF | |
6738 | ||
81ecdfbb | 6739 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6740 | (eval $ac_compile) 2>&5 |
dabbade6 | 6741 | ac_status=$? |
81ecdfbb RW |
6742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6743 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6744 | # Now try to grab the symbols. |
6745 | nlist=conftest.nm | |
3725885a RW |
6746 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6747 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
dabbade6 | 6748 | ac_status=$? |
81ecdfbb RW |
6749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6750 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6751 | # Try sorting and uniquifying the output. |
6752 | if sort "$nlist" | uniq > "$nlist"T; then | |
6753 | mv -f "$nlist"T "$nlist" | |
6754 | else | |
6755 | rm -f "$nlist"T | |
6756 | fi | |
d7040cdb | 6757 | |
7357c5b6 AM |
6758 | # Make sure that we snagged all the symbols we need. |
6759 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6760 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6761 | cat <<_LT_EOF > conftest.$ac_ext | |
6762 | #ifdef __cplusplus | |
6763 | extern "C" { | |
6764 | #endif | |
d7040cdb | 6765 | |
7357c5b6 AM |
6766 | _LT_EOF |
6767 | # Now generate the symbol file. | |
6768 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 6769 | |
7357c5b6 | 6770 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 6771 | |
7357c5b6 AM |
6772 | /* The mapping between symbol names and symbols. */ |
6773 | const struct { | |
6774 | const char *name; | |
6775 | void *address; | |
6776 | } | |
6777 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6778 | { | |
6779 | { "@PROGRAM@", (void *) 0 }, | |
6780 | _LT_EOF | |
6781 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6782 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6783 | {0, (void *) 0} | |
6784 | }; | |
d7040cdb | 6785 | |
7357c5b6 AM |
6786 | /* This works around a problem in FreeBSD linker */ |
6787 | #ifdef FREEBSD_WORKAROUND | |
6788 | static const void *lt_preloaded_setup() { | |
6789 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6790 | } | |
dabbade6 | 6791 | #endif |
d7040cdb | 6792 | |
7357c5b6 | 6793 | #ifdef __cplusplus |
dabbade6 | 6794 | } |
7357c5b6 AM |
6795 | #endif |
6796 | _LT_EOF | |
6797 | # Now try linking the two files. | |
6798 | mv conftest.$ac_objext conftstm.$ac_objext | |
6799 | lt_save_LIBS="$LIBS" | |
6800 | lt_save_CFLAGS="$CFLAGS" | |
6801 | LIBS="conftstm.$ac_objext" | |
6802 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6803 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
6804 | (eval $ac_link) 2>&5 |
6805 | ac_status=$? | |
81ecdfbb RW |
6806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6807 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6808 | pipe_works=yes |
6809 | fi | |
6810 | LIBS="$lt_save_LIBS" | |
6811 | CFLAGS="$lt_save_CFLAGS" | |
6812 | else | |
6813 | echo "cannot find nm_test_func in $nlist" >&5 | |
6814 | fi | |
6815 | else | |
6816 | echo "cannot find nm_test_var in $nlist" >&5 | |
6817 | fi | |
6818 | else | |
6819 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6820 | fi | |
6821 | else | |
6822 | echo "$progname: failed program was:" >&5 | |
6823 | cat conftest.$ac_ext >&5 | |
6824 | fi | |
1927a18f | 6825 | rm -rf conftest* conftst* |
7357c5b6 AM |
6826 | |
6827 | # Do not use the global_symbol_pipe unless it works. | |
6828 | if test "$pipe_works" = yes; then | |
6829 | break | |
6830 | else | |
6831 | lt_cv_sys_global_symbol_pipe= | |
6832 | fi | |
6833 | done | |
d7040cdb | 6834 | |
dabbade6 | 6835 | fi |
7357c5b6 AM |
6836 | |
6837 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6838 | lt_cv_sys_global_symbol_to_cdecl= | |
dabbade6 | 6839 | fi |
7357c5b6 | 6840 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6842 | $as_echo "failed" >&6; } | |
7357c5b6 | 6843 | else |
81ecdfbb RW |
6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6845 | $as_echo "ok" >&6; } | |
dabbade6 | 6846 | fi |
d7040cdb | 6847 | |
d7040cdb | 6848 | |
d7040cdb | 6849 | |
d7040cdb | 6850 | |
d7040cdb | 6851 | |
d7040cdb | 6852 | |
d7040cdb | 6853 | |
d7040cdb | 6854 | |
d7040cdb | 6855 | |
d7040cdb | 6856 | |
d7040cdb | 6857 | |
d7040cdb | 6858 | |
7357c5b6 AM |
6859 | |
6860 | ||
6861 | ||
1927a18f L |
6862 | |
6863 | ||
6864 | ||
6865 | ||
6866 | ||
7357c5b6 AM |
6867 | |
6868 | ||
81ecdfbb RW |
6869 | # Check whether --enable-libtool-lock was given. |
6870 | if test "${enable_libtool_lock+set}" = set; then : | |
6871 | enableval=$enable_libtool_lock; | |
6872 | fi | |
7357c5b6 | 6873 | |
7357c5b6 AM |
6874 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6875 | ||
6876 | # Some flags need to be propagated to the compiler or linker for good | |
6877 | # libtool support. | |
6878 | case $host in | |
6879 | ia64-*-hpux*) | |
6880 | # Find out which ABI we are using. | |
6881 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6882 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6883 | (eval $ac_compile) 2>&5 |
6884 | ac_status=$? | |
81ecdfbb RW |
6885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6886 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6887 | case `/usr/bin/file conftest.$ac_objext` in |
6888 | *ELF-32*) | |
6889 | HPUX_IA64_MODE="32" | |
6890 | ;; | |
6891 | *ELF-64*) | |
6892 | HPUX_IA64_MODE="64" | |
6893 | ;; | |
6894 | esac | |
6895 | fi | |
6896 | rm -rf conftest* | |
6897 | ;; | |
6898 | *-*-irix6*) | |
6899 | # Find out which ABI we are using. | |
3725885a | 6900 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6901 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6902 | (eval $ac_compile) 2>&5 |
6903 | ac_status=$? | |
81ecdfbb RW |
6904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6905 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6906 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6907 | case `/usr/bin/file conftest.$ac_objext` in | |
6908 | *32-bit*) | |
6909 | LD="${LD-ld} -melf32bsmip" | |
6910 | ;; | |
6911 | *N32*) | |
6912 | LD="${LD-ld} -melf32bmipn32" | |
6913 | ;; | |
6914 | *64-bit*) | |
6915 | LD="${LD-ld} -melf64bmip" | |
6916 | ;; | |
6917 | esac | |
6918 | else | |
6919 | case `/usr/bin/file conftest.$ac_objext` in | |
6920 | *32-bit*) | |
6921 | LD="${LD-ld} -32" | |
6922 | ;; | |
6923 | *N32*) | |
6924 | LD="${LD-ld} -n32" | |
6925 | ;; | |
6926 | *64-bit*) | |
6927 | LD="${LD-ld} -64" | |
6928 | ;; | |
6929 | esac | |
6930 | fi | |
6931 | fi | |
6932 | rm -rf conftest* | |
6933 | ;; | |
6934 | ||
6935 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6936 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6937 | # Find out which ABI we are using. | |
6938 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6939 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6940 | (eval $ac_compile) 2>&5 |
6941 | ac_status=$? | |
81ecdfbb RW |
6942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6943 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6944 | case `/usr/bin/file conftest.o` in |
6945 | *32-bit*) | |
6946 | case $host in | |
6947 | x86_64-*kfreebsd*-gnu) | |
6948 | LD="${LD-ld} -m elf_i386_fbsd" | |
6949 | ;; | |
6950 | x86_64-*linux*) | |
6951 | LD="${LD-ld} -m elf_i386" | |
6952 | ;; | |
6953 | ppc64-*linux*|powerpc64-*linux*) | |
6954 | LD="${LD-ld} -m elf32ppclinux" | |
6955 | ;; | |
6956 | s390x-*linux*) | |
6957 | LD="${LD-ld} -m elf_s390" | |
6958 | ;; | |
6959 | sparc64-*linux*) | |
6960 | LD="${LD-ld} -m elf32_sparc" | |
6961 | ;; | |
6962 | esac | |
6963 | ;; | |
6964 | *64-bit*) | |
6965 | case $host in | |
6966 | x86_64-*kfreebsd*-gnu) | |
6967 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6968 | ;; | |
6969 | x86_64-*linux*) | |
6970 | LD="${LD-ld} -m elf_x86_64" | |
6971 | ;; | |
6972 | ppc*-*linux*|powerpc*-*linux*) | |
6973 | LD="${LD-ld} -m elf64ppc" | |
6974 | ;; | |
6975 | s390*-*linux*|s390*-*tpf*) | |
6976 | LD="${LD-ld} -m elf64_s390" | |
6977 | ;; | |
6978 | sparc*-*linux*) | |
6979 | LD="${LD-ld} -m elf64_sparc" | |
6980 | ;; | |
6981 | esac | |
6982 | ;; | |
6983 | esac | |
6984 | fi | |
6985 | rm -rf conftest* | |
6986 | ;; | |
6987 | ||
6988 | *-*-sco3.2v5*) | |
6989 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6990 | SAVE_CFLAGS="$CFLAGS" | |
6991 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6993 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6994 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6995 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 6996 | else |
7357c5b6 AM |
6997 | ac_ext=c |
6998 | ac_cpp='$CPP $CPPFLAGS' | |
6999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7002 | ||
81ecdfbb | 7003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 7004 | /* end confdefs.h. */ |
d7040cdb | 7005 | |
7357c5b6 AM |
7006 | int |
7007 | main () | |
7008 | { | |
7009 | ||
7010 | ; | |
7011 | return 0; | |
7012 | } | |
dabbade6 | 7013 | _ACEOF |
81ecdfbb | 7014 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7015 | lt_cv_cc_needs_belf=yes |
dabbade6 | 7016 | else |
81ecdfbb | 7017 | lt_cv_cc_needs_belf=no |
dabbade6 | 7018 | fi |
81ecdfbb RW |
7019 | rm -f core conftest.err conftest.$ac_objext \ |
7020 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7021 | ac_ext=c |
7022 | ac_cpp='$CPP $CPPFLAGS' | |
7023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7026 | |
dabbade6 | 7027 | fi |
81ecdfbb RW |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7029 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
7030 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7031 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7032 | CFLAGS="$SAVE_CFLAGS" | |
7033 | fi | |
7034 | ;; | |
7035 | sparc*-*solaris*) | |
7036 | # Find out which ABI we are using. | |
7037 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7038 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7039 | (eval $ac_compile) 2>&5 |
7040 | ac_status=$? | |
81ecdfbb RW |
7041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7042 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7043 | case `/usr/bin/file conftest.o` in |
7044 | *64-bit*) | |
7045 | case $lt_cv_prog_gnu_ld in | |
7046 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1927a18f L |
7047 | *) |
7048 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7049 | LD="${LD-ld} -64" | |
7050 | fi | |
7051 | ;; | |
7357c5b6 AM |
7052 | esac |
7053 | ;; | |
7054 | esac | |
7055 | fi | |
7056 | rm -rf conftest* | |
7057 | ;; | |
7058 | esac | |
d7040cdb | 7059 | |
7357c5b6 | 7060 | need_locks="$enable_libtool_lock" |
d7040cdb | 7061 | |
d7040cdb | 7062 | |
1927a18f L |
7063 | case $host_os in |
7064 | rhapsody* | darwin*) | |
7065 | if test -n "$ac_tool_prefix"; then | |
7066 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7067 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7069 | $as_echo_n "checking for $ac_word... " >&6; } | |
7070 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7071 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7072 | else |
7073 | if test -n "$DSYMUTIL"; then | |
7074 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7075 | else | |
7076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7077 | for as_dir in $PATH | |
7078 | do | |
7079 | IFS=$as_save_IFS | |
7080 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7081 | for ac_exec_ext in '' $ac_executable_extensions; do |
7082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7083 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7085 | break 2 |
7086 | fi | |
7087 | done | |
81ecdfbb RW |
7088 | done |
7089 | IFS=$as_save_IFS | |
1927a18f L |
7090 | |
7091 | fi | |
7092 | fi | |
7093 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7094 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7096 | $as_echo "$DSYMUTIL" >&6; } | |
1927a18f | 7097 | else |
81ecdfbb RW |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7099 | $as_echo "no" >&6; } | |
1927a18f L |
7100 | fi |
7101 | ||
81ecdfbb | 7102 | |
1927a18f L |
7103 | fi |
7104 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7105 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7106 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7107 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7109 | $as_echo_n "checking for $ac_word... " >&6; } | |
7110 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7111 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7112 | else |
7113 | if test -n "$ac_ct_DSYMUTIL"; then | |
7114 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7115 | else | |
7116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7117 | for as_dir in $PATH | |
7118 | do | |
7119 | IFS=$as_save_IFS | |
7120 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7121 | for ac_exec_ext in '' $ac_executable_extensions; do |
7122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7123 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7125 | break 2 |
7126 | fi | |
7127 | done | |
81ecdfbb RW |
7128 | done |
7129 | IFS=$as_save_IFS | |
1927a18f | 7130 | |
1927a18f L |
7131 | fi |
7132 | fi | |
7133 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7134 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7136 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
1927a18f | 7137 | else |
81ecdfbb RW |
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7139 | $as_echo "no" >&6; } | |
1927a18f L |
7140 | fi |
7141 | ||
81ecdfbb RW |
7142 | if test "x$ac_ct_DSYMUTIL" = x; then |
7143 | DSYMUTIL=":" | |
7144 | else | |
7145 | case $cross_compiling:$ac_tool_warned in | |
7146 | yes:) | |
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7149 | ac_tool_warned=yes ;; | |
7150 | esac | |
7151 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7152 | fi | |
1927a18f L |
7153 | else |
7154 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7155 | fi | |
7156 | ||
7157 | if test -n "$ac_tool_prefix"; then | |
7158 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7159 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7161 | $as_echo_n "checking for $ac_word... " >&6; } | |
7162 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7163 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7164 | else |
7165 | if test -n "$NMEDIT"; then | |
7166 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7167 | else | |
7168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7169 | for as_dir in $PATH | |
7170 | do | |
7171 | IFS=$as_save_IFS | |
7172 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7173 | for ac_exec_ext in '' $ac_executable_extensions; do |
7174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7175 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7177 | break 2 |
7178 | fi | |
7179 | done | |
81ecdfbb RW |
7180 | done |
7181 | IFS=$as_save_IFS | |
1927a18f L |
7182 | |
7183 | fi | |
7184 | fi | |
7185 | NMEDIT=$ac_cv_prog_NMEDIT | |
7186 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7188 | $as_echo "$NMEDIT" >&6; } | |
1927a18f | 7189 | else |
81ecdfbb RW |
7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7191 | $as_echo "no" >&6; } | |
1927a18f L |
7192 | fi |
7193 | ||
81ecdfbb | 7194 | |
1927a18f L |
7195 | fi |
7196 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7197 | ac_ct_NMEDIT=$NMEDIT | |
7198 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7199 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7201 | $as_echo_n "checking for $ac_word... " >&6; } | |
7202 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7203 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7204 | else |
7205 | if test -n "$ac_ct_NMEDIT"; then | |
7206 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7207 | else | |
7208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7209 | for as_dir in $PATH | |
7210 | do | |
7211 | IFS=$as_save_IFS | |
7212 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7213 | for ac_exec_ext in '' $ac_executable_extensions; do |
7214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7215 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7217 | break 2 |
7218 | fi | |
7219 | done | |
81ecdfbb RW |
7220 | done |
7221 | IFS=$as_save_IFS | |
1927a18f | 7222 | |
1927a18f L |
7223 | fi |
7224 | fi | |
7225 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7226 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7228 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
1927a18f | 7229 | else |
81ecdfbb RW |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7231 | $as_echo "no" >&6; } | |
1927a18f L |
7232 | fi |
7233 | ||
81ecdfbb RW |
7234 | if test "x$ac_ct_NMEDIT" = x; then |
7235 | NMEDIT=":" | |
7236 | else | |
7237 | case $cross_compiling:$ac_tool_warned in | |
7238 | yes:) | |
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7241 | ac_tool_warned=yes ;; | |
7242 | esac | |
7243 | NMEDIT=$ac_ct_NMEDIT | |
7244 | fi | |
1927a18f L |
7245 | else |
7246 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7247 | fi | |
7248 | ||
7249 | if test -n "$ac_tool_prefix"; then | |
7250 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7251 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7253 | $as_echo_n "checking for $ac_word... " >&6; } | |
7254 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7255 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7256 | else |
7257 | if test -n "$LIPO"; then | |
7258 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7259 | else | |
7260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7261 | for as_dir in $PATH | |
7262 | do | |
7263 | IFS=$as_save_IFS | |
7264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7265 | for ac_exec_ext in '' $ac_executable_extensions; do |
7266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7267 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7269 | break 2 |
7270 | fi | |
7271 | done | |
81ecdfbb RW |
7272 | done |
7273 | IFS=$as_save_IFS | |
1927a18f L |
7274 | |
7275 | fi | |
7276 | fi | |
7277 | LIPO=$ac_cv_prog_LIPO | |
7278 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7280 | $as_echo "$LIPO" >&6; } | |
1927a18f | 7281 | else |
81ecdfbb RW |
7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7283 | $as_echo "no" >&6; } | |
1927a18f L |
7284 | fi |
7285 | ||
81ecdfbb | 7286 | |
1927a18f L |
7287 | fi |
7288 | if test -z "$ac_cv_prog_LIPO"; then | |
7289 | ac_ct_LIPO=$LIPO | |
7290 | # Extract the first word of "lipo", so it can be a program name with args. | |
7291 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7293 | $as_echo_n "checking for $ac_word... " >&6; } | |
7294 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7295 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7296 | else |
7297 | if test -n "$ac_ct_LIPO"; then | |
7298 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7299 | else | |
7300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7301 | for as_dir in $PATH | |
7302 | do | |
7303 | IFS=$as_save_IFS | |
7304 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7305 | for ac_exec_ext in '' $ac_executable_extensions; do |
7306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7307 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7309 | break 2 |
7310 | fi | |
7311 | done | |
81ecdfbb RW |
7312 | done |
7313 | IFS=$as_save_IFS | |
1927a18f | 7314 | |
1927a18f L |
7315 | fi |
7316 | fi | |
7317 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7318 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7320 | $as_echo "$ac_ct_LIPO" >&6; } | |
1927a18f | 7321 | else |
81ecdfbb RW |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7323 | $as_echo "no" >&6; } | |
1927a18f L |
7324 | fi |
7325 | ||
81ecdfbb RW |
7326 | if test "x$ac_ct_LIPO" = x; then |
7327 | LIPO=":" | |
7328 | else | |
7329 | case $cross_compiling:$ac_tool_warned in | |
7330 | yes:) | |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7332 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7333 | ac_tool_warned=yes ;; | |
7334 | esac | |
7335 | LIPO=$ac_ct_LIPO | |
7336 | fi | |
1927a18f L |
7337 | else |
7338 | LIPO="$ac_cv_prog_LIPO" | |
7339 | fi | |
7340 | ||
7341 | if test -n "$ac_tool_prefix"; then | |
7342 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7343 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7345 | $as_echo_n "checking for $ac_word... " >&6; } | |
7346 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7347 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7348 | else |
7349 | if test -n "$OTOOL"; then | |
7350 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7351 | else | |
7352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7353 | for as_dir in $PATH | |
7354 | do | |
7355 | IFS=$as_save_IFS | |
7356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7357 | for ac_exec_ext in '' $ac_executable_extensions; do |
7358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7359 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7361 | break 2 |
7362 | fi | |
7363 | done | |
81ecdfbb RW |
7364 | done |
7365 | IFS=$as_save_IFS | |
1927a18f L |
7366 | |
7367 | fi | |
7368 | fi | |
7369 | OTOOL=$ac_cv_prog_OTOOL | |
7370 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7372 | $as_echo "$OTOOL" >&6; } | |
1927a18f | 7373 | else |
81ecdfbb RW |
7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7375 | $as_echo "no" >&6; } | |
1927a18f L |
7376 | fi |
7377 | ||
81ecdfbb | 7378 | |
1927a18f L |
7379 | fi |
7380 | if test -z "$ac_cv_prog_OTOOL"; then | |
7381 | ac_ct_OTOOL=$OTOOL | |
7382 | # Extract the first word of "otool", so it can be a program name with args. | |
7383 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7385 | $as_echo_n "checking for $ac_word... " >&6; } | |
7386 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7387 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7388 | else |
7389 | if test -n "$ac_ct_OTOOL"; then | |
7390 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7391 | else | |
7392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7393 | for as_dir in $PATH | |
7394 | do | |
7395 | IFS=$as_save_IFS | |
7396 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7397 | for ac_exec_ext in '' $ac_executable_extensions; do |
7398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7399 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7401 | break 2 |
7402 | fi | |
7403 | done | |
81ecdfbb RW |
7404 | done |
7405 | IFS=$as_save_IFS | |
1927a18f | 7406 | |
1927a18f L |
7407 | fi |
7408 | fi | |
7409 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7410 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7412 | $as_echo "$ac_ct_OTOOL" >&6; } | |
1927a18f | 7413 | else |
81ecdfbb RW |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7415 | $as_echo "no" >&6; } | |
1927a18f L |
7416 | fi |
7417 | ||
81ecdfbb RW |
7418 | if test "x$ac_ct_OTOOL" = x; then |
7419 | OTOOL=":" | |
7420 | else | |
7421 | case $cross_compiling:$ac_tool_warned in | |
7422 | yes:) | |
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7424 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7425 | ac_tool_warned=yes ;; | |
7426 | esac | |
7427 | OTOOL=$ac_ct_OTOOL | |
7428 | fi | |
1927a18f L |
7429 | else |
7430 | OTOOL="$ac_cv_prog_OTOOL" | |
7431 | fi | |
7432 | ||
7433 | if test -n "$ac_tool_prefix"; then | |
7434 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7435 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7437 | $as_echo_n "checking for $ac_word... " >&6; } | |
7438 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7439 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7440 | else |
7441 | if test -n "$OTOOL64"; then | |
7442 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7443 | else | |
7444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7445 | for as_dir in $PATH | |
7446 | do | |
7447 | IFS=$as_save_IFS | |
7448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7449 | for ac_exec_ext in '' $ac_executable_extensions; do |
7450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7451 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7453 | break 2 |
7454 | fi | |
7455 | done | |
81ecdfbb RW |
7456 | done |
7457 | IFS=$as_save_IFS | |
1927a18f L |
7458 | |
7459 | fi | |
7460 | fi | |
7461 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7462 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7464 | $as_echo "$OTOOL64" >&6; } | |
1927a18f | 7465 | else |
81ecdfbb RW |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7467 | $as_echo "no" >&6; } | |
1927a18f L |
7468 | fi |
7469 | ||
81ecdfbb | 7470 | |
1927a18f L |
7471 | fi |
7472 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7473 | ac_ct_OTOOL64=$OTOOL64 | |
7474 | # Extract the first word of "otool64", so it can be a program name with args. | |
7475 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7477 | $as_echo_n "checking for $ac_word... " >&6; } | |
7478 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7479 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7480 | else |
7481 | if test -n "$ac_ct_OTOOL64"; then | |
7482 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7483 | else | |
7484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7485 | for as_dir in $PATH | |
7486 | do | |
7487 | IFS=$as_save_IFS | |
7488 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7489 | for ac_exec_ext in '' $ac_executable_extensions; do |
7490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7491 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7493 | break 2 |
7494 | fi | |
7495 | done | |
81ecdfbb RW |
7496 | done |
7497 | IFS=$as_save_IFS | |
1927a18f | 7498 | |
1927a18f L |
7499 | fi |
7500 | fi | |
7501 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7502 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7504 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
1927a18f | 7505 | else |
81ecdfbb RW |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7507 | $as_echo "no" >&6; } | |
1927a18f L |
7508 | fi |
7509 | ||
81ecdfbb RW |
7510 | if test "x$ac_ct_OTOOL64" = x; then |
7511 | OTOOL64=":" | |
7512 | else | |
7513 | case $cross_compiling:$ac_tool_warned in | |
7514 | yes:) | |
7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7516 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7517 | ac_tool_warned=yes ;; | |
7518 | esac | |
7519 | OTOOL64=$ac_ct_OTOOL64 | |
7520 | fi | |
1927a18f L |
7521 | else |
7522 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7523 | fi | |
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
7536 | ||
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | ||
81ecdfbb RW |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7552 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7553 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7554 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7555 | else |
7556 | lt_cv_apple_cc_single_mod=no | |
7557 | if test -z "${LT_MULTI_MODULE}"; then | |
7558 | # By default we will add the -single_module flag. You can override | |
7559 | # by either setting the environment variable LT_MULTI_MODULE | |
7560 | # non-empty at configure time, or by adding -multi_module to the | |
7561 | # link flags. | |
7562 | rm -rf libconftest.dylib* | |
7563 | echo "int foo(void){return 1;}" > conftest.c | |
7564 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7565 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7566 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7567 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7568 | _lt_result=$? | |
7569 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7570 | lt_cv_apple_cc_single_mod=yes | |
7571 | else | |
7572 | cat conftest.err >&5 | |
7573 | fi | |
7574 | rm -rf libconftest.dylib* | |
7575 | rm -f conftest.* | |
7576 | fi | |
7577 | fi | |
81ecdfbb RW |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7579 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7581 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7582 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7583 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7584 | else |
7585 | lt_cv_ld_exported_symbols_list=no | |
7586 | save_LDFLAGS=$LDFLAGS | |
7587 | echo "_main" > conftest.sym | |
7588 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1927a18f L |
7590 | /* end confdefs.h. */ |
7591 | ||
7592 | int | |
7593 | main () | |
7594 | { | |
7595 | ||
7596 | ; | |
7597 | return 0; | |
7598 | } | |
7599 | _ACEOF | |
81ecdfbb | 7600 | if ac_fn_c_try_link "$LINENO"; then : |
1927a18f L |
7601 | lt_cv_ld_exported_symbols_list=yes |
7602 | else | |
81ecdfbb | 7603 | lt_cv_ld_exported_symbols_list=no |
1927a18f | 7604 | fi |
81ecdfbb RW |
7605 | rm -f core conftest.err conftest.$ac_objext \ |
7606 | conftest$ac_exeext conftest.$ac_ext | |
1927a18f L |
7607 | LDFLAGS="$save_LDFLAGS" |
7608 | ||
7609 | fi | |
81ecdfbb RW |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7611 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7613 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7614 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7615 | $as_echo_n "(cached) " >&6 | |
7616 | else | |
7617 | lt_cv_ld_force_load=no | |
7618 | cat > conftest.c << _LT_EOF | |
7619 | int forced_loaded() { return 2;} | |
7620 | _LT_EOF | |
7621 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7622 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7623 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7624 | $AR cru libconftest.a conftest.o 2>&5 | |
7625 | cat > conftest.c << _LT_EOF | |
7626 | int main() { return 0;} | |
7627 | _LT_EOF | |
7628 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7629 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7630 | _lt_result=$? | |
7631 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7632 | lt_cv_ld_force_load=yes | |
7633 | else | |
7634 | cat conftest.err >&5 | |
7635 | fi | |
7636 | rm -f conftest.err libconftest.a conftest conftest.c | |
7637 | rm -rf conftest.dSYM | |
7638 | ||
7639 | fi | |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7641 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1927a18f L |
7642 | case $host_os in |
7643 | rhapsody* | darwin1.[012]) | |
7644 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7645 | darwin1.*) | |
7646 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7647 | darwin*) # darwin 5.x on | |
7648 | # if running on 10.5 or later, the deployment target defaults | |
7649 | # to the OS version, if on x86, and 10.4, the deployment | |
7650 | # target defaults to 10.4. Don't you love it? | |
7651 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7652 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7653 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7654 | 10.[012]*) | |
7655 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7656 | 10.*) | |
7657 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7658 | esac | |
7659 | ;; | |
7660 | esac | |
7661 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7662 | _lt_dar_single_mod='$single_module' | |
7663 | fi | |
7664 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7665 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7666 | else | |
7667 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7668 | fi | |
3725885a | 7669 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
1927a18f L |
7670 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7671 | else | |
7672 | _lt_dsymutil= | |
7673 | fi | |
7674 | ;; | |
7675 | esac | |
7676 | ||
dabbade6 | 7677 | for ac_header in dlfcn.h |
81ecdfbb RW |
7678 | do : |
7679 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7680 | " | |
7681 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
dabbade6 | 7682 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7683 | #define HAVE_DLFCN_H 1 |
dabbade6 | 7684 | _ACEOF |
d7040cdb | 7685 | |
dabbade6 | 7686 | fi |
d7040cdb | 7687 | |
dabbade6 | 7688 | done |
d7040cdb | 7689 | |
d7040cdb | 7690 | |
d7040cdb | 7691 | |
3725885a RW |
7692 | |
7693 | ||
1927a18f L |
7694 | # Set options |
7695 | ||
7696 | ||
7697 | ||
7698 | enable_dlopen=no | |
7699 | ||
7700 | ||
7701 | enable_win32_dll=no | |
7702 | ||
7703 | ||
7704 | ||
81ecdfbb RW |
7705 | # Check whether --enable-static was given. |
7706 | if test "${enable_static+set}" = set; then : | |
7707 | enableval=$enable_static; p=${PACKAGE-default} | |
1927a18f L |
7708 | case $enableval in |
7709 | yes) enable_static=yes ;; | |
7710 | no) enable_static=no ;; | |
7711 | *) | |
7712 | enable_static=no | |
7713 | # Look at the argument we got. We use all the common list separators. | |
7714 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7715 | for pkg in $enableval; do | |
7716 | IFS="$lt_save_ifs" | |
7717 | if test "X$pkg" = "X$p"; then | |
7718 | enable_static=yes | |
7719 | fi | |
7720 | done | |
7721 | IFS="$lt_save_ifs" | |
7722 | ;; | |
7723 | esac | |
7724 | else | |
7725 | enable_static=yes | |
81ecdfbb | 7726 | fi |
1927a18f L |
7727 | |
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | ||
7734 | ||
7735 | ||
81ecdfbb RW |
7736 | |
7737 | # Check whether --with-pic was given. | |
7738 | if test "${with_pic+set}" = set; then : | |
7739 | withval=$with_pic; pic_mode="$withval" | |
1927a18f L |
7740 | else |
7741 | pic_mode=default | |
81ecdfbb RW |
7742 | fi |
7743 | ||
1927a18f L |
7744 | |
7745 | test -z "$pic_mode" && pic_mode=default | |
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
81ecdfbb RW |
7753 | # Check whether --enable-fast-install was given. |
7754 | if test "${enable_fast_install+set}" = set; then : | |
7755 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
1927a18f L |
7756 | case $enableval in |
7757 | yes) enable_fast_install=yes ;; | |
7758 | no) enable_fast_install=no ;; | |
7759 | *) | |
7760 | enable_fast_install=no | |
7761 | # Look at the argument we got. We use all the common list separators. | |
7762 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7763 | for pkg in $enableval; do | |
7764 | IFS="$lt_save_ifs" | |
7765 | if test "X$pkg" = "X$p"; then | |
7766 | enable_fast_install=yes | |
7767 | fi | |
7768 | done | |
7769 | IFS="$lt_save_ifs" | |
7770 | ;; | |
7771 | esac | |
7772 | else | |
7773 | enable_fast_install=yes | |
81ecdfbb RW |
7774 | fi |
7775 | ||
1927a18f L |
7776 | |
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
dabbade6 L |
7786 | # This can be used to rebuild libtool when needed |
7787 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7788 | |
dabbade6 L |
7789 | # Always use our own libtool. |
7790 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7791 | |
d7040cdb | 7792 | |
d7040cdb | 7793 | |
d7040cdb SE |
7794 | |
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
d7040cdb | 7800 | |
d7040cdb | 7801 | |
d7040cdb | 7802 | |
d7040cdb SE |
7803 | |
7804 | ||
7805 | ||
7806 | ||
7807 | ||
7808 | ||
d7040cdb | 7809 | |
d7040cdb | 7810 | |
d7040cdb SE |
7811 | |
7812 | ||
7813 | ||
3725885a | 7814 | |
d7040cdb SE |
7815 | |
7816 | ||
dabbade6 | 7817 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7818 | |
7819 | ||
d7040cdb | 7820 | |
d7040cdb | 7821 | |
d7040cdb SE |
7822 | |
7823 | ||
7824 | ||
7825 | ||
7826 | ||
7827 | ||
dabbade6 L |
7828 | |
7829 | ||
7830 | ||
7831 | ||
7832 | if test -n "${ZSH_VERSION+set}" ; then | |
7833 | setopt NO_GLOB_SUBST | |
7834 | fi | |
7835 | ||
81ecdfbb RW |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7837 | $as_echo_n "checking for objdir... " >&6; } | |
7838 | if test "${lt_cv_objdir+set}" = set; then : | |
7839 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 7840 | else |
dabbade6 L |
7841 | rm -f .libs 2>/dev/null |
7842 | mkdir .libs 2>/dev/null | |
7843 | if test -d .libs; then | |
7844 | lt_cv_objdir=.libs | |
7845 | else | |
7846 | # MS-DOS does not allow filenames that begin with a dot. | |
7847 | lt_cv_objdir=_libs | |
d7040cdb | 7848 | fi |
dabbade6 L |
7849 | rmdir .libs 2>/dev/null |
7850 | fi | |
81ecdfbb RW |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7852 | $as_echo "$lt_cv_objdir" >&6; } | |
dabbade6 | 7853 | objdir=$lt_cv_objdir |
d7040cdb SE |
7854 | |
7855 | ||
7856 | ||
7857 | ||
d7040cdb | 7858 | |
dabbade6 L |
7859 | cat >>confdefs.h <<_ACEOF |
7860 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7861 | _ACEOF | |
d7040cdb SE |
7862 | |
7863 | ||
7864 | ||
7865 | ||
dabbade6 L |
7866 | case $host_os in |
7867 | aix3*) | |
7868 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7869 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7870 | # vanish in a puff of smoke. | |
7871 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7872 | COLLECT_NAMES= | |
7873 | export COLLECT_NAMES | |
7874 | fi | |
7875 | ;; | |
7876 | esac | |
d7040cdb | 7877 | |
dabbade6 L |
7878 | # Global variables: |
7879 | ofile=libtool | |
7880 | can_build_shared=yes | |
d7040cdb | 7881 | |
dabbade6 L |
7882 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7883 | # which needs '.lib'). | |
7884 | libext=a | |
d7040cdb | 7885 | |
dabbade6 | 7886 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7887 | |
dabbade6 L |
7888 | old_CC="$CC" |
7889 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7890 | |
dabbade6 L |
7891 | # Set sane defaults for various variables |
7892 | test -z "$CC" && CC=cc | |
7893 | test -z "$LTCC" && LTCC=$CC | |
7894 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7895 | test -z "$LD" && LD=ld | |
7896 | test -z "$ac_objext" && ac_objext=o | |
7897 | ||
7898 | for cc_temp in $compiler""; do | |
7899 | case $cc_temp in | |
7900 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7901 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7902 | \-*) ;; | |
7903 | *) break;; | |
7904 | esac | |
7905 | done | |
3725885a | 7906 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
dabbade6 L |
7907 | |
7908 | ||
7909 | # Only perform the check for file, if the check method requires it | |
7910 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7911 | case $deplibs_check_method in | |
7912 | file_magic*) | |
7913 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7915 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7916 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7917 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
7918 | else |
7919 | case $MAGIC_CMD in | |
7920 | [\\/*] | ?:[\\/]*) | |
7921 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7922 | ;; | |
7923 | *) | |
7924 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7925 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7926 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7927 | for ac_dir in $ac_dummy; do | |
7928 | IFS="$lt_save_ifs" | |
7929 | test -z "$ac_dir" && ac_dir=. | |
7930 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7931 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7932 | if test -n "$file_magic_test_file"; then | |
7933 | case $deplibs_check_method in | |
7934 | "file_magic "*) | |
7935 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7936 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7937 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7938 | $EGREP "$file_magic_regex" > /dev/null; then | |
7939 | : | |
d7040cdb | 7940 | else |
dabbade6 | 7941 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7942 | |
dabbade6 L |
7943 | *** Warning: the command libtool uses to detect shared libraries, |
7944 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7945 | *** The result is that libtool may fail to recognize shared libraries | |
7946 | *** as such. This will affect the creation of libtool libraries that | |
7947 | *** depend on shared libraries, but programs linked with such libtool | |
7948 | *** libraries will work regardless of this problem. Nevertheless, you | |
7949 | *** may want to report the problem to your system manager and/or to | |
7950 | *** bug-libtool@gnu.org | |
d7040cdb | 7951 | |
dabbade6 L |
7952 | _LT_EOF |
7953 | fi ;; | |
7954 | esac | |
d7040cdb | 7955 | fi |
dabbade6 | 7956 | break |
d7040cdb | 7957 | fi |
dabbade6 L |
7958 | done |
7959 | IFS="$lt_save_ifs" | |
7960 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7961 | ;; | |
7962 | esac | |
7963 | fi | |
d7040cdb | 7964 | |
dabbade6 L |
7965 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7966 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7968 | $as_echo "$MAGIC_CMD" >&6; } | |
dabbade6 | 7969 | else |
81ecdfbb RW |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7971 | $as_echo "no" >&6; } | |
dabbade6 | 7972 | fi |
d7040cdb | 7973 | |
d7040cdb | 7974 | |
d7040cdb | 7975 | |
d7040cdb | 7976 | |
d7040cdb | 7977 | |
dabbade6 L |
7978 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7979 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7981 | $as_echo_n "checking for file... " >&6; } | |
7982 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7983 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
7984 | else |
7985 | case $MAGIC_CMD in | |
7986 | [\\/*] | ?:[\\/]*) | |
7987 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7988 | ;; | |
7989 | *) | |
7990 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7991 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7992 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7993 | for ac_dir in $ac_dummy; do | |
7994 | IFS="$lt_save_ifs" | |
7995 | test -z "$ac_dir" && ac_dir=. | |
7996 | if test -f $ac_dir/file; then | |
7997 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7998 | if test -n "$file_magic_test_file"; then | |
7999 | case $deplibs_check_method in | |
8000 | "file_magic "*) | |
8001 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8002 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8003 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8004 | $EGREP "$file_magic_regex" > /dev/null; then | |
8005 | : | |
d7040cdb | 8006 | else |
dabbade6 | 8007 | cat <<_LT_EOF 1>&2 |
d7040cdb | 8008 | |
dabbade6 L |
8009 | *** Warning: the command libtool uses to detect shared libraries, |
8010 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8011 | *** The result is that libtool may fail to recognize shared libraries | |
8012 | *** as such. This will affect the creation of libtool libraries that | |
8013 | *** depend on shared libraries, but programs linked with such libtool | |
8014 | *** libraries will work regardless of this problem. Nevertheless, you | |
8015 | *** may want to report the problem to your system manager and/or to | |
8016 | *** bug-libtool@gnu.org | |
d7040cdb | 8017 | |
dabbade6 L |
8018 | _LT_EOF |
8019 | fi ;; | |
8020 | esac | |
8021 | fi | |
8022 | break | |
8023 | fi | |
8024 | done | |
8025 | IFS="$lt_save_ifs" | |
8026 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8027 | ;; | |
8028 | esac | |
d7040cdb | 8029 | fi |
dabbade6 L |
8030 | |
8031 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8032 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8034 | $as_echo "$MAGIC_CMD" >&6; } | |
d7040cdb | 8035 | else |
81ecdfbb RW |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8037 | $as_echo "no" >&6; } | |
dabbade6 L |
8038 | fi |
8039 | ||
d7040cdb | 8040 | |
dabbade6 L |
8041 | else |
8042 | MAGIC_CMD=: | |
8043 | fi | |
d7040cdb | 8044 | fi |
d7040cdb | 8045 | |
dabbade6 L |
8046 | fi |
8047 | ;; | |
8048 | esac | |
d7040cdb | 8049 | |
dabbade6 | 8050 | # Use C for the default configuration in the libtool script |
d7040cdb | 8051 | |
dabbade6 L |
8052 | lt_save_CC="$CC" |
8053 | ac_ext=c | |
8054 | ac_cpp='$CPP $CPPFLAGS' | |
8055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8058 | |
d7040cdb | 8059 | |
dabbade6 L |
8060 | # Source file extension for C test sources. |
8061 | ac_ext=c | |
d7040cdb | 8062 | |
dabbade6 L |
8063 | # Object file extension for compiled C test sources. |
8064 | objext=o | |
8065 | objext=$objext | |
8066 | ||
8067 | # Code to be used in simple compile tests | |
8068 | lt_simple_compile_test_code="int some_variable = 0;" | |
8069 | ||
8070 | # Code to be used in simple link tests | |
8071 | lt_simple_link_test_code='int main(){return(0);}' | |
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | # If no C compiler was specified, use CC. | |
8080 | LTCC=${LTCC-"$CC"} | |
8081 | ||
8082 | # If no C compiler flags were specified, use CFLAGS. | |
8083 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8084 | ||
8085 | # Allow CC to be a program name with arguments. | |
8086 | compiler=$CC | |
8087 | ||
8088 | # Save the default compiler, since it gets overwritten when the other | |
8089 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8090 | compiler_DEFAULT=$CC | |
8091 | ||
8092 | # save warnings/boilerplate of simple test code | |
8093 | ac_outfile=conftest.$ac_objext | |
8094 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8095 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8096 | _lt_compiler_boilerplate=`cat conftest.err` | |
8097 | $RM conftest* | |
8098 | ||
8099 | ac_outfile=conftest.$ac_objext | |
8100 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8101 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8102 | _lt_linker_boilerplate=`cat conftest.err` | |
1927a18f | 8103 | $RM -r conftest* |
dabbade6 L |
8104 | |
8105 | ||
8106 | ## CAVEAT EMPTOR: | |
8107 | ## There is no encapsulation within the following macros, do not change | |
8108 | ## the running order or otherwise move them around unless you know exactly | |
8109 | ## what you are doing... | |
8110 | if test -n "$compiler"; then | |
8111 | ||
8112 | lt_prog_compiler_no_builtin_flag= | |
8113 | ||
8114 | if test "$GCC" = yes; then | |
3725885a RW |
8115 | case $cc_basename in |
8116 | nvcc*) | |
8117 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8118 | *) | |
8119 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8120 | esac | |
dabbade6 | 8121 | |
81ecdfbb RW |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8123 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8124 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8125 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8126 | else |
8127 | lt_cv_prog_compiler_rtti_exceptions=no | |
8128 | ac_outfile=conftest.$ac_objext | |
8129 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8130 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8131 | # Insert the option either (1) after the last *FLAGS variable, or | |
8132 | # (2) before a word containing "conftest.", or (3) at the end. | |
8133 | # Note that $ac_compile itself does not contain backslashes and begins | |
8134 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8135 | # The option is referenced via a variable to avoid confusing sed. | |
8136 | lt_compile=`echo "$ac_compile" | $SED \ | |
8137 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8138 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8139 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8140 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8141 | (eval "$lt_compile" 2>conftest.err) |
8142 | ac_status=$? | |
8143 | cat conftest.err >&5 | |
3725885a | 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8145 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8146 | # The compiler can only warn and ignore the option if not recognized | |
8147 | # So say no if there are warnings other than the usual output. | |
3725885a | 8148 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
dabbade6 L |
8149 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8150 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8151 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8152 | fi | |
8153 | fi | |
8154 | $RM conftest* | |
8155 | ||
8156 | fi | |
81ecdfbb RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8158 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
dabbade6 L |
8159 | |
8160 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8161 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8162 | else | |
8163 | : | |
8164 | fi | |
8165 | ||
8166 | fi | |
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | ||
8172 | ||
8173 | lt_prog_compiler_wl= | |
8174 | lt_prog_compiler_pic= | |
8175 | lt_prog_compiler_static= | |
8176 | ||
81ecdfbb RW |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8178 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
dabbade6 L |
8179 | |
8180 | if test "$GCC" = yes; then | |
8181 | lt_prog_compiler_wl='-Wl,' | |
8182 | lt_prog_compiler_static='-static' | |
8183 | ||
8184 | case $host_os in | |
8185 | aix*) | |
8186 | # All AIX code is PIC. | |
8187 | if test "$host_cpu" = ia64; then | |
8188 | # AIX 5 now supports IA64 processor | |
8189 | lt_prog_compiler_static='-Bstatic' | |
8190 | fi | |
8191 | ;; | |
d7040cdb SE |
8192 | |
8193 | amigaos*) | |
1927a18f L |
8194 | case $host_cpu in |
8195 | powerpc) | |
8196 | # see comment about AmigaOS4 .so support | |
8197 | lt_prog_compiler_pic='-fPIC' | |
8198 | ;; | |
8199 | m68k) | |
8200 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8201 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8202 | # like `-m68040'. | |
8203 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8204 | ;; | |
8205 | esac | |
d7040cdb SE |
8206 | ;; |
8207 | ||
dabbade6 L |
8208 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8209 | # PIC is the default for these OSes. | |
d7040cdb SE |
8210 | ;; |
8211 | ||
1927a18f | 8212 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
8213 | # This hack is so that the source file can tell whether it is being |
8214 | # built for inclusion in a dll (and should export symbols for example). | |
8215 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8216 | # (--disable-auto-import) libraries | |
8217 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8218 | ;; |
8219 | ||
8220 | darwin* | rhapsody*) | |
dabbade6 L |
8221 | # PIC is the default on this platform |
8222 | # Common symbols not allowed in MH_DYLIB files | |
8223 | lt_prog_compiler_pic='-fno-common' | |
8224 | ;; | |
8225 | ||
3725885a RW |
8226 | haiku*) |
8227 | # PIC is the default for Haiku. | |
8228 | # The "-static" flag exists, but is broken. | |
8229 | lt_prog_compiler_static= | |
8230 | ;; | |
8231 | ||
dabbade6 | 8232 | hpux*) |
1927a18f L |
8233 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8234 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8235 | # sets the default TLS model and affects inlining. | |
dabbade6 | 8236 | case $host_cpu in |
1927a18f | 8237 | hppa*64*) |
dabbade6 | 8238 | # +Z the default |
d7040cdb | 8239 | ;; |
dabbade6 L |
8240 | *) |
8241 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8242 | ;; |
8243 | esac | |
dabbade6 | 8244 | ;; |
d7040cdb | 8245 | |
dabbade6 L |
8246 | interix[3-9]*) |
8247 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8248 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8249 | ;; |
8250 | ||
dabbade6 L |
8251 | msdosdjgpp*) |
8252 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8253 | # on systems that don't support them. | |
8254 | lt_prog_compiler_can_build_shared=no | |
8255 | enable_shared=no | |
d7040cdb SE |
8256 | ;; |
8257 | ||
dabbade6 L |
8258 | *nto* | *qnx*) |
8259 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8260 | # it will coredump. | |
8261 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8262 | ;; |
8263 | ||
dabbade6 L |
8264 | sysv4*MP*) |
8265 | if test -d /usr/nec; then | |
8266 | lt_prog_compiler_pic=-Kconform_pic | |
8267 | fi | |
d7040cdb SE |
8268 | ;; |
8269 | ||
dabbade6 L |
8270 | *) |
8271 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8272 | ;; |
dabbade6 | 8273 | esac |
3725885a RW |
8274 | |
8275 | case $cc_basename in | |
8276 | nvcc*) # Cuda Compiler Driver 2.2 | |
8277 | lt_prog_compiler_wl='-Xlinker ' | |
8278 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8279 | ;; | |
8280 | esac | |
dabbade6 L |
8281 | else |
8282 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8283 | case $host_os in | |
8284 | aix*) | |
8285 | lt_prog_compiler_wl='-Wl,' | |
8286 | if test "$host_cpu" = ia64; then | |
8287 | # AIX 5 now supports IA64 processor | |
8288 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8289 | else |
dabbade6 | 8290 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8291 | fi |
dabbade6 | 8292 | ;; |
d7040cdb | 8293 | |
1927a18f | 8294 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
8295 | # This hack is so that the source file can tell whether it is being |
8296 | # built for inclusion in a dll (and should export symbols for example). | |
8297 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8298 | ;; |
8299 | ||
dabbade6 L |
8300 | hpux9* | hpux10* | hpux11*) |
8301 | lt_prog_compiler_wl='-Wl,' | |
8302 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8303 | # not for PA HP-UX. | |
8304 | case $host_cpu in | |
8305 | hppa*64*|ia64*) | |
8306 | # +Z the default | |
8307 | ;; | |
8308 | *) | |
8309 | lt_prog_compiler_pic='+Z' | |
8310 | ;; | |
8311 | esac | |
8312 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8313 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8314 | ;; |
8315 | ||
dabbade6 L |
8316 | irix5* | irix6* | nonstopux*) |
8317 | lt_prog_compiler_wl='-Wl,' | |
8318 | # PIC (with -KPIC) is the default. | |
8319 | lt_prog_compiler_static='-non_shared' | |
8320 | ;; | |
d7040cdb | 8321 | |
58e24671 | 8322 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 | 8323 | case $cc_basename in |
1927a18f L |
8324 | # old Intel for x86_64 which still supported -KPIC. |
8325 | ecc*) | |
dabbade6 L |
8326 | lt_prog_compiler_wl='-Wl,' |
8327 | lt_prog_compiler_pic='-KPIC' | |
8328 | lt_prog_compiler_static='-static' | |
8329 | ;; | |
1927a18f L |
8330 | # icc used to be incompatible with GCC. |
8331 | # ICC 10 doesn't accept -KPIC any more. | |
8332 | icc* | ifort*) | |
8333 | lt_prog_compiler_wl='-Wl,' | |
8334 | lt_prog_compiler_pic='-fPIC' | |
8335 | lt_prog_compiler_static='-static' | |
8336 | ;; | |
8337 | # Lahey Fortran 8.1. | |
8338 | lf95*) | |
8339 | lt_prog_compiler_wl='-Wl,' | |
8340 | lt_prog_compiler_pic='--shared' | |
8341 | lt_prog_compiler_static='--static' | |
8342 | ;; | |
3725885a | 8343 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
dabbade6 L |
8344 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8345 | # which looks to be a dead project) | |
8346 | lt_prog_compiler_wl='-Wl,' | |
8347 | lt_prog_compiler_pic='-fpic' | |
8348 | lt_prog_compiler_static='-Bstatic' | |
8349 | ;; | |
8350 | ccc*) | |
8351 | lt_prog_compiler_wl='-Wl,' | |
8352 | # All Alpha code is PIC. | |
8353 | lt_prog_compiler_static='-non_shared' | |
8354 | ;; | |
3725885a RW |
8355 | xl* | bgxl* | bgf* | mpixl*) |
8356 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
1927a18f L |
8357 | lt_prog_compiler_wl='-Wl,' |
8358 | lt_prog_compiler_pic='-qpic' | |
8359 | lt_prog_compiler_static='-qstaticlink' | |
8360 | ;; | |
dabbade6 L |
8361 | *) |
8362 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8363 | *Sun\ F* | *Sun*Fortran*) |
8364 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
dabbade6 L |
8365 | lt_prog_compiler_pic='-KPIC' |
8366 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8367 | lt_prog_compiler_wl='' |
d7040cdb | 8368 | ;; |
3725885a RW |
8369 | *Sun\ C*) |
8370 | # Sun C 5.9 | |
dabbade6 L |
8371 | lt_prog_compiler_pic='-KPIC' |
8372 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8373 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8374 | ;; |
8375 | esac | |
dabbade6 L |
8376 | ;; |
8377 | esac | |
d7040cdb SE |
8378 | ;; |
8379 | ||
dabbade6 L |
8380 | newsos6) |
8381 | lt_prog_compiler_pic='-KPIC' | |
8382 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8383 | ;; |
8384 | ||
dabbade6 L |
8385 | *nto* | *qnx*) |
8386 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8387 | # it will coredump. | |
8388 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8389 | ;; |
8390 | ||
dabbade6 L |
8391 | osf3* | osf4* | osf5*) |
8392 | lt_prog_compiler_wl='-Wl,' | |
8393 | # All OSF/1 code is PIC. | |
8394 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8395 | ;; |
8396 | ||
dabbade6 L |
8397 | rdos*) |
8398 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8399 | ;; |
8400 | ||
8401 | solaris*) | |
dabbade6 L |
8402 | lt_prog_compiler_pic='-KPIC' |
8403 | lt_prog_compiler_static='-Bstatic' | |
8404 | case $cc_basename in | |
8405 | f77* | f90* | f95*) | |
8406 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8407 | *) |
dabbade6 | 8408 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8409 | esac |
d7040cdb SE |
8410 | ;; |
8411 | ||
8412 | sunos4*) | |
dabbade6 L |
8413 | lt_prog_compiler_wl='-Qoption ld ' |
8414 | lt_prog_compiler_pic='-PIC' | |
8415 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8416 | ;; |
8417 | ||
dabbade6 L |
8418 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8419 | lt_prog_compiler_wl='-Wl,' | |
8420 | lt_prog_compiler_pic='-KPIC' | |
8421 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8422 | ;; |
8423 | ||
8424 | sysv4*MP*) | |
dabbade6 L |
8425 | if test -d /usr/nec ;then |
8426 | lt_prog_compiler_pic='-Kconform_pic' | |
8427 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8428 | fi |
8429 | ;; | |
8430 | ||
dabbade6 L |
8431 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8432 | lt_prog_compiler_wl='-Wl,' | |
8433 | lt_prog_compiler_pic='-KPIC' | |
8434 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8435 | ;; |
8436 | ||
dabbade6 L |
8437 | unicos*) |
8438 | lt_prog_compiler_wl='-Wl,' | |
8439 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8440 | ;; |
8441 | ||
8442 | uts4*) | |
dabbade6 L |
8443 | lt_prog_compiler_pic='-pic' |
8444 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8445 | ;; |
8446 | ||
8447 | *) | |
dabbade6 | 8448 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8449 | ;; |
8450 | esac | |
d7040cdb SE |
8451 | fi |
8452 | ||
dabbade6 L |
8453 | case $host_os in |
8454 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8455 | *djgpp*) | |
8456 | lt_prog_compiler_pic= | |
8457 | ;; | |
8458 | *) | |
8459 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8460 | ;; | |
8461 | esac | |
81ecdfbb RW |
8462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8463 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8464 | |
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | # | |
dabbade6 | 8471 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8472 | # |
dabbade6 | 8473 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8475 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8476 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8477 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 8478 | else |
1927a18f | 8479 | lt_cv_prog_compiler_pic_works=no |
dabbade6 L |
8480 | ac_outfile=conftest.$ac_objext |
8481 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8482 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8483 | # Insert the option either (1) after the last *FLAGS variable, or | |
8484 | # (2) before a word containing "conftest.", or (3) at the end. | |
8485 | # Note that $ac_compile itself does not contain backslashes and begins | |
8486 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8487 | # The option is referenced via a variable to avoid confusing sed. | |
8488 | lt_compile=`echo "$ac_compile" | $SED \ | |
8489 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8490 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8491 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8492 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8493 | (eval "$lt_compile" 2>conftest.err) |
8494 | ac_status=$? | |
8495 | cat conftest.err >&5 | |
3725885a | 8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8497 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8498 | # The compiler can only warn and ignore the option if not recognized | |
8499 | # So say no if there are warnings other than the usual output. | |
3725885a | 8500 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
dabbade6 L |
8501 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8502 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8503 | lt_cv_prog_compiler_pic_works=yes |
dabbade6 L |
8504 | fi |
8505 | fi | |
8506 | $RM conftest* | |
d7040cdb | 8507 | |
dabbade6 | 8508 | fi |
81ecdfbb RW |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8510 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8511 | |
1927a18f | 8512 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
dabbade6 L |
8513 | case $lt_prog_compiler_pic in |
8514 | "" | " "*) ;; | |
8515 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8516 | esac | |
8517 | else | |
8518 | lt_prog_compiler_pic= | |
8519 | lt_prog_compiler_can_build_shared=no | |
8520 | fi | |
d7040cdb | 8521 | |
dabbade6 | 8522 | fi |
d7040cdb SE |
8523 | |
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
dabbade6 L |
8529 | # |
8530 | # Check to make sure the static flag actually works. | |
8531 | # | |
8532 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8534 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8535 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8536 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 8537 | else |
1927a18f | 8538 | lt_cv_prog_compiler_static_works=no |
dabbade6 L |
8539 | save_LDFLAGS="$LDFLAGS" |
8540 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8541 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8542 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8543 | # The linker can only warn and ignore the option if not recognized | |
8544 | # So say no if there are warnings | |
8545 | if test -s conftest.err; then | |
8546 | # Append any errors to the config.log. | |
8547 | cat conftest.err 1>&5 | |
3725885a | 8548 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
dabbade6 L |
8549 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8550 | if diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8551 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8552 | fi |
8553 | else | |
1927a18f | 8554 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8555 | fi |
8556 | fi | |
1927a18f | 8557 | $RM -r conftest* |
dabbade6 | 8558 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8559 | |
dabbade6 | 8560 | fi |
81ecdfbb RW |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8562 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8563 | |
1927a18f | 8564 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
dabbade6 L |
8565 | : |
8566 | else | |
8567 | lt_prog_compiler_static= | |
8568 | fi | |
d7040cdb SE |
8569 | |
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
81ecdfbb RW |
8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8577 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8578 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8579 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8580 | else |
8581 | lt_cv_prog_compiler_c_o=no | |
8582 | $RM -r conftest 2>/dev/null | |
8583 | mkdir conftest | |
8584 | cd conftest | |
8585 | mkdir out | |
8586 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8587 | |
dabbade6 L |
8588 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8589 | # Insert the option either (1) after the last *FLAGS variable, or | |
8590 | # (2) before a word containing "conftest.", or (3) at the end. | |
8591 | # Note that $ac_compile itself does not contain backslashes and begins | |
8592 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
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:'` | |
3725885a | 8597 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8598 | (eval "$lt_compile" 2>out/conftest.err) |
8599 | ac_status=$? | |
8600 | cat out/conftest.err >&5 | |
3725885a | 8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8602 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8603 | then | |
8604 | # The compiler can only warn and ignore the option if not recognized | |
8605 | # So say no if there are warnings | |
3725885a | 8606 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
dabbade6 L |
8607 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8608 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8609 | lt_cv_prog_compiler_c_o=yes | |
8610 | fi | |
8611 | fi | |
8612 | chmod u+w . 2>&5 | |
8613 | $RM conftest* | |
8614 | # SGI C++ compiler will create directory out/ii_files/ for | |
8615 | # template instantiation | |
8616 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8617 | $RM out/* && rmdir out | |
8618 | cd .. | |
8619 | $RM -r conftest | |
8620 | $RM conftest* | |
d7040cdb | 8621 | |
dabbade6 | 8622 | fi |
81ecdfbb RW |
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8624 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8625 | |
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
81ecdfbb RW |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8632 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8633 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8634 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8635 | else |
8636 | lt_cv_prog_compiler_c_o=no | |
8637 | $RM -r conftest 2>/dev/null | |
8638 | mkdir conftest | |
8639 | cd conftest | |
8640 | mkdir out | |
8641 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8642 | |
dabbade6 L |
8643 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8644 | # Insert the option either (1) after the last *FLAGS variable, or | |
8645 | # (2) before a word containing "conftest.", or (3) at the end. | |
8646 | # Note that $ac_compile itself does not contain backslashes and begins | |
8647 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8648 | lt_compile=`echo "$ac_compile" | $SED \ | |
8649 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8650 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8651 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8652 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8653 | (eval "$lt_compile" 2>out/conftest.err) |
8654 | ac_status=$? | |
8655 | cat out/conftest.err >&5 | |
3725885a | 8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8657 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8658 | then | |
8659 | # The compiler can only warn and ignore the option if not recognized | |
8660 | # So say no if there are warnings | |
3725885a | 8661 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
dabbade6 L |
8662 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8663 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8664 | lt_cv_prog_compiler_c_o=yes | |
8665 | fi | |
8666 | fi | |
8667 | chmod u+w . 2>&5 | |
8668 | $RM conftest* | |
8669 | # SGI C++ compiler will create directory out/ii_files/ for | |
8670 | # template instantiation | |
8671 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8672 | $RM out/* && rmdir out | |
8673 | cd .. | |
8674 | $RM -r conftest | |
8675 | $RM conftest* | |
d7040cdb | 8676 | |
dabbade6 | 8677 | fi |
81ecdfbb RW |
8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8679 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8680 | |
8681 | ||
8682 | ||
8683 | ||
dabbade6 L |
8684 | hard_links="nottested" |
8685 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8686 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8688 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
dabbade6 L |
8689 | hard_links=yes |
8690 | $RM conftest* | |
8691 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8692 | touch conftest.a | |
8693 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8694 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8696 | $as_echo "$hard_links" >&6; } | |
dabbade6 | 8697 | if test "$hard_links" = no; then |
81ecdfbb RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8699 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
dabbade6 L |
8700 | need_locks=warn |
8701 | fi | |
8702 | else | |
8703 | need_locks=no | |
8704 | fi | |
d7040cdb SE |
8705 | |
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
81ecdfbb RW |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8712 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8713 | |
dabbade6 L |
8714 | runpath_var= |
8715 | allow_undefined_flag= | |
8716 | always_export_symbols=no | |
8717 | archive_cmds= | |
8718 | archive_expsym_cmds= | |
8719 | compiler_needs_object=no | |
8720 | enable_shared_with_static_runtimes=no | |
8721 | export_dynamic_flag_spec= | |
8722 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8723 | hardcode_automatic=no | |
8724 | hardcode_direct=no | |
8725 | hardcode_direct_absolute=no | |
8726 | hardcode_libdir_flag_spec= | |
8727 | hardcode_libdir_flag_spec_ld= | |
8728 | hardcode_libdir_separator= | |
8729 | hardcode_minus_L=no | |
8730 | hardcode_shlibpath_var=unsupported | |
8731 | inherit_rpath=no | |
8732 | link_all_deplibs=unknown | |
8733 | module_cmds= | |
8734 | module_expsym_cmds= | |
8735 | old_archive_from_new_cmds= | |
8736 | old_archive_from_expsyms_cmds= | |
8737 | thread_safe_flag_spec= | |
8738 | whole_archive_flag_spec= | |
8739 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8740 | # included in the symbol list | |
8741 | include_expsyms= | |
8742 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8743 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8744 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8745 | # as well as any symbol that contains `d'. | |
1927a18f | 8746 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
dabbade6 L |
8747 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8748 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8749 | # the symbol is explicitly referenced. Since portable code cannot | |
8750 | # rely on this symbol name, it's probably fine to never include it in | |
8751 | # preloaded symbol tables. | |
1927a18f | 8752 | # Exclude shared library initialization/finalization symbols. |
dabbade6 | 8753 | extract_expsyms_cmds= |
d7040cdb | 8754 | |
dabbade6 | 8755 | case $host_os in |
1927a18f | 8756 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8757 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8758 | # When not using gcc, we currently assume that we are using | |
8759 | # Microsoft Visual C++. | |
8760 | if test "$GCC" != yes; then | |
8761 | with_gnu_ld=no | |
8762 | fi | |
8763 | ;; | |
8764 | interix*) | |
8765 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8766 | with_gnu_ld=yes | |
8767 | ;; | |
8768 | openbsd*) | |
8769 | with_gnu_ld=no | |
8770 | ;; | |
8771 | esac | |
d7040cdb | 8772 | |
dabbade6 | 8773 | ld_shlibs=yes |
3725885a RW |
8774 | |
8775 | # On some targets, GNU ld is compatible enough with the native linker | |
8776 | # that we're better off using the native interface for both. | |
8777 | lt_use_gnu_ld_interface=no | |
dabbade6 | 8778 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8779 | case $host_os in |
8780 | aix*) | |
8781 | # The AIX port of GNU ld has always aspired to compatibility | |
8782 | # with the native linker. However, as the warning in the GNU ld | |
8783 | # block says, versions before 2.19.5* couldn't really create working | |
8784 | # shared libraries, regardless of the interface used. | |
8785 | case `$LD -v 2>&1` in | |
8786 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8787 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8788 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8789 | *) | |
8790 | lt_use_gnu_ld_interface=yes | |
8791 | ;; | |
8792 | esac | |
8793 | ;; | |
8794 | *) | |
8795 | lt_use_gnu_ld_interface=yes | |
8796 | ;; | |
8797 | esac | |
8798 | fi | |
8799 | ||
8800 | if test "$lt_use_gnu_ld_interface" = yes; then | |
dabbade6 L |
8801 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8802 | wlarc='${wl}' | |
d7040cdb | 8803 | |
dabbade6 L |
8804 | # Set some defaults for GNU ld with shared library support. These |
8805 | # are reset later if shared libraries are not supported. Putting them | |
8806 | # here allows them to be overridden if necessary. | |
8807 | runpath_var=LD_RUN_PATH | |
8808 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8809 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8810 | # ancient GNU ld didn't support --whole-archive et. al. | |
8811 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8812 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8813 | else | |
8814 | whole_archive_flag_spec= | |
8815 | fi | |
8816 | supports_anon_versioning=no | |
8817 | case `$LD -v 2>&1` in | |
3725885a | 8818 | *GNU\ gold*) supports_anon_versioning=yes ;; |
dabbade6 L |
8819 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8820 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8821 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8822 | *\ 2.11.*) ;; # other 2.11 versions | |
8823 | *) supports_anon_versioning=yes ;; | |
8824 | esac | |
d7040cdb | 8825 | |
dabbade6 L |
8826 | # See if GNU ld supports shared libraries. |
8827 | case $host_os in | |
50e7d84b | 8828 | aix[3-9]*) |
dabbade6 L |
8829 | # On AIX/PPC, the GNU linker is very broken |
8830 | if test "$host_cpu" != ia64; then | |
8831 | ld_shlibs=no | |
8832 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8833 | |
3725885a | 8834 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
dabbade6 L |
8835 | *** to be unable to reliably create shared libraries on AIX. |
8836 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8837 | *** really care for shared libraries, you may want to install binutils |
8838 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8839 | *** You will then need to restart the configuration process. | |
d7040cdb | 8840 | |
dabbade6 L |
8841 | _LT_EOF |
8842 | fi | |
8843 | ;; | |
d7040cdb | 8844 | |
dabbade6 | 8845 | amigaos*) |
1927a18f L |
8846 | case $host_cpu in |
8847 | powerpc) | |
8848 | # see comment about AmigaOS4 .so support | |
8849 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8850 | archive_expsym_cmds='' | |
8851 | ;; | |
8852 | m68k) | |
8853 | 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)' | |
8854 | hardcode_libdir_flag_spec='-L$libdir' | |
8855 | hardcode_minus_L=yes | |
8856 | ;; | |
8857 | esac | |
dabbade6 | 8858 | ;; |
d7040cdb | 8859 | |
dabbade6 L |
8860 | beos*) |
8861 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8862 | allow_undefined_flag=unsupported | |
8863 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8864 | # support --undefined. This deserves some investigation. FIXME | |
8865 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8866 | else | |
8867 | ld_shlibs=no | |
8868 | fi | |
8869 | ;; | |
d7040cdb | 8870 | |
1927a18f | 8871 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8872 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8873 | # as there is no search path for DLLs. | |
8874 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8875 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
dabbade6 L |
8876 | allow_undefined_flag=unsupported |
8877 | always_export_symbols=no | |
8878 | enable_shared_with_static_runtimes=yes | |
8879 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8880 | |
dabbade6 L |
8881 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8882 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8883 | # If the export-symbols file already is a .def file (1st line | |
8884 | # is EXPORTS), use it as is; otherwise, prepend... | |
8885 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8886 | cp $export_symbols $output_objdir/$soname.def; | |
8887 | else | |
8888 | echo EXPORTS > $output_objdir/$soname.def; | |
8889 | cat $export_symbols >> $output_objdir/$soname.def; | |
8890 | fi~ | |
8891 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8892 | else | |
8893 | ld_shlibs=no | |
8894 | fi | |
8895 | ;; | |
d7040cdb | 8896 | |
3725885a RW |
8897 | haiku*) |
8898 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8899 | link_all_deplibs=yes | |
8900 | ;; | |
8901 | ||
dabbade6 L |
8902 | interix[3-9]*) |
8903 | hardcode_direct=no | |
8904 | hardcode_shlibpath_var=no | |
8905 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8906 | export_dynamic_flag_spec='${wl}-E' | |
8907 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8908 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8909 | # default) and relocated if they conflict, which is a slow very memory | |
8910 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8911 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8912 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8913 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8914 | 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' | |
8915 | ;; | |
d7040cdb | 8916 | |
58e24671 | 8917 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
8918 | tmp_diet=no |
8919 | if test "$host_os" = linux-dietlibc; then | |
8920 | case $cc_basename in | |
8921 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8922 | esac | |
8923 | fi | |
8924 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8925 | && test "$tmp_diet" = no | |
8926 | then | |
8927 | tmp_addflag= | |
1927a18f | 8928 | tmp_sharedflag='-shared' |
dabbade6 L |
8929 | case $cc_basename,$host_cpu in |
8930 | pgcc*) # Portland Group C compiler | |
3725885a | 8931 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
dabbade6 L |
8932 | tmp_addflag=' $pic_flag' |
8933 | ;; | |
3725885a RW |
8934 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8935 | # Portland Group f77 and f90 compilers | |
8936 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
dabbade6 L |
8937 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8938 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8939 | tmp_addflag=' -i_dynamic' ;; | |
8940 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8941 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8942 | ifc* | ifort*) # Intel Fortran compiler | |
8943 | tmp_addflag=' -nofor_main' ;; | |
1927a18f L |
8944 | lf95*) # Lahey Fortran 8.1 |
8945 | whole_archive_flag_spec= | |
8946 | tmp_sharedflag='--shared' ;; | |
3725885a | 8947 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
1927a18f L |
8948 | tmp_sharedflag='-qmkshrobj' |
8949 | tmp_addflag= ;; | |
3725885a RW |
8950 | nvcc*) # Cuda Compiler Driver 2.2 |
8951 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8952 | compiler_needs_object=yes | |
8953 | ;; | |
dabbade6 L |
8954 | esac |
8955 | case `$CC -V 2>&1 | sed 5q` in | |
8956 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8957 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
dabbade6 L |
8958 | compiler_needs_object=yes |
8959 | tmp_sharedflag='-G' ;; | |
8960 | *Sun\ F*) # Sun Fortran 8.3 | |
8961 | tmp_sharedflag='-G' ;; | |
dabbade6 L |
8962 | esac |
8963 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8964 | |
dabbade6 L |
8965 | if test "x$supports_anon_versioning" = xyes; then |
8966 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8967 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8968 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8969 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8970 | fi | |
1927a18f L |
8971 | |
8972 | case $cc_basename in | |
3725885a | 8973 | xlf* | bgf* | bgxlf* | mpixlf*) |
1927a18f L |
8974 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8975 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8976 | hardcode_libdir_flag_spec= | |
8977 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8978 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8979 | if test "x$supports_anon_versioning" = xyes; then | |
8980 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8981 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8982 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8983 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8984 | fi | |
8985 | ;; | |
8986 | esac | |
dabbade6 L |
8987 | else |
8988 | ld_shlibs=no | |
8989 | fi | |
8990 | ;; | |
d7040cdb | 8991 | |
dabbade6 L |
8992 | netbsd*) |
8993 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8994 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8995 | wlarc= | |
8996 | else | |
8997 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8998 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8999 | fi | |
9000 | ;; | |
d7040cdb | 9001 | |
dabbade6 L |
9002 | solaris*) |
9003 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9004 | ld_shlibs=no | |
9005 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9006 | |
dabbade6 L |
9007 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9008 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9009 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9010 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9011 | *** your PATH or compiler configuration so that the native linker is | |
9012 | *** used, and then restart. | |
d7040cdb | 9013 | |
dabbade6 L |
9014 | _LT_EOF |
9015 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9016 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9017 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9018 | else | |
9019 | ld_shlibs=no | |
9020 | fi | |
9021 | ;; | |
d7040cdb | 9022 | |
dabbade6 L |
9023 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9024 | case `$LD -v 2>&1` in | |
9025 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9026 | ld_shlibs=no | |
9027 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9028 | |
dabbade6 L |
9029 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9030 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9031 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9032 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9033 | *** your PATH or compiler configuration so that the native linker is | |
9034 | *** used, and then restart. | |
d7040cdb | 9035 | |
dabbade6 L |
9036 | _LT_EOF |
9037 | ;; | |
9038 | *) | |
9039 | # For security reasons, it is highly recommended that you always | |
9040 | # use absolute paths for naming shared libraries, and exclude the | |
9041 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9042 | # requires that you compile everything twice, which is a pain. | |
9043 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9044 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9045 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9046 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9047 | else | |
9048 | ld_shlibs=no | |
9049 | fi | |
9050 | ;; | |
9051 | esac | |
9052 | ;; | |
d7040cdb | 9053 | |
dabbade6 L |
9054 | sunos4*) |
9055 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9056 | wlarc= | |
9057 | hardcode_direct=yes | |
9058 | hardcode_shlibpath_var=no | |
9059 | ;; | |
d7040cdb | 9060 | |
dabbade6 L |
9061 | *) |
9062 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9063 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9064 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9065 | else | |
9066 | ld_shlibs=no | |
9067 | fi | |
9068 | ;; | |
9069 | esac | |
d7040cdb | 9070 | |
dabbade6 L |
9071 | if test "$ld_shlibs" = no; then |
9072 | runpath_var= | |
9073 | hardcode_libdir_flag_spec= | |
9074 | export_dynamic_flag_spec= | |
9075 | whole_archive_flag_spec= | |
9076 | fi | |
9077 | else | |
9078 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9079 | case $host_os in | |
9080 | aix3*) | |
9081 | allow_undefined_flag=unsupported | |
9082 | always_export_symbols=yes | |
9083 | 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' | |
9084 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9085 | # are no directories specified by -L. | |
9086 | hardcode_minus_L=yes | |
9087 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9088 | # Neither direct hardcoding nor static linking is supported with a | |
9089 | # broken collect2. | |
9090 | hardcode_direct=unsupported | |
9091 | fi | |
9092 | ;; | |
d7040cdb | 9093 | |
50e7d84b | 9094 | aix[4-9]*) |
dabbade6 L |
9095 | if test "$host_cpu" = ia64; then |
9096 | # On IA64, the linker does run time linking by default, so we don't | |
9097 | # have to do anything special. | |
9098 | aix_use_runtimelinking=no | |
9099 | exp_sym_flag='-Bexport' | |
9100 | no_entry_flag="" | |
9101 | else | |
9102 | # If we're using GNU nm, then we don't want the "-C" option. | |
9103 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9104 | # Also, AIX nm treats weak defined symbols like other global |
9105 | # defined symbols, whereas GNU nm marks them as "W". | |
dabbade6 | 9106 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9107 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
dabbade6 L |
9108 | else |
9109 | 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' | |
9110 | fi | |
9111 | aix_use_runtimelinking=no | |
d7040cdb | 9112 | |
dabbade6 L |
9113 | # Test if we are trying to use run time linking or normal |
9114 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9115 | # need to do runtime linking. | |
50e7d84b | 9116 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
dabbade6 L |
9117 | for ld_flag in $LDFLAGS; do |
9118 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9119 | aix_use_runtimelinking=yes | |
9120 | break | |
9121 | fi | |
9122 | done | |
9123 | ;; | |
9124 | esac | |
d7040cdb | 9125 | |
dabbade6 L |
9126 | exp_sym_flag='-bexport' |
9127 | no_entry_flag='-bnoentry' | |
9128 | fi | |
d7040cdb | 9129 | |
dabbade6 L |
9130 | # When large executables or shared objects are built, AIX ld can |
9131 | # have problems creating the table of contents. If linking a library | |
9132 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9133 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9134 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 9135 | |
dabbade6 L |
9136 | archive_cmds='' |
9137 | hardcode_direct=yes | |
9138 | hardcode_direct_absolute=yes | |
9139 | hardcode_libdir_separator=':' | |
9140 | link_all_deplibs=yes | |
9141 | file_list_spec='${wl}-f,' | |
d7040cdb | 9142 | |
dabbade6 L |
9143 | if test "$GCC" = yes; then |
9144 | case $host_os in aix4.[012]|aix4.[012].*) | |
9145 | # We only want to do this on AIX 4.2 and lower, the check | |
9146 | # below for broken collect2 doesn't work under 4.3+ | |
9147 | collect2name=`${CC} -print-prog-name=collect2` | |
9148 | if test -f "$collect2name" && | |
9149 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9150 | then | |
9151 | # We have reworked collect2 | |
9152 | : | |
9153 | else | |
9154 | # We have old collect2 | |
9155 | hardcode_direct=unsupported | |
9156 | # It fails to find uninstalled libraries when the uninstalled | |
9157 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9158 | # to unsupported forces relinking | |
9159 | hardcode_minus_L=yes | |
9160 | hardcode_libdir_flag_spec='-L$libdir' | |
9161 | hardcode_libdir_separator= | |
9162 | fi | |
9163 | ;; | |
9164 | esac | |
9165 | shared_flag='-shared' | |
9166 | if test "$aix_use_runtimelinking" = yes; then | |
9167 | shared_flag="$shared_flag "'${wl}-G' | |
9168 | fi | |
9169 | else | |
9170 | # not using gcc | |
9171 | if test "$host_cpu" = ia64; then | |
9172 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9173 | # chokes on -Wl,-G. The following line is correct: | |
9174 | shared_flag='-G' | |
9175 | else | |
9176 | if test "$aix_use_runtimelinking" = yes; then | |
9177 | shared_flag='${wl}-G' | |
9178 | else | |
9179 | shared_flag='${wl}-bM:SRE' | |
9180 | fi | |
9181 | fi | |
9182 | fi | |
d7040cdb | 9183 | |
1927a18f | 9184 | export_dynamic_flag_spec='${wl}-bexpall' |
dabbade6 L |
9185 | # It seems that -bexpall does not export symbols beginning with |
9186 | # underscore (_), so it is better to generate a list of symbols to export. | |
9187 | always_export_symbols=yes | |
9188 | if test "$aix_use_runtimelinking" = yes; then | |
9189 | # Warning - without using the other runtime loading flags (-brtl), | |
9190 | # -berok will link without error, but may produce a broken library. | |
9191 | allow_undefined_flag='-berok' | |
9192 | # Determine the default libpath from the value encoded in an | |
9193 | # empty executable. | |
81ecdfbb | 9194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 9195 | /* end confdefs.h. */ |
d7040cdb | 9196 | |
dabbade6 L |
9197 | int |
9198 | main () | |
9199 | { | |
d7040cdb | 9200 | |
dabbade6 L |
9201 | ; |
9202 | return 0; | |
9203 | } | |
9204 | _ACEOF | |
81ecdfbb | 9205 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9206 | |
dabbade6 L |
9207 | lt_aix_libpath_sed=' |
9208 | /Import File Strings/,/^$/ { | |
9209 | /^0/ { | |
9210 | s/^0 *\(.*\)$/\1/ | |
9211 | p | |
9212 | } | |
9213 | }' | |
9214 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9215 | # Check for a 64-bit object if we didn't find anything. | |
9216 | if test -z "$aix_libpath"; then | |
9217 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9218 | fi | |
dabbade6 | 9219 | fi |
81ecdfbb RW |
9220 | rm -f core conftest.err conftest.$ac_objext \ |
9221 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 9222 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9223 | |
dabbade6 | 9224 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9225 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
dabbade6 L |
9226 | else |
9227 | if test "$host_cpu" = ia64; then | |
9228 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9229 | allow_undefined_flag="-z nodefs" | |
9230 | 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" | |
9231 | else | |
9232 | # Determine the default libpath from the value encoded in an | |
9233 | # empty executable. | |
81ecdfbb | 9234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 9235 | /* end confdefs.h. */ |
d7040cdb | 9236 | |
dabbade6 L |
9237 | int |
9238 | main () | |
9239 | { | |
d7040cdb | 9240 | |
dabbade6 L |
9241 | ; |
9242 | return 0; | |
9243 | } | |
9244 | _ACEOF | |
81ecdfbb | 9245 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9246 | |
dabbade6 L |
9247 | lt_aix_libpath_sed=' |
9248 | /Import File Strings/,/^$/ { | |
9249 | /^0/ { | |
9250 | s/^0 *\(.*\)$/\1/ | |
9251 | p | |
9252 | } | |
9253 | }' | |
9254 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9255 | # Check for a 64-bit object if we didn't find anything. | |
9256 | if test -z "$aix_libpath"; then | |
9257 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9258 | fi | |
dabbade6 | 9259 | fi |
81ecdfbb RW |
9260 | rm -f core conftest.err conftest.$ac_objext \ |
9261 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 9262 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9263 | |
dabbade6 L |
9264 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9265 | # Warning - without using the other run time loading flags, | |
9266 | # -berok will link without error, but may produce a broken library. | |
9267 | no_undefined_flag=' ${wl}-bernotok' | |
9268 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9269 | if test "$with_gnu_ld" = yes; then |
9270 | # We only use this code for GNU lds that support --whole-archive. | |
9271 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9272 | else | |
9273 | # Exported symbols can be pulled into shared objects from archives | |
9274 | whole_archive_flag_spec='$convenience' | |
9275 | fi | |
dabbade6 L |
9276 | archive_cmds_need_lc=yes |
9277 | # This is similar to how AIX traditionally builds its shared libraries. | |
9278 | 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' | |
9279 | fi | |
9280 | fi | |
9281 | ;; | |
d7040cdb | 9282 | |
dabbade6 | 9283 | amigaos*) |
1927a18f L |
9284 | case $host_cpu in |
9285 | powerpc) | |
9286 | # see comment about AmigaOS4 .so support | |
9287 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9288 | archive_expsym_cmds='' | |
9289 | ;; | |
9290 | m68k) | |
9291 | 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)' | |
9292 | hardcode_libdir_flag_spec='-L$libdir' | |
9293 | hardcode_minus_L=yes | |
9294 | ;; | |
9295 | esac | |
dabbade6 | 9296 | ;; |
d7040cdb | 9297 | |
dabbade6 L |
9298 | bsdi[45]*) |
9299 | export_dynamic_flag_spec=-rdynamic | |
9300 | ;; | |
d7040cdb | 9301 | |
1927a18f | 9302 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
9303 | # When not using gcc, we currently assume that we are using |
9304 | # Microsoft Visual C++. | |
9305 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9306 | # no search path for DLLs. | |
9307 | hardcode_libdir_flag_spec=' ' | |
9308 | allow_undefined_flag=unsupported | |
9309 | # Tell ltmain to make .lib files, not .a files. | |
9310 | libext=lib | |
9311 | # Tell ltmain to make .dll files, not .so files. | |
9312 | shrext_cmds=".dll" | |
9313 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9314 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
dabbade6 L |
9315 | # The linker will automatically build a .lib file if we build a DLL. |
9316 | old_archive_from_new_cmds='true' | |
9317 | # FIXME: Should let the user specify the lib program. | |
9318 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9319 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9320 | enable_shared_with_static_runtimes=yes | |
9321 | ;; | |
d7040cdb | 9322 | |
dabbade6 | 9323 | darwin* | rhapsody*) |
d7040cdb | 9324 | |
1927a18f L |
9325 | |
9326 | archive_cmds_need_lc=no | |
9327 | hardcode_direct=no | |
9328 | hardcode_automatic=yes | |
9329 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9330 | if test "$lt_cv_ld_force_load" = "yes"; then |
9331 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9332 | else | |
9333 | whole_archive_flag_spec='' | |
9334 | fi | |
1927a18f L |
9335 | link_all_deplibs=yes |
9336 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9337 | case $cc_basename in | |
9338 | ifort*) _lt_dar_can_shared=yes ;; | |
9339 | *) _lt_dar_can_shared=$GCC ;; | |
9340 | esac | |
9341 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9342 | output_verbose_link_cmd=func_echo_all |
1927a18f L |
9343 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9344 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9345 | 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}" | |
9346 | 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}" | |
9347 | ||
9348 | else | |
9349 | ld_shlibs=no | |
9350 | fi | |
9351 | ||
dabbade6 | 9352 | ;; |
d7040cdb | 9353 | |
dabbade6 L |
9354 | dgux*) |
9355 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9356 | hardcode_libdir_flag_spec='-L$libdir' | |
9357 | hardcode_shlibpath_var=no | |
9358 | ;; | |
d7040cdb | 9359 | |
dabbade6 L |
9360 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9361 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9362 | # does not break anything, and helps significantly (at the cost of a little | |
9363 | # extra space). | |
9364 | freebsd2.2*) | |
9365 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9366 | hardcode_libdir_flag_spec='-R$libdir' | |
9367 | hardcode_direct=yes | |
9368 | hardcode_shlibpath_var=no | |
9369 | ;; | |
d7040cdb | 9370 | |
dabbade6 L |
9371 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9372 | freebsd2*) | |
9373 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9374 | hardcode_direct=yes | |
9375 | hardcode_minus_L=yes | |
9376 | hardcode_shlibpath_var=no | |
9377 | ;; | |
d7040cdb | 9378 | |
dabbade6 L |
9379 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9380 | freebsd* | dragonfly*) | |
9381 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9382 | hardcode_libdir_flag_spec='-R$libdir' | |
9383 | hardcode_direct=yes | |
9384 | hardcode_shlibpath_var=no | |
9385 | ;; | |
d7040cdb | 9386 | |
dabbade6 L |
9387 | hpux9*) |
9388 | if test "$GCC" = yes; then | |
9389 | 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' | |
9390 | else | |
9391 | 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' | |
9392 | fi | |
9393 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9394 | hardcode_libdir_separator=: | |
9395 | hardcode_direct=yes | |
d7040cdb | 9396 | |
dabbade6 L |
9397 | # hardcode_minus_L: Not really in the search PATH, |
9398 | # but as the default location of the library. | |
9399 | hardcode_minus_L=yes | |
9400 | export_dynamic_flag_spec='${wl}-E' | |
9401 | ;; | |
d7040cdb | 9402 | |
dabbade6 | 9403 | hpux10*) |
3725885a | 9404 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
dabbade6 L |
9405 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9406 | else | |
9407 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9408 | fi | |
9409 | if test "$with_gnu_ld" = no; then | |
9410 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9411 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9412 | hardcode_libdir_separator=: | |
9413 | hardcode_direct=yes | |
9414 | hardcode_direct_absolute=yes | |
9415 | export_dynamic_flag_spec='${wl}-E' | |
9416 | # hardcode_minus_L: Not really in the search PATH, | |
9417 | # but as the default location of the library. | |
9418 | hardcode_minus_L=yes | |
9419 | fi | |
9420 | ;; | |
d7040cdb | 9421 | |
dabbade6 | 9422 | hpux11*) |
3725885a | 9423 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
dabbade6 L |
9424 | case $host_cpu in |
9425 | hppa*64*) | |
9426 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9427 | ;; | |
9428 | ia64*) | |
1927a18f | 9429 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
dabbade6 L |
9430 | ;; |
9431 | *) | |
9432 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9433 | ;; | |
9434 | esac | |
9435 | else | |
9436 | case $host_cpu in | |
9437 | hppa*64*) | |
9438 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9439 | ;; | |
9440 | ia64*) | |
9441 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9442 | ;; | |
9443 | *) | |
3725885a RW |
9444 | |
9445 | # Older versions of the 11.00 compiler do not understand -b yet | |
9446 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9448 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9449 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9450 | $as_echo_n "(cached) " >&6 | |
9451 | else | |
9452 | lt_cv_prog_compiler__b=no | |
9453 | save_LDFLAGS="$LDFLAGS" | |
9454 | LDFLAGS="$LDFLAGS -b" | |
9455 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9456 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9457 | # The linker can only warn and ignore the option if not recognized | |
9458 | # So say no if there are warnings | |
9459 | if test -s conftest.err; then | |
9460 | # Append any errors to the config.log. | |
9461 | cat conftest.err 1>&5 | |
9462 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9463 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9464 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9465 | lt_cv_prog_compiler__b=yes | |
9466 | fi | |
9467 | else | |
9468 | lt_cv_prog_compiler__b=yes | |
9469 | fi | |
9470 | fi | |
9471 | $RM -r conftest* | |
9472 | LDFLAGS="$save_LDFLAGS" | |
9473 | ||
9474 | fi | |
9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9476 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9477 | ||
9478 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9479 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9480 | else | |
9481 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9482 | fi | |
9483 | ||
dabbade6 L |
9484 | ;; |
9485 | esac | |
9486 | fi | |
9487 | if test "$with_gnu_ld" = no; then | |
9488 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9489 | hardcode_libdir_separator=: | |
d7040cdb | 9490 | |
dabbade6 L |
9491 | case $host_cpu in |
9492 | hppa*64*|ia64*) | |
9493 | hardcode_direct=no | |
9494 | hardcode_shlibpath_var=no | |
9495 | ;; | |
9496 | *) | |
9497 | hardcode_direct=yes | |
9498 | hardcode_direct_absolute=yes | |
9499 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9500 | |
dabbade6 L |
9501 | # hardcode_minus_L: Not really in the search PATH, |
9502 | # but as the default location of the library. | |
9503 | hardcode_minus_L=yes | |
9504 | ;; | |
9505 | esac | |
9506 | fi | |
9507 | ;; | |
d7040cdb | 9508 | |
dabbade6 L |
9509 | irix5* | irix6* | nonstopux*) |
9510 | if test "$GCC" = yes; then | |
3725885a | 9511 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
dabbade6 L |
9512 | # Try to use the -exported_symbol ld option, if it does not |
9513 | # work, assume that -exports_file does not work either and | |
9514 | # implicitly export all symbols. | |
9515 | save_LDFLAGS="$LDFLAGS" | |
9516 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9518 | /* end confdefs.h. */ | |
dabbade6 L |
9519 | int foo(void) {} |
9520 | _ACEOF | |
81ecdfbb | 9521 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 9522 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9523 | |
d7040cdb | 9524 | fi |
81ecdfbb RW |
9525 | rm -f core conftest.err conftest.$ac_objext \ |
9526 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
9527 | LDFLAGS="$save_LDFLAGS" |
9528 | else | |
3725885a RW |
9529 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
9530 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
dabbade6 L |
9531 | fi |
9532 | archive_cmds_need_lc='no' | |
9533 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9534 | hardcode_libdir_separator=: | |
9535 | inherit_rpath=yes | |
9536 | link_all_deplibs=yes | |
9537 | ;; | |
d7040cdb | 9538 | |
dabbade6 L |
9539 | netbsd*) |
9540 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9541 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9542 | else | |
9543 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9544 | fi | |
9545 | hardcode_libdir_flag_spec='-R$libdir' | |
9546 | hardcode_direct=yes | |
9547 | hardcode_shlibpath_var=no | |
9548 | ;; | |
d7040cdb | 9549 | |
dabbade6 L |
9550 | newsos6) |
9551 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9552 | hardcode_direct=yes | |
9553 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9554 | hardcode_libdir_separator=: | |
9555 | hardcode_shlibpath_var=no | |
9556 | ;; | |
d7040cdb | 9557 | |
dabbade6 L |
9558 | *nto* | *qnx*) |
9559 | ;; | |
d7040cdb | 9560 | |
dabbade6 | 9561 | openbsd*) |
1927a18f L |
9562 | if test -f /usr/libexec/ld.so; then |
9563 | hardcode_direct=yes | |
9564 | hardcode_shlibpath_var=no | |
9565 | hardcode_direct_absolute=yes | |
9566 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
dabbade6 | 9567 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
1927a18f | 9568 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
dabbade6 | 9569 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1927a18f L |
9570 | export_dynamic_flag_spec='${wl}-E' |
9571 | else | |
9572 | case $host_os in | |
9573 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9574 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9575 | hardcode_libdir_flag_spec='-R$libdir' | |
9576 | ;; | |
9577 | *) | |
9578 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9579 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9580 | ;; | |
9581 | esac | |
9582 | fi | |
9583 | else | |
9584 | ld_shlibs=no | |
d7040cdb SE |
9585 | fi |
9586 | ;; | |
d7040cdb | 9587 | |
dabbade6 L |
9588 | os2*) |
9589 | hardcode_libdir_flag_spec='-L$libdir' | |
9590 | hardcode_minus_L=yes | |
9591 | allow_undefined_flag=unsupported | |
3725885a | 9592 | 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' |
dabbade6 L |
9593 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9594 | ;; | |
d7040cdb | 9595 | |
dabbade6 L |
9596 | osf3*) |
9597 | if test "$GCC" = yes; then | |
9598 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9599 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
dabbade6 L |
9600 | else |
9601 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9602 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
dabbade6 L |
9603 | fi |
9604 | archive_cmds_need_lc='no' | |
9605 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9606 | hardcode_libdir_separator=: | |
9607 | ;; | |
d7040cdb | 9608 | |
dabbade6 L |
9609 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9610 | if test "$GCC" = yes; then | |
9611 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9612 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
dabbade6 L |
9613 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9614 | else | |
9615 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9616 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
dabbade6 | 9617 | 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~ |
3725885a | 9618 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
d7040cdb | 9619 | |
dabbade6 L |
9620 | # Both c and cxx compiler support -rpath directly |
9621 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9622 | fi | |
9623 | archive_cmds_need_lc='no' | |
9624 | hardcode_libdir_separator=: | |
9625 | ;; | |
d7040cdb | 9626 | |
dabbade6 L |
9627 | solaris*) |
9628 | no_undefined_flag=' -z defs' | |
9629 | if test "$GCC" = yes; then | |
9630 | wlarc='${wl}' | |
9631 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9632 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9633 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9634 | else | |
9635 | case `$CC -V 2>&1` in | |
9636 | *"Compilers 5.0"*) | |
9637 | wlarc='' | |
9638 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9639 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9640 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9641 | ;; | |
9642 | *) | |
9643 | wlarc='${wl}' | |
9644 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9645 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9646 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9647 | ;; | |
9648 | esac | |
9649 | fi | |
9650 | hardcode_libdir_flag_spec='-R$libdir' | |
9651 | hardcode_shlibpath_var=no | |
9652 | case $host_os in | |
9653 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9654 | *) | |
9655 | # The compiler driver will combine and reorder linker options, | |
9656 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9657 | # but is careful enough not to reorder. | |
9658 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9659 | if test "$GCC" = yes; then | |
9660 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9661 | else | |
9662 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9663 | fi | |
9664 | ;; | |
9665 | esac | |
9666 | link_all_deplibs=yes | |
d7040cdb | 9667 | ;; |
dabbade6 L |
9668 | |
9669 | sunos4*) | |
9670 | if test "x$host_vendor" = xsequent; then | |
9671 | # Use $CC to link under sequent, because it throws in some extra .o | |
9672 | # files that make .init and .fini sections work. | |
9673 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9674 | else |
dabbade6 | 9675 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9676 | fi |
dabbade6 L |
9677 | hardcode_libdir_flag_spec='-L$libdir' |
9678 | hardcode_direct=yes | |
9679 | hardcode_minus_L=yes | |
9680 | hardcode_shlibpath_var=no | |
d7040cdb | 9681 | ;; |
dabbade6 L |
9682 | |
9683 | sysv4) | |
9684 | case $host_vendor in | |
9685 | sni) | |
9686 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9687 | hardcode_direct=yes # is this really true??? | |
9688 | ;; | |
9689 | siemens) | |
9690 | ## LD is ld it makes a PLAMLIB | |
9691 | ## CC just makes a GrossModule. | |
9692 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9693 | reload_cmds='$CC -r -o $output$reload_objs' | |
9694 | hardcode_direct=no | |
9695 | ;; | |
9696 | motorola) | |
9697 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9698 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9699 | ;; | |
9700 | esac | |
9701 | runpath_var='LD_RUN_PATH' | |
9702 | hardcode_shlibpath_var=no | |
d7040cdb | 9703 | ;; |
d7040cdb | 9704 | |
dabbade6 L |
9705 | sysv4.3*) |
9706 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9707 | hardcode_shlibpath_var=no | |
9708 | export_dynamic_flag_spec='-Bexport' | |
9709 | ;; | |
d7040cdb | 9710 | |
dabbade6 L |
9711 | sysv4*MP*) |
9712 | if test -d /usr/nec; then | |
9713 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9714 | hardcode_shlibpath_var=no | |
9715 | runpath_var=LD_RUN_PATH | |
9716 | hardcode_runpath_var=yes | |
9717 | ld_shlibs=yes | |
9718 | fi | |
9719 | ;; | |
d7040cdb | 9720 | |
dabbade6 L |
9721 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9722 | no_undefined_flag='${wl}-z,text' | |
9723 | archive_cmds_need_lc=no | |
9724 | hardcode_shlibpath_var=no | |
9725 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9726 | |
dabbade6 L |
9727 | if test "$GCC" = yes; then |
9728 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9729 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9730 | else | |
9731 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9732 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9733 | fi | |
9734 | ;; | |
d7040cdb | 9735 | |
dabbade6 L |
9736 | sysv5* | sco3.2v5* | sco5v6*) |
9737 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9738 | # link with -lc, and that would cause any symbols used from libc to | |
9739 | # always be unresolved, which means just about no library would | |
9740 | # ever link correctly. If we're not using GNU ld we use -z text | |
9741 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9742 | # as -z defs. | |
9743 | no_undefined_flag='${wl}-z,text' | |
9744 | allow_undefined_flag='${wl}-z,nodefs' | |
9745 | archive_cmds_need_lc=no | |
9746 | hardcode_shlibpath_var=no | |
9747 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9748 | hardcode_libdir_separator=':' | |
9749 | link_all_deplibs=yes | |
9750 | export_dynamic_flag_spec='${wl}-Bexport' | |
9751 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9752 | |
dabbade6 L |
9753 | if test "$GCC" = yes; then |
9754 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9755 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9756 | else | |
9757 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9758 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9759 | fi | |
d7040cdb | 9760 | ;; |
d7040cdb | 9761 | |
dabbade6 L |
9762 | uts4*) |
9763 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9764 | hardcode_libdir_flag_spec='-L$libdir' | |
9765 | hardcode_shlibpath_var=no | |
9766 | ;; | |
d7040cdb | 9767 | |
dabbade6 L |
9768 | *) |
9769 | ld_shlibs=no | |
9770 | ;; | |
9771 | esac | |
9772 | ||
9773 | if test x$host_vendor = xsni; then | |
9774 | case $host in | |
9775 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9776 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9777 | ;; | |
9778 | esac | |
d7040cdb | 9779 | fi |
dabbade6 | 9780 | fi |
d7040cdb | 9781 | |
81ecdfbb RW |
9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9783 | $as_echo "$ld_shlibs" >&6; } | |
dabbade6 | 9784 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9785 | |
dabbade6 | 9786 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9787 | |
d7040cdb | 9788 | |
d7040cdb | 9789 | |
d7040cdb | 9790 | |
d7040cdb | 9791 | |
d7040cdb | 9792 | |
d7040cdb | 9793 | |
d7040cdb | 9794 | |
d7040cdb | 9795 | |
d7040cdb | 9796 | |
d7040cdb | 9797 | |
d7040cdb | 9798 | |
d7040cdb | 9799 | |
d7040cdb | 9800 | |
d7040cdb | 9801 | |
dabbade6 L |
9802 | # |
9803 | # Do we need to explicitly link libc? | |
9804 | # | |
9805 | case "x$archive_cmds_need_lc" in | |
9806 | x|xyes) | |
9807 | # Assume -lc should be added | |
9808 | archive_cmds_need_lc=yes | |
d7040cdb | 9809 | |
dabbade6 L |
9810 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9811 | case $archive_cmds in | |
9812 | *'~'*) | |
9813 | # FIXME: we may have to deal with multi-command sequences. | |
9814 | ;; | |
9815 | '$CC '*) | |
9816 | # Test whether the compiler implicitly links with -lc since on some | |
9817 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9818 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9820 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9821 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9822 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
9823 | else |
9824 | $RM conftest* | |
9825 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9826 | |
81ecdfbb | 9827 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
dabbade6 L |
9828 | (eval $ac_compile) 2>&5 |
9829 | ac_status=$? | |
81ecdfbb RW |
9830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9831 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9832 | soname=conftest |
9833 | lib=conftest | |
9834 | libobjs=conftest.$ac_objext | |
9835 | deplibs= | |
9836 | wl=$lt_prog_compiler_wl | |
9837 | pic_flag=$lt_prog_compiler_pic | |
9838 | compiler_flags=-v | |
9839 | linker_flags=-v | |
9840 | verstring= | |
9841 | output_objdir=. | |
9842 | libname=conftest | |
9843 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9844 | allow_undefined_flag= | |
81ecdfbb | 9845 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
dabbade6 L |
9846 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9847 | ac_status=$? | |
81ecdfbb RW |
9848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9849 | test $ac_status = 0; } | |
39144654 RW |
9850 | then |
9851 | lt_cv_archive_cmds_need_lc=no | |
9852 | else | |
9853 | lt_cv_archive_cmds_need_lc=yes | |
9854 | fi | |
9855 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9856 | else | |
9857 | cat conftest.err 1>&5 | |
9858 | fi | |
9859 | $RM conftest* | |
9860 | ||
9861 | fi | |
81ecdfbb RW |
9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9863 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9864 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
dabbade6 L |
9865 | ;; |
9866 | esac | |
d7040cdb | 9867 | fi |
d7040cdb | 9868 | ;; |
dabbade6 | 9869 | esac |
d7040cdb | 9870 | |
d7040cdb | 9871 | |
d7040cdb | 9872 | |
d7040cdb | 9873 | |
d7040cdb | 9874 | |
d7040cdb | 9875 | |
d7040cdb | 9876 | |
d7040cdb SE |
9877 | |
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
d7040cdb | 9964 | |
d7040cdb | 9965 | |
d7040cdb SE |
9966 | |
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
d7040cdb | 9972 | |
d7040cdb | 9973 | |
d7040cdb | 9974 | |
d7040cdb | 9975 | |
d7040cdb | 9976 | |
d7040cdb | 9977 | |
d7040cdb | 9978 | |
d7040cdb | 9979 | |
d7040cdb | 9980 | |
d7040cdb | 9981 | |
d7040cdb | 9982 | |
d7040cdb | 9983 | |
d7040cdb | 9984 | |
d7040cdb | 9985 | |
d7040cdb | 9986 | |
d7040cdb | 9987 | |
d7040cdb | 9988 | |
d7040cdb | 9989 | |
d7040cdb | 9990 | |
d7040cdb | 9991 | |
d7040cdb | 9992 | |
d7040cdb | 9993 | |
d7040cdb | 9994 | |
d7040cdb | 9995 | |
dabbade6 L |
9996 | |
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | ||
10013 | ||
10014 | ||
10015 | ||
10016 | ||
10017 | ||
10018 | ||
10019 | ||
10020 | ||
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | ||
10026 | ||
81ecdfbb RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10028 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
1927a18f L |
10029 | |
10030 | if test "$GCC" = yes; then | |
dabbade6 L |
10031 | case $host_os in |
10032 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10033 | *) lt_awk_arg="/^libraries:/" ;; | |
10034 | esac | |
3725885a RW |
10035 | case $host_os in |
10036 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10037 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10038 | esac | |
10039 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10040 | case $lt_search_path_spec in | |
10041 | *\;*) | |
dabbade6 L |
10042 | # if the path contains ";" then we assume it to be the separator |
10043 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10044 | # assumed that no part of a normal pathname contains ";" but that should | |
10045 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
10046 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10047 | ;; | |
10048 | *) | |
10049 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10050 | ;; | |
10051 | esac | |
dabbade6 L |
10052 | # Ok, now we have the path, separated by spaces, we can step through it |
10053 | # and add multilib dir if necessary. | |
10054 | lt_tmp_lt_search_path_spec= | |
10055 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10056 | for lt_sys_path in $lt_search_path_spec; do | |
10057 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10058 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10059 | else | |
10060 | test -d "$lt_sys_path" && \ | |
10061 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10062 | fi | |
10063 | done | |
3725885a | 10064 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
dabbade6 L |
10065 | BEGIN {RS=" "; FS="/|\n";} { |
10066 | lt_foo=""; | |
10067 | lt_count=0; | |
10068 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10069 | if ($lt_i != "" && $lt_i != ".") { | |
10070 | if ($lt_i == "..") { | |
10071 | lt_count++; | |
10072 | } else { | |
10073 | if (lt_count == 0) { | |
10074 | lt_foo="/" $lt_i lt_foo; | |
10075 | } else { | |
10076 | lt_count--; | |
10077 | } | |
10078 | } | |
10079 | } | |
10080 | } | |
10081 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10082 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10083 | }'` | |
3725885a RW |
10084 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10085 | # for these hosts. | |
10086 | case $host_os in | |
10087 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10088 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10089 | esac | |
10090 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10091 | else |
dabbade6 L |
10092 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10093 | fi | |
10094 | library_names_spec= | |
10095 | libname_spec='lib$name' | |
10096 | soname_spec= | |
10097 | shrext_cmds=".so" | |
10098 | postinstall_cmds= | |
10099 | postuninstall_cmds= | |
10100 | finish_cmds= | |
10101 | finish_eval= | |
10102 | shlibpath_var= | |
10103 | shlibpath_overrides_runpath=unknown | |
10104 | version_type=none | |
10105 | dynamic_linker="$host_os ld.so" | |
10106 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10107 | need_lib_prefix=unknown | |
10108 | hardcode_into_libs=no | |
10109 | ||
10110 | # when you set need_version to no, make sure it does not cause -set_version | |
10111 | # flags to be left without arguments | |
10112 | need_version=unknown | |
10113 | ||
10114 | case $host_os in | |
10115 | aix3*) | |
10116 | version_type=linux | |
10117 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10118 | shlibpath_var=LIBPATH | |
10119 | ||
10120 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10121 | soname_spec='${libname}${release}${shared_ext}$major' | |
10122 | ;; | |
10123 | ||
50e7d84b | 10124 | aix[4-9]*) |
dabbade6 L |
10125 | version_type=linux |
10126 | need_lib_prefix=no | |
10127 | need_version=no | |
10128 | hardcode_into_libs=yes | |
10129 | if test "$host_cpu" = ia64; then | |
10130 | # AIX 5 supports IA64 | |
10131 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10132 | shlibpath_var=LD_LIBRARY_PATH | |
10133 | else | |
10134 | # With GCC up to 2.95.x, collect2 would create an import file | |
10135 | # for dependence libraries. The import file would start with | |
10136 | # the line `#! .'. This would cause the generated library to | |
10137 | # depend on `.', always an invalid library. This was fixed in | |
10138 | # development snapshots of GCC prior to 3.0. | |
10139 | case $host_os in | |
10140 | aix4 | aix4.[01] | aix4.[01].*) | |
10141 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10142 | echo ' yes ' | |
10143 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10144 | : | |
10145 | else | |
10146 | can_build_shared=no | |
10147 | fi | |
10148 | ;; | |
10149 | esac | |
10150 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10151 | # soname into executable. Probably we can add versioning support to | |
10152 | # collect2, so additional links can be useful in future. | |
10153 | if test "$aix_use_runtimelinking" = yes; then | |
10154 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10155 | # instead of lib<name>.a to let people know that these are not | |
10156 | # typical AIX shared libraries. | |
10157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10158 | else | |
10159 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10160 | # and later when we are not doing run time linking. | |
10161 | library_names_spec='${libname}${release}.a $libname.a' | |
10162 | soname_spec='${libname}${release}${shared_ext}$major' | |
10163 | fi | |
10164 | shlibpath_var=LIBPATH | |
10165 | fi | |
10166 | ;; | |
10167 | ||
10168 | amigaos*) | |
1927a18f L |
10169 | case $host_cpu in |
10170 | powerpc) | |
10171 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10172 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10174 | ;; | |
10175 | m68k) | |
dabbade6 L |
10176 | library_names_spec='$libname.ixlibrary $libname.a' |
10177 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10178 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
1927a18f L |
10179 | ;; |
10180 | esac | |
dabbade6 L |
10181 | ;; |
10182 | ||
10183 | beos*) | |
10184 | library_names_spec='${libname}${shared_ext}' | |
10185 | dynamic_linker="$host_os ld.so" | |
10186 | shlibpath_var=LIBRARY_PATH | |
10187 | ;; | |
10188 | ||
10189 | bsdi[45]*) | |
10190 | version_type=linux | |
10191 | need_version=no | |
10192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10193 | soname_spec='${libname}${release}${shared_ext}$major' | |
10194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10195 | shlibpath_var=LD_LIBRARY_PATH | |
10196 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10197 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10198 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10199 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10200 | # libtool to hard-code these into programs | |
10201 | ;; | |
10202 | ||
1927a18f | 10203 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
10204 | version_type=windows |
10205 | shrext_cmds=".dll" | |
10206 | need_version=no | |
10207 | need_lib_prefix=no | |
10208 | ||
1927a18f L |
10209 | case $GCC,$host_os in |
10210 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
dabbade6 L |
10211 | library_names_spec='$libname.dll.a' |
10212 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10213 | postinstall_cmds='base_file=`basename \${file}`~ | |
10214 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10215 | dldir=$destdir/`dirname \$dlpath`~ | |
10216 | test -d \$dldir || mkdir -p \$dldir~ | |
10217 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10218 | chmod a+x \$dldir/$dlname~ | |
10219 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10220 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10221 | fi' | |
10222 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10223 | dlpath=$dir/\$dldll~ | |
10224 | $RM \$dlpath' | |
10225 | shlibpath_overrides_runpath=yes | |
10226 | ||
10227 | case $host_os in | |
10228 | cygwin*) | |
10229 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10230 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10231 | |
10232 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
dabbade6 | 10233 | ;; |
1927a18f | 10234 | mingw* | cegcc*) |
dabbade6 L |
10235 | # MinGW DLLs use traditional 'lib' prefix |
10236 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
dabbade6 L |
10237 | ;; |
10238 | pw32*) | |
10239 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10240 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10241 | ;; | |
10242 | esac | |
10243 | ;; | |
10244 | ||
10245 | *) | |
10246 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10247 | ;; | |
10248 | esac | |
10249 | dynamic_linker='Win32 ld.exe' | |
10250 | # FIXME: first we should search . and the directory the executable is in | |
10251 | shlibpath_var=PATH | |
10252 | ;; | |
10253 | ||
10254 | darwin* | rhapsody*) | |
10255 | dynamic_linker="$host_os dyld" | |
10256 | version_type=darwin | |
10257 | need_lib_prefix=no | |
10258 | need_version=no | |
10259 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10260 | soname_spec='${libname}${release}${major}$shared_ext' | |
10261 | shlibpath_overrides_runpath=yes | |
10262 | shlibpath_var=DYLD_LIBRARY_PATH | |
10263 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10264 | ||
10265 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10266 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10267 | ;; | |
10268 | ||
10269 | dgux*) | |
10270 | version_type=linux | |
10271 | need_lib_prefix=no | |
10272 | need_version=no | |
10273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10274 | soname_spec='${libname}${release}${shared_ext}$major' | |
10275 | shlibpath_var=LD_LIBRARY_PATH | |
10276 | ;; | |
10277 | ||
dabbade6 L |
10278 | freebsd* | dragonfly*) |
10279 | # DragonFly does not have aout. When/if they implement a new | |
10280 | # versioning mechanism, adjust this. | |
10281 | if test -x /usr/bin/objformat; then | |
10282 | objformat=`/usr/bin/objformat` | |
10283 | else | |
10284 | case $host_os in | |
10285 | freebsd[123]*) objformat=aout ;; | |
10286 | *) objformat=elf ;; | |
10287 | esac | |
10288 | fi | |
10289 | version_type=freebsd-$objformat | |
10290 | case $version_type in | |
10291 | freebsd-elf*) | |
10292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10293 | need_version=no | |
10294 | need_lib_prefix=no | |
10295 | ;; | |
10296 | freebsd-*) | |
10297 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10298 | need_version=yes | |
10299 | ;; | |
10300 | esac | |
10301 | shlibpath_var=LD_LIBRARY_PATH | |
10302 | case $host_os in | |
10303 | freebsd2*) | |
10304 | shlibpath_overrides_runpath=yes | |
10305 | ;; | |
10306 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10307 | shlibpath_overrides_runpath=yes | |
10308 | hardcode_into_libs=yes | |
10309 | ;; | |
10310 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10311 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10312 | shlibpath_overrides_runpath=no | |
10313 | hardcode_into_libs=yes | |
10314 | ;; | |
10315 | *) # from 4.6 on, and DragonFly | |
10316 | shlibpath_overrides_runpath=yes | |
10317 | hardcode_into_libs=yes | |
10318 | ;; | |
10319 | esac | |
10320 | ;; | |
10321 | ||
10322 | gnu*) | |
10323 | version_type=linux | |
10324 | need_lib_prefix=no | |
10325 | need_version=no | |
10326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10327 | soname_spec='${libname}${release}${shared_ext}$major' | |
10328 | shlibpath_var=LD_LIBRARY_PATH | |
10329 | hardcode_into_libs=yes | |
10330 | ;; | |
10331 | ||
3725885a RW |
10332 | haiku*) |
10333 | version_type=linux | |
10334 | need_lib_prefix=no | |
10335 | need_version=no | |
10336 | dynamic_linker="$host_os runtime_loader" | |
10337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10338 | soname_spec='${libname}${release}${shared_ext}$major' | |
10339 | shlibpath_var=LIBRARY_PATH | |
10340 | shlibpath_overrides_runpath=yes | |
10341 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10342 | hardcode_into_libs=yes | |
10343 | ;; | |
10344 | ||
dabbade6 L |
10345 | hpux9* | hpux10* | hpux11*) |
10346 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10347 | # link against other versions. | |
10348 | version_type=sunos | |
10349 | need_lib_prefix=no | |
10350 | need_version=no | |
10351 | case $host_cpu in | |
10352 | ia64*) | |
10353 | shrext_cmds='.so' | |
10354 | hardcode_into_libs=yes | |
10355 | dynamic_linker="$host_os dld.so" | |
10356 | shlibpath_var=LD_LIBRARY_PATH | |
10357 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10359 | soname_spec='${libname}${release}${shared_ext}$major' | |
10360 | if test "X$HPUX_IA64_MODE" = X32; then | |
10361 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10362 | else | |
10363 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10364 | fi | |
10365 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10366 | ;; | |
10367 | hppa*64*) | |
10368 | shrext_cmds='.sl' | |
10369 | hardcode_into_libs=yes | |
10370 | dynamic_linker="$host_os dld.sl" | |
10371 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10372 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10374 | soname_spec='${libname}${release}${shared_ext}$major' | |
10375 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10376 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10377 | ;; | |
10378 | *) | |
10379 | shrext_cmds='.sl' | |
10380 | dynamic_linker="$host_os dld.sl" | |
10381 | shlibpath_var=SHLIB_PATH | |
10382 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10384 | soname_spec='${libname}${release}${shared_ext}$major' | |
10385 | ;; | |
10386 | esac | |
3725885a | 10387 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
dabbade6 | 10388 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10389 | # or fails outright, so override atomically: |
10390 | install_override_mode=555 | |
dabbade6 L |
10391 | ;; |
10392 | ||
10393 | interix[3-9]*) | |
10394 | version_type=linux | |
10395 | need_lib_prefix=no | |
10396 | need_version=no | |
10397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10398 | soname_spec='${libname}${release}${shared_ext}$major' | |
10399 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10400 | shlibpath_var=LD_LIBRARY_PATH | |
10401 | shlibpath_overrides_runpath=no | |
10402 | hardcode_into_libs=yes | |
10403 | ;; | |
10404 | ||
10405 | irix5* | irix6* | nonstopux*) | |
10406 | case $host_os in | |
10407 | nonstopux*) version_type=nonstopux ;; | |
10408 | *) | |
10409 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10410 | version_type=linux | |
10411 | else | |
10412 | version_type=irix | |
10413 | fi ;; | |
10414 | esac | |
10415 | need_lib_prefix=no | |
10416 | need_version=no | |
10417 | soname_spec='${libname}${release}${shared_ext}$major' | |
10418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10419 | case $host_os in | |
10420 | irix5* | nonstopux*) | |
10421 | libsuff= shlibsuff= | |
10422 | ;; | |
10423 | *) | |
10424 | case $LD in # libtool.m4 will add one of these switches to LD | |
10425 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10426 | libsuff= shlibsuff= libmagic=32-bit;; | |
10427 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10428 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10429 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10430 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10431 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10432 | esac | |
10433 | ;; | |
10434 | esac | |
10435 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10436 | shlibpath_overrides_runpath=no | |
10437 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10438 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10439 | hardcode_into_libs=yes | |
10440 | ;; | |
10441 | ||
10442 | # No shared lib support for Linux oldld, aout, or coff. | |
10443 | linux*oldld* | linux*aout* | linux*coff*) | |
10444 | dynamic_linker=no | |
10445 | ;; | |
10446 | ||
10447 | # This must be Linux ELF. | |
58e24671 | 10448 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
10449 | version_type=linux |
10450 | need_lib_prefix=no | |
10451 | need_version=no | |
10452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10453 | soname_spec='${libname}${release}${shared_ext}$major' | |
10454 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10455 | shlibpath_var=LD_LIBRARY_PATH | |
10456 | shlibpath_overrides_runpath=no | |
39144654 | 10457 | |
dabbade6 | 10458 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10459 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10460 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10461 | else |
10462 | lt_cv_shlibpath_overrides_runpath=no | |
10463 | save_LDFLAGS=$LDFLAGS | |
10464 | save_libdir=$libdir | |
10465 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10466 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10468 | /* end confdefs.h. */ |
10469 | ||
d7040cdb SE |
10470 | int |
10471 | main () | |
10472 | { | |
dabbade6 | 10473 | |
d7040cdb SE |
10474 | ; |
10475 | return 0; | |
10476 | } | |
10477 | _ACEOF | |
81ecdfbb RW |
10478 | if ac_fn_c_try_link "$LINENO"; then : |
10479 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10480 | lt_cv_shlibpath_overrides_runpath=yes |
dabbade6 | 10481 | fi |
d7040cdb | 10482 | fi |
81ecdfbb RW |
10483 | rm -f core conftest.err conftest.$ac_objext \ |
10484 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10485 | LDFLAGS=$save_LDFLAGS |
10486 | libdir=$save_libdir | |
10487 | ||
10488 | fi | |
10489 | ||
10490 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
dabbade6 L |
10491 | |
10492 | # This implies no fast_install, which is unacceptable. | |
10493 | # Some rework will be needed to allow for fast_install | |
10494 | # before this can be enabled. | |
10495 | hardcode_into_libs=yes | |
10496 | ||
10497 | # Append ld.so.conf contents to the search path | |
10498 | if test -f /etc/ld.so.conf; then | |
3725885a | 10499 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
dabbade6 L |
10500 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10501 | fi | |
10502 | ||
10503 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10504 | # powerpc, because MkLinux only supported shared libraries with the | |
10505 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10506 | # most powerpc-linux boxes support dynamic linking these days and | |
10507 | # people can always --disable-shared, the test was removed, and we | |
10508 | # assume the GNU/Linux dynamic linker is in use. | |
10509 | dynamic_linker='GNU/Linux ld.so' | |
10510 | ;; | |
10511 | ||
10512 | netbsd*) | |
10513 | version_type=sunos | |
10514 | need_lib_prefix=no | |
10515 | need_version=no | |
10516 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10518 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10519 | dynamic_linker='NetBSD (a.out) ld.so' | |
10520 | else | |
10521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10522 | soname_spec='${libname}${release}${shared_ext}$major' | |
10523 | dynamic_linker='NetBSD ld.elf_so' | |
10524 | fi | |
10525 | shlibpath_var=LD_LIBRARY_PATH | |
10526 | shlibpath_overrides_runpath=yes | |
10527 | hardcode_into_libs=yes | |
10528 | ;; | |
10529 | ||
10530 | newsos6) | |
10531 | version_type=linux | |
10532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10533 | shlibpath_var=LD_LIBRARY_PATH | |
10534 | shlibpath_overrides_runpath=yes | |
10535 | ;; | |
10536 | ||
10537 | *nto* | *qnx*) | |
10538 | version_type=qnx | |
10539 | need_lib_prefix=no | |
10540 | need_version=no | |
10541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10542 | soname_spec='${libname}${release}${shared_ext}$major' | |
10543 | shlibpath_var=LD_LIBRARY_PATH | |
10544 | shlibpath_overrides_runpath=no | |
10545 | hardcode_into_libs=yes | |
10546 | dynamic_linker='ldqnx.so' | |
10547 | ;; | |
10548 | ||
10549 | openbsd*) | |
10550 | version_type=sunos | |
10551 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10552 | need_lib_prefix=no | |
10553 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10554 | case $host_os in | |
10555 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10556 | *) need_version=no ;; | |
10557 | esac | |
10558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10559 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10560 | shlibpath_var=LD_LIBRARY_PATH | |
10561 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10562 | case $host_os in | |
10563 | openbsd2.[89] | openbsd2.[89].*) | |
10564 | shlibpath_overrides_runpath=no | |
10565 | ;; | |
10566 | *) | |
10567 | shlibpath_overrides_runpath=yes | |
10568 | ;; | |
10569 | esac | |
10570 | else | |
10571 | shlibpath_overrides_runpath=yes | |
10572 | fi | |
10573 | ;; | |
10574 | ||
10575 | os2*) | |
10576 | libname_spec='$name' | |
10577 | shrext_cmds=".dll" | |
10578 | need_lib_prefix=no | |
10579 | library_names_spec='$libname${shared_ext} $libname.a' | |
10580 | dynamic_linker='OS/2 ld.exe' | |
10581 | shlibpath_var=LIBPATH | |
10582 | ;; | |
10583 | ||
10584 | osf3* | osf4* | osf5*) | |
10585 | version_type=osf | |
10586 | need_lib_prefix=no | |
10587 | need_version=no | |
10588 | soname_spec='${libname}${release}${shared_ext}$major' | |
10589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10590 | shlibpath_var=LD_LIBRARY_PATH | |
10591 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10592 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10593 | ;; | |
10594 | ||
10595 | rdos*) | |
10596 | dynamic_linker=no | |
10597 | ;; | |
10598 | ||
10599 | solaris*) | |
10600 | version_type=linux | |
10601 | need_lib_prefix=no | |
10602 | need_version=no | |
10603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10604 | soname_spec='${libname}${release}${shared_ext}$major' | |
10605 | shlibpath_var=LD_LIBRARY_PATH | |
10606 | shlibpath_overrides_runpath=yes | |
10607 | hardcode_into_libs=yes | |
10608 | # ldd complains unless libraries are executable | |
10609 | postinstall_cmds='chmod +x $lib' | |
10610 | ;; | |
10611 | ||
10612 | sunos4*) | |
10613 | version_type=sunos | |
10614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10615 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10616 | shlibpath_var=LD_LIBRARY_PATH | |
10617 | shlibpath_overrides_runpath=yes | |
10618 | if test "$with_gnu_ld" = yes; then | |
10619 | need_lib_prefix=no | |
10620 | fi | |
10621 | need_version=yes | |
10622 | ;; | |
10623 | ||
10624 | sysv4 | sysv4.3*) | |
10625 | version_type=linux | |
10626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10627 | soname_spec='${libname}${release}${shared_ext}$major' | |
10628 | shlibpath_var=LD_LIBRARY_PATH | |
10629 | case $host_vendor in | |
10630 | sni) | |
10631 | shlibpath_overrides_runpath=no | |
10632 | need_lib_prefix=no | |
10633 | runpath_var=LD_RUN_PATH | |
10634 | ;; | |
10635 | siemens) | |
10636 | need_lib_prefix=no | |
10637 | ;; | |
10638 | motorola) | |
10639 | need_lib_prefix=no | |
10640 | need_version=no | |
10641 | shlibpath_overrides_runpath=no | |
10642 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10643 | ;; | |
10644 | esac | |
10645 | ;; | |
10646 | ||
10647 | sysv4*MP*) | |
10648 | if test -d /usr/nec ;then | |
10649 | version_type=linux | |
10650 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10651 | soname_spec='$libname${shared_ext}.$major' | |
10652 | shlibpath_var=LD_LIBRARY_PATH | |
10653 | fi | |
10654 | ;; | |
10655 | ||
10656 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10657 | version_type=freebsd-elf | |
10658 | need_lib_prefix=no | |
10659 | need_version=no | |
10660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10661 | soname_spec='${libname}${release}${shared_ext}$major' | |
10662 | shlibpath_var=LD_LIBRARY_PATH | |
10663 | shlibpath_overrides_runpath=yes | |
10664 | hardcode_into_libs=yes | |
10665 | if test "$with_gnu_ld" = yes; then | |
10666 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10667 | else | |
10668 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10669 | case $host_os in | |
10670 | sco3.2v5*) | |
10671 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10672 | ;; | |
10673 | esac | |
10674 | fi | |
10675 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10676 | ;; | |
10677 | ||
10678 | tpf*) | |
10679 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10680 | version_type=linux | |
10681 | need_lib_prefix=no | |
10682 | need_version=no | |
1927a18f | 10683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
dabbade6 L |
10684 | shlibpath_var=LD_LIBRARY_PATH |
10685 | shlibpath_overrides_runpath=no | |
10686 | hardcode_into_libs=yes | |
10687 | ;; | |
10688 | ||
10689 | uts4*) | |
10690 | version_type=linux | |
10691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10692 | soname_spec='${libname}${release}${shared_ext}$major' | |
10693 | shlibpath_var=LD_LIBRARY_PATH | |
10694 | ;; | |
d7040cdb | 10695 | |
dabbade6 L |
10696 | *) |
10697 | dynamic_linker=no | |
10698 | ;; | |
10699 | esac | |
81ecdfbb RW |
10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10701 | $as_echo "$dynamic_linker" >&6; } | |
dabbade6 | 10702 | test "$dynamic_linker" = no && can_build_shared=no |
d7040cdb | 10703 | |
dabbade6 L |
10704 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10705 | if test "$GCC" = yes; then | |
10706 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10707 | fi |
d7040cdb | 10708 | |
1927a18f L |
10709 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10710 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10711 | fi | |
10712 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10713 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10714 | fi | |
10715 | ||
d7040cdb | 10716 | |
d7040cdb SE |
10717 | |
10718 | ||
d7040cdb SE |
10719 | |
10720 | ||
d7040cdb SE |
10721 | |
10722 | ||
d7040cdb SE |
10723 | |
10724 | ||
d7040cdb SE |
10725 | |
10726 | ||
d7040cdb | 10727 | |
d7040cdb | 10728 | |
d7040cdb | 10729 | |
d7040cdb | 10730 | |
d7040cdb | 10731 | |
d7040cdb | 10732 | |
d7040cdb | 10733 | |
d7040cdb | 10734 | |
d7040cdb | 10735 | |
d7040cdb | 10736 | |
d7040cdb | 10737 | |
d7040cdb | 10738 | |
d7040cdb | 10739 | |
d7040cdb | 10740 | |
d7040cdb SE |
10741 | |
10742 | ||
d7040cdb | 10743 | |
d7040cdb | 10744 | |
d7040cdb | 10745 | |
d7040cdb | 10746 | |
d7040cdb | 10747 | |
d7040cdb | 10748 | |
d7040cdb | 10749 | |
d7040cdb | 10750 | |
d7040cdb | 10751 | |
d7040cdb SE |
10752 | |
10753 | ||
d7040cdb | 10754 | |
d7040cdb | 10755 | |
d7040cdb | 10756 | |
d7040cdb SE |
10757 | |
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
d7040cdb SE |
10774 | |
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
d7040cdb | 10786 | |
d7040cdb | 10787 | |
dabbade6 L |
10788 | |
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
3725885a RW |
10796 | |
10797 | ||
10798 | ||
10799 | ||
10800 | ||
dabbade6 L |
10801 | |
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
81ecdfbb RW |
10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10808 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
dabbade6 L |
10809 | hardcode_action= |
10810 | if test -n "$hardcode_libdir_flag_spec" || | |
10811 | test -n "$runpath_var" || | |
10812 | test "X$hardcode_automatic" = "Xyes" ; then | |
10813 | ||
10814 | # We can hardcode non-existent directories. | |
10815 | if test "$hardcode_direct" != no && | |
10816 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10817 | # have to relink, otherwise we might link with an installed library | |
10818 | # when we should be linking with a yet-to-be-installed one | |
10819 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10820 | test "$hardcode_minus_L" != no; then | |
10821 | # Linking always hardcodes the temporary library directory. | |
10822 | hardcode_action=relink | |
10823 | else | |
10824 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10825 | hardcode_action=immediate | |
10826 | fi | |
10827 | else | |
10828 | # We cannot hardcode anything, or else we can only hardcode existing | |
10829 | # directories. | |
10830 | hardcode_action=unsupported | |
10831 | fi | |
81ecdfbb RW |
10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10833 | $as_echo "$hardcode_action" >&6; } | |
dabbade6 L |
10834 | |
10835 | if test "$hardcode_action" = relink || | |
10836 | test "$inherit_rpath" = yes; then | |
10837 | # Fast installation is not supported | |
10838 | enable_fast_install=no | |
10839 | elif test "$shlibpath_overrides_runpath" = yes || | |
10840 | test "$enable_shared" = no; then | |
10841 | # Fast installation is not necessary | |
10842 | enable_fast_install=needless | |
10843 | fi | |
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | if test "x$enable_dlopen" != xyes; then | |
10851 | enable_dlopen=unknown | |
10852 | enable_dlopen_self=unknown | |
10853 | enable_dlopen_self_static=unknown | |
10854 | else | |
10855 | lt_cv_dlopen=no | |
10856 | lt_cv_dlopen_libs= | |
10857 | ||
d7040cdb | 10858 | case $host_os in |
dabbade6 L |
10859 | beos*) |
10860 | lt_cv_dlopen="load_add_on" | |
10861 | lt_cv_dlopen_libs= | |
10862 | lt_cv_dlopen_self=yes | |
d7040cdb SE |
10863 | ;; |
10864 | ||
1927a18f | 10865 | mingw* | pw32* | cegcc*) |
dabbade6 L |
10866 | lt_cv_dlopen="LoadLibrary" |
10867 | lt_cv_dlopen_libs= | |
d7040cdb | 10868 | ;; |
d7040cdb | 10869 | |
dabbade6 L |
10870 | cygwin*) |
10871 | lt_cv_dlopen="dlopen" | |
10872 | lt_cv_dlopen_libs= | |
10873 | ;; | |
d7040cdb | 10874 | |
dabbade6 L |
10875 | darwin*) |
10876 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10878 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10879 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10880 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
10881 | else |
10882 | ac_check_lib_save_LIBS=$LIBS | |
10883 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10885 | /* end confdefs.h. */ |
d7040cdb | 10886 | |
81ecdfbb RW |
10887 | /* Override any GCC internal prototype to avoid an error. |
10888 | Use char because int might match the return type of a GCC | |
10889 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10890 | #ifdef __cplusplus |
10891 | extern "C" | |
10892 | #endif | |
dabbade6 L |
10893 | char dlopen (); |
10894 | int | |
10895 | main () | |
10896 | { | |
81ecdfbb | 10897 | return dlopen (); |
dabbade6 L |
10898 | ; |
10899 | return 0; | |
10900 | } | |
10901 | _ACEOF | |
81ecdfbb | 10902 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10903 | ac_cv_lib_dl_dlopen=yes |
10904 | else | |
81ecdfbb | 10905 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10906 | fi |
81ecdfbb RW |
10907 | rm -f core conftest.err conftest.$ac_objext \ |
10908 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10909 | LIBS=$ac_check_lib_save_LIBS |
10910 | fi | |
81ecdfbb RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10912 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10913 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
dabbade6 L |
10914 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10915 | else | |
d7040cdb | 10916 | |
dabbade6 L |
10917 | lt_cv_dlopen="dyld" |
10918 | lt_cv_dlopen_libs= | |
10919 | lt_cv_dlopen_self=yes | |
d7040cdb | 10920 | |
81ecdfbb | 10921 | fi |
d7040cdb | 10922 | |
81ecdfbb RW |
10923 | ;; |
10924 | ||
10925 | *) | |
10926 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10927 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10928 | lt_cv_dlopen="shl_load" | |
10929 | else | |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10931 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10932 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10933 | $as_echo_n "(cached) " >&6 | |
10934 | else | |
10935 | ac_check_lib_save_LIBS=$LIBS | |
10936 | LIBS="-ldld $LIBS" | |
10937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10938 | /* end confdefs.h. */ | |
10939 | ||
10940 | /* Override any GCC internal prototype to avoid an error. | |
10941 | Use char because int might match the return type of a GCC | |
dabbade6 | 10942 | builtin and then its argument prototype would still apply. */ |
dabbade6 | 10943 | #ifdef __cplusplus |
81ecdfbb | 10944 | extern "C" |
dabbade6 | 10945 | #endif |
81ecdfbb | 10946 | char shl_load (); |
dabbade6 L |
10947 | int |
10948 | main () | |
10949 | { | |
81ecdfbb | 10950 | return shl_load (); |
dabbade6 L |
10951 | ; |
10952 | return 0; | |
10953 | } | |
10954 | _ACEOF | |
81ecdfbb RW |
10955 | if ac_fn_c_try_link "$LINENO"; then : |
10956 | ac_cv_lib_dld_shl_load=yes | |
dabbade6 | 10957 | else |
81ecdfbb | 10958 | ac_cv_lib_dld_shl_load=no |
dabbade6 | 10959 | fi |
81ecdfbb RW |
10960 | rm -f core conftest.err conftest.$ac_objext \ |
10961 | conftest$ac_exeext conftest.$ac_ext | |
10962 | LIBS=$ac_check_lib_save_LIBS | |
dabbade6 | 10963 | fi |
81ecdfbb RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10965 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10966 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10967 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10968 | else | |
10969 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10970 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
dabbade6 L |
10971 | lt_cv_dlopen="dlopen" |
10972 | else | |
81ecdfbb RW |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10974 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10975 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10976 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
10977 | else |
10978 | ac_check_lib_save_LIBS=$LIBS | |
10979 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10981 | /* end confdefs.h. */ |
d7040cdb | 10982 | |
81ecdfbb RW |
10983 | /* Override any GCC internal prototype to avoid an error. |
10984 | Use char because int might match the return type of a GCC | |
10985 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10986 | #ifdef __cplusplus |
10987 | extern "C" | |
10988 | #endif | |
dabbade6 L |
10989 | char dlopen (); |
10990 | int | |
10991 | main () | |
10992 | { | |
81ecdfbb | 10993 | return dlopen (); |
dabbade6 L |
10994 | ; |
10995 | return 0; | |
10996 | } | |
10997 | _ACEOF | |
81ecdfbb | 10998 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10999 | ac_cv_lib_dl_dlopen=yes |
11000 | else | |
81ecdfbb | 11001 | ac_cv_lib_dl_dlopen=no |
dabbade6 | 11002 | fi |
81ecdfbb RW |
11003 | rm -f core conftest.err conftest.$ac_objext \ |
11004 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
11005 | LIBS=$ac_check_lib_save_LIBS |
11006 | fi | |
81ecdfbb RW |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11008 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11009 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
dabbade6 L |
11010 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11011 | else | |
81ecdfbb RW |
11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11013 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11014 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11015 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
11016 | else |
11017 | ac_check_lib_save_LIBS=$LIBS | |
11018 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 11020 | /* end confdefs.h. */ |
d7040cdb | 11021 | |
81ecdfbb RW |
11022 | /* Override any GCC internal prototype to avoid an error. |
11023 | Use char because int might match the return type of a GCC | |
11024 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
11025 | #ifdef __cplusplus |
11026 | extern "C" | |
11027 | #endif | |
dabbade6 L |
11028 | char dlopen (); |
11029 | int | |
11030 | main () | |
11031 | { | |
81ecdfbb | 11032 | return dlopen (); |
dabbade6 L |
11033 | ; |
11034 | return 0; | |
11035 | } | |
11036 | _ACEOF | |
81ecdfbb | 11037 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
11038 | ac_cv_lib_svld_dlopen=yes |
11039 | else | |
81ecdfbb | 11040 | ac_cv_lib_svld_dlopen=no |
dabbade6 | 11041 | fi |
81ecdfbb RW |
11042 | rm -f core conftest.err conftest.$ac_objext \ |
11043 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
11044 | LIBS=$ac_check_lib_save_LIBS |
11045 | fi | |
81ecdfbb RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11047 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11048 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
dabbade6 L |
11049 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11050 | else | |
81ecdfbb RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11052 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11053 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11054 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
11055 | else |
11056 | ac_check_lib_save_LIBS=$LIBS | |
11057 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 11059 | /* end confdefs.h. */ |
d7040cdb | 11060 | |
81ecdfbb RW |
11061 | /* Override any GCC internal prototype to avoid an error. |
11062 | Use char because int might match the return type of a GCC | |
11063 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
11064 | #ifdef __cplusplus |
11065 | extern "C" | |
11066 | #endif | |
dabbade6 L |
11067 | char dld_link (); |
11068 | int | |
11069 | main () | |
11070 | { | |
81ecdfbb | 11071 | return dld_link (); |
dabbade6 L |
11072 | ; |
11073 | return 0; | |
11074 | } | |
11075 | _ACEOF | |
81ecdfbb | 11076 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
11077 | ac_cv_lib_dld_dld_link=yes |
11078 | else | |
81ecdfbb | 11079 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11080 | fi |
81ecdfbb RW |
11081 | rm -f core conftest.err conftest.$ac_objext \ |
11082 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 11083 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11084 | fi |
81ecdfbb RW |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11086 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11087 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
1927a18f | 11088 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
11089 | fi |
11090 | ||
d7040cdb | 11091 | |
d7040cdb SE |
11092 | fi |
11093 | ||
11094 | ||
dabbade6 | 11095 | fi |
d7040cdb SE |
11096 | |
11097 | ||
dabbade6 | 11098 | fi |
d7040cdb SE |
11099 | |
11100 | ||
d7040cdb SE |
11101 | fi |
11102 | ||
979273e3 | 11103 | |
252b5132 | 11104 | fi |
252b5132 | 11105 | |
dabbade6 L |
11106 | ;; |
11107 | esac | |
252b5132 | 11108 | |
dabbade6 L |
11109 | if test "x$lt_cv_dlopen" != xno; then |
11110 | enable_dlopen=yes | |
11111 | else | |
11112 | enable_dlopen=no | |
11113 | fi | |
1c0d3aa6 | 11114 | |
dabbade6 L |
11115 | case $lt_cv_dlopen in |
11116 | dlopen) | |
11117 | save_CPPFLAGS="$CPPFLAGS" | |
11118 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
20e95c23 | 11119 | |
dabbade6 L |
11120 | save_LDFLAGS="$LDFLAGS" |
11121 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
20e95c23 | 11122 | |
dabbade6 L |
11123 | save_LIBS="$LIBS" |
11124 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
20e95c23 | 11125 | |
81ecdfbb RW |
11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11127 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11128 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11129 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11130 | else |
dabbade6 L |
11131 | if test "$cross_compiling" = yes; then : |
11132 | lt_cv_dlopen_self=cross | |
d7040cdb | 11133 | else |
dabbade6 L |
11134 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11135 | lt_status=$lt_dlunknown | |
11136 | cat > conftest.$ac_ext <<_LT_EOF | |
822ce8ee | 11137 | #line 11137 "configure" |
dabbade6 | 11138 | #include "confdefs.h" |
20e95c23 | 11139 | |
dabbade6 L |
11140 | #if HAVE_DLFCN_H |
11141 | #include <dlfcn.h> | |
11142 | #endif | |
20e95c23 | 11143 | |
dabbade6 | 11144 | #include <stdio.h> |
20e95c23 | 11145 | |
dabbade6 L |
11146 | #ifdef RTLD_GLOBAL |
11147 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11148 | #else | |
11149 | # ifdef DL_GLOBAL | |
11150 | # define LT_DLGLOBAL DL_GLOBAL | |
11151 | # else | |
11152 | # define LT_DLGLOBAL 0 | |
11153 | # endif | |
11154 | #endif | |
20e95c23 | 11155 | |
dabbade6 L |
11156 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11157 | find out it does not work in some platform. */ | |
11158 | #ifndef LT_DLLAZY_OR_NOW | |
11159 | # ifdef RTLD_LAZY | |
11160 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11161 | # else | |
11162 | # ifdef DL_LAZY | |
11163 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11164 | # else | |
11165 | # ifdef RTLD_NOW | |
11166 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11167 | # else | |
11168 | # ifdef DL_NOW | |
11169 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11170 | # else | |
11171 | # define LT_DLLAZY_OR_NOW 0 | |
11172 | # endif | |
11173 | # endif | |
11174 | # endif | |
11175 | # endif | |
11176 | #endif | |
20e95c23 | 11177 | |
3725885a RW |
11178 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11179 | correspondingly for the symbols needed. */ | |
11180 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11181 | void fnord () __attribute__((visibility("default"))); | |
11182 | #endif | |
11183 | ||
11184 | void fnord () { int i=42; } | |
dabbade6 L |
11185 | int main () |
11186 | { | |
11187 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11188 | int status = $lt_dlunknown; | |
20e95c23 | 11189 | |
dabbade6 L |
11190 | if (self) |
11191 | { | |
11192 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11193 | else |
11194 | { | |
11195 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11196 | else puts (dlerror ()); | |
11197 | } | |
dabbade6 L |
11198 | /* dlclose (self); */ |
11199 | } | |
11200 | else | |
11201 | puts (dlerror ()); | |
d7040cdb | 11202 | |
1927a18f | 11203 | return status; |
dabbade6 L |
11204 | } |
11205 | _LT_EOF | |
81ecdfbb | 11206 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
11207 | (eval $ac_link) 2>&5 |
11208 | ac_status=$? | |
81ecdfbb RW |
11209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11210 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
11211 | (./conftest; exit; ) >&5 2>/dev/null |
11212 | lt_status=$? | |
11213 | case x$lt_status in | |
11214 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11215 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11216 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11217 | esac | |
11218 | else : | |
11219 | # compilation failed | |
11220 | lt_cv_dlopen_self=no | |
11221 | fi | |
d7040cdb | 11222 | fi |
dabbade6 L |
11223 | rm -fr conftest* |
11224 | ||
252b5132 | 11225 | |
d7040cdb | 11226 | fi |
81ecdfbb RW |
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11228 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d7040cdb | 11229 | |
dabbade6 L |
11230 | if test "x$lt_cv_dlopen_self" = xyes; then |
11231 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11233 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11234 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11235 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11236 | else |
dabbade6 L |
11237 | if test "$cross_compiling" = yes; then : |
11238 | lt_cv_dlopen_self_static=cross | |
d7040cdb | 11239 | else |
dabbade6 L |
11240 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11241 | lt_status=$lt_dlunknown | |
11242 | cat > conftest.$ac_ext <<_LT_EOF | |
822ce8ee | 11243 | #line 11243 "configure" |
dabbade6 | 11244 | #include "confdefs.h" |
252b5132 | 11245 | |
dabbade6 L |
11246 | #if HAVE_DLFCN_H |
11247 | #include <dlfcn.h> | |
11248 | #endif | |
252b5132 | 11249 | |
dabbade6 | 11250 | #include <stdio.h> |
d7040cdb | 11251 | |
dabbade6 L |
11252 | #ifdef RTLD_GLOBAL |
11253 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11254 | #else | |
11255 | # ifdef DL_GLOBAL | |
11256 | # define LT_DLGLOBAL DL_GLOBAL | |
11257 | # else | |
11258 | # define LT_DLGLOBAL 0 | |
11259 | # endif | |
11260 | #endif | |
20e95c23 | 11261 | |
dabbade6 L |
11262 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11263 | find out it does not work in some platform. */ | |
11264 | #ifndef LT_DLLAZY_OR_NOW | |
11265 | # ifdef RTLD_LAZY | |
11266 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11267 | # else | |
11268 | # ifdef DL_LAZY | |
11269 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11270 | # else | |
11271 | # ifdef RTLD_NOW | |
11272 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11273 | # else | |
11274 | # ifdef DL_NOW | |
11275 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11276 | # else | |
11277 | # define LT_DLLAZY_OR_NOW 0 | |
11278 | # endif | |
11279 | # endif | |
11280 | # endif | |
11281 | # endif | |
11282 | #endif | |
979273e3 | 11283 | |
3725885a RW |
11284 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11285 | correspondingly for the symbols needed. */ | |
11286 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11287 | void fnord () __attribute__((visibility("default"))); | |
11288 | #endif | |
11289 | ||
11290 | void fnord () { int i=42; } | |
dabbade6 L |
11291 | int main () |
11292 | { | |
11293 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11294 | int status = $lt_dlunknown; | |
d7040cdb | 11295 | |
dabbade6 L |
11296 | if (self) |
11297 | { | |
11298 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11299 | else |
11300 | { | |
11301 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11302 | else puts (dlerror ()); | |
11303 | } | |
dabbade6 L |
11304 | /* dlclose (self); */ |
11305 | } | |
11306 | else | |
11307 | puts (dlerror ()); | |
d7040cdb | 11308 | |
1927a18f | 11309 | return status; |
dabbade6 L |
11310 | } |
11311 | _LT_EOF | |
81ecdfbb | 11312 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
11313 | (eval $ac_link) 2>&5 |
11314 | ac_status=$? | |
81ecdfbb RW |
11315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11316 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
11317 | (./conftest; exit; ) >&5 2>/dev/null |
11318 | lt_status=$? | |
11319 | case x$lt_status in | |
11320 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11321 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11322 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11323 | esac | |
11324 | else : | |
11325 | # compilation failed | |
11326 | lt_cv_dlopen_self_static=no | |
11327 | fi | |
20e95c23 | 11328 | fi |
dabbade6 | 11329 | rm -fr conftest* |
979273e3 | 11330 | |
d7040cdb SE |
11331 | |
11332 | fi | |
81ecdfbb RW |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11334 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
dabbade6 L |
11335 | fi |
11336 | ||
11337 | CPPFLAGS="$save_CPPFLAGS" | |
11338 | LDFLAGS="$save_LDFLAGS" | |
11339 | LIBS="$save_LIBS" | |
11340 | ;; | |
11341 | esac | |
11342 | ||
11343 | case $lt_cv_dlopen_self in | |
11344 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11345 | *) enable_dlopen_self=unknown ;; | |
11346 | esac | |
11347 | ||
11348 | case $lt_cv_dlopen_self_static in | |
11349 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11350 | *) enable_dlopen_self_static=unknown ;; | |
11351 | esac | |
d7040cdb | 11352 | fi |
dabbade6 L |
11353 | |
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | striplib= | |
11371 | old_striplib= | |
81ecdfbb RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11373 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
dabbade6 L |
11374 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11375 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11376 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11378 | $as_echo "yes" >&6; } | |
d7040cdb | 11379 | else |
dabbade6 L |
11380 | # FIXME - insert some real tests, host_os isn't really good enough |
11381 | case $host_os in | |
11382 | darwin*) | |
11383 | if test -n "$STRIP" ; then | |
11384 | striplib="$STRIP -x" | |
11385 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11387 | $as_echo "yes" >&6; } | |
dabbade6 | 11388 | else |
81ecdfbb RW |
11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11390 | $as_echo "no" >&6; } | |
dabbade6 L |
11391 | fi |
11392 | ;; | |
11393 | *) | |
81ecdfbb RW |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11395 | $as_echo "no" >&6; } | |
dabbade6 L |
11396 | ;; |
11397 | esac | |
d7040cdb | 11398 | fi |
20e95c23 | 11399 | |
979273e3 | 11400 | |
dabbade6 L |
11401 | |
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | # Report which library types will actually be built | |
81ecdfbb RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11413 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11415 | $as_echo "$can_build_shared" >&6; } | |
dabbade6 | 11416 | |
81ecdfbb RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11418 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
dabbade6 L |
11419 | test "$can_build_shared" = "no" && enable_shared=no |
11420 | ||
11421 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11422 | # are all built from PIC. | |
11423 | case $host_os in | |
11424 | aix3*) | |
11425 | test "$enable_shared" = yes && enable_static=no | |
11426 | if test -n "$RANLIB"; then | |
11427 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11428 | postinstall_cmds='$RANLIB $lib' | |
11429 | fi | |
11430 | ;; | |
11431 | ||
50e7d84b | 11432 | aix[4-9]*) |
dabbade6 L |
11433 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11434 | test "$enable_shared" = yes && enable_static=no | |
11435 | fi | |
11436 | ;; | |
11437 | esac | |
81ecdfbb RW |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11439 | $as_echo "$enable_shared" >&6; } | |
dabbade6 | 11440 | |
81ecdfbb RW |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11442 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
dabbade6 L |
11443 | # Make sure either enable_shared or enable_static is yes. |
11444 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11446 | $as_echo "$enable_static" >&6; } | |
dabbade6 L |
11447 | |
11448 | ||
11449 | ||
d7040cdb | 11450 | |
252b5132 | 11451 | fi |
dabbade6 L |
11452 | ac_ext=c |
11453 | ac_cpp='$CPP $CPPFLAGS' | |
11454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 11457 | |
dabbade6 | 11458 | CC="$lt_save_CC" |
20e95c23 | 11459 | |
20e95c23 | 11460 | |
d7040cdb | 11461 | |
d7040cdb | 11462 | |
d7040cdb | 11463 | |
20e95c23 | 11464 | |
dabbade6 L |
11465 | |
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
81ecdfbb | 11472 | ac_config_commands="$ac_config_commands libtool" |
dabbade6 L |
11473 | |
11474 | ||
11475 | ||
11476 | ||
11477 | # Only expand once: | |
11478 | ||
11479 | ||
11480 | ||
81ecdfbb RW |
11481 | # Check whether --enable-targets was given. |
11482 | if test "${enable_targets+set}" = set; then : | |
11483 | enableval=$enable_targets; case "${enableval}" in | |
11484 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
dabbade6 L |
11485 | ;; |
11486 | no) enable_targets= ;; | |
11487 | *) enable_targets=$enableval ;; | |
11488 | esac | |
81ecdfbb RW |
11489 | fi |
11490 | ||
dabbade6 | 11491 | |
397841b5 AM |
11492 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
11493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11494 | /* end confdefs.h. */ | |
11495 | __GNUC__ | |
11496 | _ACEOF | |
11497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11498 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
11499 | ||
11500 | else | |
11501 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11502 | fi | |
11503 | rm -f conftest* | |
11504 | ||
dabbade6 | 11505 | |
81ecdfbb RW |
11506 | # Check whether --enable-werror was given. |
11507 | if test "${enable_werror+set}" = set; then : | |
11508 | enableval=$enable_werror; case "${enableval}" in | |
dabbade6 L |
11509 | yes | y) ERROR_ON_WARNING="yes" ;; |
11510 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 11511 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
dabbade6 | 11512 | esac |
81ecdfbb RW |
11513 | fi |
11514 | ||
dabbade6 | 11515 | |
397841b5 | 11516 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
11517 | case "${host}" in |
11518 | *-*-mingw32*) | |
11519 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11520 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11521 | fi | |
11522 | ;; | |
11523 | *) ;; | |
11524 | esac | |
11525 | ||
dabbade6 L |
11526 | # Enable -Werror by default when using gcc |
11527 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11528 | ERROR_ON_WARNING=yes | |
d7040cdb | 11529 | fi |
20e95c23 | 11530 | |
dabbade6 L |
11531 | NO_WERROR= |
11532 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11533 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11534 | NO_WERROR="-Wno-error" | |
20e95c23 | 11535 | fi |
d7040cdb | 11536 | |
dabbade6 L |
11537 | if test "${GCC}" = yes ; then |
11538 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11539 | fi | |
d7040cdb | 11540 | |
81ecdfbb RW |
11541 | # Check whether --enable-build-warnings was given. |
11542 | if test "${enable_build_warnings+set}" = set; then : | |
11543 | enableval=$enable_build_warnings; case "${enableval}" in | |
dabbade6 L |
11544 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11545 | no) if test "${GCC}" = yes ; then | |
11546 | WARN_CFLAGS="-w" | |
11547 | fi;; | |
11548 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11549 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11550 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11551 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11552 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11553 | esac | |
81ecdfbb RW |
11554 | fi |
11555 | ||
979273e3 | 11556 | |
dabbade6 L |
11557 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11558 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d7040cdb | 11559 | fi |
dabbade6 L |
11560 | |
11561 | ||
11562 | ||
11563 | ||
11564 | ||
81ecdfbb | 11565 | ac_config_headers="$ac_config_headers config.h:config.in" |
dabbade6 L |
11566 | |
11567 | ||
df7b86aa NC |
11568 | # PR 14072 |
11569 | ||
11570 | ||
dabbade6 | 11571 | if test -z "$target" ; then |
81ecdfbb | 11572 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
d7040cdb | 11573 | fi |
dabbade6 | 11574 | |
81ecdfbb RW |
11575 | |
11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11577 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11578 | # Check whether --enable-maintainer-mode was given. | |
11579 | if test "${enable_maintainer_mode+set}" = set; then : | |
11580 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
d7040cdb | 11581 | else |
dabbade6 | 11582 | USE_MAINTAINER_MODE=no |
81ecdfbb | 11583 | fi |
d7040cdb | 11584 | |
81ecdfbb RW |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11586 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11587 | if test $USE_MAINTAINER_MODE = yes; then | |
dabbade6 L |
11588 | MAINTAINER_MODE_TRUE= |
11589 | MAINTAINER_MODE_FALSE='#' | |
252b5132 | 11590 | else |
dabbade6 L |
11591 | MAINTAINER_MODE_TRUE='#' |
11592 | MAINTAINER_MODE_FALSE= | |
252b5132 | 11593 | fi |
d7040cdb | 11594 | |
dabbade6 L |
11595 | MAINT=$MAINTAINER_MODE_TRUE |
11596 | ||
11597 | ||
11598 | case ${build_alias} in | |
11599 | "") build_noncanonical=${build} ;; | |
11600 | *) build_noncanonical=${build_alias} ;; | |
11601 | esac | |
11602 | ||
11603 | case ${host_alias} in | |
11604 | "") host_noncanonical=${build_noncanonical} ;; | |
11605 | *) host_noncanonical=${host_alias} ;; | |
11606 | esac | |
979273e3 | 11607 | |
dabbade6 L |
11608 | case ${target_alias} in |
11609 | "") target_noncanonical=${host_noncanonical} ;; | |
11610 | *) target_noncanonical=${target_alias} ;; | |
d7040cdb | 11611 | esac |
252b5132 | 11612 | |
81ecdfbb RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 |
11614 | $as_echo_n "checking whether to install libbfd... " >&6; } | |
11615 | # Check whether --enable-install-libbfd was given. | |
11616 | if test "${enable_install_libbfd+set}" = set; then : | |
11617 | enableval=$enable_install_libbfd; install_libbfd_p=$enableval | |
979273e3 | 11618 | else |
dabbade6 L |
11619 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
11620 | install_libbfd_p=yes | |
11621 | else | |
11622 | install_libbfd_p=no | |
11623 | fi | |
81ecdfbb | 11624 | fi |
d7040cdb | 11625 | |
81ecdfbb RW |
11626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 |
11627 | $as_echo "$install_libbfd_p" >&6; } | |
11628 | if test $install_libbfd_p = yes; then | |
dabbade6 L |
11629 | INSTALL_LIBBFD_TRUE= |
11630 | INSTALL_LIBBFD_FALSE='#' | |
11631 | else | |
11632 | INSTALL_LIBBFD_TRUE='#' | |
11633 | INSTALL_LIBBFD_FALSE= | |
d7040cdb SE |
11634 | fi |
11635 | ||
dabbade6 | 11636 | # Need _noncanonical variables for this. |
979273e3 | 11637 | |
d7040cdb SE |
11638 | |
11639 | ||
dabbade6 L |
11640 | |
11641 | # libbfd.a is a host library containing target dependent code | |
11642 | bfdlibdir='$(libdir)' | |
11643 | bfdincludedir='$(includedir)' | |
11644 | if test "${host}" != "${target}"; then | |
11645 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
11646 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
11647 | fi | |
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
573e8a1c RW |
11654 | |
11655 | ||
dabbade6 L |
11656 | # host-specific stuff: |
11657 | ||
207d428d | 11658 | ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN it" |
d7040cdb SE |
11659 | # If we haven't got the data from the intl directory, |
11660 | # assume NLS is disabled. | |
11661 | USE_NLS=no | |
11662 | LIBINTL= | |
11663 | LIBINTL_DEP= | |
11664 | INCINTL= | |
11665 | XGETTEXT= | |
11666 | GMSGFMT= | |
11667 | POSUB= | |
11668 | ||
11669 | if test -f ../intl/config.intl; then | |
11670 | . ../intl/config.intl | |
11671 | fi | |
81ecdfbb RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11673 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 11674 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11676 | $as_echo "no" >&6; } | |
d7040cdb | 11677 | else |
81ecdfbb RW |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11679 | $as_echo "yes" >&6; } | |
d7040cdb | 11680 | |
81ecdfbb | 11681 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
11682 | |
11683 | ||
81ecdfbb RW |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
11685 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
11686 | # Look for .po and .gmo files in the source directory. |
11687 | CATALOGS= | |
11688 | XLINGUAS= | |
11689 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11690 | # If there aren't any .gmo files the shell will give us the | |
11691 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11692 | # weeded out. | |
11693 | case "$cat" in *\**) | |
11694 | continue;; | |
11695 | esac | |
11696 | # The quadruple backslash is collapsed to a double backslash | |
11697 | # by the backticks, then collapsed again by the double quotes, | |
11698 | # leaving us with one backslash in the sed expression (right | |
11699 | # before the dot that mustn't act as a wildcard). | |
11700 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11701 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11702 | # The user is allowed to set LINGUAS to a list of languages to | |
11703 | # install catalogs for. If it's empty that means "all of them." | |
11704 | if test "x$LINGUAS" = x; then | |
11705 | CATALOGS="$CATALOGS $cat" | |
11706 | XLINGUAS="$XLINGUAS $lang" | |
11707 | else | |
11708 | case "$LINGUAS" in *$lang*) | |
11709 | CATALOGS="$CATALOGS $cat" | |
11710 | XLINGUAS="$XLINGUAS $lang" | |
11711 | ;; | |
11712 | esac | |
11713 | fi | |
11714 | done | |
11715 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
11717 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
11718 | |
11719 | ||
11720 | DATADIRNAME=share | |
11721 | ||
11722 | INSTOBJEXT=.mo | |
11723 | ||
11724 | GENCAT=gencat | |
11725 | ||
11726 | CATOBJEXT=.gmo | |
11727 | ||
11728 | fi | |
11729 | ||
11730 | MKINSTALLDIRS= | |
11731 | if test -n "$ac_aux_dir"; then | |
11732 | case "$ac_aux_dir" in | |
11733 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11734 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11735 | esac | |
11736 | fi | |
11737 | if test -z "$MKINSTALLDIRS"; then | |
11738 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11739 | fi | |
11740 | ||
11741 | ||
11742 | ||
81ecdfbb RW |
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11744 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11745 | # Check whether --enable-nls was given. | |
11746 | if test "${enable_nls+set}" = set; then : | |
11747 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11748 | else |
11749 | USE_NLS=yes | |
81ecdfbb RW |
11750 | fi |
11751 | ||
11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11753 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11754 | |
11755 | ||
11756 | ||
11757 | ||
11758 | ||
11759 | ||
11760 | # Prepare PATH_SEPARATOR. | |
11761 | # The user is always right. | |
11762 | if test "${PATH_SEPARATOR+set}" != set; then | |
11763 | echo "#! /bin/sh" >conf$$.sh | |
11764 | echo "exit 0" >>conf$$.sh | |
11765 | chmod +x conf$$.sh | |
11766 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11767 | PATH_SEPARATOR=';' | |
11768 | else | |
11769 | PATH_SEPARATOR=: | |
11770 | fi | |
11771 | rm -f conf$$.sh | |
11772 | fi | |
979273e3 | 11773 | |
d7040cdb SE |
11774 | # Find out how to test for executable files. Don't use a zero-byte file, |
11775 | # as systems may use methods other than mode bits to determine executability. | |
11776 | cat >conf$$.file <<_ASEOF | |
11777 | #! /bin/sh | |
11778 | exit 0 | |
11779 | _ASEOF | |
11780 | chmod +x conf$$.file | |
11781 | if test -x conf$$.file >/dev/null 2>&1; then | |
11782 | ac_executable_p="test -x" | |
252b5132 | 11783 | else |
d7040cdb | 11784 | ac_executable_p="test -f" |
252b5132 | 11785 | fi |
d7040cdb | 11786 | rm -f conf$$.file |
252b5132 | 11787 | |
d7040cdb SE |
11788 | # Extract the first word of "msgfmt", so it can be a program name with args. |
11789 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11791 | $as_echo_n "checking for $ac_word... " >&6; } | |
11792 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
11793 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11794 | else |
d7040cdb SE |
11795 | case "$MSGFMT" in |
11796 | [\\/]* | ?:[\\/]*) | |
11797 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11798 | ;; | |
11799 | *) | |
11800 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11801 | for ac_dir in $PATH; do | |
11802 | IFS="$ac_save_IFS" | |
11803 | test -z "$ac_dir" && ac_dir=. | |
11804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11805 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11806 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11807 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11808 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11809 | break 2 | |
11810 | fi | |
11811 | fi | |
11812 | done | |
11813 | done | |
11814 | IFS="$ac_save_IFS" | |
11815 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11816 | ;; | |
11817 | esac | |
11818 | fi | |
11819 | MSGFMT="$ac_cv_path_MSGFMT" | |
11820 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11822 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11823 | else |
81ecdfbb RW |
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11825 | $as_echo "no" >&6; } | |
252b5132 RH |
11826 | fi |
11827 | ||
d7040cdb SE |
11828 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
11829 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11831 | $as_echo_n "checking for $ac_word... " >&6; } | |
11832 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
11833 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 11834 | else |
d7040cdb SE |
11835 | case $GMSGFMT in |
11836 | [\\/]* | ?:[\\/]*) | |
11837 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11838 | ;; | |
11839 | *) | |
11840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11841 | for as_dir in $PATH | |
11842 | do | |
11843 | IFS=$as_save_IFS | |
11844 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11845 | for ac_exec_ext in '' $ac_executable_extensions; do |
11846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 11847 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11849 | break 2 |
11850 | fi | |
11851 | done | |
81ecdfbb RW |
11852 | done |
11853 | IFS=$as_save_IFS | |
252b5132 | 11854 | |
d7040cdb SE |
11855 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
11856 | ;; | |
11857 | esac | |
11858 | fi | |
11859 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 11860 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
11862 | $as_echo "$GMSGFMT" >&6; } | |
252b5132 | 11863 | else |
81ecdfbb RW |
11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11865 | $as_echo "no" >&6; } | |
252b5132 RH |
11866 | fi |
11867 | ||
11868 | ||
20e95c23 | 11869 | |
81ecdfbb | 11870 | |
d7040cdb SE |
11871 | # Prepare PATH_SEPARATOR. |
11872 | # The user is always right. | |
11873 | if test "${PATH_SEPARATOR+set}" != set; then | |
11874 | echo "#! /bin/sh" >conf$$.sh | |
11875 | echo "exit 0" >>conf$$.sh | |
11876 | chmod +x conf$$.sh | |
11877 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11878 | PATH_SEPARATOR=';' | |
11879 | else | |
11880 | PATH_SEPARATOR=: | |
11881 | fi | |
11882 | rm -f conf$$.sh | |
252b5132 RH |
11883 | fi |
11884 | ||
d7040cdb SE |
11885 | # Find out how to test for executable files. Don't use a zero-byte file, |
11886 | # as systems may use methods other than mode bits to determine executability. | |
11887 | cat >conf$$.file <<_ASEOF | |
11888 | #! /bin/sh | |
11889 | exit 0 | |
11890 | _ASEOF | |
11891 | chmod +x conf$$.file | |
11892 | if test -x conf$$.file >/dev/null 2>&1; then | |
11893 | ac_executable_p="test -x" | |
11894 | else | |
11895 | ac_executable_p="test -f" | |
11896 | fi | |
11897 | rm -f conf$$.file | |
20e95c23 | 11898 | |
d7040cdb SE |
11899 | # Extract the first word of "xgettext", so it can be a program name with args. |
11900 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11902 | $as_echo_n "checking for $ac_word... " >&6; } | |
11903 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
11904 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11905 | else |
d7040cdb SE |
11906 | case "$XGETTEXT" in |
11907 | [\\/]* | ?:[\\/]*) | |
11908 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11909 | ;; | |
11910 | *) | |
11911 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11912 | for ac_dir in $PATH; do | |
11913 | IFS="$ac_save_IFS" | |
11914 | test -z "$ac_dir" && ac_dir=. | |
11915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11916 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11917 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11918 | (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 | |
11919 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11920 | break 2 | |
11921 | fi | |
11922 | fi | |
11923 | done | |
11924 | done | |
11925 | IFS="$ac_save_IFS" | |
11926 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11927 | ;; | |
11928 | esac | |
20e95c23 | 11929 | fi |
d7040cdb SE |
11930 | XGETTEXT="$ac_cv_path_XGETTEXT" |
11931 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
11933 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 11934 | else |
81ecdfbb RW |
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11936 | $as_echo "no" >&6; } | |
d7040cdb SE |
11937 | fi |
11938 | ||
11939 | rm -f messages.po | |
11940 | ||
979273e3 | 11941 | |
d7040cdb SE |
11942 | # Prepare PATH_SEPARATOR. |
11943 | # The user is always right. | |
11944 | if test "${PATH_SEPARATOR+set}" != set; then | |
11945 | echo "#! /bin/sh" >conf$$.sh | |
11946 | echo "exit 0" >>conf$$.sh | |
11947 | chmod +x conf$$.sh | |
11948 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11949 | PATH_SEPARATOR=';' | |
11950 | else | |
11951 | PATH_SEPARATOR=: | |
11952 | fi | |
11953 | rm -f conf$$.sh | |
252b5132 | 11954 | fi |
979273e3 | 11955 | |
d7040cdb SE |
11956 | # Find out how to test for executable files. Don't use a zero-byte file, |
11957 | # as systems may use methods other than mode bits to determine executability. | |
11958 | cat >conf$$.file <<_ASEOF | |
11959 | #! /bin/sh | |
11960 | exit 0 | |
11961 | _ASEOF | |
11962 | chmod +x conf$$.file | |
11963 | if test -x conf$$.file >/dev/null 2>&1; then | |
11964 | ac_executable_p="test -x" | |
252b5132 | 11965 | else |
d7040cdb SE |
11966 | ac_executable_p="test -f" |
11967 | fi | |
11968 | rm -f conf$$.file | |
252b5132 | 11969 | |
d7040cdb SE |
11970 | # Extract the first word of "msgmerge", so it can be a program name with args. |
11971 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11973 | $as_echo_n "checking for $ac_word... " >&6; } | |
11974 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
11975 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11976 | else |
d7040cdb SE |
11977 | case "$MSGMERGE" in |
11978 | [\\/]* | ?:[\\/]*) | |
11979 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11980 | ;; | |
11981 | *) | |
11982 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11983 | for ac_dir in $PATH; do | |
11984 | IFS="$ac_save_IFS" | |
11985 | test -z "$ac_dir" && ac_dir=. | |
11986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11987 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11988 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11989 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11990 | break 2 | |
11991 | fi | |
11992 | fi | |
11993 | done | |
11994 | done | |
11995 | IFS="$ac_save_IFS" | |
11996 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11997 | ;; | |
11998 | esac | |
20e95c23 | 11999 | fi |
d7040cdb SE |
12000 | MSGMERGE="$ac_cv_path_MSGMERGE" |
12001 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12003 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 12004 | else |
81ecdfbb RW |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12006 | $as_echo "no" >&6; } | |
20e95c23 | 12007 | fi |
252b5132 | 12008 | |
979273e3 | 12009 | |
d7040cdb SE |
12010 | if test "$GMSGFMT" != ":"; then |
12011 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12012 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12013 | : ; | |
12014 | else | |
12015 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12017 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12018 | GMSGFMT=":" |
12019 | fi | |
12020 | fi | |
979273e3 | 12021 | |
d7040cdb SE |
12022 | if test "$XGETTEXT" != ":"; then |
12023 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12024 | (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 | |
12025 | : ; | |
12026 | else | |
81ecdfbb RW |
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12028 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12029 | XGETTEXT=":" |
12030 | fi | |
12031 | rm -f messages.po | |
12032 | fi | |
979273e3 | 12033 | |
81ecdfbb | 12034 | ac_config_commands="$ac_config_commands default-1" |
979273e3 | 12035 | |
979273e3 | 12036 | |
979273e3 | 12037 | |
81ecdfbb | 12038 | . ${srcdir}/../bfd/configure.host |
252b5132 | 12039 | |
81ecdfbb RW |
12040 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
12041 | if test -z "$CC_FOR_BUILD"; then | |
12042 | if test "x$cross_compiling" = "xno"; then | |
12043 | CC_FOR_BUILD='$(CC)' | |
12044 | else | |
12045 | CC_FOR_BUILD=gcc | |
12046 | fi | |
12047 | fi | |
252b5132 | 12048 | |
81ecdfbb RW |
12049 | # Also set EXEEXT_FOR_BUILD. |
12050 | if test "x$cross_compiling" = "xno"; then | |
12051 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
4bd60896 | 12052 | else |
81ecdfbb RW |
12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 |
12054 | $as_echo_n "checking for build system executable suffix... " >&6; } | |
12055 | if test "${bfd_cv_build_exeext+set}" = set; then : | |
12056 | $as_echo_n "(cached) " >&6 | |
4bd60896 | 12057 | else |
81ecdfbb RW |
12058 | rm -f conftest* |
12059 | echo 'int main () { return 0; }' > conftest.c | |
12060 | bfd_cv_build_exeext= | |
12061 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
12062 | for file in conftest.*; do | |
12063 | case $file in | |
12064 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
12065 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
12066 | esac | |
12067 | done | |
12068 | rm -f conftest* | |
12069 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
4bd60896 | 12070 | fi |
81ecdfbb RW |
12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 |
12072 | $as_echo "$bfd_cv_build_exeext" >&6; } | |
12073 | EXEEXT_FOR_BUILD="" | |
12074 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
4bd60896 | 12075 | fi |
4bd60896 | 12076 | |
4bd60896 JG |
12077 | |
12078 | ||
81ecdfbb RW |
12079 | |
12080 | ||
12081 | for ac_header in string.h strings.h stdlib.h limits.h | |
12082 | do : | |
12083 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12084 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12085 | eval as_val=\$$as_ac_Header | |
12086 | if test "x$as_val" = x""yes; then : | |
4bd60896 | 12087 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12088 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4bd60896 JG |
12089 | _ACEOF |
12090 | ||
dabbade6 | 12091 | fi |
dabbade6 | 12092 | |
81ecdfbb | 12093 | done |
dabbade6 | 12094 | |
208a4923 NC |
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
12096 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
12097 | if test "${gcc_cv_header_string+set}" = set; then : | |
12098 | $as_echo_n "(cached) " >&6 | |
12099 | else | |
12100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12101 | /* end confdefs.h. */ | |
12102 | #include <string.h> | |
12103 | #include <strings.h> | |
12104 | int | |
12105 | main () | |
12106 | { | |
12107 | ||
12108 | ; | |
12109 | return 0; | |
12110 | } | |
12111 | _ACEOF | |
12112 | if ac_fn_c_try_compile "$LINENO"; then : | |
12113 | gcc_cv_header_string=yes | |
12114 | else | |
12115 | gcc_cv_header_string=no | |
12116 | fi | |
12117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12118 | fi | |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
12120 | $as_echo "$gcc_cv_header_string" >&6; } | |
12121 | if test $gcc_cv_header_string = yes; then | |
12122 | ||
12123 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
12124 | ||
12125 | fi | |
12126 | ||
81ecdfbb RW |
12127 | |
12128 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
12129 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
12130 | ac_have_decl=1 | |
12131 | else | |
12132 | ac_have_decl=0 | |
dabbade6 | 12133 | fi |
dabbade6 L |
12134 | |
12135 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 12136 | #define HAVE_DECL_BASENAME $ac_have_decl |
dabbade6 | 12137 | _ACEOF |
81ecdfbb RW |
12138 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
12139 | if test "x$ac_cv_have_decl_stpcpy" = x""yes; then : | |
12140 | ac_have_decl=1 | |
dabbade6 | 12141 | else |
81ecdfbb | 12142 | ac_have_decl=0 |
4bd60896 JG |
12143 | fi |
12144 | ||
81ecdfbb RW |
12145 | cat >>confdefs.h <<_ACEOF |
12146 | #define HAVE_DECL_STPCPY $ac_have_decl | |
12147 | _ACEOF | |
4bd60896 JG |
12148 | |
12149 | ||
6e31aea3 BE |
12150 | cgen_maint=no |
12151 | cgendir='$(srcdir)/../cgen' | |
12152 | ||
81ecdfbb RW |
12153 | # Check whether --enable-cgen-maint was given. |
12154 | if test "${enable_cgen_maint+set}" = set; then : | |
12155 | enableval=$enable_cgen_maint; case "${enableval}" in | |
6e31aea3 BE |
12156 | yes) cgen_maint=yes ;; |
12157 | no) cgen_maint=no ;; | |
12158 | *) | |
12159 | # argument is cgen install directory (not implemented yet). | |
12160 | # Having a `share' directory might be more appropriate for the .scm, | |
12161 | # .cpu, etc. files. | |
12162 | cgen_maint=yes | |
12163 | cgendir=${cgen_maint}/lib/cgen | |
12164 | ;; | |
12165 | esac | |
81ecdfbb RW |
12166 | fi |
12167 | if test x${cgen_maint} = xyes; then | |
6e31aea3 BE |
12168 | CGEN_MAINT_TRUE= |
12169 | CGEN_MAINT_FALSE='#' | |
12170 | else | |
12171 | CGEN_MAINT_TRUE='#' | |
12172 | CGEN_MAINT_FALSE= | |
12173 | fi | |
12174 | ||
252b5132 | 12175 | |
8ae85421 | 12176 | |
252b5132 RH |
12177 | using_cgen=no |
12178 | ||
51dec227 | 12179 | # Check if linker supports --as-needed and --no-as-needed options |
81ecdfbb RW |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
12181 | $as_echo_n "checking linker --as-needed support... " >&6; } | |
12182 | if test "${bfd_cv_ld_as_needed+set}" = set; then : | |
12183 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12184 | else |
12185 | bfd_cv_ld_as_needed=no | |
12186 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
12187 | bfd_cv_ld_as_needed=yes | |
12188 | fi | |
12189 | ||
12190 | fi | |
81ecdfbb RW |
12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 |
12192 | $as_echo "$bfd_cv_ld_as_needed" >&6; } | |
51dec227 AM |
12193 | |
12194 | LIBM= | |
12195 | case $host in | |
3725885a | 12196 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
51dec227 AM |
12197 | # These system don't have libm, or don't need it |
12198 | ;; | |
12199 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
12201 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
12202 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : | |
12203 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12204 | else |
12205 | ac_check_lib_save_LIBS=$LIBS | |
12206 | LIBS="-lmw $LIBS" | |
81ecdfbb | 12207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12208 | /* end confdefs.h. */ |
12209 | ||
81ecdfbb RW |
12210 | /* Override any GCC internal prototype to avoid an error. |
12211 | Use char because int might match the return type of a GCC | |
12212 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12213 | #ifdef __cplusplus |
12214 | extern "C" | |
12215 | #endif | |
51dec227 AM |
12216 | char _mwvalidcheckl (); |
12217 | int | |
12218 | main () | |
12219 | { | |
81ecdfbb | 12220 | return _mwvalidcheckl (); |
51dec227 AM |
12221 | ; |
12222 | return 0; | |
12223 | } | |
12224 | _ACEOF | |
81ecdfbb | 12225 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12226 | ac_cv_lib_mw__mwvalidcheckl=yes |
12227 | else | |
81ecdfbb | 12228 | ac_cv_lib_mw__mwvalidcheckl=no |
51dec227 | 12229 | fi |
81ecdfbb RW |
12230 | rm -f core conftest.err conftest.$ac_objext \ |
12231 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12232 | LIBS=$ac_check_lib_save_LIBS |
12233 | fi | |
81ecdfbb RW |
12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
12235 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
12236 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : | |
51dec227 AM |
12237 | LIBM="-lmw" |
12238 | fi | |
12239 | ||
81ecdfbb RW |
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
12241 | $as_echo_n "checking for cos in -lm... " >&6; } | |
12242 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
12243 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12244 | else |
12245 | ac_check_lib_save_LIBS=$LIBS | |
12246 | LIBS="-lm $LIBS" | |
81ecdfbb | 12247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12248 | /* end confdefs.h. */ |
12249 | ||
81ecdfbb RW |
12250 | /* Override any GCC internal prototype to avoid an error. |
12251 | Use char because int might match the return type of a GCC | |
12252 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12253 | #ifdef __cplusplus |
12254 | extern "C" | |
12255 | #endif | |
51dec227 AM |
12256 | char cos (); |
12257 | int | |
12258 | main () | |
12259 | { | |
81ecdfbb | 12260 | return cos (); |
51dec227 AM |
12261 | ; |
12262 | return 0; | |
12263 | } | |
12264 | _ACEOF | |
81ecdfbb | 12265 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12266 | ac_cv_lib_m_cos=yes |
12267 | else | |
81ecdfbb | 12268 | ac_cv_lib_m_cos=no |
51dec227 | 12269 | fi |
81ecdfbb RW |
12270 | rm -f core conftest.err conftest.$ac_objext \ |
12271 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12272 | LIBS=$ac_check_lib_save_LIBS |
12273 | fi | |
81ecdfbb RW |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
12275 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
12276 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
51dec227 AM |
12277 | LIBM="$LIBM -lm" |
12278 | fi | |
12279 | ||
12280 | ;; | |
12281 | *) | |
81ecdfbb RW |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
12283 | $as_echo_n "checking for cos in -lm... " >&6; } | |
12284 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
12285 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12286 | else |
12287 | ac_check_lib_save_LIBS=$LIBS | |
12288 | LIBS="-lm $LIBS" | |
81ecdfbb | 12289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12290 | /* end confdefs.h. */ |
12291 | ||
81ecdfbb RW |
12292 | /* Override any GCC internal prototype to avoid an error. |
12293 | Use char because int might match the return type of a GCC | |
12294 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12295 | #ifdef __cplusplus |
12296 | extern "C" | |
12297 | #endif | |
51dec227 AM |
12298 | char cos (); |
12299 | int | |
12300 | main () | |
12301 | { | |
81ecdfbb | 12302 | return cos (); |
51dec227 AM |
12303 | ; |
12304 | return 0; | |
12305 | } | |
12306 | _ACEOF | |
81ecdfbb | 12307 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12308 | ac_cv_lib_m_cos=yes |
12309 | else | |
81ecdfbb | 12310 | ac_cv_lib_m_cos=no |
51dec227 | 12311 | fi |
81ecdfbb RW |
12312 | rm -f core conftest.err conftest.$ac_objext \ |
12313 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12314 | LIBS=$ac_check_lib_save_LIBS |
12315 | fi | |
81ecdfbb RW |
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
12317 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
12318 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
51dec227 AM |
12319 | LIBM="-lm" |
12320 | fi | |
12321 | ||
12322 | ;; | |
12323 | esac | |
12324 | ||
12325 | ||
12326 | ||
2eee5593 AM |
12327 | #Libs for generator progs |
12328 | if test "x$cross_compiling" = "xno"; then | |
12329 | BUILD_LIBS=../libiberty/libiberty.a | |
12330 | BUILD_LIB_DEPS=$BUILD_LIBS | |
12331 | else | |
12332 | # if cross-compiling, assume that the system provides -liberty | |
12333 | # and that the version is compatible with new headers. | |
12334 | BUILD_LIBS=-liberty | |
12335 | BUILD_LIB_DEPS= | |
12336 | fi | |
12337 | BUILD_LIBS="$BUILD_LIBS $LIBINTL" | |
12338 | BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" | |
12339 | ||
12340 | ||
12341 | ||
12342 | ||
45d42143 NC |
12343 | # Horrible hacks to build DLLs on Windows and a shared library elsewhere. |
12344 | SHARED_LDFLAGS= | |
12345 | SHARED_LIBADD= | |
12346 | SHARED_DEPENDENCIES= | |
12347 | if test "$enable_shared" = "yes"; then | |
29670fb9 AM |
12348 | # When building a shared libopcodes, link against the pic version of libiberty |
12349 | # so that apps that use libopcodes won't need libiberty just to satisfy any | |
12350 | # libopcodes references. | |
12351 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
12352 | # code would insert text relocations into libopcodes. | |
12353 | # Note that linking against libbfd as we do here, which is itself linked | |
12354 | # against libiberty, may not satisfy all the libopcodes libiberty references | |
12355 | # since libbfd may not pull in the entirety of libiberty. | |
12356 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | |
12357 | if test -n "$x"; then | |
12358 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | |
12359 | fi | |
12360 | ||
45d42143 NC |
12361 | case "${host}" in |
12362 | *-*-cygwin*) | |
12363 | SHARED_LDFLAGS="-no-undefined" | |
12364 | SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" | |
12365 | ;; | |
0e336180 | 12366 | *-*-darwin*) |
29670fb9 | 12367 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}" |
0e336180 NC |
12368 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
12369 | ;; | |
45d42143 | 12370 | *) |
0e336180 NC |
12371 | case "$host_vendor" in |
12372 | hp) | |
29670fb9 | 12373 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}" |
0e336180 NC |
12374 | ;; |
12375 | *) | |
29670fb9 | 12376 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}" |
0e336180 NC |
12377 | ;; |
12378 | esac | |
4267b19f | 12379 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
45d42143 NC |
12380 | ;; |
12381 | esac | |
51dec227 AM |
12382 | |
12383 | if test -n "$SHARED_LIBADD"; then | |
12384 | if test -n "$LIBM"; then | |
12385 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
12386 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
12387 | # to stop libtool reordering these options. | |
12388 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
12389 | else | |
12390 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
12391 | fi | |
12392 | fi | |
12393 | fi | |
45d42143 NC |
12394 | fi |
12395 | ||
252b5132 RH |
12396 | |
12397 | ||
12398 | ||
12399 | # target-specific stuff: | |
12400 | ||
12401 | # Canonicalize the secondary target names. | |
12402 | if test -n "$enable_targets" ; then | |
12403 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
12404 | do | |
6d83c84b | 12405 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
12406 | if test -n "$result" ; then |
12407 | canon_targets="$canon_targets $result" | |
12408 | else | |
12409 | # Allow targets that config.sub doesn't recognize, like "all". | |
12410 | canon_targets="$canon_targets $targ" | |
12411 | fi | |
12412 | done | |
12413 | fi | |
12414 | ||
12415 | all_targets=false | |
12416 | selarchs= | |
12417 | for targ in $target $canon_targets | |
12418 | do | |
12419 | if test "x$targ" = "xall" ; then | |
12420 | all_targets=true | |
12421 | else | |
12422 | . $srcdir/../bfd/config.bfd | |
12423 | selarchs="$selarchs $targ_archs" | |
12424 | fi | |
979273e3 | 12425 | done |
252b5132 RH |
12426 | |
12427 | # Utility var, documents generic cgen support files. | |
12428 | ||
3609e0fe | 12429 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" |
252b5132 RH |
12430 | |
12431 | # We don't do any links based on the target system, just makefile config. | |
12432 | ||
12433 | if test x${all_targets} = xfalse ; then | |
12434 | ||
12435 | # Target architecture .o files. | |
12436 | ta= | |
12437 | ||
12438 | for arch in $selarchs | |
12439 | do | |
12440 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` | |
12441 | archdefs="$archdefs -DARCH_$ad" | |
12442 | case "$arch" in | |
252b5132 | 12443 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; |
0d2bcfaf | 12444 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
252b5132 | 12445 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
adde6300 | 12446 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
4b7f6baa | 12447 | bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; |
3d3d428f | 12448 | bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; |
3609e0fe | 12449 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; |
1fe1f39c | 12450 | bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; |
252b5132 RH |
12451 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
12452 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; | |
d172d4ba | 12453 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; |
252b5132 | 12454 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; |
c5f5f1f4 | 12455 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; |
20135e4c | 12456 | bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; |
252b5132 RH |
12457 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; |
12458 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; | |
12459 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; | |
5b93d8bb | 12460 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; |
7a9068fe | 12461 | bfd_i386_arch|bfd_l1om_arch|bfd_k1om_arch) |
8a9036a4 | 12462 | ta="$ta i386-dis.lo i386-opc.lo" ;; |
9d751335 | 12463 | bfd_i860_arch) ta="$ta i860-dis.lo" ;; |
252b5132 | 12464 | bfd_i960_arch) ta="$ta i960-dis.lo" ;; |
800eeca4 | 12465 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
a40cbfa3 | 12466 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; |
cfb8c092 | 12467 | bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; |
47b1a55a | 12468 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; |
84e94c90 | 12469 | bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; |
c5f5f1f4 | 12470 | bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; |
252b5132 | 12471 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
60bcf0fa NC |
12472 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
12473 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; | |
df7b86aa | 12474 | bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
6927f982 | 12475 | bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
252b5132 RH |
12476 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
12477 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; | |
12478 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; | |
bd2f2e55 | 12479 | bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; |
7ba29e2a | 12480 | bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; |
df58fc94 | 12481 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; |
3c3bdf30 | 12482 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; |
252b5132 RH |
12483 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
12484 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; | |
d031aafb | 12485 | bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; |
2469cfa2 | 12486 | bfd_msp430_arch) ta="$ta msp430-dis.lo" ;; |
252b5132 | 12487 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
87e6d782 | 12488 | bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;; |
3b16e843 | 12489 | bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;; |
e135f41b | 12490 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; |
1e608f98 | 12491 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
252b5132 | 12492 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
a85d7ed0 | 12493 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
5dd0794d | 12494 | bfd_pyramid_arch) ;; |
252b5132 RH |
12495 | bfd_romp_arch) ;; |
12496 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; | |
99c513f6 | 12497 | bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; |
c7927a3c | 12498 | bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; |
a85d7ed0 | 12499 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
c3b7224a | 12500 | bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; |
09919455 | 12501 | bfd_sh_arch) |
d28847ce | 12502 | # We can't decide what we want just from the CPU family. |
e8b872bb AO |
12503 | # We want SH5 support unless a specific version of sh is |
12504 | # specified, as in sh3-elf, sh3b-linux-gnu, etc. | |
ca0f2ed6 HPN |
12505 | # Include it just for ELF targets, since the SH5 bfd:s are ELF only. |
12506 | for t in $target $canon_targets; do | |
12507 | case $t in | |
5b0e55b6 | 12508 | all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ |
942e7dd9 | 12509 | sh-*-linux* | shl-*-linux*) |
d28847ce | 12510 | ta="$ta sh64-dis.lo sh64-opc.lo" |
ca0f2ed6 HPN |
12511 | archdefs="$archdefs -DINCLUDE_SHMEDIA" |
12512 | break;; | |
12513 | esac; | |
12514 | done | |
d3f1a427 | 12515 | ta="$ta sh-dis.lo cgen-bitset.lo" ;; |
252b5132 | 12516 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
e9f53129 | 12517 | bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; |
252b5132 RH |
12518 | bfd_tahoe_arch) ;; |
12519 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; | |
026df7c5 | 12520 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; |
5c84d377 | 12521 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
40b36596 | 12522 | bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; |
252b5132 | 12523 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; |
aa137e4d NC |
12524 | bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; |
12525 | bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; | |
252b5132 RH |
12526 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
12527 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
12528 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
12529 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; | |
12530 | bfd_w65_arch) ta="$ta w65-dis.lo" ;; | |
12531 | bfd_we32k_arch) ;; | |
f6c1a2d5 NC |
12532 | bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;; |
12533 | bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; | |
93fbbb04 | 12534 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; |
e0001a05 | 12535 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; |
3c9b82ba | 12536 | bfd_z80_arch) ta="$ta z80-dis.lo" ;; |
252b5132 RH |
12537 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
12538 | ||
12539 | "") ;; | |
81ecdfbb | 12540 | *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;; |
252b5132 RH |
12541 | esac |
12542 | done | |
12543 | ||
12544 | if test $using_cgen = yes ; then | |
12545 | ta="$ta $cgen_files" | |
12546 | fi | |
12547 | ||
12548 | # Weed out duplicate .o files. | |
12549 | f="" | |
12550 | for i in $ta ; do | |
12551 | case " $f " in | |
12552 | *" $i "*) ;; | |
12553 | *) f="$f $i" ;; | |
12554 | esac | |
12555 | done | |
12556 | ta="$f" | |
12557 | ||
12558 | # And duplicate -D flags. | |
12559 | f="" | |
12560 | for i in $archdefs ; do | |
12561 | case " $f " in | |
12562 | *" $i "*) ;; | |
12563 | *) f="$f $i" ;; | |
12564 | esac | |
12565 | done | |
12566 | archdefs="$f" | |
12567 | ||
12568 | BFD_MACHINES="$ta" | |
12569 | ||
12570 | else # all_targets is true | |
12571 | archdefs=-DARCH_all | |
12572 | BFD_MACHINES='$(ALL_MACHINES)' | |
12573 | fi | |
12574 | ||
12575 | ||
12576 | ||
12577 | ||
81ecdfbb | 12578 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
979273e3 | 12579 | |
979273e3 | 12580 | cat >confcache <<\_ACEOF |
252b5132 RH |
12581 | # This file is a shell script that caches the results of configure |
12582 | # tests run on this system so they can be shared between configure | |
979273e3 NN |
12583 | # scripts and configure runs, see configure's option --config-cache. |
12584 | # It is not useful on other systems. If it contains results you don't | |
12585 | # want to keep, you may remove or edit it. | |
252b5132 | 12586 | # |
979273e3 NN |
12587 | # config.status only pays attention to the cache file if you give it |
12588 | # the --recheck option to rerun configure. | |
252b5132 | 12589 | # |
979273e3 NN |
12590 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12591 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12592 | # following values. | |
12593 | ||
12594 | _ACEOF | |
12595 | ||
252b5132 RH |
12596 | # The following way of writing the cache mishandles newlines in values, |
12597 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 12598 | # So, we kill variables containing newlines. |
252b5132 RH |
12599 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12600 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
12601 | ( |
12602 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12603 | eval ac_val=\$$ac_var | |
12604 | case $ac_val in #( | |
12605 | *${as_nl}*) | |
12606 | case $ac_var in #( | |
12607 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
12608 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12609 | esac | |
12610 | case $ac_var in #( | |
12611 | _ | IFS | as_nl) ;; #( | |
12612 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12613 | *) { eval $ac_var=; unset $ac_var;} ;; | |
12614 | esac ;; | |
12615 | esac | |
12616 | done | |
12617 | ||
979273e3 | 12618 | (set) 2>&1 | |
81ecdfbb RW |
12619 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12620 | *${as_nl}ac_space=\ *) | |
12621 | # `set' does not quote correctly, so add quotes: double-quote | |
12622 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
979273e3 NN |
12623 | sed -n \ |
12624 | "s/'/'\\\\''/g; | |
12625 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 12626 | ;; #( |
979273e3 NN |
12627 | *) |
12628 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 12629 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 12630 | ;; |
81ecdfbb RW |
12631 | esac | |
12632 | sort | |
12633 | ) | | |
979273e3 | 12634 | sed ' |
81ecdfbb | 12635 | /^ac_cv_env_/b end |
979273e3 | 12636 | t clear |
81ecdfbb | 12637 | :clear |
979273e3 NN |
12638 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12639 | t end | |
81ecdfbb RW |
12640 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12641 | :end' >>confcache | |
12642 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12643 | if test -w "$cache_file"; then | |
12644 | test "x$cache_file" != "x/dev/null" && | |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
12646 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
979273e3 | 12647 | cat confcache >$cache_file |
252b5132 | 12648 | else |
81ecdfbb RW |
12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
12650 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
252b5132 RH |
12651 | fi |
12652 | fi | |
12653 | rm -f confcache | |
12654 | ||
252b5132 RH |
12655 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12656 | # Let make expand exec_prefix. | |
12657 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12658 | ||
252b5132 RH |
12659 | DEFS=-DHAVE_CONFIG_H |
12660 | ||
979273e3 NN |
12661 | ac_libobjs= |
12662 | ac_ltlibobjs= | |
12663 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12664 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
12665 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12666 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12667 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12668 | # will be set to the directory where LIBOBJS objects are built. | |
12669 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12670 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
979273e3 NN |
12671 | done |
12672 | LIBOBJS=$ac_libobjs | |
252b5132 | 12673 | |
979273e3 NN |
12674 | LTLIBOBJS=$ac_ltlibobjs |
12675 | ||
12676 | ||
8ae85421 | 12677 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
12678 | as_fn_error "conditional \"AMDEP\" was never defined. |
12679 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 AM |
12680 | fi |
12681 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
12682 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
12683 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12684 | fi | |
12685 | if test -n "$EXEEXT"; then | |
12686 | am__EXEEXT_TRUE= | |
12687 | am__EXEEXT_FALSE='#' | |
12688 | else | |
12689 | am__EXEEXT_TRUE='#' | |
12690 | am__EXEEXT_FALSE= | |
8ae85421 | 12691 | fi |
81ecdfbb | 12692 | |
8ae85421 | 12693 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
12694 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
12695 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 AM |
12696 | fi |
12697 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
81ecdfbb RW |
12698 | as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined. |
12699 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 AM |
12700 | fi |
12701 | if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then | |
81ecdfbb RW |
12702 | as_fn_error "conditional \"CGEN_MAINT\" was never defined. |
12703 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 | 12704 | fi |
979273e3 NN |
12705 | |
12706 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 12707 | ac_write_fail=0 |
979273e3 NN |
12708 | ac_clean_files_save=$ac_clean_files |
12709 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
12711 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12712 | as_write_fail=0 | |
12713 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
979273e3 NN |
12714 | #! $SHELL |
12715 | # Generated by $as_me. | |
252b5132 | 12716 | # Run this file to recreate the current configuration. |
252b5132 | 12717 | # Compiler output produced by configure, useful for debugging |
979273e3 | 12718 | # configure, is in config.log if it exists. |
252b5132 | 12719 | |
979273e3 NN |
12720 | debug=false |
12721 | ac_cs_recheck=false | |
12722 | ac_cs_silent=false | |
979273e3 | 12723 | |
81ecdfbb RW |
12724 | SHELL=\${CONFIG_SHELL-$SHELL} |
12725 | export SHELL | |
12726 | _ASEOF | |
12727 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12728 | ## -------------------- ## | |
12729 | ## M4sh Initialization. ## | |
12730 | ## -------------------- ## | |
979273e3 | 12731 | |
81ecdfbb RW |
12732 | # Be more Bourne compatible |
12733 | DUALCASE=1; export DUALCASE # for MKS sh | |
12734 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
979273e3 NN |
12735 | emulate sh |
12736 | NULLCMD=: | |
81ecdfbb | 12737 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
12738 | # is contrary to our usage. Disable this feature. |
12739 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
12740 | setopt NO_GLOB_SUBST |
12741 | else | |
12742 | case `(set -o) 2>/dev/null` in #( | |
12743 | *posix*) : | |
12744 | set -o posix ;; #( | |
12745 | *) : | |
12746 | ;; | |
12747 | esac | |
979273e3 | 12748 | fi |
979273e3 | 12749 | |
81ecdfbb RW |
12750 | |
12751 | as_nl=' | |
12752 | ' | |
12753 | export as_nl | |
12754 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12755 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12756 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12757 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12758 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12759 | # but without wasting forks for bash or zsh. | |
12760 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12761 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12762 | as_echo='print -r --' | |
12763 | as_echo_n='print -rn --' | |
12764 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12765 | as_echo='printf %s\n' | |
12766 | as_echo_n='printf %s' | |
12767 | else | |
12768 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12769 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12770 | as_echo_n='/usr/ucb/echo -n' | |
12771 | else | |
12772 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12773 | as_echo_n_body='eval | |
12774 | arg=$1; | |
12775 | case $arg in #( | |
12776 | *"$as_nl"*) | |
12777 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12778 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12779 | esac; | |
12780 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12781 | ' | |
12782 | export as_echo_n_body | |
12783 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12784 | fi | |
12785 | export as_echo_body | |
12786 | as_echo='sh -c $as_echo_body as_echo' | |
12787 | fi | |
12788 | ||
12789 | # The user is always right. | |
12790 | if test "${PATH_SEPARATOR+set}" != set; then | |
12791 | PATH_SEPARATOR=: | |
12792 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12793 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12794 | PATH_SEPARATOR=';' | |
12795 | } | |
979273e3 NN |
12796 | fi |
12797 | ||
12798 | ||
81ecdfbb RW |
12799 | # IFS |
12800 | # We need space, tab and new line, in precisely that order. Quoting is | |
12801 | # there to prevent editors from complaining about space-tab. | |
12802 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12803 | # splitting by setting IFS to empty value.) | |
12804 | IFS=" "" $as_nl" | |
12805 | ||
12806 | # Find who we are. Look in the path if we contain no directory separator. | |
12807 | case $0 in #(( | |
12808 | *[\\/]* ) as_myself=$0 ;; | |
12809 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12810 | for as_dir in $PATH | |
12811 | do | |
12812 | IFS=$as_save_IFS | |
12813 | test -z "$as_dir" && as_dir=. | |
12814 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12815 | done | |
12816 | IFS=$as_save_IFS | |
12817 | ||
12818 | ;; | |
12819 | esac | |
12820 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12821 | # in which case we are not to be found in the path. | |
12822 | if test "x$as_myself" = x; then | |
12823 | as_myself=$0 | |
12824 | fi | |
12825 | if test ! -f "$as_myself"; then | |
12826 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12827 | exit 1 | |
12828 | fi | |
12829 | ||
12830 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12831 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12832 | # suppresses any "Segmentation fault" message there. '((' could | |
12833 | # trigger a bug in pdksh 5.2.14. | |
12834 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12835 | do eval test x\${$as_var+set} = xset \ | |
12836 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12837 | done | |
979273e3 NN |
12838 | PS1='$ ' |
12839 | PS2='> ' | |
12840 | PS4='+ ' | |
12841 | ||
12842 | # NLS nuisances. | |
81ecdfbb RW |
12843 | LC_ALL=C |
12844 | export LC_ALL | |
12845 | LANGUAGE=C | |
12846 | export LANGUAGE | |
12847 | ||
12848 | # CDPATH. | |
12849 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12850 | ||
12851 | ||
12852 | # as_fn_error ERROR [LINENO LOG_FD] | |
12853 | # --------------------------------- | |
12854 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12855 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12856 | # script with status $?, using 1 if that was 0. | |
12857 | as_fn_error () | |
12858 | { | |
12859 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
12860 | if test "$3"; then | |
12861 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12862 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
979273e3 | 12863 | fi |
81ecdfbb RW |
12864 | $as_echo "$as_me: error: $1" >&2 |
12865 | as_fn_exit $as_status | |
12866 | } # as_fn_error | |
12867 | ||
12868 | ||
12869 | # as_fn_set_status STATUS | |
12870 | # ----------------------- | |
12871 | # Set $? to STATUS, without forking. | |
12872 | as_fn_set_status () | |
12873 | { | |
12874 | return $1 | |
12875 | } # as_fn_set_status | |
12876 | ||
12877 | # as_fn_exit STATUS | |
12878 | # ----------------- | |
12879 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12880 | as_fn_exit () | |
12881 | { | |
12882 | set +e | |
12883 | as_fn_set_status $1 | |
12884 | exit $1 | |
12885 | } # as_fn_exit | |
12886 | ||
12887 | # as_fn_unset VAR | |
12888 | # --------------- | |
12889 | # Portably unset VAR. | |
12890 | as_fn_unset () | |
12891 | { | |
12892 | { eval $1=; unset $1;} | |
12893 | } | |
12894 | as_unset=as_fn_unset | |
12895 | # as_fn_append VAR VALUE | |
12896 | # ---------------------- | |
12897 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12898 | # advantage of any shell optimizations that allow amortized linear growth over | |
12899 | # repeated appends, instead of the typical quadratic growth present in naive | |
12900 | # implementations. | |
12901 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12902 | eval 'as_fn_append () | |
12903 | { | |
12904 | eval $1+=\$2 | |
12905 | }' | |
12906 | else | |
12907 | as_fn_append () | |
12908 | { | |
12909 | eval $1=\$$1\$2 | |
12910 | } | |
12911 | fi # as_fn_append | |
12912 | ||
12913 | # as_fn_arith ARG... | |
12914 | # ------------------ | |
12915 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12916 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12917 | # must be portable across $(()) and expr. | |
12918 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12919 | eval 'as_fn_arith () | |
12920 | { | |
12921 | as_val=$(( $* )) | |
12922 | }' | |
12923 | else | |
12924 | as_fn_arith () | |
12925 | { | |
12926 | as_val=`expr "$@" || test $? -eq 1` | |
12927 | } | |
12928 | fi # as_fn_arith | |
12929 | ||
252b5132 | 12930 | |
81ecdfbb RW |
12931 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12932 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
12933 | as_expr=expr |
12934 | else | |
12935 | as_expr=false | |
12936 | fi | |
12937 | ||
81ecdfbb | 12938 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
12939 | as_basename=basename |
12940 | else | |
12941 | as_basename=false | |
12942 | fi | |
252b5132 | 12943 | |
81ecdfbb RW |
12944 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12945 | as_dirname=dirname | |
12946 | else | |
12947 | as_dirname=false | |
12948 | fi | |
252b5132 | 12949 | |
81ecdfbb | 12950 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
12951 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12952 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
12953 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
12954 | $as_echo X/"$0" | | |
12955 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12956 | s//\1/ | |
12957 | q | |
12958 | } | |
12959 | /^X\/\(\/\/\)$/{ | |
12960 | s//\1/ | |
12961 | q | |
12962 | } | |
12963 | /^X\/\(\/\).*/{ | |
12964 | s//\1/ | |
12965 | q | |
12966 | } | |
12967 | s/.*/./; q'` | |
252b5132 | 12968 | |
979273e3 NN |
12969 | # Avoid depending upon Character Ranges. |
12970 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12971 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12972 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12973 | as_cr_digits='0123456789' | |
12974 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12975 | ||
81ecdfbb RW |
12976 | ECHO_C= ECHO_N= ECHO_T= |
12977 | case `echo -n x` in #((((( | |
12978 | -n*) | |
12979 | case `echo 'xy\c'` in | |
12980 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12981 | xy) ECHO_C='\c';; | |
12982 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12983 | ECHO_T=' ';; | |
12984 | esac;; | |
12985 | *) | |
12986 | ECHO_N='-n';; | |
979273e3 NN |
12987 | esac |
12988 | ||
81ecdfbb RW |
12989 | rm -f conf$$ conf$$.exe conf$$.file |
12990 | if test -d conf$$.dir; then | |
12991 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 12992 | else |
81ecdfbb RW |
12993 | rm -f conf$$.dir |
12994 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 12995 | fi |
81ecdfbb RW |
12996 | if (echo >conf$$.file) 2>/dev/null; then |
12997 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 12998 | as_ln_s='ln -s' |
81ecdfbb RW |
12999 | # ... but there are two gotchas: |
13000 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13001 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13002 | # In both cases, we have to default to `cp -p'. | |
13003 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13004 | as_ln_s='cp -p' | |
13005 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13006 | as_ln_s=ln | |
13007 | else | |
13008 | as_ln_s='cp -p' | |
252b5132 | 13009 | fi |
979273e3 NN |
13010 | else |
13011 | as_ln_s='cp -p' | |
13012 | fi | |
81ecdfbb RW |
13013 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13014 | rmdir conf$$.dir 2>/dev/null | |
13015 | ||
13016 | ||
13017 | # as_fn_mkdir_p | |
13018 | # ------------- | |
13019 | # Create "$as_dir" as a directory, including parents if necessary. | |
13020 | as_fn_mkdir_p () | |
13021 | { | |
13022 | ||
13023 | case $as_dir in #( | |
13024 | -*) as_dir=./$as_dir;; | |
13025 | esac | |
13026 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13027 | as_dirs= | |
13028 | while :; do | |
13029 | case $as_dir in #( | |
13030 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13031 | *) as_qdir=$as_dir;; | |
13032 | esac | |
13033 | as_dirs="'$as_qdir' $as_dirs" | |
13034 | as_dir=`$as_dirname -- "$as_dir" || | |
13035 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13036 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13037 | X"$as_dir" : 'X\(//\)$' \| \ | |
13038 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13039 | $as_echo X"$as_dir" | | |
13040 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13041 | s//\1/ | |
13042 | q | |
13043 | } | |
13044 | /^X\(\/\/\)[^/].*/{ | |
13045 | s//\1/ | |
13046 | q | |
13047 | } | |
13048 | /^X\(\/\/\)$/{ | |
13049 | s//\1/ | |
13050 | q | |
13051 | } | |
13052 | /^X\(\/\).*/{ | |
13053 | s//\1/ | |
13054 | q | |
13055 | } | |
13056 | s/.*/./; q'` | |
13057 | test -d "$as_dir" && break | |
13058 | done | |
13059 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13060 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
979273e3 | 13061 | |
81ecdfbb RW |
13062 | |
13063 | } # as_fn_mkdir_p | |
979273e3 | 13064 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 13065 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
13066 | else |
13067 | test -d ./-p && rmdir ./-p | |
13068 | as_mkdir_p=false | |
13069 | fi | |
13070 | ||
81ecdfbb RW |
13071 | if test -x / >/dev/null 2>&1; then |
13072 | as_test_x='test -x' | |
13073 | else | |
13074 | if ls -dL / >/dev/null 2>&1; then | |
13075 | as_ls_L_option=L | |
13076 | else | |
13077 | as_ls_L_option= | |
13078 | fi | |
13079 | as_test_x=' | |
13080 | eval sh -c '\'' | |
13081 | if test -d "$1"; then | |
13082 | test -d "$1/."; | |
13083 | else | |
13084 | case $1 in #( | |
13085 | -*)set "./$1";; | |
13086 | esac; | |
13087 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
13088 | ???[sx]*):;;*)false;;esac;fi | |
13089 | '\'' sh | |
13090 | ' | |
13091 | fi | |
13092 | as_executable_p=$as_test_x | |
979273e3 NN |
13093 | |
13094 | # Sed expression to map a string onto a valid CPP name. | |
13095 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
13096 | ||
13097 | # Sed expression to map a string onto a valid variable name. | |
13098 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
13099 | ||
13100 | ||
979273e3 | 13101 | exec 6>&1 |
81ecdfbb RW |
13102 | ## ----------------------------------- ## |
13103 | ## Main body of $CONFIG_STATUS script. ## | |
13104 | ## ----------------------------------- ## | |
13105 | _ASEOF | |
13106 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
979273e3 | 13107 | |
81ecdfbb RW |
13108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13109 | # Save the log message, to keep $0 and so on meaningful, and to | |
979273e3 | 13110 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
13111 | # values after options handling. |
13112 | ac_log=" | |
979273e3 | 13113 | This file was extended by $as_me, which was |
81ecdfbb | 13114 | generated by GNU Autoconf 2.64. Invocation command line was |
979273e3 NN |
13115 | |
13116 | CONFIG_FILES = $CONFIG_FILES | |
13117 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13118 | CONFIG_LINKS = $CONFIG_LINKS | |
13119 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13120 | $ $0 $@ | |
13121 | ||
81ecdfbb RW |
13122 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13123 | " | |
13124 | ||
979273e3 NN |
13125 | _ACEOF |
13126 | ||
81ecdfbb RW |
13127 | case $ac_config_files in *" |
13128 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13129 | esac | |
979273e3 | 13130 | |
81ecdfbb RW |
13131 | case $ac_config_headers in *" |
13132 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13133 | esac | |
979273e3 | 13134 | |
979273e3 | 13135 | |
81ecdfbb RW |
13136 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13137 | # Files that config.status was made for. | |
13138 | config_files="$ac_config_files" | |
13139 | config_headers="$ac_config_headers" | |
13140 | config_commands="$ac_config_commands" | |
979273e3 | 13141 | |
81ecdfbb | 13142 | _ACEOF |
979273e3 | 13143 | |
81ecdfbb | 13144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 13145 | ac_cs_usage="\ |
81ecdfbb RW |
13146 | \`$as_me' instantiates files and other configuration actions |
13147 | from templates according to the current configuration. Unless the files | |
13148 | and actions are specified as TAGs, all are instantiated by default. | |
979273e3 | 13149 | |
81ecdfbb | 13150 | Usage: $0 [OPTION]... [TAG]... |
979273e3 NN |
13151 | |
13152 | -h, --help print this help, then exit | |
81ecdfbb RW |
13153 | -V, --version print version number and configuration settings, then exit |
13154 | -q, --quiet, --silent | |
13155 | do not print progress messages | |
979273e3 NN |
13156 | -d, --debug don't remove temporary files |
13157 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
13158 | --file=FILE[:TEMPLATE] |
13159 | instantiate the configuration file FILE | |
13160 | --header=FILE[:TEMPLATE] | |
13161 | instantiate the configuration header FILE | |
979273e3 NN |
13162 | |
13163 | Configuration files: | |
13164 | $config_files | |
13165 | ||
13166 | Configuration headers: | |
13167 | $config_headers | |
13168 | ||
13169 | Configuration commands: | |
13170 | $config_commands | |
13171 | ||
81ecdfbb | 13172 | Report bugs to the package provider." |
979273e3 | 13173 | |
81ecdfbb RW |
13174 | _ACEOF |
13175 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
979273e3 NN |
13176 | ac_cs_version="\\ |
13177 | config.status | |
81ecdfbb RW |
13178 | configured by $0, generated by GNU Autoconf 2.64, |
13179 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
979273e3 | 13180 | |
81ecdfbb | 13181 | Copyright (C) 2009 Free Software Foundation, Inc. |
979273e3 NN |
13182 | This config.status script is free software; the Free Software Foundation |
13183 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
13184 | |
13185 | ac_pwd='$ac_pwd' | |
13186 | srcdir='$srcdir' | |
13187 | INSTALL='$INSTALL' | |
13188 | MKDIR_P='$MKDIR_P' | |
13189 | AWK='$AWK' | |
13190 | test -n "\$AWK" || AWK=awk | |
979273e3 NN |
13191 | _ACEOF |
13192 | ||
81ecdfbb RW |
13193 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13194 | # The default lists apply if the user does not specify any file. | |
979273e3 NN |
13195 | ac_need_defaults=: |
13196 | while test $# != 0 | |
13197 | do | |
13198 | case $1 in | |
13199 | --*=*) | |
81ecdfbb RW |
13200 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13201 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
979273e3 NN |
13202 | ac_shift=: |
13203 | ;; | |
81ecdfbb | 13204 | *) |
979273e3 NN |
13205 | ac_option=$1 |
13206 | ac_optarg=$2 | |
13207 | ac_shift=shift | |
13208 | ;; | |
979273e3 NN |
13209 | esac |
13210 | ||
13211 | case $ac_option in | |
13212 | # Handling of the options. | |
979273e3 NN |
13213 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13214 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
13215 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13216 | $as_echo "$ac_cs_version"; exit ;; | |
13217 | --debug | --debu | --deb | --de | --d | -d ) | |
979273e3 NN |
13218 | debug=: ;; |
13219 | --file | --fil | --fi | --f ) | |
13220 | $ac_shift | |
81ecdfbb RW |
13221 | case $ac_optarg in |
13222 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13223 | esac | |
13224 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
979273e3 NN |
13225 | ac_need_defaults=false;; |
13226 | --header | --heade | --head | --hea ) | |
13227 | $ac_shift | |
81ecdfbb RW |
13228 | case $ac_optarg in |
13229 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13230 | esac | |
13231 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
979273e3 | 13232 | ac_need_defaults=false;; |
81ecdfbb RW |
13233 | --he | --h) |
13234 | # Conflict between --help and --header | |
13235 | as_fn_error "ambiguous option: \`$1' | |
13236 | Try \`$0 --help' for more information.";; | |
13237 | --help | --hel | -h ) | |
13238 | $as_echo "$ac_cs_usage"; exit ;; | |
979273e3 NN |
13239 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13240 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13241 | ac_cs_silent=: ;; | |
13242 | ||
13243 | # This is an error. | |
81ecdfbb RW |
13244 | -*) as_fn_error "unrecognized option: \`$1' |
13245 | Try \`$0 --help' for more information." ;; | |
979273e3 | 13246 | |
81ecdfbb RW |
13247 | *) as_fn_append ac_config_targets " $1" |
13248 | ac_need_defaults=false ;; | |
979273e3 NN |
13249 | |
13250 | esac | |
13251 | shift | |
252b5132 | 13252 | done |
979273e3 NN |
13253 | |
13254 | ac_configure_extra_args= | |
13255 | ||
13256 | if $ac_cs_silent; then | |
13257 | exec 6>/dev/null | |
13258 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
252b5132 | 13259 | fi |
252b5132 | 13260 | |
979273e3 | 13261 | _ACEOF |
81ecdfbb | 13262 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
979273e3 | 13263 | if \$ac_cs_recheck; then |
81ecdfbb RW |
13264 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13265 | shift | |
13266 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13267 | CONFIG_SHELL='$SHELL' | |
13268 | export CONFIG_SHELL | |
13269 | exec "\$@" | |
979273e3 | 13270 | fi |
252b5132 | 13271 | |
979273e3 | 13272 | _ACEOF |
81ecdfbb RW |
13273 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13274 | exec 5>>config.log | |
13275 | { | |
13276 | echo | |
13277 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13278 | ## Running $as_me. ## | |
13279 | _ASBOX | |
13280 | $as_echo "$ac_log" | |
13281 | } >&5 | |
979273e3 | 13282 | |
81ecdfbb RW |
13283 | _ACEOF |
13284 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
979273e3 | 13285 | # |
81ecdfbb | 13286 | # INIT-COMMANDS |
979273e3 | 13287 | # |
8ae85421 | 13288 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
13289 | |
13290 | ||
13291 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13292 | # if CDPATH is set. | |
13293 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13294 | ||
13295 | sed_quote_subst='$sed_quote_subst' | |
13296 | double_quote_subst='$double_quote_subst' | |
13297 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
13298 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
13299 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
13300 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13301 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13302 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13303 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
13304 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
13305 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13306 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13307 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13308 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13309 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13310 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13311 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13312 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13313 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13314 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13315 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13316 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13317 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13318 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13319 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13320 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13321 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13322 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13323 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13324 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13325 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13326 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13327 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13328 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13329 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13330 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13331 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13332 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13333 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13334 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13335 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13336 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13337 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13338 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13339 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13340 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13341 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13342 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13343 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13344 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
13345 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
13346 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13347 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
13348 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13349 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13350 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13351 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13352 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13353 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13354 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13355 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13356 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13357 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13358 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13359 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13360 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13361 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13362 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13363 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13364 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13365 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13366 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13367 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13368 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13369 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13370 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13371 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13372 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13373 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13374 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13375 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13376 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13377 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13378 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
13379 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13380 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13381 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13382 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13383 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13384 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13385 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13386 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13387 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
13388 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13389 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13390 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13391 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13392 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13393 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13394 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13395 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13396 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13397 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13398 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13399 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13400 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13401 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13402 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13403 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13404 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13405 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13406 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13407 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13408 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13409 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13410 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13411 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13412 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13413 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13414 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13415 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13416 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13417 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
13418 | |
13419 | LTCC='$LTCC' | |
13420 | LTCFLAGS='$LTCFLAGS' | |
13421 | compiler='$compiler_DEFAULT' | |
13422 | ||
3725885a RW |
13423 | # A function that is used when there is no print builtin or printf. |
13424 | func_fallback_echo () | |
13425 | { | |
13426 | eval 'cat <<_LTECHO_EOF | |
13427 | \$1 | |
13428 | _LTECHO_EOF' | |
13429 | } | |
13430 | ||
d7040cdb | 13431 | # Quote evaled strings. |
3725885a RW |
13432 | for var in SHELL \ |
13433 | ECHO \ | |
13434 | SED \ | |
d7040cdb SE |
13435 | GREP \ |
13436 | EGREP \ | |
13437 | FGREP \ | |
13438 | LD \ | |
13439 | NM \ | |
13440 | LN_S \ | |
13441 | lt_SP2NL \ | |
13442 | lt_NL2SP \ | |
13443 | reload_flag \ | |
1927a18f | 13444 | OBJDUMP \ |
d7040cdb SE |
13445 | deplibs_check_method \ |
13446 | file_magic_cmd \ | |
13447 | AR \ | |
13448 | AR_FLAGS \ | |
13449 | STRIP \ | |
13450 | RANLIB \ | |
13451 | CC \ | |
13452 | CFLAGS \ | |
13453 | compiler \ | |
13454 | lt_cv_sys_global_symbol_pipe \ | |
13455 | lt_cv_sys_global_symbol_to_cdecl \ | |
13456 | lt_cv_sys_global_symbol_to_c_name_address \ | |
1927a18f | 13457 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
13458 | lt_prog_compiler_no_builtin_flag \ |
13459 | lt_prog_compiler_wl \ | |
13460 | lt_prog_compiler_pic \ | |
13461 | lt_prog_compiler_static \ | |
13462 | lt_cv_prog_compiler_c_o \ | |
13463 | need_locks \ | |
1927a18f L |
13464 | DSYMUTIL \ |
13465 | NMEDIT \ | |
13466 | LIPO \ | |
13467 | OTOOL \ | |
13468 | OTOOL64 \ | |
d7040cdb SE |
13469 | shrext_cmds \ |
13470 | export_dynamic_flag_spec \ | |
13471 | whole_archive_flag_spec \ | |
13472 | compiler_needs_object \ | |
13473 | with_gnu_ld \ | |
13474 | allow_undefined_flag \ | |
13475 | no_undefined_flag \ | |
13476 | hardcode_libdir_flag_spec \ | |
13477 | hardcode_libdir_flag_spec_ld \ | |
13478 | hardcode_libdir_separator \ | |
13479 | fix_srcfile_path \ | |
13480 | exclude_expsyms \ | |
13481 | include_expsyms \ | |
13482 | file_list_spec \ | |
13483 | variables_saved_for_relink \ | |
13484 | libname_spec \ | |
13485 | library_names_spec \ | |
13486 | soname_spec \ | |
3725885a | 13487 | install_override_mode \ |
d7040cdb SE |
13488 | finish_eval \ |
13489 | old_striplib \ | |
13490 | striplib; do | |
3725885a | 13491 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 13492 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 13493 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
13494 | ;; |
13495 | *) | |
13496 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13497 | ;; | |
13498 | esac | |
13499 | done | |
13500 | ||
13501 | # Double-quote double-evaled strings. | |
13502 | for var in reload_cmds \ | |
13503 | old_postinstall_cmds \ | |
13504 | old_postuninstall_cmds \ | |
13505 | old_archive_cmds \ | |
13506 | extract_expsyms_cmds \ | |
13507 | old_archive_from_new_cmds \ | |
13508 | old_archive_from_expsyms_cmds \ | |
13509 | archive_cmds \ | |
13510 | archive_expsym_cmds \ | |
13511 | module_cmds \ | |
13512 | module_expsym_cmds \ | |
13513 | export_symbols_cmds \ | |
13514 | prelink_cmds \ | |
13515 | postinstall_cmds \ | |
13516 | postuninstall_cmds \ | |
13517 | finish_cmds \ | |
13518 | sys_lib_search_path_spec \ | |
13519 | sys_lib_dlsearch_path_spec; do | |
3725885a | 13520 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 13521 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 13522 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
13523 | ;; |
13524 | *) | |
13525 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13526 | ;; | |
13527 | esac | |
13528 | done | |
13529 | ||
d7040cdb SE |
13530 | ac_aux_dir='$ac_aux_dir' |
13531 | xsi_shell='$xsi_shell' | |
13532 | lt_shell_append='$lt_shell_append' | |
13533 | ||
13534 | # See if we are running on zsh, and set the options which allow our | |
13535 | # commands through without removal of \ escapes INIT. | |
13536 | if test -n "\${ZSH_VERSION+set}" ; then | |
13537 | setopt NO_GLOB_SUBST | |
13538 | fi | |
13539 | ||
13540 | ||
13541 | PACKAGE='$PACKAGE' | |
13542 | VERSION='$VERSION' | |
13543 | TIMESTAMP='$TIMESTAMP' | |
13544 | RM='$RM' | |
13545 | ofile='$ofile' | |
13546 | ||
13547 | ||
13548 | ||
20e95c23 DJ |
13549 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13550 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
13551 | # from automake. | |
13552 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13553 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13554 | LINGUAS="${LINGUAS-%UNSET%}" | |
979273e3 NN |
13555 | |
13556 | ||
13557 | _ACEOF | |
13558 | ||
81ecdfbb | 13559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 13560 | |
81ecdfbb | 13561 | # Handling of arguments. |
979273e3 NN |
13562 | for ac_config_target in $ac_config_targets |
13563 | do | |
81ecdfbb RW |
13564 | case $ac_config_target in |
13565 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13566 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13567 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13568 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
13569 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13570 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
13571 | ||
13572 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 | 13573 | esac |
979273e3 | 13574 | done |
252b5132 | 13575 | |
81ecdfbb | 13576 | |
979273e3 NN |
13577 | # If the user did not use the arguments to specify the items to instantiate, |
13578 | # then the envvar interface is used. Set only those that are not. | |
13579 | # We use the long form for the default assignment because of an extremely | |
13580 | # bizarre bug on SunOS 4.1.3. | |
13581 | if $ac_need_defaults; then | |
13582 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13583 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13584 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13585 | fi | |
13586 | ||
13587 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 13588 | # simply because there is no reason against having it here, and in addition, |
979273e3 | 13589 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
13590 | # Hook for its removal unless debugging. |
13591 | # Note that there is a small window in which the directory will not be cleaned: | |
13592 | # after its creation but before its name has been assigned to `$tmp'. | |
979273e3 NN |
13593 | $debug || |
13594 | { | |
81ecdfbb RW |
13595 | tmp= |
13596 | trap 'exit_status=$? | |
13597 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13598 | ' 0 | |
13599 | trap 'as_fn_exit 1' 1 2 13 15 | |
979273e3 | 13600 | } |
979273e3 NN |
13601 | # Create a (secure) tmp directory for tmp files. |
13602 | ||
13603 | { | |
81ecdfbb | 13604 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
979273e3 NN |
13605 | test -n "$tmp" && test -d "$tmp" |
13606 | } || | |
13607 | { | |
81ecdfbb RW |
13608 | tmp=./conf$$-$RANDOM |
13609 | (umask 077 && mkdir "$tmp") | |
13610 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
13611 | ||
13612 | # Set up the scripts for CONFIG_FILES section. | |
13613 | # No need to generate them if there are no CONFIG_FILES. | |
13614 | # This happens for instance with `./config.status config.h'. | |
13615 | if test -n "$CONFIG_FILES"; then | |
13616 | ||
13617 | ||
13618 | ac_cr=`echo X | tr X '\015'` | |
13619 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13620 | # But we know of no other shell where ac_cr would be empty at this | |
13621 | # point, so we can use a bashism as a fallback. | |
13622 | if test "x$ac_cr" = x; then | |
13623 | eval ac_cr=\$\'\\r\' | |
13624 | fi | |
13625 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13626 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13627 | ac_cs_awk_cr='\r' | |
13628 | else | |
13629 | ac_cs_awk_cr=$ac_cr | |
13630 | fi | |
13631 | ||
13632 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
13633 | _ACEOF | |
13634 | ||
13635 | ||
13636 | { | |
13637 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13638 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13639 | echo "_ACEOF" | |
13640 | } >conf$$subs.sh || | |
13641 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13642 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
13643 | ac_delim='%!_!# ' | |
13644 | for ac_last_try in false false false false false :; do | |
13645 | . ./conf$$subs.sh || | |
13646 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13647 | ||
13648 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13649 | if test $ac_delim_n = $ac_delim_num; then | |
13650 | break | |
13651 | elif $ac_last_try; then | |
13652 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13653 | else | |
13654 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13655 | fi | |
13656 | done | |
13657 | rm -f conf$$subs.sh | |
13658 | ||
13659 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13660 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13661 | _ACEOF | |
13662 | sed -n ' | |
13663 | h | |
13664 | s/^/S["/; s/!.*/"]=/ | |
13665 | p | |
13666 | g | |
13667 | s/^[^!]*!// | |
13668 | :repl | |
13669 | t repl | |
13670 | s/'"$ac_delim"'$// | |
13671 | t delim | |
13672 | :nl | |
13673 | h | |
13674 | s/\(.\{148\}\).*/\1/ | |
13675 | t more1 | |
13676 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13677 | p | |
13678 | n | |
13679 | b repl | |
13680 | :more1 | |
13681 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13682 | p | |
13683 | g | |
13684 | s/.\{148\}// | |
13685 | t nl | |
13686 | :delim | |
13687 | h | |
13688 | s/\(.\{148\}\).*/\1/ | |
13689 | t more2 | |
13690 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13691 | p | |
13692 | b | |
13693 | :more2 | |
13694 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13695 | p | |
13696 | g | |
13697 | s/.\{148\}// | |
13698 | t delim | |
13699 | ' <conf$$subs.awk | sed ' | |
13700 | /^[^""]/{ | |
13701 | N | |
13702 | s/\n// | |
13703 | } | |
13704 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13705 | rm -f conf$$subs.awk | |
13706 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13707 | _ACAWK | |
13708 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13709 | for (key in S) S_is_set[key] = 1 | |
13710 | FS = "\a" | |
13711 | ||
13712 | } | |
979273e3 | 13713 | { |
81ecdfbb RW |
13714 | line = $ 0 |
13715 | nfields = split(line, field, "@") | |
13716 | substed = 0 | |
13717 | len = length(field[1]) | |
13718 | for (i = 2; i < nfields; i++) { | |
13719 | key = field[i] | |
13720 | keylen = length(key) | |
13721 | if (S_is_set[key]) { | |
13722 | value = S[key] | |
13723 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13724 | len += length(value) + length(field[++i]) | |
13725 | substed = 1 | |
13726 | } else | |
13727 | len += 1 + keylen | |
13728 | } | |
13729 | ||
13730 | print line | |
979273e3 NN |
13731 | } |
13732 | ||
81ecdfbb RW |
13733 | _ACAWK |
13734 | _ACEOF | |
13735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13736 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13737 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13738 | else | |
13739 | cat | |
13740 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13741 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
979273e3 NN |
13742 | _ACEOF |
13743 | ||
81ecdfbb RW |
13744 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13745 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13746 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13747 | # (actually we leave an empty line to preserve line numbers). | |
13748 | if test "x$srcdir" = x.; then | |
13749 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13750 | s/:*\$(srcdir):*/:/ | |
13751 | s/:*\${srcdir}:*/:/ | |
13752 | s/:*@srcdir@:*/:/ | |
13753 | s/^\([^=]*=[ ]*\):*/\1/ | |
13754 | s/:*$// | |
13755 | s/^[^=]*=[ ]*$// | |
13756 | }' | |
13757 | fi | |
13758 | ||
13759 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13760 | fi # test -n "$CONFIG_FILES" | |
979273e3 | 13761 | |
81ecdfbb RW |
13762 | # Set up the scripts for CONFIG_HEADERS section. |
13763 | # No need to generate them if there are no CONFIG_HEADERS. | |
13764 | # This happens for instance with `./config.status Makefile'. | |
13765 | if test -n "$CONFIG_HEADERS"; then | |
13766 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13767 | BEGIN { | |
13768 | _ACEOF | |
979273e3 | 13769 | |
81ecdfbb RW |
13770 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13771 | # here-document in config.status, that substitutes the proper values into | |
13772 | # config.h.in to produce config.h. | |
979273e3 | 13773 | |
81ecdfbb RW |
13774 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13775 | # handling of long lines. | |
13776 | ac_delim='%!_!# ' | |
13777 | for ac_last_try in false false :; do | |
13778 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13779 | if test -z "$ac_t"; then | |
13780 | break | |
13781 | elif $ac_last_try; then | |
13782 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
13783 | else | |
13784 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13785 | fi | |
13786 | done | |
13787 | ||
13788 | # For the awk script, D is an array of macro values keyed by name, | |
13789 | # likewise P contains macro parameters if any. Preserve backslash | |
13790 | # newline sequences. | |
13791 | ||
13792 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13793 | sed -n ' | |
13794 | s/.\{148\}/&'"$ac_delim"'/g | |
13795 | t rset | |
13796 | :rset | |
13797 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13798 | t def | |
13799 | d | |
13800 | :def | |
13801 | s/\\$// | |
13802 | t bsnl | |
13803 | s/["\\]/\\&/g | |
13804 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13805 | D["\1"]=" \3"/p | |
13806 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13807 | d | |
13808 | :bsnl | |
13809 | s/["\\]/\\&/g | |
13810 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13811 | D["\1"]=" \3\\\\\\n"\\/p | |
13812 | t cont | |
13813 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13814 | t cont | |
13815 | d | |
13816 | :cont | |
13817 | n | |
13818 | s/.\{148\}/&'"$ac_delim"'/g | |
13819 | t clear | |
13820 | :clear | |
13821 | s/\\$// | |
13822 | t bsnlc | |
13823 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13824 | d | |
13825 | :bsnlc | |
13826 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13827 | b cont | |
13828 | ' <confdefs.h | sed ' | |
13829 | s/'"$ac_delim"'/"\\\ | |
13830 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13831 | ||
13832 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13833 | for (key in D) D_is_set[key] = 1 | |
13834 | FS = "\a" | |
13835 | } | |
13836 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13837 | line = \$ 0 | |
13838 | split(line, arg, " ") | |
13839 | if (arg[1] == "#") { | |
13840 | defundef = arg[2] | |
13841 | mac1 = arg[3] | |
13842 | } else { | |
13843 | defundef = substr(arg[1], 2) | |
13844 | mac1 = arg[2] | |
13845 | } | |
13846 | split(mac1, mac2, "(") #) | |
13847 | macro = mac2[1] | |
13848 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13849 | if (D_is_set[macro]) { | |
13850 | # Preserve the white space surrounding the "#". | |
13851 | print prefix "define", macro P[macro] D[macro] | |
13852 | next | |
13853 | } else { | |
13854 | # Replace #undef with comments. This is necessary, for example, | |
13855 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13856 | # on some systems where configure will not decide to define it. | |
13857 | if (defundef == "undef") { | |
13858 | print "/*", prefix defundef, macro, "*/" | |
13859 | next | |
13860 | } | |
13861 | } | |
13862 | } | |
13863 | { print } | |
13864 | _ACAWK | |
979273e3 | 13865 | _ACEOF |
81ecdfbb RW |
13866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13867 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
13868 | fi # test -n "$CONFIG_HEADERS" | |
979273e3 | 13869 | |
81ecdfbb RW |
13870 | |
13871 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13872 | shift | |
13873 | for ac_tag | |
13874 | do | |
13875 | case $ac_tag in | |
13876 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13877 | esac | |
13878 | case $ac_mode$ac_tag in | |
13879 | :[FHL]*:*);; | |
13880 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
13881 | :[FH]-) ac_tag=-:-;; | |
13882 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13883 | esac | |
13884 | ac_save_IFS=$IFS | |
13885 | IFS=: | |
13886 | set x $ac_tag | |
13887 | IFS=$ac_save_IFS | |
13888 | shift | |
13889 | ac_file=$1 | |
13890 | shift | |
13891 | ||
13892 | case $ac_mode in | |
13893 | :L) ac_source=$1;; | |
13894 | :[FH]) | |
13895 | ac_file_inputs= | |
13896 | for ac_f | |
13897 | do | |
13898 | case $ac_f in | |
13899 | -) ac_f="$tmp/stdin";; | |
13900 | *) # Look for the file first in the build tree, then in the source tree | |
13901 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13902 | # because $ac_f cannot contain `:'. | |
13903 | test -f "$ac_f" || | |
13904 | case $ac_f in | |
13905 | [\\/$]*) false;; | |
13906 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13907 | esac || | |
13908 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
13909 | esac | |
13910 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13911 | as_fn_append ac_file_inputs " '$ac_f'" | |
13912 | done | |
13913 | ||
13914 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13915 | # use $as_me), people would be surprised to read: | |
13916 | # /* config.h. Generated by config.status. */ | |
13917 | configure_input='Generated from '` | |
13918 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13919 | `' by configure.' | |
13920 | if test x"$ac_file" != x-; then | |
13921 | configure_input="$ac_file. $configure_input" | |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13923 | $as_echo "$as_me: creating $ac_file" >&6;} | |
979273e3 | 13924 | fi |
81ecdfbb RW |
13925 | # Neutralize special characters interpreted by sed in replacement strings. |
13926 | case $configure_input in #( | |
13927 | *\&* | *\|* | *\\* ) | |
13928 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13929 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13930 | *) ac_sed_conf_input=$configure_input;; | |
13931 | esac | |
252b5132 | 13932 | |
81ecdfbb RW |
13933 | case $ac_tag in |
13934 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13935 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
13936 | esac | |
13937 | ;; | |
252b5132 RH |
13938 | esac |
13939 | ||
81ecdfbb | 13940 | ac_dir=`$as_dirname -- "$ac_file" || |
979273e3 NN |
13941 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13942 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13943 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13944 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
13945 | $as_echo X"$ac_file" | | |
13946 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13947 | s//\1/ | |
13948 | q | |
13949 | } | |
13950 | /^X\(\/\/\)[^/].*/{ | |
13951 | s//\1/ | |
13952 | q | |
13953 | } | |
13954 | /^X\(\/\/\)$/{ | |
13955 | s//\1/ | |
13956 | q | |
13957 | } | |
13958 | /^X\(\/\).*/{ | |
13959 | s//\1/ | |
13960 | q | |
13961 | } | |
13962 | s/.*/./; q'` | |
13963 | as_dir="$ac_dir"; as_fn_mkdir_p | |
979273e3 NN |
13964 | ac_builddir=. |
13965 | ||
81ecdfbb RW |
13966 | case "$ac_dir" in |
13967 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13968 | *) | |
13969 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13970 | # A ".." for each directory in $ac_dir_suffix. | |
13971 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13972 | case $ac_top_builddir_sub in | |
13973 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13974 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13975 | esac ;; | |
13976 | esac | |
13977 | ac_abs_top_builddir=$ac_pwd | |
13978 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13979 | # for backward compatibility: | |
13980 | ac_top_builddir=$ac_top_build_prefix | |
979273e3 NN |
13981 | |
13982 | case $srcdir in | |
81ecdfbb | 13983 | .) # We are building in place. |
979273e3 | 13984 | ac_srcdir=. |
81ecdfbb RW |
13985 | ac_top_srcdir=$ac_top_builddir_sub |
13986 | ac_abs_top_srcdir=$ac_pwd ;; | |
13987 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 13988 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
13989 | ac_top_srcdir=$srcdir |
13990 | ac_abs_top_srcdir=$srcdir ;; | |
13991 | *) # Relative name. | |
13992 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13993 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13994 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
979273e3 | 13995 | esac |
81ecdfbb | 13996 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
979273e3 | 13997 | |
252b5132 | 13998 | |
81ecdfbb RW |
13999 | case $ac_mode in |
14000 | :F) | |
14001 | # | |
14002 | # CONFIG_FILE | |
14003 | # | |
979273e3 NN |
14004 | |
14005 | case $INSTALL in | |
14006 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
14007 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14008 | esac | |
14009 | ac_MKDIR_P=$MKDIR_P | |
14010 | case $MKDIR_P in | |
14011 | [\\/$]* | ?:[\\/]* ) ;; | |
14012 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
252b5132 | 14013 | esac |
81ecdfbb | 14014 | _ACEOF |
252b5132 | 14015 | |
81ecdfbb RW |
14016 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14017 | # If the template does not know about datarootdir, expand it. | |
14018 | # FIXME: This hack should be removed a few years after 2.60. | |
14019 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
14020 | ac_sed_dataroot=' | |
14021 | /datarootdir/ { | |
14022 | p | |
14023 | q | |
14024 | } | |
14025 | /@datadir@/p | |
14026 | /@docdir@/p | |
14027 | /@infodir@/p | |
14028 | /@localedir@/p | |
14029 | /@mandir@/p' | |
14030 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
14031 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14032 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14034 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14035 | _ACEOF | |
14036 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14037 | ac_datarootdir_hack=' | |
14038 | s&@datadir@&$datadir&g | |
14039 | s&@docdir@&$docdir&g | |
14040 | s&@infodir@&$infodir&g | |
14041 | s&@localedir@&$localedir&g | |
14042 | s&@mandir@&$mandir&g | |
14043 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14044 | esac | |
979273e3 | 14045 | _ACEOF |
81ecdfbb RW |
14046 | |
14047 | # Neutralize VPATH when `$srcdir' = `.'. | |
14048 | # Shell code in configure.ac might set extrasub. | |
14049 | # FIXME: do we really want to maintain this feature? | |
14050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14051 | ac_sed_extra="$ac_vpsub | |
979273e3 NN |
14052 | $extrasub |
14053 | _ACEOF | |
81ecdfbb | 14054 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 NN |
14055 | :t |
14056 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
14057 | s|@configure_input@|$ac_sed_conf_input|;t t |
14058 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14059 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14060 | s&@srcdir@&$ac_srcdir&;t t | |
14061 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14062 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14063 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14064 | s&@builddir@&$ac_builddir&;t t | |
14065 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14066 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14067 | s&@INSTALL@&$ac_INSTALL&;t t | |
14068 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14069 | $ac_datarootdir_hack | |
14070 | " | |
14071 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
14072 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14073 | ||
14074 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14075 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14076 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14078 | which seems to be undefined. Please make sure it is defined." >&5 | |
14079 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14080 | which seems to be undefined. Please make sure it is defined." >&2;} | |
14081 | ||
14082 | rm -f "$tmp/stdin" | |
979273e3 | 14083 | case $ac_file in |
81ecdfbb RW |
14084 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
14085 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14086 | esac \ | |
14087 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14088 | ;; | |
14089 | :H) | |
14090 | # | |
14091 | # CONFIG_HEADER | |
14092 | # | |
979273e3 | 14093 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
14094 | { |
14095 | $as_echo "/* $configure_input */" \ | |
14096 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14097 | } >"$tmp/config.h" \ | |
14098 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14099 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
14101 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
979273e3 | 14102 | else |
81ecdfbb RW |
14103 | rm -f "$ac_file" |
14104 | mv "$tmp/config.h" "$ac_file" \ | |
14105 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 14106 | fi |
979273e3 | 14107 | else |
81ecdfbb RW |
14108 | $as_echo "/* $configure_input */" \ |
14109 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14110 | || as_fn_error "could not create -" "$LINENO" 5 | |
252b5132 | 14111 | fi |
81ecdfbb RW |
14112 | # Compute "$ac_file"'s index in $config_headers. |
14113 | _am_arg="$ac_file" | |
8ae85421 AM |
14114 | _am_stamp_count=1 |
14115 | for _am_header in $config_headers :; do | |
14116 | case $_am_header in | |
81ecdfbb | 14117 | $_am_arg | $_am_arg:* ) |
8ae85421 AM |
14118 | break ;; |
14119 | * ) | |
14120 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14121 | esac | |
14122 | done | |
81ecdfbb RW |
14123 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14124 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14125 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14126 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14127 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14128 | $as_echo X"$_am_arg" | | |
14129 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14130 | s//\1/ | |
14131 | q | |
14132 | } | |
14133 | /^X\(\/\/\)[^/].*/{ | |
14134 | s//\1/ | |
14135 | q | |
14136 | } | |
14137 | /^X\(\/\/\)$/{ | |
14138 | s//\1/ | |
14139 | q | |
14140 | } | |
14141 | /^X\(\/\).*/{ | |
14142 | s//\1/ | |
14143 | q | |
14144 | } | |
14145 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14146 | ;; | |
979273e3 | 14147 | |
81ecdfbb RW |
14148 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14149 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14150 | ;; | |
14151 | esac | |
979273e3 NN |
14152 | |
14153 | ||
81ecdfbb RW |
14154 | case $ac_file$ac_mode in |
14155 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
14156 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14157 | # are listed without --file. Let's play safe and only enable the eval | |
14158 | # if we detect the quoting. | |
14159 | case $CONFIG_FILES in | |
14160 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14161 | *) set x $CONFIG_FILES ;; | |
14162 | esac | |
14163 | shift | |
14164 | for mf | |
14165 | do | |
14166 | # Strip MF so we end up with the name of the file. | |
14167 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14168 | # Check whether this is an Automake generated Makefile or not. | |
14169 | # We used to match only the files named `Makefile.in', but | |
14170 | # some people rename them; so instead we look at the file content. | |
14171 | # Grep'ing the first line is not enough: some people post-process | |
14172 | # each Makefile.in and add a new line on top of each file to say so. | |
14173 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14174 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14175 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14176 | dirpart=`$as_dirname -- "$mf" || | |
8ae85421 AM |
14177 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14178 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14179 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14180 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14181 | $as_echo X"$mf" | | |
14182 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14183 | s//\1/ | |
14184 | q | |
14185 | } | |
14186 | /^X\(\/\/\)[^/].*/{ | |
14187 | s//\1/ | |
14188 | q | |
14189 | } | |
14190 | /^X\(\/\/\)$/{ | |
14191 | s//\1/ | |
14192 | q | |
14193 | } | |
14194 | /^X\(\/\).*/{ | |
14195 | s//\1/ | |
14196 | q | |
14197 | } | |
14198 | s/.*/./; q'` | |
14199 | else | |
14200 | continue | |
14201 | fi | |
14202 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14203 | # from the Makefile without running `make'. | |
14204 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14205 | test -z "$DEPDIR" && continue | |
14206 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14207 | test -z "am__include" && continue | |
14208 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14209 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14210 | U=`sed -n 's/^U = //p' < "$mf"` | |
14211 | # Find all dependency output files, they are included files with | |
14212 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14213 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14214 | # expansion. | |
14215 | for file in `sed -n " | |
14216 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14217 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14218 | # Make sure the directory exists. | |
14219 | test -f "$dirpart/$file" && continue | |
14220 | fdir=`$as_dirname -- "$file" || | |
8ae85421 AM |
14221 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14222 | X"$file" : 'X\(//\)[^/]' \| \ | |
14223 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14224 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14225 | $as_echo X"$file" | | |
14226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14227 | s//\1/ | |
14228 | q | |
14229 | } | |
14230 | /^X\(\/\/\)[^/].*/{ | |
14231 | s//\1/ | |
14232 | q | |
14233 | } | |
14234 | /^X\(\/\/\)$/{ | |
14235 | s//\1/ | |
14236 | q | |
14237 | } | |
14238 | /^X\(\/\).*/{ | |
14239 | s//\1/ | |
14240 | q | |
14241 | } | |
14242 | s/.*/./; q'` | |
14243 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14244 | # echo "creating $dirpart/$file" | |
14245 | echo '# dummy' > "$dirpart/$file" | |
8ae85421 | 14246 | done |
8ae85421 | 14247 | done |
81ecdfbb | 14248 | } |
d7040cdb | 14249 | ;; |
81ecdfbb | 14250 | "libtool":C) |
d7040cdb SE |
14251 | |
14252 | # See if we are running on zsh, and set the options which allow our | |
14253 | # commands through without removal of \ escapes. | |
14254 | if test -n "${ZSH_VERSION+set}" ; then | |
14255 | setopt NO_GLOB_SUBST | |
14256 | fi | |
14257 | ||
14258 | cfgfile="${ofile}T" | |
14259 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14260 | $RM "$cfgfile" | |
14261 | ||
14262 | cat <<_LT_EOF >> "$cfgfile" | |
14263 | #! $SHELL | |
14264 | ||
14265 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
1927a18f | 14266 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
14267 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14268 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14269 | # | |
1927a18f | 14270 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 14271 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
1927a18f | 14272 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 14273 | # |
1927a18f | 14274 | # This file is part of GNU Libtool. |
d7040cdb | 14275 | # |
1927a18f L |
14276 | # GNU Libtool is free software; you can redistribute it and/or |
14277 | # modify it under the terms of the GNU General Public License as | |
14278 | # published by the Free Software Foundation; either version 2 of | |
14279 | # the License, or (at your option) any later version. | |
d7040cdb | 14280 | # |
1927a18f L |
14281 | # As a special exception to the GNU General Public License, |
14282 | # if you distribute this file as part of a program or library that | |
14283 | # is built using GNU Libtool, you may include this file under the | |
14284 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 14285 | # |
1927a18f L |
14286 | # GNU Libtool is distributed in the hope that it will be useful, |
14287 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14288 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14289 | # GNU General Public License for more details. | |
d7040cdb | 14290 | # |
1927a18f L |
14291 | # You should have received a copy of the GNU General Public License |
14292 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14293 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14294 | # obtained by writing to the Free Software Foundation, Inc., | |
14295 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
14296 | |
14297 | ||
14298 | # The names of the tagged configurations supported by this script. | |
14299 | available_tags="" | |
14300 | ||
14301 | # ### BEGIN LIBTOOL CONFIG | |
14302 | ||
14303 | # Whether or not to build shared libraries. | |
14304 | build_libtool_libs=$enable_shared | |
14305 | ||
14306 | # Which release of libtool.m4 was used? | |
14307 | macro_version=$macro_version | |
14308 | macro_revision=$macro_revision | |
14309 | ||
14310 | # Whether or not to build static libraries. | |
14311 | build_old_libs=$enable_static | |
14312 | ||
14313 | # What type of objects to build. | |
14314 | pic_mode=$pic_mode | |
14315 | ||
14316 | # Whether or not to optimize for fast installation. | |
14317 | fast_install=$enable_fast_install | |
14318 | ||
3725885a RW |
14319 | # Shell to use when invoking shell scripts. |
14320 | SHELL=$lt_SHELL | |
14321 | ||
14322 | # An echo program that protects backslashes. | |
14323 | ECHO=$lt_ECHO | |
14324 | ||
d7040cdb SE |
14325 | # The host system. |
14326 | host_alias=$host_alias | |
14327 | host=$host | |
14328 | host_os=$host_os | |
14329 | ||
14330 | # The build system. | |
14331 | build_alias=$build_alias | |
14332 | build=$build | |
14333 | build_os=$build_os | |
14334 | ||
14335 | # A sed program that does not truncate output. | |
14336 | SED=$lt_SED | |
14337 | ||
14338 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14339 | Xsed="\$SED -e 1s/^X//" | |
14340 | ||
14341 | # A grep program that handles long lines. | |
14342 | GREP=$lt_GREP | |
14343 | ||
14344 | # An ERE matcher. | |
14345 | EGREP=$lt_EGREP | |
14346 | ||
14347 | # A literal string matcher. | |
14348 | FGREP=$lt_FGREP | |
14349 | ||
14350 | # A BSD- or MS-compatible name lister. | |
14351 | NM=$lt_NM | |
14352 | ||
14353 | # Whether we need soft or hard links. | |
14354 | LN_S=$lt_LN_S | |
14355 | ||
14356 | # What is the maximum length of a command? | |
14357 | max_cmd_len=$max_cmd_len | |
14358 | ||
14359 | # Object file suffix (normally "o"). | |
14360 | objext=$ac_objext | |
14361 | ||
14362 | # Executable file suffix (normally ""). | |
14363 | exeext=$exeext | |
14364 | ||
14365 | # whether the shell understands "unset". | |
14366 | lt_unset=$lt_unset | |
14367 | ||
14368 | # turn spaces into newlines. | |
14369 | SP2NL=$lt_lt_SP2NL | |
14370 | ||
14371 | # turn newlines into spaces. | |
14372 | NL2SP=$lt_lt_NL2SP | |
14373 | ||
1927a18f L |
14374 | # An object symbol dumper. |
14375 | OBJDUMP=$lt_OBJDUMP | |
14376 | ||
d7040cdb SE |
14377 | # Method to check whether dependent libraries are shared objects. |
14378 | deplibs_check_method=$lt_deplibs_check_method | |
14379 | ||
14380 | # Command to use when deplibs_check_method == "file_magic". | |
14381 | file_magic_cmd=$lt_file_magic_cmd | |
14382 | ||
14383 | # The archiver. | |
14384 | AR=$lt_AR | |
14385 | AR_FLAGS=$lt_AR_FLAGS | |
14386 | ||
14387 | # A symbol stripping program. | |
14388 | STRIP=$lt_STRIP | |
14389 | ||
14390 | # Commands used to install an old-style archive. | |
14391 | RANLIB=$lt_RANLIB | |
14392 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14393 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14394 | ||
3725885a RW |
14395 | # Whether to use a lock for old archive extraction. |
14396 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14397 | ||
d7040cdb SE |
14398 | # A C compiler. |
14399 | LTCC=$lt_CC | |
14400 | ||
14401 | # LTCC compiler flags. | |
14402 | LTCFLAGS=$lt_CFLAGS | |
14403 | ||
14404 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14405 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14406 | ||
14407 | # Transform the output of nm in a proper C declaration. | |
14408 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14409 | ||
14410 | # Transform the output of nm in a C name address pair. | |
14411 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14412 | ||
1927a18f L |
14413 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14414 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14415 | ||
d7040cdb SE |
14416 | # The name of the directory that contains temporary libtool files. |
14417 | objdir=$objdir | |
14418 | ||
d7040cdb SE |
14419 | # Used to examine libraries when file_magic_cmd begins with "file". |
14420 | MAGIC_CMD=$MAGIC_CMD | |
14421 | ||
14422 | # Must we lock files when doing compilation? | |
14423 | need_locks=$lt_need_locks | |
14424 | ||
1927a18f L |
14425 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14426 | DSYMUTIL=$lt_DSYMUTIL | |
14427 | ||
14428 | # Tool to change global to local symbols on Mac OS X. | |
14429 | NMEDIT=$lt_NMEDIT | |
14430 | ||
14431 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14432 | LIPO=$lt_LIPO | |
14433 | ||
14434 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14435 | OTOOL=$lt_OTOOL | |
14436 | ||
14437 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14438 | OTOOL64=$lt_OTOOL64 | |
14439 | ||
d7040cdb SE |
14440 | # Old archive suffix (normally "a"). |
14441 | libext=$libext | |
14442 | ||
14443 | # Shared library suffix (normally ".so"). | |
14444 | shrext_cmds=$lt_shrext_cmds | |
14445 | ||
14446 | # The commands to extract the exported symbol list from a shared archive. | |
14447 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14448 | ||
14449 | # Variables whose values should be saved in libtool wrapper scripts and | |
14450 | # restored at link time. | |
14451 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14452 | ||
14453 | # Do we need the "lib" prefix for modules? | |
14454 | need_lib_prefix=$need_lib_prefix | |
14455 | ||
14456 | # Do we need a version for libraries? | |
14457 | need_version=$need_version | |
14458 | ||
14459 | # Library versioning type. | |
14460 | version_type=$version_type | |
14461 | ||
14462 | # Shared library runtime path variable. | |
14463 | runpath_var=$runpath_var | |
14464 | ||
14465 | # Shared library path variable. | |
14466 | shlibpath_var=$shlibpath_var | |
14467 | ||
14468 | # Is shlibpath searched before the hard-coded library search path? | |
14469 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14470 | ||
14471 | # Format of library name prefix. | |
14472 | libname_spec=$lt_libname_spec | |
14473 | ||
14474 | # List of archive names. First name is the real one, the rest are links. | |
14475 | # The last name is the one that the linker finds with -lNAME | |
14476 | library_names_spec=$lt_library_names_spec | |
14477 | ||
14478 | # The coded name of the library, if different from the real name. | |
14479 | soname_spec=$lt_soname_spec | |
14480 | ||
3725885a RW |
14481 | # Permission mode override for installation of shared libraries. |
14482 | install_override_mode=$lt_install_override_mode | |
14483 | ||
d7040cdb SE |
14484 | # Command to use after installation of a shared archive. |
14485 | postinstall_cmds=$lt_postinstall_cmds | |
14486 | ||
14487 | # Command to use after uninstallation of a shared archive. | |
14488 | postuninstall_cmds=$lt_postuninstall_cmds | |
14489 | ||
14490 | # Commands used to finish a libtool library installation in a directory. | |
14491 | finish_cmds=$lt_finish_cmds | |
14492 | ||
14493 | # As "finish_cmds", except a single script fragment to be evaled but | |
14494 | # not shown. | |
14495 | finish_eval=$lt_finish_eval | |
14496 | ||
14497 | # Whether we should hardcode library paths into libraries. | |
14498 | hardcode_into_libs=$hardcode_into_libs | |
14499 | ||
14500 | # Compile-time system search path for libraries. | |
14501 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14502 | ||
14503 | # Run-time system search path for libraries. | |
14504 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14505 | ||
14506 | # Whether dlopen is supported. | |
14507 | dlopen_support=$enable_dlopen | |
14508 | ||
14509 | # Whether dlopen of programs is supported. | |
14510 | dlopen_self=$enable_dlopen_self | |
14511 | ||
14512 | # Whether dlopen of statically linked programs is supported. | |
14513 | dlopen_self_static=$enable_dlopen_self_static | |
14514 | ||
14515 | # Commands to strip libraries. | |
14516 | old_striplib=$lt_old_striplib | |
14517 | striplib=$lt_striplib | |
14518 | ||
14519 | ||
14520 | # The linker used to build libraries. | |
14521 | LD=$lt_LD | |
14522 | ||
3725885a RW |
14523 | # How to create reloadable object files. |
14524 | reload_flag=$lt_reload_flag | |
14525 | reload_cmds=$lt_reload_cmds | |
14526 | ||
d7040cdb SE |
14527 | # Commands used to build an old-style archive. |
14528 | old_archive_cmds=$lt_old_archive_cmds | |
14529 | ||
14530 | # A language specific compiler. | |
14531 | CC=$lt_compiler | |
14532 | ||
14533 | # Is the compiler the GNU compiler? | |
14534 | with_gcc=$GCC | |
14535 | ||
14536 | # Compiler flag to turn off builtin functions. | |
14537 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14538 | ||
14539 | # How to pass a linker flag through the compiler. | |
14540 | wl=$lt_lt_prog_compiler_wl | |
14541 | ||
14542 | # Additional compiler flags for building library objects. | |
14543 | pic_flag=$lt_lt_prog_compiler_pic | |
14544 | ||
14545 | # Compiler flag to prevent dynamic linking. | |
14546 | link_static_flag=$lt_lt_prog_compiler_static | |
14547 | ||
14548 | # Does compiler simultaneously support -c and -o options? | |
14549 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14550 | ||
14551 | # Whether or not to add -lc for building shared libraries. | |
14552 | build_libtool_need_lc=$archive_cmds_need_lc | |
14553 | ||
14554 | # Whether or not to disallow shared libs when runtime libs are static. | |
14555 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14556 | ||
14557 | # Compiler flag to allow reflexive dlopens. | |
14558 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14559 | ||
14560 | # Compiler flag to generate shared objects directly from archives. | |
14561 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14562 | ||
14563 | # Whether the compiler copes with passing no objects directly. | |
14564 | compiler_needs_object=$lt_compiler_needs_object | |
14565 | ||
14566 | # Create an old-style archive from a shared archive. | |
14567 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14568 | ||
14569 | # Create a temporary old-style archive to link instead of a shared archive. | |
14570 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14571 | ||
14572 | # Commands used to build a shared archive. | |
14573 | archive_cmds=$lt_archive_cmds | |
14574 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
14575 | ||
14576 | # Commands used to build a loadable module if different from building | |
14577 | # a shared archive. | |
14578 | module_cmds=$lt_module_cmds | |
14579 | module_expsym_cmds=$lt_module_expsym_cmds | |
14580 | ||
14581 | # Whether we are building with GNU ld or not. | |
14582 | with_gnu_ld=$lt_with_gnu_ld | |
14583 | ||
14584 | # Flag that allows shared libraries with undefined symbols to be built. | |
14585 | allow_undefined_flag=$lt_allow_undefined_flag | |
14586 | ||
14587 | # Flag that enforces no undefined symbols. | |
14588 | no_undefined_flag=$lt_no_undefined_flag | |
14589 | ||
14590 | # Flag to hardcode \$libdir into a binary during linking. | |
14591 | # This must work even if \$libdir does not exist | |
14592 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14593 | ||
14594 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14595 | # during linking. This must work even if \$libdir does not exist. | |
14596 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14597 | ||
14598 | # Whether we need a single "-rpath" flag with a separated argument. | |
14599 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14600 | ||
14601 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14602 | # DIR into the resulting binary. | |
14603 | hardcode_direct=$hardcode_direct | |
14604 | ||
14605 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14606 | # DIR into the resulting binary and the resulting library dependency is | |
14607 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14608 | # library is relocated. | |
14609 | hardcode_direct_absolute=$hardcode_direct_absolute | |
14610 | ||
14611 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14612 | # into the resulting binary. | |
14613 | hardcode_minus_L=$hardcode_minus_L | |
14614 | ||
14615 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14616 | # into the resulting binary. | |
14617 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14618 | ||
14619 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
14620 | # into the library and all subsequent libraries and executables linked | |
14621 | # against it. | |
14622 | hardcode_automatic=$hardcode_automatic | |
14623 | ||
14624 | # Set to yes if linker adds runtime paths of dependent libraries | |
14625 | # to runtime path list. | |
14626 | inherit_rpath=$inherit_rpath | |
14627 | ||
14628 | # Whether libtool must link a program against all its dependency libraries. | |
14629 | link_all_deplibs=$link_all_deplibs | |
14630 | ||
14631 | # Fix the shell variable \$srcfile for the compiler. | |
14632 | fix_srcfile_path=$lt_fix_srcfile_path | |
14633 | ||
14634 | # Set to "yes" if exported symbols are required. | |
14635 | always_export_symbols=$always_export_symbols | |
14636 | ||
14637 | # The commands to list exported symbols. | |
14638 | export_symbols_cmds=$lt_export_symbols_cmds | |
14639 | ||
14640 | # Symbols that should not be listed in the preloaded symbols. | |
14641 | exclude_expsyms=$lt_exclude_expsyms | |
14642 | ||
14643 | # Symbols that must always be exported. | |
14644 | include_expsyms=$lt_include_expsyms | |
14645 | ||
14646 | # Commands necessary for linking programs (against libraries) with templates. | |
14647 | prelink_cmds=$lt_prelink_cmds | |
14648 | ||
14649 | # Specify filename containing input files. | |
14650 | file_list_spec=$lt_file_list_spec | |
14651 | ||
14652 | # How to hardcode a shared library path into an executable. | |
14653 | hardcode_action=$hardcode_action | |
14654 | ||
14655 | # ### END LIBTOOL CONFIG | |
14656 | ||
14657 | _LT_EOF | |
14658 | ||
14659 | case $host_os in | |
14660 | aix3*) | |
14661 | cat <<\_LT_EOF >> "$cfgfile" | |
14662 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14663 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14664 | # vanish in a puff of smoke. | |
14665 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14666 | COLLECT_NAMES= | |
14667 | export COLLECT_NAMES | |
14668 | fi | |
14669 | _LT_EOF | |
14670 | ;; | |
14671 | esac | |
14672 | ||
14673 | ||
14674 | ltmain="$ac_aux_dir/ltmain.sh" | |
14675 | ||
14676 | ||
14677 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14678 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14679 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14680 | # is reportedly fixed, but why not run on old versions too? | |
14681 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14682 | || (rm -f "$cfgfile"; exit 1) | |
14683 | ||
14684 | case $xsi_shell in | |
14685 | yes) | |
14686 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 14687 | |
d7040cdb SE |
14688 | # func_dirname file append nondir_replacement |
14689 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14690 | # otherwise set result to NONDIR_REPLACEMENT. | |
14691 | func_dirname () | |
14692 | { | |
14693 | case ${1} in | |
14694 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14695 | * ) func_dirname_result="${3}" ;; | |
14696 | esac | |
14697 | } | |
14698 | ||
14699 | # func_basename file | |
14700 | func_basename () | |
14701 | { | |
14702 | func_basename_result="${1##*/}" | |
14703 | } | |
14704 | ||
1927a18f L |
14705 | # func_dirname_and_basename file append nondir_replacement |
14706 | # perform func_basename and func_dirname in a single function | |
14707 | # call: | |
14708 | # dirname: Compute the dirname of FILE. If nonempty, | |
14709 | # add APPEND to the result, otherwise set result | |
14710 | # to NONDIR_REPLACEMENT. | |
14711 | # value returned in "$func_dirname_result" | |
14712 | # basename: Compute filename of FILE. | |
14713 | # value retuned in "$func_basename_result" | |
14714 | # Implementation must be kept synchronized with func_dirname | |
14715 | # and func_basename. For efficiency, we do not delegate to | |
14716 | # those functions but instead duplicate the functionality here. | |
14717 | func_dirname_and_basename () | |
14718 | { | |
14719 | case ${1} in | |
14720 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14721 | * ) func_dirname_result="${3}" ;; | |
14722 | esac | |
14723 | func_basename_result="${1##*/}" | |
14724 | } | |
14725 | ||
d7040cdb SE |
14726 | # func_stripname prefix suffix name |
14727 | # strip PREFIX and SUFFIX off of NAME. | |
14728 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14729 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14730 | # dot (in which case that matches only a dot). | |
14731 | func_stripname () | |
14732 | { | |
14733 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14734 | # positional parameters, so assign one to ordinary parameter first. | |
14735 | func_stripname_result=${3} | |
14736 | func_stripname_result=${func_stripname_result#"${1}"} | |
14737 | func_stripname_result=${func_stripname_result%"${2}"} | |
14738 | } | |
14739 | ||
14740 | # func_opt_split | |
14741 | func_opt_split () | |
14742 | { | |
14743 | func_opt_split_opt=${1%%=*} | |
14744 | func_opt_split_arg=${1#*=} | |
14745 | } | |
14746 | ||
14747 | # func_lo2o object | |
14748 | func_lo2o () | |
14749 | { | |
14750 | case ${1} in | |
14751 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14752 | *) func_lo2o_result=${1} ;; | |
14753 | esac | |
14754 | } | |
1927a18f L |
14755 | |
14756 | # func_xform libobj-or-source | |
14757 | func_xform () | |
14758 | { | |
14759 | func_xform_result=${1%.*}.lo | |
14760 | } | |
14761 | ||
14762 | # func_arith arithmetic-term... | |
14763 | func_arith () | |
14764 | { | |
14765 | func_arith_result=$(( $* )) | |
14766 | } | |
14767 | ||
14768 | # func_len string | |
14769 | # STRING may not start with a hyphen. | |
14770 | func_len () | |
14771 | { | |
14772 | func_len_result=${#1} | |
14773 | } | |
14774 | ||
d7040cdb SE |
14775 | _LT_EOF |
14776 | ;; | |
14777 | *) # Bourne compatible functions. | |
14778 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 14779 | |
d7040cdb SE |
14780 | # func_dirname file append nondir_replacement |
14781 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14782 | # otherwise set result to NONDIR_REPLACEMENT. | |
14783 | func_dirname () | |
14784 | { | |
14785 | # Extract subdirectory from the argument. | |
3725885a | 14786 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
14787 | if test "X$func_dirname_result" = "X${1}"; then |
14788 | func_dirname_result="${3}" | |
14789 | else | |
14790 | func_dirname_result="$func_dirname_result${2}" | |
14791 | fi | |
14792 | } | |
14793 | ||
14794 | # func_basename file | |
14795 | func_basename () | |
14796 | { | |
3725885a | 14797 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
14798 | } |
14799 | ||
1927a18f | 14800 | |
d7040cdb SE |
14801 | # func_stripname prefix suffix name |
14802 | # strip PREFIX and SUFFIX off of NAME. | |
14803 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14804 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14805 | # dot (in which case that matches only a dot). | |
14806 | # func_strip_suffix prefix name | |
14807 | func_stripname () | |
14808 | { | |
14809 | case ${2} in | |
3725885a RW |
14810 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
14811 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
14812 | esac |
14813 | } | |
14814 | ||
14815 | # sed scripts: | |
14816 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14817 | my_sed_long_arg='1s/^-[^=]*=//' | |
14818 | ||
14819 | # func_opt_split | |
14820 | func_opt_split () | |
14821 | { | |
3725885a RW |
14822 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
14823 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
14824 | } |
14825 | ||
14826 | # func_lo2o object | |
14827 | func_lo2o () | |
14828 | { | |
3725885a | 14829 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 14830 | } |
1927a18f L |
14831 | |
14832 | # func_xform libobj-or-source | |
14833 | func_xform () | |
14834 | { | |
3725885a | 14835 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
1927a18f L |
14836 | } |
14837 | ||
14838 | # func_arith arithmetic-term... | |
14839 | func_arith () | |
14840 | { | |
14841 | func_arith_result=`expr "$@"` | |
14842 | } | |
14843 | ||
14844 | # func_len string | |
14845 | # STRING may not start with a hyphen. | |
14846 | func_len () | |
14847 | { | |
14848 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14849 | } | |
14850 | ||
d7040cdb SE |
14851 | _LT_EOF |
14852 | esac | |
14853 | ||
14854 | case $lt_shell_append in | |
14855 | yes) | |
14856 | cat << \_LT_EOF >> "$cfgfile" | |
14857 | ||
14858 | # func_append var value | |
14859 | # Append VALUE to the end of shell variable VAR. | |
14860 | func_append () | |
14861 | { | |
14862 | eval "$1+=\$2" | |
14863 | } | |
14864 | _LT_EOF | |
14865 | ;; | |
14866 | *) | |
14867 | cat << \_LT_EOF >> "$cfgfile" | |
14868 | ||
14869 | # func_append var value | |
14870 | # Append VALUE to the end of shell variable VAR. | |
14871 | func_append () | |
14872 | { | |
14873 | eval "$1=\$$1\$2" | |
14874 | } | |
1927a18f | 14875 | |
d7040cdb SE |
14876 | _LT_EOF |
14877 | ;; | |
14878 | esac | |
14879 | ||
14880 | ||
14881 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14882 | || (rm -f "$cfgfile"; exit 1) | |
14883 | ||
14884 | mv -f "$cfgfile" "$ofile" || | |
14885 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14886 | chmod +x "$ofile" | |
14887 | ||
8ae85421 | 14888 | ;; |
81ecdfbb | 14889 | "default-1":C) |
20e95c23 DJ |
14890 | for ac_file in $CONFIG_FILES; do |
14891 | # Support "outfile[:infile[:infile...]]" | |
14892 | case "$ac_file" in | |
14893 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14894 | esac | |
14895 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
14896 | case "$ac_file" in */Makefile.in) | |
14897 | # Adjust a relative srcdir. | |
14898 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 14899 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
14900 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
14901 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
14902 | # In autoconf-2.50 it is called $srcdir. | |
14903 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
14904 | case "$ac_given_srcdir" in | |
14905 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
14906 | /*) top_srcdir="$ac_given_srcdir" ;; | |
14907 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14908 | esac | |
14909 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
14910 | rm -f "$ac_dir/POTFILES" | |
14911 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
14912 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
14913 | POMAKEFILEDEPS="POTFILES.in" | |
14914 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
14915 | # on $ac_dir but don't depend on user-specified configuration | |
14916 | # parameters. | |
14917 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
14918 | # The LINGUAS file contains the set of available languages. | |
14919 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
14920 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
14921 | fi | |
14922 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
14923 | # Hide the ALL_LINGUAS assigment from automake. | |
14924 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
14925 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
14926 | else | |
14927 | # The set of available languages was given in configure.in. | |
14928 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
14929 | fi | |
14930 | case "$ac_given_srcdir" in | |
14931 | .) srcdirpre= ;; | |
14932 | *) srcdirpre='$(srcdir)/' ;; | |
14933 | esac | |
14934 | POFILES= | |
14935 | GMOFILES= | |
14936 | UPDATEPOFILES= | |
14937 | DUMMYPOFILES= | |
14938 | for lang in $ALL_LINGUAS; do | |
14939 | POFILES="$POFILES $srcdirpre$lang.po" | |
14940 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
14941 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
14942 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
14943 | done | |
14944 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
14945 | # environment variable. | |
14946 | INST_LINGUAS= | |
14947 | if test -n "$ALL_LINGUAS"; then | |
14948 | for presentlang in $ALL_LINGUAS; do | |
14949 | useit=no | |
14950 | if test "%UNSET%" != "$LINGUAS"; then | |
14951 | desiredlanguages="$LINGUAS" | |
14952 | else | |
14953 | desiredlanguages="$ALL_LINGUAS" | |
14954 | fi | |
14955 | for desiredlang in $desiredlanguages; do | |
14956 | # Use the presentlang catalog if desiredlang is | |
14957 | # a. equal to presentlang, or | |
14958 | # b. a variant of presentlang (because in this case, | |
14959 | # presentlang can be used as a fallback for messages | |
14960 | # which are not translated in the desiredlang catalog). | |
14961 | case "$desiredlang" in | |
14962 | "$presentlang"*) useit=yes;; | |
14963 | esac | |
14964 | done | |
14965 | if test $useit = yes; then | |
14966 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
14967 | fi | |
14968 | done | |
14969 | fi | |
14970 | CATALOGS= | |
14971 | if test -n "$INST_LINGUAS"; then | |
14972 | for lang in $INST_LINGUAS; do | |
14973 | CATALOGS="$CATALOGS $lang.gmo" | |
14974 | done | |
14975 | fi | |
14976 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
14977 | 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" | |
14978 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
14979 | if test -f "$f"; then | |
14980 | case "$f" in | |
14981 | *.orig | *.bak | *~) ;; | |
14982 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
14983 | esac | |
14984 | fi | |
14985 | done | |
14986 | fi | |
14987 | ;; | |
14988 | esac | |
14989 | done ;; | |
81ecdfbb | 14990 | |
979273e3 | 14991 | esac |
81ecdfbb | 14992 | done # for ac_tag |
979273e3 | 14993 | |
979273e3 | 14994 | |
81ecdfbb | 14995 | as_fn_exit 0 |
979273e3 | 14996 | _ACEOF |
979273e3 NN |
14997 | ac_clean_files=$ac_clean_files_save |
14998 | ||
81ecdfbb RW |
14999 | test $ac_write_fail = 0 || |
15000 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15001 | ||
979273e3 NN |
15002 | |
15003 | # configure is writing to config.log, and then calls config.status. | |
15004 | # config.status does its own redirection, appending to config.log. | |
15005 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15006 | # by configure, so config.status won't be able to write to it; its | |
15007 | # output is simply discarded. So we exec the FD to /dev/null, | |
15008 | # effectively closing config.log, so it can be properly (re)opened and | |
15009 | # appended to by config.status. When coming back to configure, we | |
15010 | # need to make the FD available again. | |
15011 | if test "$no_create" != yes; then | |
15012 | ac_cs_success=: | |
15013 | ac_config_status_args= | |
15014 | test "$silent" = yes && | |
15015 | ac_config_status_args="$ac_config_status_args --quiet" | |
15016 | exec 5>/dev/null | |
15017 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15018 | exec 5>>config.log | |
15019 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15020 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15021 | $ac_cs_success || as_fn_exit $? |
15022 | fi | |
15023 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15025 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
979273e3 | 15026 | fi |
252b5132 | 15027 |